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