23 references to GotoKeyword
Microsoft.CodeAnalysis.CSharp (7)
Syntax.xml.Main.Generated.cs (1)
1867=> node.Update(VisitList(node.AttributeLists), VisitToken(node.GotoKeyword), VisitToken(node.CaseOrDefaultKeyword), (ExpressionSyntax?)Visit(node.Expression), VisitToken(node.SemicolonToken));
Syntax.xml.Syntax.Generated.cs (5)
7090if (attributeLists != this.AttributeLists || gotoKeyword != this.GotoKeyword || caseOrDefaultKeyword != this.CaseOrDefaultKeyword || expression != this.Expression || semicolonToken != this.SemicolonToken) 7101public new GotoStatementSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.GotoKeyword, this.CaseOrDefaultKeyword, this.Expression, this.SemicolonToken); 7103public GotoStatementSyntax WithCaseOrDefaultKeyword(SyntaxToken caseOrDefaultKeyword) => Update(this.AttributeLists, this.GotoKeyword, caseOrDefaultKeyword, this.Expression, this.SemicolonToken); 7104public GotoStatementSyntax WithExpression(ExpressionSyntax? expression) => Update(this.AttributeLists, this.GotoKeyword, this.CaseOrDefaultKeyword, expression, this.SemicolonToken); 7105public GotoStatementSyntax WithSemicolonToken(SyntaxToken semicolonToken) => Update(this.AttributeLists, this.GotoKeyword, this.CaseOrDefaultKeyword, this.Expression, semicolonToken);
Syntax\LookupPosition.cs (1)
341return ((GotoStatementSyntax)statement).GotoKeyword;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2145if (gotoStatement.GotoKeyword == token)
Microsoft.CodeAnalysis.CSharp.Features (2)
Highlighting\KeywordHighlighters\SwitchStatementHighlighter.cs (2)
75var start = gotoStatement.GotoKeyword.SpanStart; 78: gotoStatement.GotoKeyword.Span.End;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (11)
Generated\Syntax.Test.xml.Generated.cs (2)
12532Assert.Equal(SyntaxKind.GotoKeyword, node.GotoKeyword.Kind()); 12536var newNode = node.WithAttributeLists(node.AttributeLists).WithGotoKeyword(node.GotoKeyword).WithCaseOrDefaultKeyword(node.CaseOrDefaultKeyword).WithExpression(node.Expression).WithSemicolonToken(node.SemicolonToken);
Parsing\StatementParsingTests.cs (9)
1036Assert.NotEqual(default, gs.GotoKeyword); 1037Assert.False(gs.GotoKeyword.IsMissing); 1038Assert.Equal(SyntaxKind.GotoKeyword, gs.GotoKeyword.Kind()); 1058Assert.NotEqual(default, gs.GotoKeyword); 1059Assert.False(gs.GotoKeyword.IsMissing); 1060Assert.Equal(SyntaxKind.GotoKeyword, gs.GotoKeyword.Kind()); 1082Assert.NotEqual(default, gs.GotoKeyword); 1083Assert.False(gs.GotoKeyword.IsMissing); 1084Assert.Equal(SyntaxKind.GotoKeyword, gs.GotoKeyword.Kind());
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2145if (gotoStatement.GotoKeyword == token)
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2145if (gotoStatement.GotoKeyword == token)