96 references to UsingStatement
Microsoft.CodeAnalysis.CSharp (10)
Binder\Binder_Statements.cs (1)
130case SyntaxKind.UsingStatement:
Binder\LockOrUsingBinder.cs (1)
45targetExpressionSyntax.Parent.Kind() == SyntaxKind.UsingStatement);
Lowering\Instrumentation\DebugInfoInjector_SequencePoints.cs (1)
119case SyntaxKind.UsingStatement:
Lowering\Instrumentation\Instrumenter.cs (1)
289Debug.Assert(original.Syntax.Kind() == SyntaxKind.UsingStatement);
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (1)
93case SyntaxKind.UsingStatement:
Lowering\LocalRewriter\LocalRewriter_UsingStatement.cs (1)
51SyntaxToken awaitKeyword = node.Syntax.Kind() == SyntaxKind.UsingStatement ? ((UsingStatementSyntax)node.Syntax).AwaitKeyword : default;
Symbols\Source\SourceLocalSymbol.cs (1)
174new[] { SyntaxKind.LocalDeclarationStatement, SyntaxKind.ForStatement, SyntaxKind.UsingStatement, SyntaxKind.FixedStatement }.
Syntax\LambdaUtilities.cs (1)
398case SyntaxKind.UsingStatement:
Syntax\LookupPosition.cs (2)
358case SyntaxKind.UsingStatement: 434case SyntaxKind.UsingStatement:
Microsoft.CodeAnalysis.CSharp.CodeStyle (11)
src\Analyzers\CSharp\Analyzers\AddBraces\CSharpAddBracesDiagnosticAnalyzer.cs (2)
41SyntaxKind.UsingStatement, 79case SyntaxKind.UsingStatement:
src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
330case SyntaxKind.UsingStatement:
src\Analyzers\CSharp\Analyzers\UseSimpleUsingStatement\UseSimpleUsingStatementDiagnosticAnalyzer.cs (1)
72context.RegisterSyntaxNodeAction(AnalyzeSyntax, SyntaxKind.UsingStatement);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\NewLineUserSettingFormattingRule.cs (1)
59case SyntaxKind.UsingStatement:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
616SyntaxKind.CatchDeclaration or SyntaxKind.UsingStatement or SyntaxKind.LockStatement or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
150public int UsingStatement => (int)SyntaxKind.UsingStatement;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\FormattingRangeHelper.cs (1)
363SyntaxKind.UsingStatement or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpTypeStyleHelper.cs (1)
109SyntaxKind.UsingStatement);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseExplicitTypeHelper.cs (1)
86typeName.Parent.Parent is (kind: SyntaxKind.LocalDeclarationStatement or SyntaxKind.ForStatement or SyntaxKind.UsingStatement))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseImplicitTypeHelper.cs (1)
110SyntaxKind.UsingStatement))
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
src\Analyzers\CSharp\CodeFixes\MakeStatementAsynchronous\CSharpMakeStatementAsynchronousCodeFixProvider.cs (1)
101SyntaxKind.UsingStatement))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
170or SyntaxKind.UsingStatement
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2624if (token.IsKind(SyntaxKind.OpenParenToken) && token.Parent.IsKind(SyntaxKind.UsingStatement))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
2176if (variableDeclaration.IsParentKind(SyntaxKind.UsingStatement))
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Semantics\OutVarTests.cs (1)
1188case SyntaxKind.UsingStatement:
Microsoft.CodeAnalysis.CSharp.Features (14)
BraceCompletion\CurlyBraceCompletionService.cs (1)
216case SyntaxKind.UsingStatement:
Debugging\CSharpProximityExpressionsService.Worker.cs (2)
209case SyntaxKind.UsingStatement: 294case SyntaxKind.UsingStatement:
EditAndContinue\BreakpointSpans.cs (1)
693case SyntaxKind.UsingStatement:
EditAndContinue\SyntaxComparer.cs (3)
386case SyntaxKind.UsingStatement: 801case SyntaxKind.UsingStatement: 1063case SyntaxKind.UsingStatement:
src\Analyzers\CSharp\Analyzers\AddBraces\CSharpAddBracesDiagnosticAnalyzer.cs (2)
41SyntaxKind.UsingStatement, 79case SyntaxKind.UsingStatement:
src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
330case SyntaxKind.UsingStatement:
src\Analyzers\CSharp\Analyzers\UseSimpleUsingStatement\UseSimpleUsingStatementDiagnosticAnalyzer.cs (1)
72context.RegisterSyntaxNodeAction(AnalyzeSyntax, SyntaxKind.UsingStatement);
src\Analyzers\CSharp\CodeFixes\MakeStatementAsynchronous\CSharpMakeStatementAsynchronousCodeFixProvider.cs (1)
101SyntaxKind.UsingStatement))
src\Compilers\CSharp\Portable\Syntax\LambdaUtilities.cs (1)
398case SyntaxKind.UsingStatement:
Structure\Providers\BlockSyntaxStructureProvider.cs (1)
213SyntaxKind.UsingStatement => BlockTypes.Statement,
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (44)
Parsing\AsyncStreamsParsingTests.cs (2)
69N(SyntaxKind.UsingStatement); 147N(SyntaxKind.UsingStatement);
Parsing\AwaitParsingTests.cs (2)
1119N(SyntaxKind.UsingStatement); 2357N(SyntaxKind.UsingStatement);
Parsing\DeclarationScopeParsingTests.cs (26)
12178N(SyntaxKind.UsingStatement); 12220N(SyntaxKind.UsingStatement); 12275N(SyntaxKind.UsingStatement); 12335N(SyntaxKind.UsingStatement); 12392N(SyntaxKind.UsingStatement); 12454N(SyntaxKind.UsingStatement); 12521N(SyntaxKind.UsingStatement); 12572N(SyntaxKind.UsingStatement); 12624N(SyntaxKind.UsingStatement); 12670N(SyntaxKind.UsingStatement); 12726N(SyntaxKind.UsingStatement); 12776N(SyntaxKind.UsingStatement); 12833N(SyntaxKind.UsingStatement); 12884N(SyntaxKind.UsingStatement); 12930N(SyntaxKind.UsingStatement); 12980N(SyntaxKind.UsingStatement); 13031N(SyntaxKind.UsingStatement); 13081N(SyntaxKind.UsingStatement); 13127N(SyntaxKind.UsingStatement); 13181N(SyntaxKind.UsingStatement); 13227N(SyntaxKind.UsingStatement); 13277N(SyntaxKind.UsingStatement); 13328N(SyntaxKind.UsingStatement); 13370N(SyntaxKind.UsingStatement); 13422N(SyntaxKind.UsingStatement); 13485N(SyntaxKind.UsingStatement);
Parsing\FunctionPointerTests.cs (1)
2782N(SyntaxKind.UsingStatement);
Parsing\NullableParsingTests.cs (1)
1162N(SyntaxKind.UsingStatement);
Parsing\ScriptParsingTests.cs (1)
1160N(SyntaxKind.UsingStatement);
Parsing\StatementAttributeParsingTests.cs (3)
1359N(SyntaxKind.UsingStatement); 1435N(SyntaxKind.UsingStatement); 1522N(SyntaxKind.UsingStatement);
Parsing\StatementParsingTests.cs (7)
2340Assert.Equal(SyntaxKind.UsingStatement, statement.Kind()); 2362Assert.Equal(SyntaxKind.UsingStatement, statement.Kind()); 2455Assert.Equal(SyntaxKind.UsingStatement, statement.Kind()); 2795Assert.Equal(SyntaxKind.UsingStatement, statement.Kind()); 2920Assert.Equal(SyntaxKind.UsingStatement, statement.Kind()); 3003Assert.Equal(SyntaxKind.UsingStatement, statement.Kind()); 3075Assert.Equal(SyntaxKind.UsingStatement, statement.Kind());
Parsing\UsingDirectiveParsingTests.cs (1)
258N(SyntaxKind.UsingStatement);
Microsoft.CodeAnalysis.CSharp.Workspaces (11)
Simplification\Reducers\CSharpMiscellaneousReducer.cs (1)
189case SyntaxKind.UsingStatement:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\NewLineUserSettingFormattingRule.cs (1)
59case SyntaxKind.UsingStatement:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
616SyntaxKind.CatchDeclaration or SyntaxKind.UsingStatement or SyntaxKind.LockStatement or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
150public int UsingStatement => (int)SyntaxKind.UsingStatement;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\FormattingRangeHelper.cs (1)
363SyntaxKind.UsingStatement or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpTypeStyleHelper.cs (1)
109SyntaxKind.UsingStatement);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseExplicitTypeHelper.cs (1)
86typeName.Parent.Parent is (kind: SyntaxKind.LocalDeclarationStatement or SyntaxKind.ForStatement or SyntaxKind.UsingStatement))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseImplicitTypeHelper.cs (1)
110SyntaxKind.UsingStatement))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
170or SyntaxKind.UsingStatement
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2624if (token.IsKind(SyntaxKind.OpenParenToken) && token.Parent.IsKind(SyntaxKind.UsingStatement))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
2176if (variableDeclaration.IsParentKind(SyntaxKind.UsingStatement))
Microsoft.CodeAnalysis.Test.Utilities (1)
Compilation\ControlFlowGraphVerifier.cs (1)
1163case CSharp.SyntaxKind.UsingStatement: