34 references to WhileKeyword
Microsoft.CodeAnalysis.CSharp (9)
Parser\LanguageParser.cs (6)
7972case SyntaxKind.WhileKeyword: 8779case SyntaxKind.WhileKeyword: 9063var @while = this.EatToken(SyntaxKind.WhileKeyword); 9958Debug.Assert(this.CurrentToken.Kind == SyntaxKind.WhileKeyword); 9961this.EatToken(SyntaxKind.WhileKeyword), 10627case SyntaxKind.WhileKeyword:
Syntax\SyntaxKindFacts.cs (2)
899return SyntaxKind.WhileKeyword; 1547case SyntaxKind.WhileKeyword:
Syntax\SyntaxNormalizer.cs (1)
399if (kind == SyntaxKind.WhileKeyword &&
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (1)
437nextToken.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)
73if (previousToken.Kind() == SyntaxKind.CloseBraceToken && currentToken.Kind() == SyntaxKind.WhileKeyword)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2615token.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)
29or 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)); 2251Assert.Equal(SyntaxKind.WhileKeyword, node.WhileKeyword.Kind); 2268Assert.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)); 12467Assert.Equal(SyntaxKind.WhileKeyword, node.WhileKeyword.Kind()); 12484Assert.Equal(SyntaxKind.WhileKeyword, node.WhileKeyword.Kind());
Parsing\StatementAttributeParsingTests.cs (4)
371N(SyntaxKind.WhileKeyword); 456N(SyntaxKind.WhileKeyword); 910N(SyntaxKind.WhileKeyword); 991N(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:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (1)
437nextToken.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)
73if (previousToken.Kind() == SyntaxKind.CloseBraceToken && currentToken.Kind() == SyntaxKind.WhileKeyword)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2615token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.WhileKeyword))