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