61 references to WhileStatement
Microsoft.CodeAnalysis.CSharp (10)
Binder\Binder_Statements.cs (2)
84case SyntaxKind.WhileStatement: 366case SyntaxKind.WhileStatement:
Binder\WhileBinder.cs (2)
24Debug.Assert(syntax != null && (syntax.IsKind(SyntaxKind.WhileStatement) || syntax.IsKind(SyntaxKind.DoStatement))); 55case SyntaxKind.WhileStatement:
Lowering\ClosureConversion\ClosureConversion.cs (1)
1775case SyntaxKind.WhileStatement:
Lowering\Instrumentation\Instrumenter.cs (2)
123Debug.Assert(original.Syntax.Kind() == SyntaxKind.WhileStatement); 138Debug.Assert(original.Syntax.Kind() == SyntaxKind.WhileStatement);
Syntax\LambdaUtilities.cs (1)
414case SyntaxKind.WhileStatement:
Syntax\LookupPosition.cs (2)
360case SyntaxKind.WhileStatement: 436case SyntaxKind.WhileStatement:
Microsoft.CodeAnalysis.CSharp.CodeStyle (10)
src\Analyzers\CSharp\Analyzers\AddBraces\CSharpAddBracesDiagnosticAnalyzer.cs (1)
39SyntaxKind.WhileStatement,
src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
326case SyntaxKind.WhileStatement:
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.Analyzer.cs (1)
159case SyntaxKind.WhileStatement:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
580case SyntaxKind.WhileStatement:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (2)
398case SyntaxKind.WhileStatement: 414case SyntaxKind.WhileStatement:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\NewLineUserSettingFormattingRule.cs (1)
55case SyntaxKind.WhileStatement:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
613return syntaxKind is SyntaxKind.IfStatement or SyntaxKind.WhileStatement or SyntaxKind.SwitchStatement or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
150public int WhileStatement => (int)SyntaxKind.WhileStatement;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\FormattingRangeHelper.cs (1)
359SyntaxKind.WhileStatement or
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
167or SyntaxKind.WhileStatement
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Emit\EditAndContinue\LocalSlotMappingTests.cs (1)
3497ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, method0, method1, GetSyntaxMapByKind(method0, SyntaxKind.WhileStatement))));
Microsoft.CodeAnalysis.CSharp.Features (12)
BraceCompletion\CurlyBraceCompletionService.cs (1)
212case SyntaxKind.WhileStatement:
Debugging\CSharpProximityExpressionsService.Worker.cs (2)
205case SyntaxKind.WhileStatement: 297case SyntaxKind.WhileStatement:
EditAndContinue\BreakpointSpans.cs (1)
602case SyntaxKind.WhileStatement:
EditAndContinue\SyntaxComparer.cs (3)
376case SyntaxKind.WhileStatement: 862case SyntaxKind.WhileStatement: 1059case SyntaxKind.WhileStatement:
src\Analyzers\CSharp\Analyzers\AddBraces\CSharpAddBracesDiagnosticAnalyzer.cs (1)
39SyntaxKind.WhileStatement,
src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
326case SyntaxKind.WhileStatement:
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.Analyzer.cs (1)
159case SyntaxKind.WhileStatement:
src\Compilers\CSharp\Portable\Syntax\LambdaUtilities.cs (1)
414case SyntaxKind.WhileStatement:
Structure\Providers\BlockSyntaxStructureProvider.cs (1)
205SyntaxKind.WhileStatement => BlockTypes.Loop,
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (17)
Parsing\ParsingErrorRecoveryTests.cs (13)
4748Assert.Equal(SyntaxKind.WhileStatement, ms.Body.Statements[1].Kind()); 4777Assert.Equal(SyntaxKind.WhileStatement, ms.Body.Statements[1].Kind()); 4806Assert.Equal(SyntaxKind.WhileStatement, ms.Body.Statements[1].Kind()); 4836Assert.Equal(SyntaxKind.WhileStatement, ms.Body.Statements[1].Kind()); 4865Assert.Equal(SyntaxKind.WhileStatement, ms.Body.Statements[1].Kind()); 5865Assert.Equal(SyntaxKind.WhileStatement, ms.Body.Statements[1].Kind()); 5894Assert.Equal(SyntaxKind.WhileStatement, ms.Body.Statements[1].Kind()); 5923Assert.Equal(SyntaxKind.WhileStatement, ms.Body.Statements[1].Kind()); 5953Assert.Equal(SyntaxKind.WhileStatement, ms.Body.Statements[1].Kind()); 5982Assert.Equal(SyntaxKind.WhileStatement, ms.Body.Statements[1].Kind()); 6288Assert.Equal(SyntaxKind.WhileStatement, ms.Body.Statements[1].Kind()); 6322Assert.Equal(SyntaxKind.WhileStatement, ms.Body.Statements[1].Kind()); 6352Assert.Equal(SyntaxKind.WhileStatement, ms.Body.Statements[1].Kind());
Parsing\StatementAttributeParsingTests.cs (3)
369N(SyntaxKind.WhileStatement); 454N(SyntaxKind.WhileStatement); 896N(SyntaxKind.WhileStatement);
Parsing\StatementParsingTests.cs (1)
1474Assert.Equal(SyntaxKind.WhileStatement, statement.Kind());
Microsoft.CodeAnalysis.CSharp.Workspaces (10)
Classification\ClassificationHelpers.cs (1)
115case SyntaxKind.WhileStatement:
Simplification\Reducers\CSharpMiscellaneousReducer.cs (1)
187case SyntaxKind.WhileStatement:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
580case SyntaxKind.WhileStatement:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (2)
398case SyntaxKind.WhileStatement: 414case SyntaxKind.WhileStatement:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\NewLineUserSettingFormattingRule.cs (1)
55case SyntaxKind.WhileStatement:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
613return syntaxKind is SyntaxKind.IfStatement or SyntaxKind.WhileStatement or SyntaxKind.SwitchStatement or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
150public int WhileStatement => (int)SyntaxKind.WhileStatement;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\FormattingRangeHelper.cs (1)
359SyntaxKind.WhileStatement or
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
167or SyntaxKind.WhileStatement