84 references to BreakKeyword
Microsoft.CodeAnalysis.CSharp (8)
Parser\LanguageParser.cs (6)
7932case SyntaxKind.BreakKeyword: 8116this.PeekToken(1).Kind is SyntaxKind.ReturnKeyword or SyntaxKind.BreakKeyword; 8761case SyntaxKind.BreakKeyword: 8870this.EatToken(SyntaxKind.BreakKeyword), 9633if (this.CurrentToken.Kind == SyntaxKind.BreakKeyword) 10610case SyntaxKind.BreakKeyword:
Syntax\SyntaxKindFacts.cs (2)
925return SyntaxKind.BreakKeyword; 1571case SyntaxKind.BreakKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1968if (previousToken.HasValue && (previousToken.Value != yieldStatement.ReturnOrBreakKeyword || yieldStatement.ReturnOrBreakKeyword.IsKind(SyntaxKind.BreakKeyword)))
Microsoft.CodeAnalysis.CSharp.Features (4)
Completion\KeywordRecommenders\BreakKeywordRecommender.cs (1)
16: base(SyntaxKind.BreakKeyword)
GoToDefinition\CSharpGoToDefinitionSymbolService.cs (1)
41case SyntaxKind.BreakKeyword:
Highlighting\KeywordHighlighters\LoopHighlighter.cs (1)
30or SyntaxKind.BreakKeyword
Highlighting\KeywordHighlighters\SwitchStatementHighlighter.cs (1)
31or SyntaxKind.BreakKeyword
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (68)
Generated\Syntax.Test.xml.Generated.cs (4)
377=> InternalSyntaxFactory.BreakStatement(new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.AttributeListSyntax>(), InternalSyntaxFactory.Token(SyntaxKind.BreakKeyword), InternalSyntaxFactory.Token(SyntaxKind.SemicolonToken)); 2187Assert.Equal(SyntaxKind.BreakKeyword, node.BreakKeyword.Kind); 10593=> SyntaxFactory.BreakStatement(new SyntaxList<AttributeListSyntax>(), SyntaxFactory.Token(SyntaxKind.BreakKeyword), SyntaxFactory.Token(SyntaxKind.SemicolonToken)); 12403Assert.Equal(SyntaxKind.BreakKeyword, node.BreakKeyword.Kind());
Parsing\DeconstructionTests.cs (2)
2847N(SyntaxKind.BreakKeyword); 2912N(SyntaxKind.BreakKeyword);
Parsing\ExpressionParsingTests.cs (3)
3988N(SyntaxKind.BreakKeyword); 4654N(SyntaxKind.BreakKeyword); 4883N(SyntaxKind.BreakKeyword);
Parsing\FunctionPointerTests.cs (1)
2653N(SyntaxKind.BreakKeyword);
Parsing\NullableParsingTests.cs (5)
728N(SyntaxKind.BreakKeyword); 796N(SyntaxKind.BreakKeyword); 883N(SyntaxKind.BreakKeyword); 943N(SyntaxKind.BreakKeyword); 1014N(SyntaxKind.BreakKeyword);
Parsing\PatternParsingTests.cs (35)
922N(SyntaxKind.BreakKeyword); 1038N(SyntaxKind.BreakKeyword); 1497N(SyntaxKind.BreakKeyword); 1564N(SyntaxKind.BreakKeyword); 2803N(SyntaxKind.BreakKeyword); 2839N(SyntaxKind.BreakKeyword); 2920N(SyntaxKind.BreakKeyword); 2971N(SyntaxKind.BreakKeyword); 3932N(SyntaxKind.BreakKeyword); 4005N(SyntaxKind.BreakKeyword); 4076N(SyntaxKind.BreakKeyword); 4149N(SyntaxKind.BreakKeyword); 4236N(SyntaxKind.BreakKeyword); 4325N(SyntaxKind.BreakKeyword); 5512N(SyntaxKind.BreakKeyword); 5548N(SyntaxKind.BreakKeyword); 5595N(SyntaxKind.BreakKeyword); 6609N(SyntaxKind.BreakKeyword); 6635N(SyntaxKind.BreakKeyword); 6661N(SyntaxKind.BreakKeyword); 6687N(SyntaxKind.BreakKeyword); 7184N(SyntaxKind.BreakKeyword); 7246N(SyntaxKind.BreakKeyword); 7311N(SyntaxKind.BreakKeyword); 7368N(SyntaxKind.BreakKeyword); 7433N(SyntaxKind.BreakKeyword); 11292N(SyntaxKind.BreakKeyword); 11346N(SyntaxKind.BreakKeyword); 11780N(SyntaxKind.BreakKeyword); 12206N(SyntaxKind.BreakKeyword); 12311N(SyntaxKind.BreakKeyword); 12407N(SyntaxKind.BreakKeyword); 12512N(SyntaxKind.BreakKeyword); 12627N(SyntaxKind.BreakKeyword); 12683N(SyntaxKind.BreakKeyword);
Parsing\StatementAttributeParsingTests.cs (1)
395N(SyntaxKind.BreakKeyword);
Parsing\StatementParsingTests.cs (17)
1000Assert.Equal(SyntaxKind.BreakKeyword, b.BreakKeyword.Kind()); 1175Assert.Equal(SyntaxKind.BreakKeyword, ys.ReturnOrBreakKeyword.Kind()); 4397N(SyntaxKind.BreakKeyword); 4561N(SyntaxKind.BreakKeyword); 4752N(SyntaxKind.BreakKeyword); 4880N(SyntaxKind.BreakKeyword); 5007N(SyntaxKind.BreakKeyword); 5162N(SyntaxKind.BreakKeyword); 5223N(SyntaxKind.BreakKeyword); 5300N(SyntaxKind.BreakKeyword); 5393N(SyntaxKind.BreakKeyword); 5530N(SyntaxKind.BreakKeyword); 5592N(SyntaxKind.BreakKeyword); 5658N(SyntaxKind.BreakKeyword); 5728N(SyntaxKind.BreakKeyword); 5803N(SyntaxKind.BreakKeyword); 5987N(SyntaxKind.BreakKeyword);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Classification\ClassificationHelpers.cs (1)
71case SyntaxKind.BreakKeyword:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1968if (previousToken.HasValue && (previousToken.Value != yieldStatement.ReturnOrBreakKeyword || yieldStatement.ReturnOrBreakKeyword.IsKind(SyntaxKind.BreakKeyword)))
Microsoft.VisualStudio.LanguageServices.CSharp (1)
LanguageService\CSharpHelpContextService.cs (1)
444case SyntaxKind.BreakKeyword when token.Parent.IsKind(SyntaxKind.YieldBreakStatement):