70 references to BreakKeyword
Microsoft.CodeAnalysis.CSharp (8)
Parser\LanguageParser.cs (6)
7384case SyntaxKind.BreakKeyword: 7563this.PeekToken(1).Kind is SyntaxKind.ReturnKeyword or SyntaxKind.BreakKeyword; 8207case SyntaxKind.BreakKeyword: 8324this.EatToken(SyntaxKind.BreakKeyword), 9036if (this.CurrentToken.Kind == SyntaxKind.BreakKeyword) 9994case SyntaxKind.BreakKeyword:
Syntax\SyntaxKindFacts.cs (2)
897return SyntaxKind.BreakKeyword; 1535case SyntaxKind.BreakKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
CSharpTypeInferenceService.TypeInferrer.cs (1)
2025if (previousToken.HasValue && (previousToken.Value != yieldStatement.ReturnOrBreakKeyword || yieldStatement.ReturnOrBreakKeyword.IsKind(SyntaxKind.BreakKeyword)))
Microsoft.CodeAnalysis.CSharp.Features (2)
Completion\KeywordRecommenders\BreakKeywordRecommender.cs (1)
15: base(SyntaxKind.BreakKeyword)
GoToDefinition\CSharpGoToDefinitionSymbolService.cs (1)
39case SyntaxKind.BreakKeyword:
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (56)
Generated\Syntax.Test.xml.Generated.cs (4)
365=> InternalSyntaxFactory.BreakStatement(new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.AttributeListSyntax>(), InternalSyntaxFactory.Token(SyntaxKind.BreakKeyword), InternalSyntaxFactory.Token(SyntaxKind.SemicolonToken)); 2126Assert.Equal(SyntaxKind.BreakKeyword, node.BreakKeyword.Kind); 10341=> SyntaxFactory.BreakStatement(new SyntaxList<AttributeListSyntax>(), SyntaxFactory.Token(SyntaxKind.BreakKeyword), SyntaxFactory.Token(SyntaxKind.SemicolonToken)); 12102Assert.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)
727N(SyntaxKind.BreakKeyword); 795N(SyntaxKind.BreakKeyword); 881N(SyntaxKind.BreakKeyword); 941N(SyntaxKind.BreakKeyword); 1012N(SyntaxKind.BreakKeyword);
Parsing\PatternParsingTests.cs (35)
922N(SyntaxKind.BreakKeyword); 1038N(SyntaxKind.BreakKeyword); 1497N(SyntaxKind.BreakKeyword); 1564N(SyntaxKind.BreakKeyword); 2842N(SyntaxKind.BreakKeyword); 2878N(SyntaxKind.BreakKeyword); 2959N(SyntaxKind.BreakKeyword); 3010N(SyntaxKind.BreakKeyword); 3971N(SyntaxKind.BreakKeyword); 4044N(SyntaxKind.BreakKeyword); 4115N(SyntaxKind.BreakKeyword); 4188N(SyntaxKind.BreakKeyword); 4275N(SyntaxKind.BreakKeyword); 4364N(SyntaxKind.BreakKeyword); 5551N(SyntaxKind.BreakKeyword); 5587N(SyntaxKind.BreakKeyword); 5634N(SyntaxKind.BreakKeyword); 6648N(SyntaxKind.BreakKeyword); 6674N(SyntaxKind.BreakKeyword); 6700N(SyntaxKind.BreakKeyword); 6726N(SyntaxKind.BreakKeyword); 7223N(SyntaxKind.BreakKeyword); 7285N(SyntaxKind.BreakKeyword); 7350N(SyntaxKind.BreakKeyword); 7407N(SyntaxKind.BreakKeyword); 7472N(SyntaxKind.BreakKeyword); 11331N(SyntaxKind.BreakKeyword); 11385N(SyntaxKind.BreakKeyword); 11819N(SyntaxKind.BreakKeyword); 12245N(SyntaxKind.BreakKeyword); 12350N(SyntaxKind.BreakKeyword); 12446N(SyntaxKind.BreakKeyword); 12551N(SyntaxKind.BreakKeyword); 12666N(SyntaxKind.BreakKeyword); 12722N(SyntaxKind.BreakKeyword);
Parsing\StatementAttributeParsingTests.cs (1)
394N(SyntaxKind.BreakKeyword);
Parsing\StatementParsingTests.cs (5)
1000Assert.Equal(SyntaxKind.BreakKeyword, b.BreakKeyword.Kind()); 1175Assert.Equal(SyntaxKind.BreakKeyword, ys.ReturnOrBreakKeyword.Kind()); 4369N(SyntaxKind.BreakKeyword); 4533N(SyntaxKind.BreakKeyword); 4724N(SyntaxKind.BreakKeyword);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Classification\ClassificationHelpers.cs (1)
87case SyntaxKind.BreakKeyword:
CSharpTypeInferenceService.TypeInferrer.cs (1)
2025if (previousToken.HasValue && (previousToken.Value != yieldStatement.ReturnOrBreakKeyword || yieldStatement.ReturnOrBreakKeyword.IsKind(SyntaxKind.BreakKeyword)))
Microsoft.VisualStudio.LanguageServices.CSharp (1)
LanguageService\CSharpHelpContextService.cs (1)
431case SyntaxKind.BreakKeyword when token.Parent.IsKind(SyntaxKind.YieldBreakStatement):