325 references to UsingKeyword
Microsoft.CodeAnalysis.CSharp (20)
Parser\LanguageParser.cs (17)
503
case SyntaxKind.
UsingKeyword
:
518
if (this.CurrentToken.ContextualKind != SyntaxKind.GlobalKeyword || this.PeekToken(1).Kind != SyntaxKind.
UsingKeyword
)
698
case SyntaxKind.
UsingKeyword
:
793
Debug.Assert(this.CurrentToken.Kind == SyntaxKind.
UsingKeyword
);
795
var usingToken = this.EatToken(SyntaxKind.
UsingKeyword
);
1399
if (this.CurrentToken.ContextualKind == SyntaxKind.GlobalKeyword && this.PeekToken(1).Kind == SyntaxKind.
UsingKeyword
)
2565
if (CurrentToken.Kind == SyntaxKind.
UsingKeyword
)
2570
if (CurrentToken.ContextualKind == SyntaxKind.GlobalKeyword && this.PeekToken(1).Kind == SyntaxKind.
UsingKeyword
)
2896
if (this.CurrentToken.ContextualKind == SyntaxKind.GlobalKeyword && this.PeekToken(1).Kind == SyntaxKind.
UsingKeyword
)
7422
case SyntaxKind.
UsingKeyword
:
7548
=> CurrentToken.ContextualKind == SyntaxKind.AwaitKeyword && PeekToken(1).Kind == SyntaxKind.
UsingKeyword
;
7583
if (tk == SyntaxKind.
UsingKeyword
)
7713
if (this.CurrentToken.Kind != SyntaxKind.
UsingKeyword
)
8224
case SyntaxKind.
UsingKeyword
:
9233
var @using = this.EatToken(SyntaxKind.
UsingKeyword
);
9396
else if (this.CurrentToken.Kind == SyntaxKind.
UsingKeyword
)
10010
case SyntaxKind.
UsingKeyword
:
Syntax\SyntaxFactory.cs (1)
2649
usingKeyword: Token(SyntaxKind.
UsingKeyword
),
Syntax\SyntaxKindFacts.cs (2)
963
return SyntaxKind.
UsingKeyword
;
1603
case SyntaxKind.
UsingKeyword
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
CSharpSyntaxKinds.cs (1)
64
public int UsingKeyword => (int)SyntaxKind.
UsingKeyword
;
SpacingFormattingRule.cs (1)
158
previousKind == SyntaxKind.
UsingKeyword
|| previousKind == SyntaxKind.WhenKeyword || previousKind == SyntaxKind.LockKeyword ||
TokenComparer.cs (2)
24
x.GetPreviousToken(includeSkipped: true).Kind() is SyntaxKind.
UsingKeyword
or SyntaxKind.StaticKeyword &&
25
y.GetPreviousToken(includeSkipped: true).Kind() is SyntaxKind.
UsingKeyword
or SyntaxKind.StaticKeyword)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs\SyntaxTokenExtensions.cs (2)
19
token.Kind() is SyntaxKind.
UsingKeyword
or
25
if (token.IsKind(SyntaxKind.
UsingKeyword
))
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (3)
643
if (token.IsKind(SyntaxKind.
UsingKeyword
))
1818
previous.IsKind(SyntaxKind.
UsingKeyword
))
1826
if (token.IsKind(SyntaxKind.
UsingKeyword
) &&
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Formatting\Indentation\SmartTokenFormatterFormatRangeTests.cs (2)
2056
await AutoFormatOnSemicolonAsync(code, "using System;", SyntaxKind.
UsingKeyword
);
2733
SyntaxKind.
UsingKeyword
);
Microsoft.CodeAnalysis.CSharp.Features (6)
Completion\KeywordRecommenders\UsingKeywordRecommender.cs (1)
15
: base(SyntaxKind.
UsingKeyword
)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
2208
if (((LocalDeclarationStatementSyntax)node).UsingKeyword.IsKind(SyntaxKind.
UsingKeyword
))
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (1)
668
? SyntaxFactory.Token(SyntaxKind.
UsingKeyword
)
Highlighting\KeywordHighlighters\AsyncAwaitHighlighter.cs (1)
84
localDeclaration.UsingKeyword.Kind() == SyntaxKind.
UsingKeyword
&& TryAddAsyncOrAwaitKeyword(localDeclaration.AwaitKeyword, spans),
IntroduceUsingStatement\CSharpIntroduceUsingStatementCodeRefactoringProvider.cs (2)
56
SyntaxFactory.Token(SyntaxKind.
UsingKeyword
).WithLeadingTrivia(declarationStatement.GetLeadingTrivia()),
79
.WithUsingKeyword(SyntaxFactory.Token(declarationStatement.GetLeadingTrivia(), SyntaxKind.
UsingKeyword
, SyntaxFactory.TriviaList(SyntaxFactory.Space)));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (276)
Generated\Syntax.Test.xml.Generated.cs (8)
395
=> InternalSyntaxFactory.UsingStatement(new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.AttributeListSyntax>(), null, InternalSyntaxFactory.Token(SyntaxKind.
UsingKeyword
), InternalSyntaxFactory.Token(SyntaxKind.OpenParenToken), null, null, InternalSyntaxFactory.Token(SyntaxKind.CloseParenToken), GenerateBlock());
458
=> InternalSyntaxFactory.UsingDirective(null, InternalSyntaxFactory.Token(SyntaxKind.
UsingKeyword
), null, null, null, GenerateIdentifierName(), InternalSyntaxFactory.Token(SyntaxKind.SemicolonToken));
2280
Assert.Equal(SyntaxKind.
UsingKeyword
, node.UsingKeyword.Kind);
2559
Assert.Equal(SyntaxKind.
UsingKeyword
, node.UsingKeyword.Kind);
10371
=> SyntaxFactory.UsingStatement(new SyntaxList<AttributeListSyntax>(), default(SyntaxToken), SyntaxFactory.Token(SyntaxKind.
UsingKeyword
), SyntaxFactory.Token(SyntaxKind.OpenParenToken), default(VariableDeclarationSyntax), default(ExpressionSyntax), SyntaxFactory.Token(SyntaxKind.CloseParenToken), GenerateBlock());
10434
=> SyntaxFactory.UsingDirective(default(SyntaxToken), SyntaxFactory.Token(SyntaxKind.
UsingKeyword
), default(SyntaxToken), default(SyntaxToken), default(NameEqualsSyntax), GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.SemicolonToken));
12256
Assert.Equal(SyntaxKind.
UsingKeyword
, node.UsingKeyword.Kind());
12535
Assert.Equal(SyntaxKind.
UsingKeyword
, node.UsingKeyword.Kind());
Parsing\AnonymousFunctionParsingTests.cs (35)
41
N(SyntaxKind.
UsingKeyword
);
142
N(SyntaxKind.
UsingKeyword
);
239
N(SyntaxKind.
UsingKeyword
);
340
N(SyntaxKind.
UsingKeyword
);
441
N(SyntaxKind.
UsingKeyword
);
545
N(SyntaxKind.
UsingKeyword
);
651
N(SyntaxKind.
UsingKeyword
);
660
N(SyntaxKind.
UsingKeyword
);
794
N(SyntaxKind.
UsingKeyword
);
2472
N(SyntaxKind.
UsingKeyword
);
2481
N(SyntaxKind.
UsingKeyword
);
2620
N(SyntaxKind.
UsingKeyword
);
2629
N(SyntaxKind.
UsingKeyword
);
2768
N(SyntaxKind.
UsingKeyword
);
2777
N(SyntaxKind.
UsingKeyword
);
2919
N(SyntaxKind.
UsingKeyword
);
3030
N(SyntaxKind.
UsingKeyword
);
3039
N(SyntaxKind.
UsingKeyword
);
3178
N(SyntaxKind.
UsingKeyword
);
3293
N(SyntaxKind.
UsingKeyword
);
3302
N(SyntaxKind.
UsingKeyword
);
3446
N(SyntaxKind.
UsingKeyword
);
3455
N(SyntaxKind.
UsingKeyword
);
3599
N(SyntaxKind.
UsingKeyword
);
3608
N(SyntaxKind.
UsingKeyword
);
3756
N(SyntaxKind.
UsingKeyword
);
3876
N(SyntaxKind.
UsingKeyword
);
3885
N(SyntaxKind.
UsingKeyword
);
4033
N(SyntaxKind.
UsingKeyword
);
4157
N(SyntaxKind.
UsingKeyword
);
4166
N(SyntaxKind.
UsingKeyword
);
4319
N(SyntaxKind.
UsingKeyword
);
4328
N(SyntaxKind.
UsingKeyword
);
4481
N(SyntaxKind.
UsingKeyword
);
4490
N(SyntaxKind.
UsingKeyword
);
Parsing\AsyncStreamsParsingTests.cs (3)
72
N(SyntaxKind.
UsingKeyword
);
150
N(SyntaxKind.
UsingKeyword
);
230
N(SyntaxKind.
UsingKeyword
);
Parsing\AwaitParsingTests.cs (2)
1120
N(SyntaxKind.
UsingKeyword
);
1666
N(SyntaxKind.
UsingKeyword
);
Parsing\DeclarationParsingTests.cs (7)
65
Assert.Equal(SyntaxKind.
UsingKeyword
, ud.UsingKeyword.Kind());
87
Assert.Equal(SyntaxKind.
UsingKeyword
, ud.UsingKeyword.Kind());
154
Assert.Equal(SyntaxKind.
UsingKeyword
, ud.UsingKeyword.Kind());
176
Assert.Equal(SyntaxKind.
UsingKeyword
, ud.UsingKeyword.Kind());
198
Assert.Equal(SyntaxKind.
UsingKeyword
, ud.UsingKeyword.Kind());
220
Assert.Equal(SyntaxKind.
UsingKeyword
, ud.UsingKeyword.Kind());
244
Assert.Equal(SyntaxKind.
UsingKeyword
, ud.UsingKeyword.Kind());
Parsing\DeclarationScopeParsingTests.cs (37)
12082
N(SyntaxKind.
UsingKeyword
);
12101
N(SyntaxKind.
UsingKeyword
);
12141
N(SyntaxKind.
UsingKeyword
);
12185
N(SyntaxKind.
UsingKeyword
);
12243
N(SyntaxKind.
UsingKeyword
);
12263
N(SyntaxKind.
UsingKeyword
);
12287
N(SyntaxKind.
UsingKeyword
);
12328
N(SyntaxKind.
UsingKeyword
);
12373
N(SyntaxKind.
UsingKeyword
);
12424
N(SyntaxKind.
UsingKeyword
);
12469
N(SyntaxKind.
UsingKeyword
);
12514
N(SyntaxKind.
UsingKeyword
);
12556
N(SyntaxKind.
UsingKeyword
);
12615
N(SyntaxKind.
UsingKeyword
);
12682
N(SyntaxKind.
UsingKeyword
);
12739
N(SyntaxKind.
UsingKeyword
);
12805
N(SyntaxKind.
UsingKeyword
);
12883
N(SyntaxKind.
UsingKeyword
);
12941
N(SyntaxKind.
UsingKeyword
);
12997
N(SyntaxKind.
UsingKeyword
);
13050
N(SyntaxKind.
UsingKeyword
);
13110
N(SyntaxKind.
UsingKeyword
);
13167
N(SyntaxKind.
UsingKeyword
);
13228
N(SyntaxKind.
UsingKeyword
);
13286
N(SyntaxKind.
UsingKeyword
);
13332
N(SyntaxKind.
UsingKeyword
);
13382
N(SyntaxKind.
UsingKeyword
);
13433
N(SyntaxKind.
UsingKeyword
);
13483
N(SyntaxKind.
UsingKeyword
);
13529
N(SyntaxKind.
UsingKeyword
);
13583
N(SyntaxKind.
UsingKeyword
);
13629
N(SyntaxKind.
UsingKeyword
);
13679
N(SyntaxKind.
UsingKeyword
);
13730
N(SyntaxKind.
UsingKeyword
);
13772
N(SyntaxKind.
UsingKeyword
);
13828
N(SyntaxKind.
UsingKeyword
);
13898
N(SyntaxKind.
UsingKeyword
);
Parsing\FunctionPointerTests.cs (3)
2784
N(SyntaxKind.
UsingKeyword
);
2842
N(SyntaxKind.
UsingKeyword
);
4135
N(SyntaxKind.
UsingKeyword
);
Parsing\NullableParsingTests.cs (1)
1162
N(SyntaxKind.
UsingKeyword
);
Parsing\ScriptParsingTests.cs (4)
1117
N(SyntaxKind.
UsingKeyword
);
1126
N(SyntaxKind.
UsingKeyword
);
1143
N(SyntaxKind.
UsingKeyword
);
1162
N(SyntaxKind.
UsingKeyword
);
Parsing\SingleLineDeclarationParsingTests.cs (2)
505
N(SyntaxKind.
UsingKeyword
);
545
N(SyntaxKind.
UsingKeyword
);
Parsing\StatementAttributeParsingTests.cs (7)
1372
N(SyntaxKind.
UsingKeyword
);
1449
N(SyntaxKind.
UsingKeyword
);
1536
N(SyntaxKind.
UsingKeyword
);
5610
N(SyntaxKind.
UsingKeyword
);
7183
N(SyntaxKind.
UsingKeyword
);
7285
N(SyntaxKind.
UsingKeyword
);
7394
N(SyntaxKind.
UsingKeyword
);
Parsing\StatementParsingTests.cs (29)
2346
Assert.Equal(SyntaxKind.
UsingKeyword
, us.UsingKeyword.Kind());
2368
Assert.Equal(SyntaxKind.
UsingKeyword
, us.UsingKeyword.Kind());
2402
Assert.Equal(SyntaxKind.
UsingKeyword
, us.UsingKeyword.Kind());
2424
N(SyntaxKind.
UsingKeyword
);
2461
Assert.Equal(SyntaxKind.
UsingKeyword
, us.UsingKeyword.Kind());
2497
Assert.Equal(SyntaxKind.
UsingKeyword
, us.UsingKeyword.Kind());
2532
Assert.Equal(SyntaxKind.
UsingKeyword
, us.UsingKeyword.Kind());
2558
N(SyntaxKind.
UsingKeyword
);
2589
N(SyntaxKind.
UsingKeyword
);
2628
Assert.Equal(SyntaxKind.
UsingKeyword
, us.UsingKeyword.Kind());
2652
N(SyntaxKind.
UsingKeyword
);
2719
N(SyntaxKind.
UsingKeyword
);
2798
Assert.Equal(SyntaxKind.
UsingKeyword
, us.UsingKeyword.Kind());
2842
Assert.Equal(SyntaxKind.
UsingKeyword
, us.UsingKeyword.Kind());
2873
N(SyntaxKind.
UsingKeyword
);
2923
Assert.Equal(SyntaxKind.
UsingKeyword
, us.UsingKeyword.Kind());
2945
Assert.Equal(SyntaxKind.
UsingKeyword
, us.UsingKeyword.Kind());
2956
N(SyntaxKind.
UsingKeyword
);
3006
Assert.Equal(SyntaxKind.
UsingKeyword
, us.UsingKeyword.Kind());
3028
Assert.Equal(SyntaxKind.
UsingKeyword
, us.UsingKeyword.Kind());
3039
N(SyntaxKind.
UsingKeyword
);
3078
Assert.Equal(SyntaxKind.
UsingKeyword
, us.UsingKeyword.Kind());
3100
Assert.Equal(SyntaxKind.
UsingKeyword
, us.UsingKeyword.Kind());
3111
N(SyntaxKind.
UsingKeyword
);
3142
N(SyntaxKind.
UsingKeyword
);
3180
N(SyntaxKind.
UsingKeyword
);
3219
N(SyntaxKind.
UsingKeyword
);
3257
N(SyntaxKind.
UsingKeyword
);
3294
N(SyntaxKind.
UsingKeyword
);
Parsing\TopLevelStatementsParsingTests.cs (32)
344
N(SyntaxKind.
UsingKeyword
);
574
N(SyntaxKind.
UsingKeyword
);
1630
N(SyntaxKind.
UsingKeyword
);
1809
N(SyntaxKind.
UsingKeyword
);
1834
N(SyntaxKind.
UsingKeyword
);
1888
N(SyntaxKind.
UsingKeyword
);
1932
N(SyntaxKind.
UsingKeyword
);
1976
N(SyntaxKind.
UsingKeyword
);
2017
N(SyntaxKind.
UsingKeyword
);
2064
N(SyntaxKind.
UsingKeyword
);
2096
N(SyntaxKind.
UsingKeyword
);
2120
N(SyntaxKind.
UsingKeyword
);
2143
N(SyntaxKind.
UsingKeyword
);
2174
N(SyntaxKind.
UsingKeyword
);
2205
N(SyntaxKind.
UsingKeyword
);
2249
N(SyntaxKind.
UsingKeyword
);
2324
N(SyntaxKind.
UsingKeyword
);
2384
N(SyntaxKind.
UsingKeyword
);
2498
N(SyntaxKind.
UsingKeyword
);
2676
N(SyntaxKind.
UsingKeyword
);
2922
N(SyntaxKind.
UsingKeyword
);
2964
N(SyntaxKind.
UsingKeyword
);
2973
N(SyntaxKind.
UsingKeyword
);
3019
N(SyntaxKind.
UsingKeyword
);
3296
N(SyntaxKind.
UsingKeyword
);
3306
N(SyntaxKind.
UsingKeyword
);
3337
N(SyntaxKind.
UsingKeyword
);
3346
N(SyntaxKind.
UsingKeyword
);
3380
N(SyntaxKind.
UsingKeyword
);
3409
N(SyntaxKind.
UsingKeyword
);
3449
N(SyntaxKind.
UsingKeyword
);
3478
N(SyntaxKind.
UsingKeyword
);
Parsing\UsingDirectiveParsingTests.cs (75)
37
N(SyntaxKind.
UsingKeyword
);
79
N(SyntaxKind.
UsingKeyword
);
118
N(SyntaxKind.
UsingKeyword
);
174
N(SyntaxKind.
UsingKeyword
);
209
N(SyntaxKind.
UsingKeyword
);
263
N(SyntaxKind.
UsingKeyword
);
327
N(SyntaxKind.
UsingKeyword
);
378
N(SyntaxKind.
UsingKeyword
);
421
N(SyntaxKind.
UsingKeyword
);
481
N(SyntaxKind.
UsingKeyword
);
520
N(SyntaxKind.
UsingKeyword
);
567
N(SyntaxKind.
UsingKeyword
);
630
N(SyntaxKind.
UsingKeyword
);
681
N(SyntaxKind.
UsingKeyword
);
734
N(SyntaxKind.
UsingKeyword
);
793
N(SyntaxKind.
UsingKeyword
);
853
N(SyntaxKind.
UsingKeyword
);
884
N(SyntaxKind.
UsingKeyword
);
926
N(SyntaxKind.
UsingKeyword
);
963
N(SyntaxKind.
UsingKeyword
);
1000
N(SyntaxKind.
UsingKeyword
);
1040
N(SyntaxKind.
UsingKeyword
);
1084
N(SyntaxKind.
UsingKeyword
);
1129
N(SyntaxKind.
UsingKeyword
);
1170
N(SyntaxKind.
UsingKeyword
);
1218
N(SyntaxKind.
UsingKeyword
);
1248
N(SyntaxKind.
UsingKeyword
);
1290
N(SyntaxKind.
UsingKeyword
);
1320
N(SyntaxKind.
UsingKeyword
);
1366
N(SyntaxKind.
UsingKeyword
);
1395
N(SyntaxKind.
UsingKeyword
);
1441
N(SyntaxKind.
UsingKeyword
);
1471
N(SyntaxKind.
UsingKeyword
);
1525
N(SyntaxKind.
UsingKeyword
);
1555
N(SyntaxKind.
UsingKeyword
);
1607
N(SyntaxKind.
UsingKeyword
);
1664
N(SyntaxKind.
UsingKeyword
);
1770
N(SyntaxKind.
UsingKeyword
);
1869
N(SyntaxKind.
UsingKeyword
);
1916
N(SyntaxKind.
UsingKeyword
);
1960
N(SyntaxKind.
UsingKeyword
);
2010
N(SyntaxKind.
UsingKeyword
);
2035
N(SyntaxKind.
UsingKeyword
);
2085
N(SyntaxKind.
UsingKeyword
);
2110
N(SyntaxKind.
UsingKeyword
);
2155
N(SyntaxKind.
UsingKeyword
);
2229
N(SyntaxKind.
UsingKeyword
);
2307
N(SyntaxKind.
UsingKeyword
);
2388
N(SyntaxKind.
UsingKeyword
);
2464
N(SyntaxKind.
UsingKeyword
);
2535
N(SyntaxKind.
UsingKeyword
);
2610
N(SyntaxKind.
UsingKeyword
);
2642
N(SyntaxKind.
UsingKeyword
);
2739
N(SyntaxKind.
UsingKeyword
);
2884
N(SyntaxKind.
UsingKeyword
);
3014
N(SyntaxKind.
UsingKeyword
);
3112
N(SyntaxKind.
UsingKeyword
);
3212
N(SyntaxKind.
UsingKeyword
);
3233
N(SyntaxKind.
UsingKeyword
);
3276
N(SyntaxKind.
UsingKeyword
);
3297
N(SyntaxKind.
UsingKeyword
);
3340
N(SyntaxKind.
UsingKeyword
);
3361
N(SyntaxKind.
UsingKeyword
);
3410
N(SyntaxKind.
UsingKeyword
);
3439
N(SyntaxKind.
UsingKeyword
);
3479
N(SyntaxKind.
UsingKeyword
);
3528
N(SyntaxKind.
UsingKeyword
);
3581
N(SyntaxKind.
UsingKeyword
);
3628
N(SyntaxKind.
UsingKeyword
);
3704
N(SyntaxKind.
UsingKeyword
);
3713
N(SyntaxKind.
UsingKeyword
);
3854
N(SyntaxKind.
UsingKeyword
);
3863
N(SyntaxKind.
UsingKeyword
);
4016
N(SyntaxKind.
UsingKeyword
);
4061
N(SyntaxKind.
UsingKeyword
);
Syntax\SyntaxNodeTests.cs (5)
514
Assert.Equal(SyntaxKind.
UsingKeyword
, tokens[0].Kind());
527
Assert.Equal(SyntaxKind.
UsingKeyword
, tokens[0].Kind());
544
Assert.Equal(SyntaxKind.
UsingKeyword
, tokens[4].Kind());
584
Assert.Equal(SyntaxKind.
UsingKeyword
, tokens[3].Kind());
597
Assert.Equal(SyntaxKind.
UsingKeyword
, tokens[3].Kind());
Syntax\SyntaxTreeTests.cs (26)
347
N(SyntaxKind.
UsingKeyword
);
382
N(SyntaxKind.
UsingKeyword
);
414
N(SyntaxKind.
UsingKeyword
);
462
N(SyntaxKind.
UsingKeyword
);
488
N(SyntaxKind.
UsingKeyword
);
524
N(SyntaxKind.
UsingKeyword
);
557
N(SyntaxKind.
UsingKeyword
);
606
N(SyntaxKind.
UsingKeyword
);
633
N(SyntaxKind.
UsingKeyword
);
679
N(SyntaxKind.
UsingKeyword
);
719
N(SyntaxKind.
UsingKeyword
);
778
N(SyntaxKind.
UsingKeyword
);
850
N(SyntaxKind.
UsingKeyword
);
921
N(SyntaxKind.
UsingKeyword
);
958
N(SyntaxKind.
UsingKeyword
);
986
N(SyntaxKind.
UsingKeyword
);
1013
N(SyntaxKind.
UsingKeyword
);
1022
N(SyntaxKind.
UsingKeyword
);
1050
N(SyntaxKind.
UsingKeyword
);
1060
N(SyntaxKind.
UsingKeyword
);
1128
N(SyntaxKind.
UsingKeyword
);
1137
N(SyntaxKind.
UsingKeyword
);
1184
N(SyntaxKind.
UsingKeyword
);
1201
N(SyntaxKind.
UsingKeyword
);
1256
N(SyntaxKind.
UsingKeyword
);
1266
N(SyntaxKind.
UsingKeyword
);
Microsoft.CodeAnalysis.CSharp.Workspaces (9)
CSharpSyntaxKinds.cs (1)
64
public int UsingKeyword => (int)SyntaxKind.
UsingKeyword
;
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs\SyntaxTokenExtensions.cs (2)
19
token.Kind() is SyntaxKind.
UsingKeyword
or
25
if (token.IsKind(SyntaxKind.
UsingKeyword
))
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (3)
643
if (token.IsKind(SyntaxKind.
UsingKeyword
))
1818
previous.IsKind(SyntaxKind.
UsingKeyword
))
1826
if (token.IsKind(SyntaxKind.
UsingKeyword
) &&
SpacingFormattingRule.cs (1)
158
previousKind == SyntaxKind.
UsingKeyword
|| previousKind == SyntaxKind.WhenKeyword || previousKind == SyntaxKind.LockKeyword ||
TokenComparer.cs (2)
24
x.GetPreviousToken(includeSkipped: true).Kind() is SyntaxKind.
UsingKeyword
or SyntaxKind.StaticKeyword &&
25
y.GetPreviousToken(includeSkipped: true).Kind() is SyntaxKind.
UsingKeyword
or SyntaxKind.StaticKeyword)
Microsoft.VisualStudio.LanguageServices.CSharp (3)
LanguageService\CSharpHelpContextService.cs (2)
422
case SyntaxKind.
UsingKeyword
when token.Parent is UsingDirectiveSyntax:
495
if (token.IsKind(SyntaxKind.
UsingKeyword
) && token.Parent is UsingStatementSyntax or LocalDeclarationStatementSyntax)
Snippets\SnippetExpansionClient.cs (1)
164
.WithUsingKeyword(SyntaxFactory.Token(SyntaxKind.
UsingKeyword
).WithTrailingTrivia(SyntaxFactory.Space));