169 references to ScopedKeyword
Microsoft.CodeAnalysis.CSharp (24)
Parser\LanguageParser.cs (9)
4926
if (modifiers is [.., SyntaxToken { Kind: SyntaxKind.
ScopedKeyword
} scopedKeyword])
8209
&& (tk is not (SyntaxKind.AsyncKeyword or SyntaxKind.
ScopedKeyword
) || ShouldContextualKeywordBeTreatedAsModifier(parsingStatementNotDeclaration: true));
9222
if (this.CurrentToken.ContextualKind == SyntaxKind.
ScopedKeyword
)
9431
if (this.CurrentToken.ContextualKind == SyntaxKind.
ScopedKeyword
)
10137
if (this.CurrentToken.ContextualKind == SyntaxKind.
ScopedKeyword
)
10141
SyntaxToken scopedKeyword = this.EatContextualToken(SyntaxKind.
ScopedKeyword
);
11425
? EatContextualToken(SyntaxKind.
ScopedKeyword
)
12266
if (IsParameterModifierExcludingScoped(this.CurrentToken) || this.CurrentToken.ContextualKind == SyntaxKind.
ScopedKeyword
)
13443
if (IsParameterModifierExcludingScoped(this.CurrentToken) || this.CurrentToken.ContextualKind == SyntaxKind.
ScopedKeyword
)
SymbolDisplay\SymbolDisplayVisitor.cs (2)
247
AddKeyword(SyntaxKind.
ScopedKeyword
);
262
AddKeyword(SyntaxKind.
ScopedKeyword
);
SymbolDisplay\SymbolDisplayVisitor.Members.cs (2)
821
AddKeyword(SyntaxKind.
ScopedKeyword
);
842
AddKeyword(SyntaxKind.
ScopedKeyword
);
Symbols\Source\ModifierUtils.cs (3)
120
Debug.Assert(modifier.Kind() == SyntaxKind.
ScopedKeyword
);
324
return SyntaxFacts.GetText(SyntaxKind.
ScopedKeyword
);
376
case SyntaxKind.
ScopedKeyword
:
Symbols\Source\ParameterHelpers.cs (3)
592
case SyntaxKind.
ScopedKeyword
when !parsingFunctionPointerParams:
619
case SyntaxKind.
ScopedKeyword
when parsingFunctionPointerParams:
961
case SyntaxKind.
ScopedKeyword
:
Symbols\Source\SourceMemberContainerSymbol.cs (1)
501
|| reportIfContextual(SyntaxKind.
ScopedKeyword
, MessageID.IDS_FeatureRefFields, ErrorCode.ERR_ScopedTypeNameDisallowed))
Symbols\Source\SourceMemberFieldSymbol.cs (1)
456
diagnostics.Add(ErrorCode.ERR_BadMemberFlag, ErrorLocation, SyntaxFacts.GetText(SyntaxKind.
ScopedKeyword
));
Syntax\SyntaxKindFacts.cs (3)
1228
case SyntaxKind.
ScopedKeyword
:
1353
return SyntaxKind.
ScopedKeyword
;
1799
case SyntaxKind.
ScopedKeyword
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
80
public static readonly SyntaxToken ScopedKeyword = Token(SyntaxKind.
ScopedKeyword
);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (4)
1107
if (token.Kind() is SyntaxKind.RefKeyword or SyntaxKind.InKeyword or SyntaxKind.ReadOnlyKeyword or SyntaxKind.OutKeyword or SyntaxKind.ThisKeyword or SyntaxKind.ParamsKeyword or SyntaxKind.
ScopedKeyword
)
1115
previousModifier = SyntaxKind.
ScopedKeyword
;
1265
else if (token.IsKind(SyntaxKind.
ScopedKeyword
) && token.Parent.IsKind(SyntaxKind.Parameter))
1871
if (token.IsKind(SyntaxKind.
ScopedKeyword
) && token.Parent is IncompleteMemberSyntax)
Microsoft.CodeAnalysis.CSharp.Features (4)
Completion\KeywordRecommenders\InKeywordRecommender.cs (1)
39
if (previousModifier is SyntaxKind.None or SyntaxKind.
ScopedKeyword
)
Completion\KeywordRecommenders\OutKeywordRecommender.cs (1)
34
previousModifier is SyntaxKind.None or SyntaxKind.
ScopedKeyword
;
Completion\KeywordRecommenders\RefKeywordRecommender.cs (2)
126
if (previousModifier is SyntaxKind.None or SyntaxKind.
ScopedKeyword
)
184
case SyntaxKind.
ScopedKeyword
:
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (129)
Generated\Syntax.Test.xml.Generated.cs (4)
71
=> InternalSyntaxFactory.ScopedType(InternalSyntaxFactory.Token(SyntaxKind.
ScopedKeyword
), GenerateIdentifierName());
967
Assert.Equal(SyntaxKind.
ScopedKeyword
, node.ScopedKeyword.Kind);
10287
=> SyntaxFactory.ScopedType(SyntaxFactory.Token(SyntaxKind.
ScopedKeyword
), GenerateIdentifierName());
11183
Assert.Equal(SyntaxKind.
ScopedKeyword
, node.ScopedKeyword.Kind());
Parsing\DeclarationScopeParsingTests.cs (122)
85
N(SyntaxKind.
ScopedKeyword
);
95
N(SyntaxKind.
ScopedKeyword
);
106
N(SyntaxKind.
ScopedKeyword
);
117
N(SyntaxKind.
ScopedKeyword
);
248
N(SyntaxKind.
ScopedKeyword
);
619
N(SyntaxKind.
ScopedKeyword
);
658
N(SyntaxKind.
ScopedKeyword
);
814
N(SyntaxKind.
ScopedKeyword
);
946
N(SyntaxKind.
ScopedKeyword
);
956
N(SyntaxKind.
ScopedKeyword
);
967
N(SyntaxKind.
ScopedKeyword
);
978
N(SyntaxKind.
ScopedKeyword
);
1106
N(SyntaxKind.
ScopedKeyword
);
1116
N(SyntaxKind.
ScopedKeyword
);
1219
N(SyntaxKind.
ScopedKeyword
);
1241
N(SyntaxKind.
ScopedKeyword
);
1367
N(SyntaxKind.
ScopedKeyword
);
1645
N(SyntaxKind.
ScopedKeyword
);
1664
N(SyntaxKind.
ScopedKeyword
);
1687
N(SyntaxKind.
ScopedKeyword
);
1868
N(SyntaxKind.
ScopedKeyword
);
1890
N(SyntaxKind.
ScopedKeyword
);
1983
N(SyntaxKind.
ScopedKeyword
);
2058
N(SyntaxKind.
ScopedKeyword
);
2422
N(SyntaxKind.
ScopedKeyword
);
2444
N(SyntaxKind.
ScopedKeyword
);
2470
N(SyntaxKind.
ScopedKeyword
);
2514
N(SyntaxKind.
ScopedKeyword
);
2632
N(SyntaxKind.
ScopedKeyword
);
2654
N(SyntaxKind.
ScopedKeyword
);
2740
N(SyntaxKind.
ScopedKeyword
);
2815
N(SyntaxKind.
ScopedKeyword
);
2991
N(SyntaxKind.
ScopedKeyword
);
3120
N(SyntaxKind.
ScopedKeyword
);
3312
N(SyntaxKind.
ScopedKeyword
);
3348
N(SyntaxKind.
ScopedKeyword
);
3392
N(SyntaxKind.
ScopedKeyword
);
3448
N(SyntaxKind.
ScopedKeyword
);
3904
N(SyntaxKind.
ScopedKeyword
);
4036
N(SyntaxKind.
ScopedKeyword
);
4176
N(SyntaxKind.
ScopedKeyword
);
4324
N(SyntaxKind.
ScopedKeyword
);
4474
N(SyntaxKind.
ScopedKeyword
);
4545
N(SyntaxKind.
ScopedKeyword
);
4620
N(SyntaxKind.
ScopedKeyword
);
4771
N(SyntaxKind.
ScopedKeyword
);
4842
N(SyntaxKind.
ScopedKeyword
);
4913
N(SyntaxKind.
ScopedKeyword
);
4988
N(SyntaxKind.
ScopedKeyword
);
5223
N(SyntaxKind.
ScopedKeyword
);
5296
N(SyntaxKind.
ScopedKeyword
);
5423
N(SyntaxKind.
ScopedKeyword
);
5492
N(SyntaxKind.
ScopedKeyword
);
5579
N(SyntaxKind.
ScopedKeyword
);
5665
N(SyntaxKind.
ScopedKeyword
);
5744
N(SyntaxKind.
ScopedKeyword
);
6275
N(SyntaxKind.
ScopedKeyword
);
6410
N(SyntaxKind.
ScopedKeyword
);
6537
N(SyntaxKind.
ScopedKeyword
);
6669
N(SyntaxKind.
ScopedKeyword
);
6821
N(SyntaxKind.
ScopedKeyword
);
6877
N(SyntaxKind.
ScopedKeyword
);
6937
N(SyntaxKind.
ScopedKeyword
);
7058
N(SyntaxKind.
ScopedKeyword
);
7114
N(SyntaxKind.
ScopedKeyword
);
7170
N(SyntaxKind.
ScopedKeyword
);
7230
N(SyntaxKind.
ScopedKeyword
);
7481
N(SyntaxKind.
ScopedKeyword
);
7561
N(SyntaxKind.
ScopedKeyword
);
7774
N(SyntaxKind.
ScopedKeyword
);
7965
N(SyntaxKind.
ScopedKeyword
);
8678
N(SyntaxKind.
ScopedKeyword
);
8769
N(SyntaxKind.
ScopedKeyword
);
8871
N(SyntaxKind.
ScopedKeyword
);
8988
N(SyntaxKind.
ScopedKeyword
);
9029
N(SyntaxKind.
ScopedKeyword
);
9074
N(SyntaxKind.
ScopedKeyword
);
9165
N(SyntaxKind.
ScopedKeyword
);
9206
N(SyntaxKind.
ScopedKeyword
);
9255
N(SyntaxKind.
ScopedKeyword
);
9296
N(SyntaxKind.
ScopedKeyword
);
9342
N(SyntaxKind.
ScopedKeyword
);
9511
N(SyntaxKind.
ScopedKeyword
);
9606
N(SyntaxKind.
ScopedKeyword
);
9624
N(SyntaxKind.
ScopedKeyword
);
9886
N(SyntaxKind.
ScopedKeyword
);
9990
N(SyntaxKind.
ScopedKeyword
);
10084
N(SyntaxKind.
ScopedKeyword
);
10189
N(SyntaxKind.
ScopedKeyword
);
10302
N(SyntaxKind.
ScopedKeyword
);
10340
N(SyntaxKind.
ScopedKeyword
);
10382
N(SyntaxKind.
ScopedKeyword
);
10467
N(SyntaxKind.
ScopedKeyword
);
10505
N(SyntaxKind.
ScopedKeyword
);
10543
N(SyntaxKind.
ScopedKeyword
);
10585
N(SyntaxKind.
ScopedKeyword
);
10770
N(SyntaxKind.
ScopedKeyword
);
10970
N(SyntaxKind.
ScopedKeyword
);
11158
N(SyntaxKind.
ScopedKeyword
);
11207
N(SyntaxKind.
ScopedKeyword
);
11574
N(SyntaxKind.
ScopedKeyword
);
11812
N(SyntaxKind.
ScopedKeyword
);
11999
N(SyntaxKind.
ScopedKeyword
);
12095
N(SyntaxKind.
ScopedKeyword
);
12140
N(SyntaxKind.
ScopedKeyword
);
12474
N(SyntaxKind.
ScopedKeyword
);
12580
N(SyntaxKind.
ScopedKeyword
);
12678
N(SyntaxKind.
ScopedKeyword
);
12784
N(SyntaxKind.
ScopedKeyword
);
12892
N(SyntaxKind.
ScopedKeyword
);
12938
N(SyntaxKind.
ScopedKeyword
);
12988
N(SyntaxKind.
ScopedKeyword
);
13089
N(SyntaxKind.
ScopedKeyword
);
13135
N(SyntaxKind.
ScopedKeyword
);
13189
N(SyntaxKind.
ScopedKeyword
);
13235
N(SyntaxKind.
ScopedKeyword
);
13285
N(SyntaxKind.
ScopedKeyword
);
13493
N(SyntaxKind.
ScopedKeyword
);
13555
N(SyntaxKind.
ScopedKeyword
);
14040
N(SyntaxKind.
ScopedKeyword
);
14169
N(SyntaxKind.
ScopedKeyword
);
14242
N(SyntaxKind.
ScopedKeyword
);
Parsing\LambdaParameterParsingTests.cs (1)
5670
N(SyntaxKind.
ScopedKeyword
);
Parsing\RefReadonlyTests.cs (1)
919
N(SyntaxKind.
ScopedKeyword
);
Parsing\TopLevelStatementsParsingTests.cs (1)
3103
N(SyntaxKind.
ScopedKeyword
);
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
80
public static readonly SyntaxToken ScopedKeyword = Token(SyntaxKind.
ScopedKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (4)
1107
if (token.Kind() is SyntaxKind.RefKeyword or SyntaxKind.InKeyword or SyntaxKind.ReadOnlyKeyword or SyntaxKind.OutKeyword or SyntaxKind.ThisKeyword or SyntaxKind.ParamsKeyword or SyntaxKind.
ScopedKeyword
)
1115
previousModifier = SyntaxKind.
ScopedKeyword
;
1265
else if (token.IsKind(SyntaxKind.
ScopedKeyword
) && token.Parent.IsKind(SyntaxKind.Parameter))
1871
if (token.IsKind(SyntaxKind.
ScopedKeyword
) && token.Parent is IncompleteMemberSyntax)
Microsoft.Interop.SourceGeneration (2)
Marshalling\MarshallerHelpers.cs (1)
419
tokens = tokens.Add(Token(SyntaxKind.
ScopedKeyword
));
Marshalling\StatefulMarshallingStrategy.cs (1)
142
declaration = declaration.AddModifiers(Token(SyntaxKind.
ScopedKeyword
));