21 references to Statement
Microsoft.CodeAnalysis.CSharp (10)
_generated\0\Syntax.xml.Main.Generated.cs (1)
1897
=> node.Update(VisitList(node.AttributeLists), VisitToken(node.WhileKeyword), VisitToken(node.OpenParenToken), (ExpressionSyntax?)Visit(node.Condition) ?? throw new ArgumentNullException("condition"), VisitToken(node.CloseParenToken), (StatementSyntax?)Visit(node.
Statement
) ?? throw new ArgumentNullException("statement"));
_generated\2\Syntax.xml.Syntax.Generated.cs (6)
7506
if (attributeLists != this.AttributeLists || whileKeyword != this.WhileKeyword || openParenToken != this.OpenParenToken || condition != this.Condition || closeParenToken != this.CloseParenToken || statement != this.
Statement
)
7517
public new WhileStatementSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.WhileKeyword, this.OpenParenToken, this.Condition, this.CloseParenToken, this.
Statement
);
7518
public WhileStatementSyntax WithWhileKeyword(SyntaxToken whileKeyword) => Update(this.AttributeLists, whileKeyword, this.OpenParenToken, this.Condition, this.CloseParenToken, this.
Statement
);
7519
public WhileStatementSyntax WithOpenParenToken(SyntaxToken openParenToken) => Update(this.AttributeLists, this.WhileKeyword, openParenToken, this.Condition, this.CloseParenToken, this.
Statement
);
7520
public WhileStatementSyntax WithCondition(ExpressionSyntax condition) => Update(this.AttributeLists, this.WhileKeyword, this.OpenParenToken, condition, this.CloseParenToken, this.
Statement
);
7521
public WhileStatementSyntax WithCloseParenToken(SyntaxToken closeParenToken) => Update(this.AttributeLists, this.WhileKeyword, this.OpenParenToken, this.Condition, closeParenToken, this.
Statement
);
Binder\LocalBinderFactory.cs (1)
581
VisitPossibleEmbeddedStatement(node.
Statement
, whileBinder);
Binder\WhileBinder.cs (1)
33
var body = originalBinder.BindPossibleEmbeddedStatement(node.
Statement
, diagnostics);
Syntax\LookupPosition.cs (1)
437
return GetFirstExcludedToken(((WhileStatementSyntax)statement).
Statement
);
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\roslyn\src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.Analyzer.cs (1)
171
return CheckLoop(whileStatement, whileStatement.
Statement
, defAssignedWhenTrue);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
142
WhileStatementSyntax n => n.
Statement
,
Microsoft.CodeAnalysis.CSharp.Features (7)
Debugging\CSharpProximityExpressionsService.Worker.cs (1)
298
AddLastStatementOfConstruct((statement as WhileStatementSyntax).
Statement
);
EditAndContinue\SyntaxComparer.cs (2)
870
distance = ComputeWeightedDistance(leftWhile.Condition, leftWhile.
Statement
, rightWhile.Condition, rightWhile.
Statement
);
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.CallSiteContainerRewriter.cs (1)
267
.WithStatement(ReplaceStatementIfNeeded(node.
Statement
));
Snippets\CSharpWhileLoopSnippetProvider.cs (2)
36
static s => (BlockSyntax)s.
Statement
,
43
static s => (BlockSyntax)s.
Statement
,
src\roslyn\src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.Analyzer.cs (1)
171
return CheckLoop(whileStatement, whileStatement.
Statement
, defAssignedWhenTrue);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
142
WhileStatementSyntax n => n.
Statement
,
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
142
WhileStatementSyntax n => n.
Statement
,