40 references to GotoStatementSyntax
Microsoft.CodeAnalysis.CSharp (13)
Binder\Binder.IdentifierUsedAsValueFinder.cs (1)
135case GotoStatementSyntax { RawKind: (int)SyntaxKind.GotoStatement }:
Binder\Binder_Statements.cs (2)
112result = BindGoto((GotoStatementSyntax)node, diagnostics); 510private BoundStatement BindGoto(GotoStatementSyntax node, BindingDiagnosticBag diagnostics)
Binder\ExpressionVariableFinder.cs (1)
97public override void VisitGotoStatement(GotoStatementSyntax node)
Binder\SwitchBinder.cs (1)
472internal BoundStatement BindGotoCaseOrDefault(GotoStatementSyntax node, Binder gotoBinder, BindingDiagnosticBag diagnostics)
Compiler\MethodCompiler.cs (1)
2047case GotoStatementSyntax { RawKind: (int)SyntaxKind.GotoStatement }:
Parser\LanguageParser.cs (1)
9509private GotoStatementSyntax ParseGotoStatement(SyntaxList<AttributeListSyntax> attributes)
Symbols\Source\SourceLocalSymbol.cs (1)
803_nodeBinder.BindStatement((GotoStatementSyntax)_nodeToBind, diagnostics);
Syntax\GotoStatementSyntax.cs (3)
11public GotoStatementSyntax Update(SyntaxToken gotoKeyword, SyntaxToken caseOrDefaultKeyword, ExpressionSyntax expression, SyntaxToken semicolonToken) 20public static GotoStatementSyntax GotoStatement(SyntaxKind kind, SyntaxToken caseOrDefaultKeyword, ExpressionSyntax expression) 23public static GotoStatementSyntax GotoStatement(SyntaxKind kind, SyntaxToken gotoKeyword, SyntaxToken caseOrDefaultKeyword, ExpressionSyntax expression, SyntaxToken semicolonToken)
Syntax\LookupPosition.cs (2)
341return ((GotoStatementSyntax)statement).GotoKeyword; 404return ((GotoStatementSyntax)statement).SemicolonToken;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2141var gotoStatement = token.GetAncestor<GotoStatementSyntax>();
Microsoft.CodeAnalysis.CSharp.Features (3)
GoToDefinition\CSharpGoToDefinitionSymbolService.cs (2)
76if (node.FirstAncestorOrSelf<GotoStatementSyntax>() is not GotoStatementSyntax gotoStatement)
Highlighting\KeywordHighlighters\SwitchStatementHighlighter.cs (1)
66else if (highlightGotos && node is GotoStatementSyntax gotoStatement)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (4)
IOperation\IOperationTests_IBranchOperation.Extensions.cs (1)
31var result = GetOuterOperationAndCorrespondingInnerOperation<LabeledStatementSyntax, GotoStatementSyntax>(@"
IOperation\IOperationTests_InvalidStatement.cs (3)
359VerifyOperationTreeAndDiagnosticsForTest<GotoStatementSyntax>(source, expectedOperationTree, expectedDiagnostics); 415VerifyOperationTreeAndDiagnosticsForTest<GotoStatementSyntax>(source, expectedOperationTree, expectedDiagnostics); 444VerifyOperationTreeAndDiagnosticsForTest<GotoStatementSyntax>(source, expectedOperationTree, expectedDiagnostics);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\ScriptSemanticsTests.cs (1)
525var symbol1 = model.GetSymbolInfo(((GotoStatementSyntax)statements[1]).Expression).Symbol;
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (5)
Compilation\SemanticModelAPITests.cs (2)
334var statement = tree.GetCompilationUnitRoot().DescendantNodes().OfType<GotoStatementSyntax>().First();
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (2)
3710var gotoStatement = (GotoStatementSyntax)methodDecl.Body.Statements[1];
DocumentationComments\DocumentationCommentIDTests.cs (1)
144var syntax = tree.GetCompilationUnitRoot().DescendantNodes().OfType<GotoStatementSyntax>().Single().Expression;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (11)
Generated\Syntax.Test.xml.Generated.cs (5)
10589private static GotoStatementSyntax GenerateGotoStatement() 12386var node = GenerateGotoStatement(); 12393var newNode = node.WithAttributeLists(node.AttributeLists).WithGotoKeyword(node.GotoKeyword).WithCaseOrDefaultKeyword(node.CaseOrDefaultKeyword).WithExpression(node.Expression).WithSemicolonToken(node.SemicolonToken); 17219var oldNode = GenerateGotoStatement(); 17235var oldNode = GenerateGotoStatement();
Parsing\StatementParsingTests.cs (6)
1035var gs = (GotoStatementSyntax)statement; 1057var gs = (GotoStatementSyntax)statement; 1081var gs = (GotoStatementSyntax)statement;
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2141var gotoStatement = token.GetAncestor<GotoStatementSyntax>();
Microsoft.VisualStudio.LanguageServices.CSharp (1)
LanguageService\CSharpHelpContextService.cs (1)
488if (token.Parent is DefaultSwitchLabelSyntax or GotoStatementSyntax)