34 references to LabeledStatement
Microsoft.CodeAnalysis.CSharp (11)
Binder\Binder_Statements.cs (2)
106case SyntaxKind.LabeledStatement: 342case SyntaxKind.LabeledStatement:
Binder\LocalBinderFactory.cs (1)
1042case SyntaxKind.LabeledStatement:
Binder\LocalScopeBinder.cs (3)
179while (innerStatement.Kind() == SyntaxKind.LabeledStatement) 313while (innerStatement.Kind() == SyntaxKind.LabeledStatement) 364while (statement.Kind() == SyntaxKind.LabeledStatement)
Compilation\CSharpSemanticModel.cs (1)
5089case SyntaxKind.LabeledStatement:
Lowering\Instrumentation\Instrumenter.cs (1)
208Debug.Assert(original.Syntax.Kind() == SyntaxKind.LabeledStatement);
Symbols\Source\SourceMemberContainerSymbol.cs (1)
5194while (innerStatement.Kind() == SyntaxKind.LabeledStatement)
Syntax\LookupPosition.cs (2)
344case SyntaxKind.LabeledStatement: 407case SyntaxKind.LabeledStatement:
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\Analyzers\CSharp\Analyzers\RemoveUnreachableCode\RemoveUnreachableCodeHelpers.cs (1)
66if (currentStatement.IsKind(SyntaxKind.LabeledStatement))
src\Analyzers\CSharp\Analyzers\UseSimpleUsingStatement\UseSimpleUsingStatementDiagnosticAnalyzer.cs (1)
203SyntaxKind.LabeledStatement;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (1)
399SyntaxKind.LabeledStatement or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\FormattingRangeHelper.cs (1)
368SyntaxKind.LabeledStatement or
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
156return token.Parent is (kind: SyntaxKind.CaseSwitchLabel or SyntaxKind.DefaultSwitchLabel or SyntaxKind.CasePatternSwitchLabel or SyntaxKind.LabeledStatement);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\GotoTest.cs (2)
1148var label = (LabeledStatementSyntax)tree.FindNodeOrTokenByKind(SyntaxKind.LabeledStatement); 1161var label = (LabeledStatementSyntax)tree.FindNodeOrTokenByKind(SyntaxKind.LabeledStatement);
Microsoft.CodeAnalysis.CSharp.Features (6)
CodeRefactorings\InlineTemporary\InlineTemporaryCodeRefactoringProvider.cs (1)
276while (scope.IsKind(SyntaxKind.LabeledStatement))
EditAndContinue\BreakpointSpans.cs (1)
597case SyntaxKind.LabeledStatement:
EditAndContinue\SyntaxComparer.cs (2)
338case SyntaxKind.LabeledStatement: 1094case SyntaxKind.LabeledStatement:
src\Analyzers\CSharp\Analyzers\RemoveUnreachableCode\RemoveUnreachableCodeHelpers.cs (1)
66if (currentStatement.IsKind(SyntaxKind.LabeledStatement))
src\Analyzers\CSharp\Analyzers\UseSimpleUsingStatement\UseSimpleUsingStatementDiagnosticAnalyzer.cs (1)
203SyntaxKind.LabeledStatement;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (5)
Parsing\NullableParsingTests.cs (1)
877N(SyntaxKind.LabeledStatement);
Parsing\StatementAttributeParsingTests.cs (2)
186N(SyntaxKind.LabeledStatement); 295N(SyntaxKind.LabeledStatement);
Parsing\StatementParsingTests.cs (2)
972Assert.Equal(SyntaxKind.LabeledStatement, statement.Kind()); 3576N(SyntaxKind.LabeledStatement);
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
Formatting\CSharpSyntaxFormattingService.cs (1)
73if (token.IsKind(SyntaxKind.ColonToken) && !(token.Parent.IsKind(SyntaxKind.LabeledStatement) || token.Parent is SwitchLabelSyntax))
Recommendations\CSharpRecommendationServiceRunner.cs (1)
311.Kind() is SyntaxKind.LabeledStatement or SyntaxKind.DefaultSwitchLabel);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (1)
399SyntaxKind.LabeledStatement or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\FormattingRangeHelper.cs (1)
368SyntaxKind.LabeledStatement or
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
156return token.Parent is (kind: SyntaxKind.CaseSwitchLabel or SyntaxKind.DefaultSwitchLabel or SyntaxKind.CasePatternSwitchLabel or SyntaxKind.LabeledStatement);