33 references to WhileKeyword
Microsoft.CodeAnalysis.CSharp (9)
Parser\LanguageParser.cs (6)
7424
case SyntaxKind.
WhileKeyword
:
8225
case SyntaxKind.
WhileKeyword
:
8517
var @while = this.EatToken(SyntaxKind.
WhileKeyword
);
9361
Debug.Assert(this.CurrentToken.Kind == SyntaxKind.
WhileKeyword
);
9364
this.EatToken(SyntaxKind.
WhileKeyword
),
10011
case SyntaxKind.
WhileKeyword
:
Syntax\SyntaxKindFacts.cs (2)
871
return SyntaxKind.
WhileKeyword
;
1511
case SyntaxKind.
WhileKeyword
:
Syntax\SyntaxNormalizer.cs (1)
399
if (kind == SyntaxKind.
WhileKeyword
&&
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
ElasticTriviaFormattingRule.cs (1)
429
nextToken.Kind() == SyntaxKind.
WhileKeyword
&&
SpacingFormattingRule.cs (1)
156
(previousKind == SyntaxKind.IfKeyword || previousKind == SyntaxKind.
WhileKeyword
|| previousKind == SyntaxKind.SwitchKeyword ||
TokenBasedFormattingRule.cs (1)
73
if (previousToken.Kind() == SyntaxKind.CloseBraceToken && currentToken.Kind() == SyntaxKind.
WhileKeyword
)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
2629
token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.
WhileKeyword
))
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\KeywordRecommenders\WhileKeywordRecommender.cs (1)
14
: base(SyntaxKind.
WhileKeyword
)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (14)
Generated\Syntax.Test.xml.Generated.cs (8)
380
=> 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());
383
=> 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));
2190
Assert.Equal(SyntaxKind.
WhileKeyword
, node.WhileKeyword.Kind);
2207
Assert.Equal(SyntaxKind.
WhileKeyword
, node.WhileKeyword.Kind);
10356
=> SyntaxFactory.WhileStatement(new SyntaxList<AttributeListSyntax>(), SyntaxFactory.Token(SyntaxKind.
WhileKeyword
), SyntaxFactory.Token(SyntaxKind.OpenParenToken), GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.CloseParenToken), GenerateBlock());
10359
=> 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));
12166
Assert.Equal(SyntaxKind.
WhileKeyword
, node.WhileKeyword.Kind());
12183
Assert.Equal(SyntaxKind.
WhileKeyword
, node.WhileKeyword.Kind());
Parsing\StatementAttributeParsingTests.cs (4)
370
N(SyntaxKind.
WhileKeyword
);
455
N(SyntaxKind.
WhileKeyword
);
909
N(SyntaxKind.
WhileKeyword
);
990
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)
77
case SyntaxKind.
WhileKeyword
:
ElasticTriviaFormattingRule.cs (1)
429
nextToken.Kind() == SyntaxKind.
WhileKeyword
&&
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
2629
token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.
WhileKeyword
))
SpacingFormattingRule.cs (1)
156
(previousKind == SyntaxKind.IfKeyword || previousKind == SyntaxKind.
WhileKeyword
|| previousKind == SyntaxKind.SwitchKeyword ||
TokenBasedFormattingRule.cs (1)
73
if (previousToken.Kind() == SyntaxKind.CloseBraceToken && currentToken.Kind() == SyntaxKind.
WhileKeyword
)