39 references to Statement
Microsoft.CodeAnalysis.CSharp (11)
Binder\LocalBinderFactory.cs (1)
591
VisitPossibleEmbeddedStatement(node.
Statement
, whileBinder);
Binder\WhileBinder.cs (1)
43
var body = originalBinder.BindPossibleEmbeddedStatement(node.
Statement
, diagnostics);
Syntax.xml.Main.Generated.cs (1)
1888
=> node.Update(VisitList(node.AttributeLists), VisitToken(node.DoKeyword), (StatementSyntax?)Visit(node.
Statement
) ?? throw new ArgumentNullException("statement"), VisitToken(node.WhileKeyword), VisitToken(node.OpenParenToken), (ExpressionSyntax?)Visit(node.Condition) ?? throw new ArgumentNullException("condition"), VisitToken(node.CloseParenToken), VisitToken(node.SemicolonToken));
Syntax.xml.Syntax.Generated.cs (8)
7538
if (attributeLists != this.AttributeLists || doKeyword != this.DoKeyword || statement != this.
Statement
|| whileKeyword != this.WhileKeyword || openParenToken != this.OpenParenToken || condition != this.Condition || closeParenToken != this.CloseParenToken || semicolonToken != this.SemicolonToken)
7549
public new DoStatementSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.DoKeyword, this.
Statement
, this.WhileKeyword, this.OpenParenToken, this.Condition, this.CloseParenToken, this.SemicolonToken);
7550
public DoStatementSyntax WithDoKeyword(SyntaxToken doKeyword) => Update(this.AttributeLists, doKeyword, this.
Statement
, this.WhileKeyword, this.OpenParenToken, this.Condition, this.CloseParenToken, this.SemicolonToken);
7552
public DoStatementSyntax WithWhileKeyword(SyntaxToken whileKeyword) => Update(this.AttributeLists, this.DoKeyword, this.
Statement
, whileKeyword, this.OpenParenToken, this.Condition, this.CloseParenToken, this.SemicolonToken);
7553
public DoStatementSyntax WithOpenParenToken(SyntaxToken openParenToken) => Update(this.AttributeLists, this.DoKeyword, this.
Statement
, this.WhileKeyword, openParenToken, this.Condition, this.CloseParenToken, this.SemicolonToken);
7554
public DoStatementSyntax WithCondition(ExpressionSyntax condition) => Update(this.AttributeLists, this.DoKeyword, this.
Statement
, this.WhileKeyword, this.OpenParenToken, condition, this.CloseParenToken, this.SemicolonToken);
7555
public DoStatementSyntax WithCloseParenToken(SyntaxToken closeParenToken) => Update(this.AttributeLists, this.DoKeyword, this.
Statement
, this.WhileKeyword, this.OpenParenToken, this.Condition, closeParenToken, this.SemicolonToken);
7556
public DoStatementSyntax WithSemicolonToken(SyntaxToken semicolonToken) => Update(this.AttributeLists, this.DoKeyword, this.
Statement
, this.WhileKeyword, this.OpenParenToken, this.Condition, this.CloseParenToken, semicolonToken);
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
133
DoStatementSyntax n => n.
Statement
,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (3)
343
if (node is DoStatementSyntax doStatement && doStatement.
Statement
!= null && !(doStatement.
Statement
is BlockSyntax))
345
AddEmbeddedStatementsIndentationOperation(list, doStatement.
Statement
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (1)
144
AddSuppressWrappingIfOnSingleLineOperation(list, whileStatementNode.GetFirstToken(includeZeroWidth: true), whileStatementNode.
Statement
.GetLastToken(includeZeroWidth: true));
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
AutomaticCompletion\AutomaticLineEnderCommandHandler_Helpers.cs (1)
663
&& doStatementNode.
Statement
is not BlockSyntax
Microsoft.CodeAnalysis.CSharp.Features (8)
Debugging\CSharpProximityExpressionsService.Worker.cs (1)
249
AddLastStatementOfConstruct((statement as DoStatementSyntax).
Statement
);
EditAndContinue\BreakpointSpans.cs (2)
616
if (position < doStatement.
Statement
.Span.Start)
618
return TryCreateSpanForStatement(doStatement.
Statement
, position);
EditAndContinue\SyntaxComparer.cs (2)
876
distance = ComputeWeightedDistance(leftDo.Condition, leftDo.
Statement
, rightDo.Condition, rightDo.
Statement
);
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.CallSiteContainerRewriter.cs (1)
255
return node.WithStatement(ReplaceStatementIfNeeded(node.
Statement
))
Snippets\CSharpDoWhileLoopSnippetProvider.cs (2)
46
static s => (BlockSyntax)s.
Statement
,
53
static s => (BlockSyntax)s.
Statement
,
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Generated\Syntax.Test.xml.Generated.cs (2)
12626
Assert.NotNull(node.
Statement
);
12632
var newNode = node.WithAttributeLists(node.AttributeLists).WithDoKeyword(node.DoKeyword).WithStatement(node.
Statement
).WithWhileKeyword(node.WhileKeyword).WithOpenParenToken(node.OpenParenToken).WithCondition(node.Condition).WithCloseParenToken(node.CloseParenToken).WithSemicolonToken(node.SemicolonToken);
Parsing\StatementParsingTests.cs (2)
1503
Assert.NotNull(ds.
Statement
);
1506
Assert.Equal(SyntaxKind.Block, ds.
Statement
.Kind());
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
133
DoStatementSyntax n => n.
Statement
,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (3)
343
if (node is DoStatementSyntax doStatement && doStatement.
Statement
!= null && !(doStatement.
Statement
is BlockSyntax))
345
AddEmbeddedStatementsIndentationOperation(list, doStatement.
Statement
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (1)
144
AddSuppressWrappingIfOnSingleLineOperation(list, whileStatementNode.GetFirstToken(includeZeroWidth: true), whileStatementNode.
Statement
.GetLastToken(includeZeroWidth: true));
Roslyn.Diagnostics.CSharp.Analyzers (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
133
DoStatementSyntax n => n.
Statement
,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (3)
343
if (node is DoStatementSyntax doStatement && doStatement.
Statement
!= null && !(doStatement.
Statement
is BlockSyntax))
345
AddEmbeddedStatementsIndentationOperation(list, doStatement.
Statement
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (1)
144
AddSuppressWrappingIfOnSingleLineOperation(list, whileStatementNode.GetFirstToken(includeZeroWidth: true), whileStatementNode.
Statement
.GetLastToken(includeZeroWidth: true));