35 references to Statement
Microsoft.CodeAnalysis.CSharp (10)
Binder\LocalBinderFactory.cs (1)
581VisitPossibleEmbeddedStatement(node.Statement, whileBinder);
Binder\WhileBinder.cs (1)
33var body = originalBinder.BindPossibleEmbeddedStatement(node.Statement, diagnostics);
Syntax.xml.Main.Generated.cs (1)
1885=> 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"));
Syntax.xml.Syntax.Generated.cs (6)
7460if (attributeLists != this.AttributeLists || whileKeyword != this.WhileKeyword || openParenToken != this.OpenParenToken || condition != this.Condition || closeParenToken != this.CloseParenToken || statement != this.Statement) 7471public new WhileStatementSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.WhileKeyword, this.OpenParenToken, this.Condition, this.CloseParenToken, this.Statement); 7472public WhileStatementSyntax WithWhileKeyword(SyntaxToken whileKeyword) => Update(this.AttributeLists, whileKeyword, this.OpenParenToken, this.Condition, this.CloseParenToken, this.Statement); 7473public WhileStatementSyntax WithOpenParenToken(SyntaxToken openParenToken) => Update(this.AttributeLists, this.WhileKeyword, openParenToken, this.Condition, this.CloseParenToken, this.Statement); 7474public WhileStatementSyntax WithCondition(ExpressionSyntax condition) => Update(this.AttributeLists, this.WhileKeyword, this.OpenParenToken, condition, this.CloseParenToken, this.Statement); 7475public WhileStatementSyntax WithCloseParenToken(SyntaxToken closeParenToken) => Update(this.AttributeLists, this.WhileKeyword, this.OpenParenToken, this.Condition, closeParenToken, this.Statement);
Syntax\LookupPosition.cs (1)
437return GetFirstExcludedToken(((WhileStatementSyntax)statement).Statement);
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.Analyzer.cs (1)
171return CheckLoop(whileStatement, whileStatement.Statement, defAssignedWhenTrue);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
142WhileStatementSyntax n => n.Statement,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (3)
313if (node is WhileStatementSyntax whileStatement && whileStatement.Statement != null && !(whileStatement.Statement is BlockSyntax)) 315AddEmbeddedStatementsIndentationOperation(list, whileStatement.Statement);
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
AutomaticCompletion\AutomaticLineEnderCommandHandler_Helpers.cs (1)
728=> whileStatementNode.Statement is not BlockSyntax
Microsoft.CodeAnalysis.CSharp.Features (7)
Debugging\CSharpProximityExpressionsService.Worker.cs (1)
298AddLastStatementOfConstruct((statement as WhileStatementSyntax).Statement);
EditAndContinue\SyntaxComparer.cs (2)
870distance = ComputeWeightedDistance(leftWhile.Condition, leftWhile.Statement, rightWhile.Condition, rightWhile.Statement);
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.CallSiteContainerRewriter.cs (1)
267.WithStatement(ReplaceStatementIfNeeded(node.Statement));
Snippets\CSharpWhileLoopSnippetProvider.cs (2)
36static s => (BlockSyntax)s.Statement, 43static s => (BlockSyntax)s.Statement,
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.Analyzer.cs (1)
171return CheckLoop(whileStatement, whileStatement.Statement, defAssignedWhenTrue);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Generated\Syntax.Test.xml.Generated.cs (2)
12614Assert.NotNull(node.Statement); 12615var newNode = node.WithAttributeLists(node.AttributeLists).WithWhileKeyword(node.WhileKeyword).WithOpenParenToken(node.OpenParenToken).WithCondition(node.Condition).WithCloseParenToken(node.CloseParenToken).WithStatement(node.Statement);
Parsing\StatementParsingTests.cs (2)
1485Assert.NotNull(ws.Statement); 1486Assert.Equal(SyntaxKind.Block, ws.Statement.Kind());
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
142WhileStatementSyntax n => n.Statement,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (3)
313if (node is WhileStatementSyntax whileStatement && whileStatement.Statement != null && !(whileStatement.Statement is BlockSyntax)) 315AddEmbeddedStatementsIndentationOperation(list, whileStatement.Statement);
Roslyn.Diagnostics.CSharp.Analyzers (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
142WhileStatementSyntax n => n.Statement,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (3)
313if (node is WhileStatementSyntax whileStatement && whileStatement.Statement != null && !(whileStatement.Statement is BlockSyntax)) 315AddEmbeddedStatementsIndentationOperation(list, whileStatement.Statement);