33 references to WhileKeyword
Microsoft.CodeAnalysis.CSharp (9)
Parser\LanguageParser.cs (6)
7424case SyntaxKind.WhileKeyword: 8225case SyntaxKind.WhileKeyword: 8517var @while = this.EatToken(SyntaxKind.WhileKeyword); 9361Debug.Assert(this.CurrentToken.Kind == SyntaxKind.WhileKeyword); 9364this.EatToken(SyntaxKind.WhileKeyword), 10011case SyntaxKind.WhileKeyword:
Syntax\SyntaxKindFacts.cs (2)
871return SyntaxKind.WhileKeyword; 1511case SyntaxKind.WhileKeyword:
Syntax\SyntaxNormalizer.cs (1)
399if (kind == SyntaxKind.WhileKeyword &&
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
ElasticTriviaFormattingRule.cs (1)
429nextToken.Kind() == SyntaxKind.WhileKeyword &&
SpacingFormattingRule.cs (1)
156(previousKind == SyntaxKind.IfKeyword || previousKind == SyntaxKind.WhileKeyword || previousKind == SyntaxKind.SwitchKeyword ||
TokenBasedFormattingRule.cs (1)
73if (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)
2629token.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)); 2190Assert.Equal(SyntaxKind.WhileKeyword, node.WhileKeyword.Kind); 2207Assert.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)); 12166Assert.Equal(SyntaxKind.WhileKeyword, node.WhileKeyword.Kind()); 12183Assert.Equal(SyntaxKind.WhileKeyword, node.WhileKeyword.Kind());
Parsing\StatementAttributeParsingTests.cs (4)
370N(SyntaxKind.WhileKeyword); 455N(SyntaxKind.WhileKeyword); 909N(SyntaxKind.WhileKeyword); 990N(SyntaxKind.WhileKeyword);
Parsing\StatementParsingTests.cs (2)
1480Assert.Equal(SyntaxKind.WhileKeyword, ws.WhileKeyword.Kind()); 1505Assert.Equal(SyntaxKind.WhileKeyword, ds.WhileKeyword.Kind());
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
Classification\ClassificationHelpers.cs (1)
77case SyntaxKind.WhileKeyword:
ElasticTriviaFormattingRule.cs (1)
429nextToken.Kind() == SyntaxKind.WhileKeyword &&
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
2629token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.WhileKeyword))
SpacingFormattingRule.cs (1)
156(previousKind == SyntaxKind.IfKeyword || previousKind == SyntaxKind.WhileKeyword || previousKind == SyntaxKind.SwitchKeyword ||
TokenBasedFormattingRule.cs (1)
73if (previousToken.Kind() == SyntaxKind.CloseBraceToken && currentToken.Kind() == SyntaxKind.WhileKeyword)