28 references to DoKeyword
Microsoft.CodeAnalysis.CSharp (12)
Parser\LanguageParser.cs (5)
8098case SyntaxKind.DoKeyword: 8932case SyntaxKind.DoKeyword: 9244Debug.Assert(this.CurrentToken.Kind == SyntaxKind.DoKeyword); 9245var @do = this.EatToken(SyntaxKind.DoKeyword); 10839case SyntaxKind.DoKeyword:
Syntax.xml.Internal.Generated.cs (2)
30946if (doKeyword.Kind != SyntaxKind.DoKeyword) throw new ArgumentException(nameof(doKeyword)); 36313if (doKeyword.Kind != SyntaxKind.DoKeyword) throw new ArgumentException(nameof(doKeyword));
Syntax.xml.Main.Generated.cs (3)
4311if (doKeyword.Kind() != SyntaxKind.DoKeyword) throw new ArgumentException(nameof(doKeyword)); 4323=> SyntaxFactory.DoStatement(attributeLists, SyntaxFactory.Token(SyntaxKind.DoKeyword), statement, SyntaxFactory.Token(SyntaxKind.WhileKeyword), SyntaxFactory.Token(SyntaxKind.OpenParenToken), condition, SyntaxFactory.Token(SyntaxKind.CloseParenToken), SyntaxFactory.Token(SyntaxKind.SemicolonToken)); 4327=> SyntaxFactory.DoStatement(default, SyntaxFactory.Token(SyntaxKind.DoKeyword), statement, SyntaxFactory.Token(SyntaxKind.WhileKeyword), SyntaxFactory.Token(SyntaxKind.OpenParenToken), condition, SyntaxFactory.Token(SyntaxKind.CloseParenToken), SyntaxFactory.Token(SyntaxKind.SemicolonToken));
Syntax\SyntaxKindFacts.cs (2)
931return SyntaxKind.DoKeyword; 1623case 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)
10internal sealed class DoKeywordRecommender() : AbstractSyntacticSingleKeywordRecommender(SyntaxKind.DoKeyword)
Highlighting\KeywordHighlighters\LoopHighlighter.cs (1)
27is SyntaxKind.DoKeyword
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (7)
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)); 2275Assert.Equal(SyntaxKind.DoKeyword, node.DoKeyword.Kind); 10745=> 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)); 12625Assert.Equal(SyntaxKind.DoKeyword, node.DoKeyword.Kind());
Parsing\DeclarationParsingTests_MissingIdentifiers.cs (1)
4748N(SyntaxKind.DoKeyword);
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)
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):
Roslyn.Diagnostics.CSharp.Analyzers (2)
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):