72 references to GlobalKeyword
Microsoft.CodeAnalysis.CSharp (20)
Binder\Binder_Symbols.cs (2)
355
if (node.Identifier.Kind() == SyntaxKind.
GlobalKeyword
)
2582
Debug.Assert(aliasOpt == null || aliasOpt == SyntaxFacts.GetText(SyntaxKind.
GlobalKeyword
));
Declarations\DeclarationTreeBuilder.cs (2)
442
if (directive.GlobalKeyword.IsKind(SyntaxKind.
GlobalKeyword
))
601
if (directive.GlobalKeyword.IsKind(SyntaxKind.
GlobalKeyword
))
Parser\DocumentationCommentParser.cs (1)
1385
if (alias.ContextualKind == SyntaxKind.
GlobalKeyword
)
Parser\LanguageParser.cs (6)
676
if (this.CurrentToken.ContextualKind != SyntaxKind.
GlobalKeyword
|| this.PeekToken(1).Kind != SyntaxKind.UsingKeyword)
957
var globalToken = this.CurrentToken.ContextualKind == SyntaxKind.
GlobalKeyword
1673
if (this.CurrentToken.ContextualKind == SyntaxKind.
GlobalKeyword
&& this.PeekToken(1).Kind == SyntaxKind.UsingKeyword)
2904
if (CurrentToken.ContextualKind == SyntaxKind.
GlobalKeyword
&& this.PeekToken(1).Kind == SyntaxKind.UsingKeyword)
3230
if (this.CurrentToken.ContextualKind == SyntaxKind.
GlobalKeyword
&& this.PeekToken(1).Kind == SyntaxKind.UsingKeyword)
6758
if (identifierLeft.Identifier.ContextualKind == SyntaxKind.
GlobalKeyword
)
SymbolDisplay\SymbolDisplayVisitor.cs (1)
224
SyntaxFacts.GetText(SyntaxKind.
GlobalKeyword
)));
SymbolDisplay\SymbolDisplayVisitor_Minimal.cs (1)
154
AddKeyword(SyntaxKind.
GlobalKeyword
);
Symbols\Source\QuickAttributeChecker.cs (1)
98
(!onlyGlobalAliases || usingDirective.GlobalKeyword.IsKind(SyntaxKind.
GlobalKeyword
)))
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (3)
497
if (aliasSyntax.Identifier.ContextualKind() == SyntaxKind.
GlobalKeyword
)
653
if (applyIsGlobalFilter.HasValue && usingDirective.GlobalKeyword.IsKind(SyntaxKind.
GlobalKeyword
) != applyIsGlobalFilter.GetValueOrDefault())
665
if (identifier.ContextualKind() == SyntaxKind.
GlobalKeyword
)
Syntax\SyntaxKindFacts.cs (3)
1207
case SyntaxKind.
GlobalKeyword
:
1321
return SyntaxKind.
GlobalKeyword
;
1761
case SyntaxKind.
GlobalKeyword
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
37
public static readonly SyntaxToken GlobalKeyword = Token(SyntaxKind.
GlobalKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
141
public int GlobalKeyword => (int)SyntaxKind.
GlobalKeyword
;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
419
(nextToken.Kind() == SyntaxKind.
GlobalKeyword
&& nextToken.GetAncestor<UsingDirectiveSyntax>()?.GlobalKeyword == nextToken))
631
token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.
GlobalKeyword
))
Microsoft.CodeAnalysis.CSharp.Features (6)
Completion\KeywordRecommenders\GlobalKeywordRecommender.cs (1)
15
: base(SyntaxKind.
GlobalKeyword
)
Completion\KeywordRecommenders\NamespaceKeywordRecommender.cs (1)
85
(nextToken.Kind() == SyntaxKind.
GlobalKeyword
&& nextToken.GetAncestor<UsingDirectiveSyntax>()?.GlobalKeyword == nextToken))
Completion\KeywordRecommenders\UsingKeywordRecommender.cs (4)
142
if (token.Kind() == SyntaxKind.
GlobalKeyword
)
146
else if (token.Kind() == SyntaxKind.IdentifierToken && SyntaxFacts.GetContextualKeywordKind((string)token.Value!) == SyntaxKind.
GlobalKeyword
)
154
if (token.Kind() == SyntaxKind.
GlobalKeyword
)
158
else if (token.Kind() == SyntaxKind.IdentifierToken && SyntaxFacts.GetContextualKeywordKind((string)token.Value!) == SyntaxKind.
GlobalKeyword
)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (34)
LexicalAndXml\CrefLexerTests.cs (3)
40
AssertTokens("global", Token(SyntaxKind.IdentifierToken, contextualKind: SyntaxKind.
GlobalKeyword
));
49
AssertTokens("global", Token(SyntaxKind.IdentifierToken, "global", "global", SyntaxKind.
GlobalKeyword
));
58
AssertTokens("global", Token(SyntaxKind.IdentifierToken, "global", "global", SyntaxKind.
GlobalKeyword
));
Parsing\CrefParsingTests.cs (3)
2328
N(SyntaxKind.
GlobalKeyword
);
2398
N(SyntaxKind.
GlobalKeyword
);
2420
N(SyntaxKind.
GlobalKeyword
);
Parsing\LambdaReturnTypeParsingTests.cs (1)
2118
N(SyntaxKind.
GlobalKeyword
);
Parsing\NameParsingTests.cs (2)
137
Assert.Equal(SyntaxKind.
GlobalKeyword
, an.Alias.Identifier.Kind());
1465
N(SyntaxKind.
GlobalKeyword
);
Parsing\PatternParsingTests.cs (2)
11762
N(SyntaxKind.
GlobalKeyword
);
11827
N(SyntaxKind.
GlobalKeyword
);
Parsing\TopLevelStatementsParsingTests.cs (3)
3298
N(SyntaxKind.
GlobalKeyword
);
3308
N(SyntaxKind.
GlobalKeyword
);
3451
N(SyntaxKind.
GlobalKeyword
);
Syntax\SyntaxTreeTests.cs (20)
346
N(SyntaxKind.
GlobalKeyword
);
381
N(SyntaxKind.
GlobalKeyword
);
413
N(SyntaxKind.
GlobalKeyword
);
461
N(SyntaxKind.
GlobalKeyword
);
487
N(SyntaxKind.
GlobalKeyword
);
523
N(SyntaxKind.
GlobalKeyword
);
556
N(SyntaxKind.
GlobalKeyword
);
605
N(SyntaxKind.
GlobalKeyword
);
632
N(SyntaxKind.
GlobalKeyword
);
678
N(SyntaxKind.
GlobalKeyword
);
718
N(SyntaxKind.
GlobalKeyword
);
777
N(SyntaxKind.
GlobalKeyword
);
849
N(SyntaxKind.
GlobalKeyword
);
920
N(SyntaxKind.
GlobalKeyword
);
985
N(SyntaxKind.
GlobalKeyword
);
1049
N(SyntaxKind.
GlobalKeyword
);
1059
N(SyntaxKind.
GlobalKeyword
);
1127
N(SyntaxKind.
GlobalKeyword
);
1183
N(SyntaxKind.
GlobalKeyword
);
1255
N(SyntaxKind.
GlobalKeyword
);
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
Classification\SyntaxClassification\NameSyntaxClassifier.cs (1)
138
name.Identifier.IsKind(SyntaxKind.
GlobalKeyword
);
Rename\CSharpRenameRewriterLanguageService.cs (1)
538
!token.IsKind(SyntaxKind.
GlobalKeyword
) &&
Simplification\Simplifiers\NameSimplifier.cs (1)
712
aliasName.Alias.Identifier.IsKind(SyntaxKind.
GlobalKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
37
public static readonly SyntaxToken GlobalKeyword = Token(SyntaxKind.
GlobalKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
141
public int GlobalKeyword => (int)SyntaxKind.
GlobalKeyword
;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
419
(nextToken.Kind() == SyntaxKind.
GlobalKeyword
&& nextToken.GetAncestor<UsingDirectiveSyntax>()?.GlobalKeyword == nextToken))
631
token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.
GlobalKeyword
))
Microsoft.VisualStudio.LanguageServices.CSharp (1)
LanguageService\CSharpHelpContextService.cs (1)
444
case SyntaxKind.
GlobalKeyword
when token.Parent is UsingDirectiveSyntax: