20 references to DoKeyword
Microsoft.CodeAnalysis.CSharp (7)
Parser\LanguageParser.cs (5)
7995case SyntaxKind.DoKeyword: 8819case SyntaxKind.DoKeyword: 9112Debug.Assert(this.CurrentToken.Kind == SyntaxKind.DoKeyword); 9113var @do = this.EatToken(SyntaxKind.DoKeyword); 10680case SyntaxKind.DoKeyword:
Syntax\SyntaxKindFacts.cs (2)
905return SyntaxKind.DoKeyword; 1553case SyntaxKind.DoKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (1)
176if (previousToken.Kind() == SyntaxKind.DoKeyword && previousToken.Parent.IsKind(SyntaxKind.DoStatement))
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
158case SyntaxKind.DoKeyword when token.Parent.IsKind(SyntaxKind.DoStatement):
Microsoft.CodeAnalysis.CSharp.Features (2)
Completion\KeywordRecommenders\DoKeywordRecommender.cs (1)
13: base(SyntaxKind.DoKeyword)
Highlighting\KeywordHighlighters\LoopHighlighter.cs (1)
26is SyntaxKind.DoKeyword
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (6)
Generated\Syntax.Test.xml.Generated.cs (4)
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)); 2266Assert.Equal(SyntaxKind.DoKeyword, node.DoKeyword.Kind); 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)); 12482Assert.Equal(SyntaxKind.DoKeyword, node.DoKeyword.Kind());
Parsing\StatementAttributeParsingTests.cs (1)
985N(SyntaxKind.DoKeyword);
Parsing\StatementParsingTests.cs (1)
1502Assert.Equal(SyntaxKind.DoKeyword, ds.DoKeyword.Kind());
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Classification\ClassificationHelpers.cs (1)
76case SyntaxKind.DoKeyword:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (1)
176if (previousToken.Kind() == SyntaxKind.DoKeyword && previousToken.Parent.IsKind(SyntaxKind.DoStatement))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
158case SyntaxKind.DoKeyword when token.Parent.IsKind(SyntaxKind.DoStatement):