39 references to GotoStatementSyntax
Microsoft.CodeAnalysis.CSharp (12)
Binder\Binder.IdentifierUsedAsValueFinder.cs (1)
135case GotoStatementSyntax { RawKind: (int)SyntaxKind.GotoStatement }:
Binder\Binder_Statements.cs (2)
111result = BindGoto((GotoStatementSyntax)node, diagnostics); 507private BoundStatement BindGoto(GotoStatementSyntax node, BindingDiagnosticBag diagnostics)
Binder\ExpressionVariableFinder.cs (1)
106public override void VisitGotoStatement(GotoStatementSyntax node)
Binder\SwitchBinder.cs (1)
468internal BoundStatement BindGotoCaseOrDefault(GotoStatementSyntax node, Binder gotoBinder, BindingDiagnosticBag diagnostics)
Compiler\MethodCompiler.cs (1)
2082case GotoStatementSyntax { RawKind: (int)SyntaxKind.GotoStatement }:
Symbols\Source\SourceLocalSymbol.cs (1)
787_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 (2)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (2)
2133var gotoStatement = token.GetAncestor<GotoStatementSyntax>();
Microsoft.CodeAnalysis.CSharp.Features (1)
Highlighting\KeywordHighlighters\SwitchStatementHighlighter.cs (1)
60else 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)
10337private static GotoStatementSyntax GenerateGotoStatement() 12085var node = GenerateGotoStatement(); 12092var newNode = node.WithAttributeLists(node.AttributeLists).WithGotoKeyword(node.GotoKeyword).WithCaseOrDefaultKeyword(node.CaseOrDefaultKeyword).WithExpression(node.Expression).WithSemicolonToken(node.SemicolonToken); 16791var oldNode = GenerateGotoStatement(); 16807var oldNode = GenerateGotoStatement();
Parsing\StatementParsingTests.cs (6)
1035var gs = (GotoStatementSyntax)statement; 1057var gs = (GotoStatementSyntax)statement; 1081var gs = (GotoStatementSyntax)statement;
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (2)
2133var gotoStatement = token.GetAncestor<GotoStatementSyntax>();
Microsoft.VisualStudio.LanguageServices.CSharp (1)
LanguageService\CSharpHelpContextService.cs (1)
470if (token.Parent is DefaultSwitchLabelSyntax or GotoStatementSyntax)