19 references to DoKeyword
Microsoft.CodeAnalysis.CSharp (7)
Parser\LanguageParser.cs (5)
7395case SyntaxKind.DoKeyword: 8213case SyntaxKind.DoKeyword: 8514Debug.Assert(this.CurrentToken.Kind == SyntaxKind.DoKeyword); 8515var @do = this.EatToken(SyntaxKind.DoKeyword); 9999case SyntaxKind.DoKeyword:
Syntax\SyntaxKindFacts.cs (2)
877return SyntaxKind.DoKeyword; 1517case SyntaxKind.DoKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
TokenBasedFormattingRule.cs (1)
173if (previousToken.Kind() == SyntaxKind.DoKeyword && previousToken.Parent.IsKind(SyntaxKind.DoStatement))
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs\SyntaxTokenExtensions.cs (1)
158case SyntaxKind.DoKeyword when token.Parent.IsKind(SyntaxKind.DoStatement):
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\KeywordRecommenders\DoKeywordRecommender.cs (1)
13: base(SyntaxKind.DoKeyword)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (6)
Generated\Syntax.Test.xml.Generated.cs (4)
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)); 2205Assert.Equal(SyntaxKind.DoKeyword, node.DoKeyword.Kind); 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)); 12181Assert.Equal(SyntaxKind.DoKeyword, node.DoKeyword.Kind());
Parsing\StatementAttributeParsingTests.cs (1)
984N(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:
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs\SyntaxTokenExtensions.cs (1)
158case SyntaxKind.DoKeyword when token.Parent.IsKind(SyntaxKind.DoStatement):
TokenBasedFormattingRule.cs (1)
173if (previousToken.Kind() == SyntaxKind.DoKeyword && previousToken.Parent.IsKind(SyntaxKind.DoStatement))