351 references to UsingKeyword
Microsoft.CodeAnalysis.CSharp (21)
Parser\LanguageParser.cs (17)
661
case SyntaxKind.
UsingKeyword
:
676
if (this.CurrentToken.ContextualKind != SyntaxKind.GlobalKeyword || this.PeekToken(1).Kind != SyntaxKind.
UsingKeyword
)
866
case SyntaxKind.
UsingKeyword
:
961
Debug.Assert(this.CurrentToken.Kind == SyntaxKind.
UsingKeyword
);
963
var usingToken = this.EatToken(SyntaxKind.
UsingKeyword
);
1673
if (this.CurrentToken.ContextualKind == SyntaxKind.GlobalKeyword && this.PeekToken(1).Kind == SyntaxKind.
UsingKeyword
)
2881
if (CurrentToken.Kind == SyntaxKind.
UsingKeyword
)
2886
if (CurrentToken.ContextualKind == SyntaxKind.GlobalKeyword && this.PeekToken(1).Kind == SyntaxKind.
UsingKeyword
)
3212
if (this.CurrentToken.ContextualKind == SyntaxKind.GlobalKeyword && this.PeekToken(1).Kind == SyntaxKind.
UsingKeyword
)
8004
case SyntaxKind.
UsingKeyword
:
8135
=> CurrentToken.ContextualKind == SyntaxKind.AwaitKeyword && PeekToken(1).Kind == SyntaxKind.
UsingKeyword
;
8170
if (tk == SyntaxKind.
UsingKeyword
)
8301
if (this.CurrentToken.Kind != SyntaxKind.
UsingKeyword
)
8812
case SyntaxKind.
UsingKeyword
:
9858
var @using = this.EatToken(SyntaxKind.
UsingKeyword
);
10020
else if (this.CurrentToken.Kind == SyntaxKind.
UsingKeyword
)
10667
case SyntaxKind.
UsingKeyword
:
Syntax\SyntaxFactory.cs (1)
2661
usingKeyword: Token(SyntaxKind.
UsingKeyword
),
Syntax\SyntaxKindFacts.cs (2)
991
return SyntaxKind.
UsingKeyword
;
1639
case SyntaxKind.
UsingKeyword
:
Syntax\UsingDirectiveSyntax.cs (1)
38
=> UsingDirective(globalKeyword: default, usingKeyword: Token(SyntaxKind.
UsingKeyword
), staticKeyword, unsafeKeyword: default, alias, namespaceOrType: name, semicolonToken: Token(SyntaxKind.SemicolonToken));
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
96
public static readonly SyntaxToken UsingKeyword = Token(SyntaxKind.
UsingKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
156
previousKind == SyntaxKind.
UsingKeyword
|| previousKind == SyntaxKind.WhenKeyword || previousKind == SyntaxKind.LockKeyword ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
74
public int UsingKeyword => (int)SyntaxKind.
UsingKeyword
;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\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)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (2)
19
token.Kind() is SyntaxKind.
UsingKeyword
or
25
if (token.IsKind(SyntaxKind.
UsingKeyword
))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (3)
643
if (token.IsKind(SyntaxKind.
UsingKeyword
))
1832
if (previous.Kind() is SyntaxKind.ForKeyword or SyntaxKind.ForEachKeyword or SyntaxKind.
UsingKeyword
)
1838
if (token.IsKind(SyntaxKind.
UsingKeyword
) &&
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Formatting\Indentation\SmartTokenFormatterFormatRangeTests.cs (2)
2051
await AutoFormatOnSemicolonAsync(code, "using System;", SyntaxKind.
UsingKeyword
);
2729
SyntaxKind.
UsingKeyword
);
Microsoft.CodeAnalysis.CSharp.Features (5)
Completion\KeywordRecommenders\StaticKeywordRecommender.cs (1)
86
(context.TargetToken.IsKind(SyntaxKind.
UsingKeyword
) && context.TargetToken.Parent?.IsParentKind(SyntaxKind.GlobalStatement) == true) ||
Completion\KeywordRecommenders\UnsafeKeywordRecommender.cs (1)
82
(context.IsInImportsDirective && context.TargetToken.Kind() is SyntaxKind.
UsingKeyword
or SyntaxKind.StaticKeyword);
Completion\KeywordRecommenders\UsingKeywordRecommender.cs (1)
15
: base(SyntaxKind.
UsingKeyword
)
Highlighting\KeywordHighlighters\AsyncAwaitHighlighter.cs (1)
77
localDeclaration.UsingKeyword.Kind() == SyntaxKind.
UsingKeyword
&& TryAddAsyncOrAwaitKeyword(localDeclaration.AwaitKeyword, spans),
IntroduceUsingStatement\CSharpIntroduceUsingStatementCodeRefactoringProvider.cs (1)
82
.WithUsingKeyword(Token(declarationStatement.GetLeadingTrivia(), SyntaxKind.
UsingKeyword
, [Space]));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (301)
Generated\Syntax.Test.xml.Generated.cs (8)
407
=> 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());
470
=> InternalSyntaxFactory.UsingDirective(null, InternalSyntaxFactory.Token(SyntaxKind.
UsingKeyword
), null, null, null, GenerateIdentifierName(), InternalSyntaxFactory.Token(SyntaxKind.SemicolonToken));
2341
Assert.Equal(SyntaxKind.
UsingKeyword
, node.UsingKeyword.Kind);
2620
Assert.Equal(SyntaxKind.
UsingKeyword
, node.UsingKeyword.Kind);
10623
=> SyntaxFactory.UsingStatement(new SyntaxList<AttributeListSyntax>(), default(SyntaxToken), SyntaxFactory.Token(SyntaxKind.
UsingKeyword
), SyntaxFactory.Token(SyntaxKind.OpenParenToken), default(VariableDeclarationSyntax), default(ExpressionSyntax), SyntaxFactory.Token(SyntaxKind.CloseParenToken), GenerateBlock());
10686
=> SyntaxFactory.UsingDirective(default(SyntaxToken), SyntaxFactory.Token(SyntaxKind.
UsingKeyword
), default(SyntaxToken), default(SyntaxToken), default(NameEqualsSyntax), GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.SemicolonToken));
12557
Assert.Equal(SyntaxKind.
UsingKeyword
, node.UsingKeyword.Kind());
12836
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
);
2460
N(SyntaxKind.
UsingKeyword
);
2469
N(SyntaxKind.
UsingKeyword
);
2608
N(SyntaxKind.
UsingKeyword
);
2617
N(SyntaxKind.
UsingKeyword
);
2756
N(SyntaxKind.
UsingKeyword
);
2765
N(SyntaxKind.
UsingKeyword
);
2907
N(SyntaxKind.
UsingKeyword
);
3018
N(SyntaxKind.
UsingKeyword
);
3027
N(SyntaxKind.
UsingKeyword
);
3166
N(SyntaxKind.
UsingKeyword
);
3281
N(SyntaxKind.
UsingKeyword
);
3290
N(SyntaxKind.
UsingKeyword
);
3434
N(SyntaxKind.
UsingKeyword
);
3443
N(SyntaxKind.
UsingKeyword
);
3587
N(SyntaxKind.
UsingKeyword
);
3596
N(SyntaxKind.
UsingKeyword
);
3744
N(SyntaxKind.
UsingKeyword
);
3864
N(SyntaxKind.
UsingKeyword
);
3873
N(SyntaxKind.
UsingKeyword
);
4021
N(SyntaxKind.
UsingKeyword
);
4145
N(SyntaxKind.
UsingKeyword
);
4154
N(SyntaxKind.
UsingKeyword
);
4307
N(SyntaxKind.
UsingKeyword
);
4316
N(SyntaxKind.
UsingKeyword
);
4469
N(SyntaxKind.
UsingKeyword
);
4478
N(SyntaxKind.
UsingKeyword
);
Parsing\AsyncStreamsParsingTests.cs (3)
72
N(SyntaxKind.
UsingKeyword
);
150
N(SyntaxKind.
UsingKeyword
);
230
N(SyntaxKind.
UsingKeyword
);
Parsing\AwaitParsingTests.cs (2)
1121
N(SyntaxKind.
UsingKeyword
);
2359
N(SyntaxKind.
UsingKeyword
);
Parsing\CollectionExpressionParsingTests.cs (6)
7963
N(SyntaxKind.
UsingKeyword
);
8108
N(SyntaxKind.
UsingKeyword
);
8261
N(SyntaxKind.
UsingKeyword
);
8417
N(SyntaxKind.
UsingKeyword
);
8561
N(SyntaxKind.
UsingKeyword
);
8716
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)
11748
N(SyntaxKind.
UsingKeyword
);
11767
N(SyntaxKind.
UsingKeyword
);
11807
N(SyntaxKind.
UsingKeyword
);
11851
N(SyntaxKind.
UsingKeyword
);
11909
N(SyntaxKind.
UsingKeyword
);
11929
N(SyntaxKind.
UsingKeyword
);
11953
N(SyntaxKind.
UsingKeyword
);
11994
N(SyntaxKind.
UsingKeyword
);
12039
N(SyntaxKind.
UsingKeyword
);
12090
N(SyntaxKind.
UsingKeyword
);
12135
N(SyntaxKind.
UsingKeyword
);
12180
N(SyntaxKind.
UsingKeyword
);
12222
N(SyntaxKind.
UsingKeyword
);
12277
N(SyntaxKind.
UsingKeyword
);
12337
N(SyntaxKind.
UsingKeyword
);
12394
N(SyntaxKind.
UsingKeyword
);
12456
N(SyntaxKind.
UsingKeyword
);
12523
N(SyntaxKind.
UsingKeyword
);
12574
N(SyntaxKind.
UsingKeyword
);
12626
N(SyntaxKind.
UsingKeyword
);
12672
N(SyntaxKind.
UsingKeyword
);
12728
N(SyntaxKind.
UsingKeyword
);
12778
N(SyntaxKind.
UsingKeyword
);
12835
N(SyntaxKind.
UsingKeyword
);
12886
N(SyntaxKind.
UsingKeyword
);
12932
N(SyntaxKind.
UsingKeyword
);
12982
N(SyntaxKind.
UsingKeyword
);
13033
N(SyntaxKind.
UsingKeyword
);
13083
N(SyntaxKind.
UsingKeyword
);
13129
N(SyntaxKind.
UsingKeyword
);
13183
N(SyntaxKind.
UsingKeyword
);
13229
N(SyntaxKind.
UsingKeyword
);
13279
N(SyntaxKind.
UsingKeyword
);
13330
N(SyntaxKind.
UsingKeyword
);
13372
N(SyntaxKind.
UsingKeyword
);
13424
N(SyntaxKind.
UsingKeyword
);
13487
N(SyntaxKind.
UsingKeyword
);
Parsing\FunctionPointerTests.cs (3)
2784
N(SyntaxKind.
UsingKeyword
);
2842
N(SyntaxKind.
UsingKeyword
);
4135
N(SyntaxKind.
UsingKeyword
);
Parsing\NullableParsingTests.cs (1)
1164
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)
1373
N(SyntaxKind.
UsingKeyword
);
1450
N(SyntaxKind.
UsingKeyword
);
1537
N(SyntaxKind.
UsingKeyword
);
5625
N(SyntaxKind.
UsingKeyword
);
7195
N(SyntaxKind.
UsingKeyword
);
7297
N(SyntaxKind.
UsingKeyword
);
7406
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());
2528
N(SyntaxKind.
UsingKeyword
);
2561
N(SyntaxKind.
UsingKeyword
);
2592
N(SyntaxKind.
UsingKeyword
);
2631
Assert.Equal(SyntaxKind.
UsingKeyword
, us.UsingKeyword.Kind());
2655
N(SyntaxKind.
UsingKeyword
);
2722
N(SyntaxKind.
UsingKeyword
);
2801
Assert.Equal(SyntaxKind.
UsingKeyword
, us.UsingKeyword.Kind());
2845
Assert.Equal(SyntaxKind.
UsingKeyword
, us.UsingKeyword.Kind());
2876
N(SyntaxKind.
UsingKeyword
);
2926
Assert.Equal(SyntaxKind.
UsingKeyword
, us.UsingKeyword.Kind());
2948
Assert.Equal(SyntaxKind.
UsingKeyword
, us.UsingKeyword.Kind());
2959
N(SyntaxKind.
UsingKeyword
);
3009
Assert.Equal(SyntaxKind.
UsingKeyword
, us.UsingKeyword.Kind());
3031
Assert.Equal(SyntaxKind.
UsingKeyword
, us.UsingKeyword.Kind());
3042
N(SyntaxKind.
UsingKeyword
);
3081
Assert.Equal(SyntaxKind.
UsingKeyword
, us.UsingKeyword.Kind());
3103
Assert.Equal(SyntaxKind.
UsingKeyword
, us.UsingKeyword.Kind());
3114
N(SyntaxKind.
UsingKeyword
);
3145
N(SyntaxKind.
UsingKeyword
);
3183
N(SyntaxKind.
UsingKeyword
);
3222
N(SyntaxKind.
UsingKeyword
);
3260
N(SyntaxKind.
UsingKeyword
);
3297
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
);
1979
N(SyntaxKind.
UsingKeyword
);
2020
N(SyntaxKind.
UsingKeyword
);
2067
N(SyntaxKind.
UsingKeyword
);
2099
N(SyntaxKind.
UsingKeyword
);
2123
N(SyntaxKind.
UsingKeyword
);
2146
N(SyntaxKind.
UsingKeyword
);
2177
N(SyntaxKind.
UsingKeyword
);
2208
N(SyntaxKind.
UsingKeyword
);
2252
N(SyntaxKind.
UsingKeyword
);
2327
N(SyntaxKind.
UsingKeyword
);
2387
N(SyntaxKind.
UsingKeyword
);
2501
N(SyntaxKind.
UsingKeyword
);
2679
N(SyntaxKind.
UsingKeyword
);
2925
N(SyntaxKind.
UsingKeyword
);
2967
N(SyntaxKind.
UsingKeyword
);
2976
N(SyntaxKind.
UsingKeyword
);
3022
N(SyntaxKind.
UsingKeyword
);
3299
N(SyntaxKind.
UsingKeyword
);
3309
N(SyntaxKind.
UsingKeyword
);
3340
N(SyntaxKind.
UsingKeyword
);
3349
N(SyntaxKind.
UsingKeyword
);
3383
N(SyntaxKind.
UsingKeyword
);
3412
N(SyntaxKind.
UsingKeyword
);
3452
N(SyntaxKind.
UsingKeyword
);
3481
N(SyntaxKind.
UsingKeyword
);
Parsing\UsingDirectiveParsingTests.cs (94)
37
N(SyntaxKind.
UsingKeyword
);
79
N(SyntaxKind.
UsingKeyword
);
118
N(SyntaxKind.
UsingKeyword
);
174
N(SyntaxKind.
UsingKeyword
);
209
N(SyntaxKind.
UsingKeyword
);
260
N(SyntaxKind.
UsingKeyword
);
317
N(SyntaxKind.
UsingKeyword
);
368
N(SyntaxKind.
UsingKeyword
);
411
N(SyntaxKind.
UsingKeyword
);
471
N(SyntaxKind.
UsingKeyword
);
510
N(SyntaxKind.
UsingKeyword
);
557
N(SyntaxKind.
UsingKeyword
);
620
N(SyntaxKind.
UsingKeyword
);
671
N(SyntaxKind.
UsingKeyword
);
724
N(SyntaxKind.
UsingKeyword
);
783
N(SyntaxKind.
UsingKeyword
);
843
N(SyntaxKind.
UsingKeyword
);
876
N(SyntaxKind.
UsingKeyword
);
913
N(SyntaxKind.
UsingKeyword
);
950
N(SyntaxKind.
UsingKeyword
);
990
N(SyntaxKind.
UsingKeyword
);
1034
N(SyntaxKind.
UsingKeyword
);
1079
N(SyntaxKind.
UsingKeyword
);
1120
N(SyntaxKind.
UsingKeyword
);
1168
N(SyntaxKind.
UsingKeyword
);
1198
N(SyntaxKind.
UsingKeyword
);
1240
N(SyntaxKind.
UsingKeyword
);
1270
N(SyntaxKind.
UsingKeyword
);
1316
N(SyntaxKind.
UsingKeyword
);
1345
N(SyntaxKind.
UsingKeyword
);
1391
N(SyntaxKind.
UsingKeyword
);
1421
N(SyntaxKind.
UsingKeyword
);
1475
N(SyntaxKind.
UsingKeyword
);
1505
N(SyntaxKind.
UsingKeyword
);
1557
N(SyntaxKind.
UsingKeyword
);
1614
N(SyntaxKind.
UsingKeyword
);
1720
N(SyntaxKind.
UsingKeyword
);
1819
N(SyntaxKind.
UsingKeyword
);
1866
N(SyntaxKind.
UsingKeyword
);
1910
N(SyntaxKind.
UsingKeyword
);
1960
N(SyntaxKind.
UsingKeyword
);
1985
N(SyntaxKind.
UsingKeyword
);
2035
N(SyntaxKind.
UsingKeyword
);
2060
N(SyntaxKind.
UsingKeyword
);
2105
N(SyntaxKind.
UsingKeyword
);
2179
N(SyntaxKind.
UsingKeyword
);
2257
N(SyntaxKind.
UsingKeyword
);
2338
N(SyntaxKind.
UsingKeyword
);
2414
N(SyntaxKind.
UsingKeyword
);
2485
N(SyntaxKind.
UsingKeyword
);
2560
N(SyntaxKind.
UsingKeyword
);
2592
N(SyntaxKind.
UsingKeyword
);
2689
N(SyntaxKind.
UsingKeyword
);
2834
N(SyntaxKind.
UsingKeyword
);
2964
N(SyntaxKind.
UsingKeyword
);
3062
N(SyntaxKind.
UsingKeyword
);
3162
N(SyntaxKind.
UsingKeyword
);
3183
N(SyntaxKind.
UsingKeyword
);
3226
N(SyntaxKind.
UsingKeyword
);
3247
N(SyntaxKind.
UsingKeyword
);
3290
N(SyntaxKind.
UsingKeyword
);
3311
N(SyntaxKind.
UsingKeyword
);
3360
N(SyntaxKind.
UsingKeyword
);
3389
N(SyntaxKind.
UsingKeyword
);
3429
N(SyntaxKind.
UsingKeyword
);
3478
N(SyntaxKind.
UsingKeyword
);
3531
N(SyntaxKind.
UsingKeyword
);
3578
N(SyntaxKind.
UsingKeyword
);
3654
N(SyntaxKind.
UsingKeyword
);
3663
N(SyntaxKind.
UsingKeyword
);
3804
N(SyntaxKind.
UsingKeyword
);
3813
N(SyntaxKind.
UsingKeyword
);
3966
N(SyntaxKind.
UsingKeyword
);
4011
N(SyntaxKind.
UsingKeyword
);
4059
N(SyntaxKind.
UsingKeyword
);
4106
N(SyntaxKind.
UsingKeyword
);
4153
N(SyntaxKind.
UsingKeyword
);
4197
N(SyntaxKind.
UsingKeyword
);
4250
N(SyntaxKind.
UsingKeyword
);
4308
N(SyntaxKind.
UsingKeyword
);
4366
N(SyntaxKind.
UsingKeyword
);
4421
N(SyntaxKind.
UsingKeyword
);
4472
N(SyntaxKind.
UsingKeyword
);
4512
N(SyntaxKind.
UsingKeyword
);
4552
N(SyntaxKind.
UsingKeyword
);
4589
N(SyntaxKind.
UsingKeyword
);
4632
N(SyntaxKind.
UsingKeyword
);
4713
N(SyntaxKind.
UsingKeyword
);
4794
N(SyntaxKind.
UsingKeyword
);
4872
N(SyntaxKind.
UsingKeyword
);
4951
N(SyntaxKind.
UsingKeyword
);
5029
N(SyntaxKind.
UsingKeyword
);
5109
N(SyntaxKind.
UsingKeyword
);
5189
N(SyntaxKind.
UsingKeyword
);
Syntax\SyntaxNodeTests.cs (5)
537
Assert.Equal(SyntaxKind.
UsingKeyword
, tokens[0].Kind());
550
Assert.Equal(SyntaxKind.
UsingKeyword
, tokens[0].Kind());
567
Assert.Equal(SyntaxKind.
UsingKeyword
, tokens[4].Kind());
607
Assert.Equal(SyntaxKind.
UsingKeyword
, tokens[3].Kind());
620
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 (10)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
96
public static readonly SyntaxToken UsingKeyword = Token(SyntaxKind.
UsingKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
156
previousKind == SyntaxKind.
UsingKeyword
|| previousKind == SyntaxKind.WhenKeyword || previousKind == SyntaxKind.LockKeyword ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
74
public int UsingKeyword => (int)SyntaxKind.
UsingKeyword
;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\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)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (2)
19
token.Kind() is SyntaxKind.
UsingKeyword
or
25
if (token.IsKind(SyntaxKind.
UsingKeyword
))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (3)
643
if (token.IsKind(SyntaxKind.
UsingKeyword
))
1832
if (previous.Kind() is SyntaxKind.ForKeyword or SyntaxKind.ForEachKeyword or SyntaxKind.
UsingKeyword
)
1838
if (token.IsKind(SyntaxKind.
UsingKeyword
) &&
Microsoft.VisualStudio.LanguageServices.CSharp (2)
LanguageService\CSharpHelpContextService.cs (2)
440
case SyntaxKind.
UsingKeyword
when token.Parent is UsingDirectiveSyntax:
507
if (token.IsKind(SyntaxKind.
UsingKeyword
) && token.Parent is UsingStatementSyntax or LocalDeclarationStatementSyntax)