SwitchSectionSyntax
csharp
public sealed class SwitchSectionSyntaxRepresents a switch section syntax of a switch statement.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
This node is associated with the following syntax kinds:
SwitchSection
Fields and properties (2)
public SyntaxList<SwitchLabelSyntax> LabelsGets a SyntaxList of SwitchLabelSyntax's the represents the possible labels that control can transfer to within the section.
public SyntaxList<StatementSyntax> StatementsGets a SyntaxList of StatementSyntax's the represents the statements to be executed when control transfer to a label the belongs to the section.
Methods (6)
public override SyntaxNode? GetSlot(int index)public override void Accept(SyntaxVisitor visitor)public override TResult Accept<TResult>(SyntaxVisitor<TResult> visitor)public SwitchSectionSyntax Update(SyntaxList<SwitchLabelSyntax> labels, SyntaxList<StatementSyntax> statements)public SwitchSectionSyntax WithLabels(SyntaxList<SwitchLabelSyntax> labels)public SwitchSectionSyntax WithStatements(SyntaxList<StatementSyntax> statements)
Used by (8)
- BinderVixen.Raven
- RavenParserVixen.Raven
- SwitchSectionSyntaxVixen.Raven
- SwitchStatementSyntaxVixen.Raven
- SyntaxFactoryVixen.Raven
- SyntaxRewriterVixen.Raven
- SyntaxVisitorVixen.Raven
- SyntaxVisitorVixen.Raven