71 references to GlobalKeyword
Microsoft.CodeAnalysis.CSharp (20)
Binder\Binder_Symbols.cs (2)
355if (node.Identifier.Kind() == SyntaxKind.GlobalKeyword) 2582Debug.Assert(aliasOpt == null || aliasOpt == SyntaxFacts.GetText(SyntaxKind.GlobalKeyword));
Declarations\DeclarationTreeBuilder.cs (2)
442if (directive.GlobalKeyword.IsKind(SyntaxKind.GlobalKeyword)) 601if (directive.GlobalKeyword.IsKind(SyntaxKind.GlobalKeyword))
Parser\DocumentationCommentParser.cs (1)
1385if (alias.ContextualKind == SyntaxKind.GlobalKeyword)
Parser\LanguageParser.cs (6)
676if (this.CurrentToken.ContextualKind != SyntaxKind.GlobalKeyword || this.PeekToken(1).Kind != SyntaxKind.UsingKeyword) 957var globalToken = this.CurrentToken.ContextualKind == SyntaxKind.GlobalKeyword 1673if (this.CurrentToken.ContextualKind == SyntaxKind.GlobalKeyword && this.PeekToken(1).Kind == SyntaxKind.UsingKeyword) 2886if (CurrentToken.ContextualKind == SyntaxKind.GlobalKeyword && this.PeekToken(1).Kind == SyntaxKind.UsingKeyword) 3212if (this.CurrentToken.ContextualKind == SyntaxKind.GlobalKeyword && this.PeekToken(1).Kind == SyntaxKind.UsingKeyword) 6740if (identifierLeft.Identifier.ContextualKind == SyntaxKind.GlobalKeyword)
SymbolDisplay\SymbolDisplayVisitor.cs (1)
224SyntaxFacts.GetText(SyntaxKind.GlobalKeyword)));
SymbolDisplay\SymbolDisplayVisitor_Minimal.cs (1)
154AddKeyword(SyntaxKind.GlobalKeyword);
Symbols\Source\QuickAttributeChecker.cs (1)
98(!onlyGlobalAliases || usingDirective.GlobalKeyword.IsKind(SyntaxKind.GlobalKeyword)))
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (3)
497if (aliasSyntax.Identifier.ContextualKind() == SyntaxKind.GlobalKeyword) 653if (applyIsGlobalFilter.HasValue && usingDirective.GlobalKeyword.IsKind(SyntaxKind.GlobalKeyword) != applyIsGlobalFilter.GetValueOrDefault()) 665if (identifier.ContextualKind() == SyntaxKind.GlobalKeyword)
Syntax\SyntaxKindFacts.cs (3)
1207case SyntaxKind.GlobalKeyword: 1321return SyntaxKind.GlobalKeyword; 1761case SyntaxKind.GlobalKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
37public static readonly SyntaxToken GlobalKeyword = Token(SyntaxKind.GlobalKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
139public 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)) 631token.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)
142if (token.Kind() == SyntaxKind.GlobalKeyword) 146else if (token.Kind() == SyntaxKind.IdentifierToken && SyntaxFacts.GetContextualKeywordKind((string)token.Value!) == SyntaxKind.GlobalKeyword) 154if (token.Kind() == SyntaxKind.GlobalKeyword) 158else if (token.Kind() == SyntaxKind.IdentifierToken && SyntaxFacts.GetContextualKeywordKind((string)token.Value!) == SyntaxKind.GlobalKeyword)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (34)
LexicalAndXml\CrefLexerTests.cs (3)
40AssertTokens("global", Token(SyntaxKind.IdentifierToken, contextualKind: SyntaxKind.GlobalKeyword)); 49AssertTokens("&#103;lobal", Token(SyntaxKind.IdentifierToken, "&#103;lobal", "global", SyntaxKind.GlobalKeyword)); 58AssertTokens("&#103;loba&#108;", Token(SyntaxKind.IdentifierToken, "&#103;loba&#108;", "global", SyntaxKind.GlobalKeyword));
Parsing\CrefParsingTests.cs (3)
2328N(SyntaxKind.GlobalKeyword); 2398N(SyntaxKind.GlobalKeyword); 2420N(SyntaxKind.GlobalKeyword);
Parsing\LambdaReturnTypeParsingTests.cs (1)
2118N(SyntaxKind.GlobalKeyword);
Parsing\NameParsingTests.cs (2)
137Assert.Equal(SyntaxKind.GlobalKeyword, an.Alias.Identifier.Kind()); 1465N(SyntaxKind.GlobalKeyword);
Parsing\PatternParsingTests.cs (2)
11762N(SyntaxKind.GlobalKeyword); 11827N(SyntaxKind.GlobalKeyword);
Parsing\TopLevelStatementsParsingTests.cs (3)
3298N(SyntaxKind.GlobalKeyword); 3308N(SyntaxKind.GlobalKeyword); 3451N(SyntaxKind.GlobalKeyword);
Syntax\SyntaxTreeTests.cs (20)
346N(SyntaxKind.GlobalKeyword); 381N(SyntaxKind.GlobalKeyword); 413N(SyntaxKind.GlobalKeyword); 461N(SyntaxKind.GlobalKeyword); 487N(SyntaxKind.GlobalKeyword); 523N(SyntaxKind.GlobalKeyword); 556N(SyntaxKind.GlobalKeyword); 605N(SyntaxKind.GlobalKeyword); 632N(SyntaxKind.GlobalKeyword); 678N(SyntaxKind.GlobalKeyword); 718N(SyntaxKind.GlobalKeyword); 777N(SyntaxKind.GlobalKeyword); 849N(SyntaxKind.GlobalKeyword); 920N(SyntaxKind.GlobalKeyword); 985N(SyntaxKind.GlobalKeyword); 1049N(SyntaxKind.GlobalKeyword); 1059N(SyntaxKind.GlobalKeyword); 1127N(SyntaxKind.GlobalKeyword); 1183N(SyntaxKind.GlobalKeyword); 1255N(SyntaxKind.GlobalKeyword);
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
Classification\SyntaxClassification\NameSyntaxClassifier.cs (1)
138name.Identifier.IsKind(SyntaxKind.GlobalKeyword);
Rename\CSharpRenameRewriterLanguageService.cs (1)
543!token.IsKind(SyntaxKind.GlobalKeyword) &&
Simplification\Simplifiers\NameSimplifier.cs (1)
712aliasName.Alias.Identifier.IsKind(SyntaxKind.GlobalKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
37public static readonly SyntaxToken GlobalKeyword = Token(SyntaxKind.GlobalKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
139public 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)) 631token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.GlobalKeyword))