20 references to DoKeyword
Microsoft.CodeAnalysis.CSharp (7)
Parser\LanguageParser.cs (5)
7970case SyntaxKind.DoKeyword: 8789case SyntaxKind.DoKeyword: 9082Debug.Assert(this.CurrentToken.Kind == SyntaxKind.DoKeyword); 9083var @do = this.EatToken(SyntaxKind.DoKeyword); 10585case 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)
175if (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)
392=> 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)); 2253Assert.Equal(SyntaxKind.DoKeyword, node.DoKeyword.Kind); 10569=> 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)); 12430Assert.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)
80case SyntaxKind.DoKeyword:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (1)
175if (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):