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