109 references to WhileStatementSyntax
Microsoft.CodeAnalysis.CSharp (12)
Binder\Binder_Statements.cs (2)
84result = BindWhile((WhileStatementSyntax)node, diagnostics); 2654private BoundStatement BindWhile(WhileStatementSyntax node, BindingDiagnosticBag diagnostics)
Binder\LocalBinderFactory.cs (1)
532public override void VisitWhileStatement(WhileStatementSyntax node)
Binder\WhileBinder.cs (3)
30var node = (WhileStatementSyntax)_syntax; 56condition = ((WhileStatementSyntax)_syntax).Condition;
Lowering\Instrumentation\DebugInfoInjector.cs (2)
208WhileStatementSyntax whileSyntax = (WhileStatementSyntax)original.Syntax;
Syntax\LookupPosition.cs (2)
361return ((WhileStatementSyntax)statement).WhileKeyword; 439return GetFirstExcludedToken(((WhileStatementSyntax)statement).Statement);
Syntax\WhileStatementSyntax.cs (2)
11public WhileStatementSyntax Update(SyntaxToken whileKeyword, SyntaxToken openParenToken, ExpressionSyntax condition, SyntaxToken closeParenToken, StatementSyntax statement) 20public static WhileStatementSyntax WhileStatement(SyntaxToken whileKeyword, SyntaxToken openParenToken, ExpressionSyntax condition, SyntaxToken closeParenToken, StatementSyntax statement)
Microsoft.CodeAnalysis.CSharp.CodeStyle (11)
CSharpAsAndNullCheckDiagnosticAnalyzer.Analyzer.cs (2)
160var whileStatement = (WhileStatementSyntax)current;
CSharpHeaderFacts.cs (2)
120var node = TryGetAncestorForLocation<WhileStatementSyntax>(root, position);
FormattingHelpers.cs (2)
293WhileStatementSyntax whileStatement => whileStatement.CloseParenToken.Equals(token), 365WhileStatementSyntax or
IndentBlockFormattingRule.cs (1)
290if (node is WhileStatementSyntax whileStatement && whileStatement.Statement != null && !(whileStatement.Statement is BlockSyntax))
ParenthesizedExpressionSyntaxExtensions.cs (1)
147(nodeParent is WhileStatementSyntax whileStatement && whileStatement.Condition == node) ||
SyntaxNodeExtensions.cs (3)
139WhileStatementSyntax; 154WhileStatementSyntax n => n.Statement, 832case WhileStatementSyntax n: return (n.OpenParenToken, n.CloseParenToken);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
CSharpMoveDeclarationNearReferenceService.cs (1)
38WhileStatementSyntax or
CSharpTypeInferenceService.TypeInferrer.cs (3)
186WhileStatementSyntax whileStatement => InferTypeInWhileStatement(whileStatement), 253WhileStatementSyntax whileStatement => InferTypeInWhileStatement(whileStatement, token), 2437private IEnumerable<TypeInferenceInfo> InferTypeInWhileStatement(WhileStatementSyntax whileStatement, SyntaxToken? previousToken = null)
Microsoft.CodeAnalysis.CSharp.EditorFeatures (5)
AutomaticCompletion\AutomaticLineEnderCommandHandler.cs (1)
336or WhileStatementSyntax
AutomaticCompletion\AutomaticLineEnderCommandHandler_Helpers.cs (4)
149WhileStatementSyntax or ForEachStatementSyntax or ForStatementSyntax or LockStatementSyntax or UsingStatementSyntax 481WhileStatementSyntax whileStatementNode => ShouldAddBraceForWhileStatement(whileStatementNode, caretPosition), 725private static bool ShouldAddBraceForWhileStatement(WhileStatementSyntax whileStatementNode, int caretPosition) 947WhileStatementSyntax whileStatementNode => whileStatementNode.WithStatement(block),
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Semantics\PatternMatchingTests_Scope.cs (2)
7207var statement = (WhileStatementSyntax)SyntaxFactory.ParseStatement(@"
Microsoft.CodeAnalysis.CSharp.Features (30)
CSharpAsAndNullCheckDiagnosticAnalyzer.Analyzer.cs (2)
160var whileStatement = (WhileStatementSyntax)current;
Debugging\CSharpProximityExpressionsService.RelevantExpressionsCollector.cs (1)
50public override void VisitWhileStatement(WhileStatementSyntax node)
Debugging\CSharpProximityExpressionsService.Worker.cs (1)
304AddLastStatementOfConstruct((statement as WhileStatementSyntax).Statement);
EditAndContinue\BreakpointSpans.cs (2)
426var whileStatement = (WhileStatementSyntax)statement;
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (6)
1043return AreEquivalentActiveStatements((WhileStatementSyntax)oldStatement, (WhileStatementSyntax)newStatement); 1078private static bool AreEquivalentActiveStatements(WhileStatementSyntax oldNode, WhileStatementSyntax newNode) 1779var whileStatement = (WhileStatementSyntax)node;
EditAndContinue\SyntaxComparer.cs (4)
854var leftWhile = (WhileStatementSyntax)leftNode; 855var rightWhile = (WhileStatementSyntax)rightNode;
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.CallSiteContainerRewriter.cs (1)
264public override SyntaxNode VisitWhileStatement(WhileStatementSyntax node)
ExtractMethod\CSharpSelectionValidator.Validator.cs (2)
39WhileStatementSyntax; 73WhileStatementSyntax;
Highlighting\KeywordHighlighters\LoopHighlighter.cs (2)
46case WhileStatementSyntax whileStatement: 67private static void HighlightWhileStatement(WhileStatementSyntax statement, List<TextSpan> spans)
InvertIf\CSharpInvertIfCodeRefactoringProvider.cs (2)
78case WhileStatementSyntax: 103CommonForEachStatementSyntax or DoStatementSyntax or WhileStatementSyntax or ForStatementSyntax
Snippets\CSharpWhileLoopSnippetProvider.cs (7)
33var whileStatement = (WhileStatementSyntax)caretTarget; 44var whileStatement = (WhileStatementSyntax)node; 48private static string GetIndentation(Document document, WhileStatementSyntax whileStatementSyntax, SyntaxFormattingOptions syntaxFormattingOptions, CancellationToken cancellationToken) 69if (snippet is not WhileStatementSyntax whileStatementSyntax) 77var newWhileStatementSyntax = whileStatementSyntax.ReplaceNode(whileStatementSyntax.Statement, blockStatement);
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (20)
IOperation\IOperationTests_IBranchOperation.Extensions.cs (1)
70AssertOuterIsCorrespondingLoopOfInner<WhileStatementSyntax, ContinueStatementSyntax>(@"
IOperation\IOperationTests_IWhileUntilLoopStatement.cs (19)
122VerifyOperationTreeForTest<WhileStatementSyntax>(source, expectedOperationTree); 188VerifyOperationTreeForTest<WhileStatementSyntax>(source, expectedOperationTree); 269VerifyOperationTreeForTest<WhileStatementSyntax>(source, expectedOperationTree); 347VerifyOperationTreeForTest<WhileStatementSyntax>(source, expectedOperationTree); 417VerifyOperationTreeForTest<WhileStatementSyntax>(source, expectedOperationTree); 448VerifyOperationTreeForTest<WhileStatementSyntax>(source, expectedOperationTree); 509VerifyOperationTreeForTest<WhileStatementSyntax>(source, expectedOperationTree); 573VerifyOperationTreeForTest<WhileStatementSyntax>(source, expectedOperationTree); 638VerifyOperationTreeForTest<WhileStatementSyntax>(source, expectedOperationTree); 671VerifyOperationTreeForTest<WhileStatementSyntax>(source, expectedOperationTree); 736VerifyOperationTreeForTest<WhileStatementSyntax>(source, expectedOperationTree); 827VerifyOperationTreeForTest<WhileStatementSyntax>(source, expectedOperationTree); 930VerifyOperationTreeForTest<WhileStatementSyntax>(source, expectedOperationTree); 1001VerifyOperationTreeForTest<WhileStatementSyntax>(source, expectedOperationTree); 1047VerifyOperationTreeForTest<WhileStatementSyntax>(source, expectedOperationTree); 1084VerifyOperationTreeForTest<WhileStatementSyntax>(source, expectedOperationTree); 1120VerifyOperationTreeForTest<WhileStatementSyntax>(source, expectedOperationTree); 1194VerifyOperationTreeForTest<WhileStatementSyntax>(source, expectedOperationTree); 1294VerifyOperationTreeForTest<WhileStatementSyntax>(source, expectedOperationTree);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\OutVarTests.cs (2)
16534var statement = (WhileStatementSyntax)SyntaxFactory.ParseStatement(@"
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (7)
Generated\Syntax.Test.xml.Generated.cs (5)
10355private static WhileStatementSyntax GenerateWhileStatement() 12163var node = GenerateWhileStatement(); 12171var newNode = node.WithAttributeLists(node.AttributeLists).WithWhileKeyword(node.WhileKeyword).WithOpenParenToken(node.OpenParenToken).WithCondition(node.Condition).WithCloseParenToken(node.CloseParenToken).WithStatement(node.Statement); 16947var oldNode = GenerateWhileStatement(); 16963var oldNode = GenerateWhileStatement();
Parsing\StatementParsingTests.cs (2)
1478var ws = (WhileStatementSyntax)statement;
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
LocalVariableDeclaratorsCollector.cs (1)
66public override void VisitWhileStatement(WhileStatementSyntax node)
Microsoft.CodeAnalysis.CSharp.Workspaces (13)
CSharpHeaderFacts.cs (2)
120var node = TryGetAncestorForLocation<WhileStatementSyntax>(root, position);
CSharpMoveDeclarationNearReferenceService.cs (1)
38WhileStatementSyntax or
CSharpTypeInferenceService.TypeInferrer.cs (3)
186WhileStatementSyntax whileStatement => InferTypeInWhileStatement(whileStatement), 253WhileStatementSyntax whileStatement => InferTypeInWhileStatement(whileStatement, token), 2437private IEnumerable<TypeInferenceInfo> InferTypeInWhileStatement(WhileStatementSyntax whileStatement, SyntaxToken? previousToken = null)
FormattingHelpers.cs (2)
293WhileStatementSyntax whileStatement => whileStatement.CloseParenToken.Equals(token), 365WhileStatementSyntax or
IndentBlockFormattingRule.cs (1)
290if (node is WhileStatementSyntax whileStatement && whileStatement.Statement != null && !(whileStatement.Statement is BlockSyntax))
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs\SyntaxNodeExtensions.cs (3)
139WhileStatementSyntax; 154WhileStatementSyntax n => n.Statement, 832case WhileStatementSyntax n: return (n.OpenParenToken, n.CloseParenToken);
ParenthesizedExpressionSyntaxExtensions.cs (1)
147(nodeParent is WhileStatementSyntax whileStatement && whileStatement.Condition == node) ||
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (2)
CodeGeneration\SyntaxGeneratorTests.cs (2)
698VerifySyntax<WhileStatementSyntax>( 703VerifySyntax<WhileStatementSyntax>(