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