34 references to WhileKeyword
Microsoft.CodeAnalysis.CSharp (9)
Parser\LanguageParser.cs (6)
8024
case SyntaxKind.
WhileKeyword
:
8831
case SyntaxKind.
WhileKeyword
:
9115
var @while = this.EatToken(SyntaxKind.
WhileKeyword
);
10009
Debug.Assert(this.CurrentToken.Kind == SyntaxKind.
WhileKeyword
);
10012
this.EatToken(SyntaxKind.
WhileKeyword
),
10692
case SyntaxKind.
WhileKeyword
:
Syntax\SyntaxKindFacts.cs (2)
899
return SyntaxKind.
WhileKeyword
;
1547
case SyntaxKind.
WhileKeyword
:
Syntax\SyntaxNormalizer.cs (1)
399
if (kind == SyntaxKind.
WhileKeyword
&&
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (1)
437
nextToken.Kind() == SyntaxKind.
WhileKeyword
&&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
154
(previousKind == SyntaxKind.IfKeyword || previousKind == SyntaxKind.
WhileKeyword
|| previousKind == SyntaxKind.SwitchKeyword ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (1)
74
if (previousToken.Kind() == SyntaxKind.CloseBraceToken && currentToken.Kind() == SyntaxKind.
WhileKeyword
)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2615
token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.
WhileKeyword
))
Microsoft.CodeAnalysis.CSharp.Features (2)
Completion\KeywordRecommenders\WhileKeywordRecommender.cs (1)
14
: base(SyntaxKind.
WhileKeyword
)
Highlighting\KeywordHighlighters\LoopHighlighter.cs (1)
29
or SyntaxKind.
WhileKeyword
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (14)
Generated\Syntax.Test.xml.Generated.cs (8)
392
=> InternalSyntaxFactory.WhileStatement(new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.AttributeListSyntax>(), InternalSyntaxFactory.Token(SyntaxKind.
WhileKeyword
), InternalSyntaxFactory.Token(SyntaxKind.OpenParenToken), GenerateIdentifierName(), InternalSyntaxFactory.Token(SyntaxKind.CloseParenToken), GenerateBlock());
395
=> InternalSyntaxFactory.DoStatement(new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.AttributeListSyntax>(), InternalSyntaxFactory.Token(SyntaxKind.DoKeyword), GenerateBlock(), InternalSyntaxFactory.Token(SyntaxKind.
WhileKeyword
), InternalSyntaxFactory.Token(SyntaxKind.OpenParenToken), GenerateIdentifierName(), InternalSyntaxFactory.Token(SyntaxKind.CloseParenToken), InternalSyntaxFactory.Token(SyntaxKind.SemicolonToken));
2251
Assert.Equal(SyntaxKind.
WhileKeyword
, node.WhileKeyword.Kind);
2268
Assert.Equal(SyntaxKind.
WhileKeyword
, node.WhileKeyword.Kind);
10608
=> SyntaxFactory.WhileStatement(new SyntaxList<AttributeListSyntax>(), SyntaxFactory.Token(SyntaxKind.
WhileKeyword
), SyntaxFactory.Token(SyntaxKind.OpenParenToken), GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.CloseParenToken), GenerateBlock());
10611
=> SyntaxFactory.DoStatement(new SyntaxList<AttributeListSyntax>(), SyntaxFactory.Token(SyntaxKind.DoKeyword), GenerateBlock(), SyntaxFactory.Token(SyntaxKind.
WhileKeyword
), SyntaxFactory.Token(SyntaxKind.OpenParenToken), GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.CloseParenToken), SyntaxFactory.Token(SyntaxKind.SemicolonToken));
12467
Assert.Equal(SyntaxKind.
WhileKeyword
, node.WhileKeyword.Kind());
12484
Assert.Equal(SyntaxKind.
WhileKeyword
, node.WhileKeyword.Kind());
Parsing\StatementAttributeParsingTests.cs (4)
371
N(SyntaxKind.
WhileKeyword
);
456
N(SyntaxKind.
WhileKeyword
);
910
N(SyntaxKind.
WhileKeyword
);
991
N(SyntaxKind.
WhileKeyword
);
Parsing\StatementParsingTests.cs (2)
1480
Assert.Equal(SyntaxKind.
WhileKeyword
, ws.WhileKeyword.Kind());
1505
Assert.Equal(SyntaxKind.
WhileKeyword
, ds.WhileKeyword.Kind());
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
Classification\ClassificationHelpers.cs (1)
89
case SyntaxKind.
WhileKeyword
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (1)
437
nextToken.Kind() == SyntaxKind.
WhileKeyword
&&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
154
(previousKind == SyntaxKind.IfKeyword || previousKind == SyntaxKind.
WhileKeyword
|| previousKind == SyntaxKind.SwitchKeyword ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (1)
74
if (previousToken.Kind() == SyntaxKind.CloseBraceToken && currentToken.Kind() == SyntaxKind.
WhileKeyword
)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2615
token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.
WhileKeyword
))