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);
31728
var result = new
SwitchSectionSyntax
(SyntaxKind.SwitchSection, labels.Node, statements.Node, this.context);
37150
var 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)
4651
return (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)
13940
public CoreSyntax.SyntaxList<
SwitchSectionSyntax
> Sections => new CoreSyntax.SyntaxList<
SwitchSectionSyntax
>(this.sections);
13965
public SwitchStatementSyntax Update(CoreSyntax.SyntaxList<AttributeListSyntax> attributeLists, SyntaxToken switchKeyword, SyntaxToken openParenToken, ExpressionSyntax expression, SyntaxToken closeParenToken, SyntaxToken openBraceToken, CoreSyntax.SyntaxList<
SwitchSectionSyntax
> sections, SyntaxToken closeBraceToken)
14066
public
SwitchSectionSyntax
Update(CoreSyntax.SyntaxList<SwitchLabelSyntax> labels, CoreSyntax.SyntaxList<StatementSyntax> statements)
14070
var
newNode = SyntaxFactory.SwitchSection(labels, statements);
27557
public virtual TResult VisitSwitchSection(
SwitchSectionSyntax
node) => this.DefaultVisit(node);
27811
public virtual void VisitSwitchSection(
SwitchSectionSyntax
node) => this.DefaultVisit(node);
28347
public override CSharpSyntaxNode VisitSwitchSection(
SwitchSectionSyntax
node)
31686
public SwitchStatementSyntax SwitchStatement(CoreSyntax.SyntaxList<AttributeListSyntax> attributeLists, SyntaxToken switchKeyword, SyntaxToken? openParenToken, ExpressionSyntax expression, SyntaxToken? closeParenToken, SyntaxToken openBraceToken, CoreSyntax.SyntaxList<
SwitchSectionSyntax
> sections, SyntaxToken closeBraceToken)
31719
public
SwitchSectionSyntax
SwitchSection(CoreSyntax.SyntaxList<SwitchLabelSyntax> labels, CoreSyntax.SyntaxList<StatementSyntax> statements)
31726
if (cached != null) return (
SwitchSectionSyntax
)cached;
31728
var
result = new SwitchSectionSyntax(SyntaxKind.SwitchSection, labels.Node, statements.Node, this.context);
37108
public static SwitchStatementSyntax SwitchStatement(CoreSyntax.SyntaxList<AttributeListSyntax> attributeLists, SyntaxToken switchKeyword, SyntaxToken? openParenToken, ExpressionSyntax expression, SyntaxToken? closeParenToken, SyntaxToken openBraceToken, CoreSyntax.SyntaxList<
SwitchSectionSyntax
> sections, SyntaxToken closeBraceToken)
37141
public static
SwitchSectionSyntax
SwitchSection(CoreSyntax.SyntaxList<SwitchLabelSyntax> labels, CoreSyntax.SyntaxList<StatementSyntax> statements)
37148
if (cached != null) return (
SwitchSectionSyntax
)cached;
37150
var
result = new SwitchSectionSyntax(SyntaxKind.SwitchSection, labels.Node, statements.Node);
Parser\LanguageParser.cs (2)
10229
var sections = _pool.Allocate<
SwitchSectionSyntax
>();
10300
private
SwitchSectionSyntax
ParseSwitchSection()