4 instantiations of SwitchSectionSyntax
Microsoft.CodeAnalysis.CSharp (4)
_generated\1\Syntax.xml.Internal.Generated.cs (4)
14084=> new SwitchSectionSyntax(this.Kind, this.labels, this.statements, diagnostics, GetAnnotations()); 14087=> new SwitchSectionSyntax(this.Kind, this.labels, this.statements, GetDiagnostics(), annotations); 31728var result = new SwitchSectionSyntax(SyntaxKind.SwitchSection, labels.Node, statements.Node, this.context); 37150var result = new SwitchSectionSyntax(SyntaxKind.SwitchSection, labels.Node, statements.Node);
19 references to SwitchSectionSyntax
Microsoft.CodeAnalysis.CSharp (19)
_generated\0\Syntax.xml.Main.Generated.cs (1)
4651return (SwitchStatementSyntax)Syntax.InternalSyntax.SyntaxFactory.SwitchStatement(attributeLists.Node.ToGreenList<Syntax.InternalSyntax.AttributeListSyntax>(), (Syntax.InternalSyntax.SyntaxToken)switchKeyword.Node!, (Syntax.InternalSyntax.SyntaxToken?)openParenToken.Node, (Syntax.InternalSyntax.ExpressionSyntax)expression.Green, (Syntax.InternalSyntax.SyntaxToken?)closeParenToken.Node, (Syntax.InternalSyntax.SyntaxToken)openBraceToken.Node!, sections.Node.ToGreenList<Syntax.InternalSyntax.SwitchSectionSyntax>(), (Syntax.InternalSyntax.SyntaxToken)closeBraceToken.Node!).CreateRed();
_generated\1\Syntax.xml.Internal.Generated.cs (16)
13940public CoreSyntax.SyntaxList<SwitchSectionSyntax> Sections => new CoreSyntax.SyntaxList<SwitchSectionSyntax>(this.sections); 13965public SwitchStatementSyntax Update(CoreSyntax.SyntaxList<AttributeListSyntax> attributeLists, SyntaxToken switchKeyword, SyntaxToken openParenToken, ExpressionSyntax expression, SyntaxToken closeParenToken, SyntaxToken openBraceToken, CoreSyntax.SyntaxList<SwitchSectionSyntax> sections, SyntaxToken closeBraceToken) 14066public SwitchSectionSyntax Update(CoreSyntax.SyntaxList<SwitchLabelSyntax> labels, CoreSyntax.SyntaxList<StatementSyntax> statements) 14070var newNode = SyntaxFactory.SwitchSection(labels, statements); 27557public virtual TResult VisitSwitchSection(SwitchSectionSyntax node) => this.DefaultVisit(node); 27811public virtual void VisitSwitchSection(SwitchSectionSyntax node) => this.DefaultVisit(node); 28347public override CSharpSyntaxNode VisitSwitchSection(SwitchSectionSyntax node) 31686public SwitchStatementSyntax SwitchStatement(CoreSyntax.SyntaxList<AttributeListSyntax> attributeLists, SyntaxToken switchKeyword, SyntaxToken? openParenToken, ExpressionSyntax expression, SyntaxToken? closeParenToken, SyntaxToken openBraceToken, CoreSyntax.SyntaxList<SwitchSectionSyntax> sections, SyntaxToken closeBraceToken) 31719public SwitchSectionSyntax SwitchSection(CoreSyntax.SyntaxList<SwitchLabelSyntax> labels, CoreSyntax.SyntaxList<StatementSyntax> statements) 31726if (cached != null) return (SwitchSectionSyntax)cached; 31728var result = new SwitchSectionSyntax(SyntaxKind.SwitchSection, labels.Node, statements.Node, this.context); 37108public static SwitchStatementSyntax SwitchStatement(CoreSyntax.SyntaxList<AttributeListSyntax> attributeLists, SyntaxToken switchKeyword, SyntaxToken? openParenToken, ExpressionSyntax expression, SyntaxToken? closeParenToken, SyntaxToken openBraceToken, CoreSyntax.SyntaxList<SwitchSectionSyntax> sections, SyntaxToken closeBraceToken) 37141public static SwitchSectionSyntax SwitchSection(CoreSyntax.SyntaxList<SwitchLabelSyntax> labels, CoreSyntax.SyntaxList<StatementSyntax> statements) 37148if (cached != null) return (SwitchSectionSyntax)cached; 37150var result = new SwitchSectionSyntax(SyntaxKind.SwitchSection, labels.Node, statements.Node);
Parser\LanguageParser.cs (2)
10229var sections = _pool.Allocate<SwitchSectionSyntax>(); 10300private SwitchSectionSyntax ParseSwitchSection()