56 references to DoStatement
Microsoft.CodeAnalysis.CSharp (10)
Binder\Binder_Statements.cs (1)
81case SyntaxKind.DoStatement:
Binder\WhileBinder.cs (2)
24Debug.Assert(syntax != null && (syntax.IsKind(SyntaxKind.WhileStatement) || syntax.IsKind(SyntaxKind.DoStatement))); 58case SyntaxKind.DoStatement:
Lowering\ClosureConversion\ClosureConversion.cs (1)
1776case SyntaxKind.DoStatement:
Lowering\Instrumentation\Instrumenter.cs (2)
115Debug.Assert(original.Syntax.Kind() == SyntaxKind.DoStatement); 131Debug.Assert(original.Syntax.Kind() == SyntaxKind.DoStatement);
Syntax\LambdaUtilities.cs (1)
406case SyntaxKind.DoStatement:
Syntax\LookupPosition.cs (2)
327case SyntaxKind.DoStatement: 388case SyntaxKind.DoStatement:
Syntax\SyntaxNormalizer.cs (1)
400nextToken.Parent.IsKind(SyntaxKind.DoStatement))
Microsoft.CodeAnalysis.CSharp.CodeStyle (11)
src\Analyzers\CSharp\Analyzers\AddBraces\CSharpAddBracesDiagnosticAnalyzer.cs (1)
40SyntaxKind.DoStatement,
src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
327case SyntaxKind.DoStatement:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
582case SyntaxKind.DoStatement:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (2)
397case SyntaxKind.DoStatement: 413case SyntaxKind.DoStatement:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (1)
438nextToken.Parent.IsKind(SyntaxKind.DoStatement))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\NewLineUserSettingFormattingRule.cs (1)
56case SyntaxKind.DoStatement:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
615SyntaxKind.DoStatement or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (1)
175if (previousToken.Kind() == SyntaxKind.DoKeyword && previousToken.Parent.IsKind(SyntaxKind.DoStatement))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Indentation\CSharpSmartTokenFormatter.cs (1)
75endToken.Parent.Parent?.Kind() is SyntaxKind.TryStatement or SyntaxKind.DoStatement;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\FormattingRangeHelper.cs (1)
364SyntaxKind.DoStatement or
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (2)
135if (token.Parent.Parent.Kind() is not SyntaxKind.TryStatement and not SyntaxKind.DoStatement) 158case SyntaxKind.DoKeyword when token.Parent.IsKind(SyntaxKind.DoStatement):
Microsoft.CodeAnalysis.CSharp.EditorFeatures (3)
CompleteStatement\CompleteStatementCommandHandler.cs (3)
233else if (currentNode.IsKind(SyntaxKind.DoStatement)) 352case SyntaxKind.DoStatement: 521case SyntaxKind.DoStatement:
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Emit\EditAndContinue\LocalSlotMappingTests.cs (1)
3607ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetSyntaxMapByKind(method0, SyntaxKind.DoStatement))));
Microsoft.CodeAnalysis.CSharp.Features (12)
BraceCompletion\CurlyBraceCompletionService.cs (1)
213case SyntaxKind.DoStatement:
Completion\KeywordRecommenders\WhileKeywordRecommender.cs (1)
42token.Parent.IsParentKind(SyntaxKind.DoStatement))
Debugging\CSharpProximityExpressionsService.Worker.cs (2)
195case SyntaxKind.DoStatement: 248case SyntaxKind.DoStatement:
EditAndContinue\BreakpointSpans.cs (1)
610case SyntaxKind.DoStatement:
EditAndContinue\SyntaxComparer.cs (3)
373case SyntaxKind.DoStatement: 868case SyntaxKind.DoStatement: 1060case SyntaxKind.DoStatement:
src\Analyzers\CSharp\Analyzers\AddBraces\CSharpAddBracesDiagnosticAnalyzer.cs (1)
40SyntaxKind.DoStatement,
src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
327case SyntaxKind.DoStatement:
src\Compilers\CSharp\Portable\Syntax\LambdaUtilities.cs (1)
406case SyntaxKind.DoStatement:
Structure\Providers\BlockSyntaxStructureProvider.cs (1)
206SyntaxKind.DoStatement => BlockTypes.Loop,
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Parsing\ParsingErrorRecoveryTests.cs (2)
4320Assert.Equal(SyntaxKind.DoStatement, ms.Body.Statements[0].Kind()); 4343Assert.Equal(SyntaxKind.DoStatement, ms.Body.Statements[0].Kind());
Parsing\StatementAttributeParsingTests.cs (1)
971N(SyntaxKind.DoStatement);
Parsing\StatementParsingTests.cs (1)
1496Assert.Equal(SyntaxKind.DoStatement, statement.Kind());
Microsoft.CodeAnalysis.CSharp.Workspaces (13)
Classification\ClassificationHelpers.cs (1)
104case SyntaxKind.DoStatement:
Simplification\Reducers\CSharpMiscellaneousReducer.cs (1)
188case SyntaxKind.DoStatement:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
582case SyntaxKind.DoStatement:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (2)
397case SyntaxKind.DoStatement: 413case SyntaxKind.DoStatement:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (1)
438nextToken.Parent.IsKind(SyntaxKind.DoStatement))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\NewLineUserSettingFormattingRule.cs (1)
56case SyntaxKind.DoStatement:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
615SyntaxKind.DoStatement or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (1)
175if (previousToken.Kind() == SyntaxKind.DoKeyword && previousToken.Parent.IsKind(SyntaxKind.DoStatement))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Indentation\CSharpSmartTokenFormatter.cs (1)
75endToken.Parent.Parent?.Kind() is SyntaxKind.TryStatement or SyntaxKind.DoStatement;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\FormattingRangeHelper.cs (1)
364SyntaxKind.DoStatement or
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (2)
135if (token.Parent.Parent.Kind() is not SyntaxKind.TryStatement and not SyntaxKind.DoStatement) 158case SyntaxKind.DoKeyword when token.Parent.IsKind(SyntaxKind.DoStatement):