51 references to GlobalKeyword
Microsoft.CodeAnalysis.CSharp (26)
_generated\0\Syntax.xml.Main.Generated.cs (2)
2281case SyntaxKind.GlobalKeyword: break; 4824case SyntaxKind.GlobalKeyword:
_generated\1\Syntax.xml.Internal.Generated.cs (4)
28550case SyntaxKind.GlobalKeyword: break; 31797case SyntaxKind.GlobalKeyword: 33977case SyntaxKind.GlobalKeyword: break; 37224case SyntaxKind.GlobalKeyword:
Binder\Binder_Symbols.cs (2)
367if (node.Identifier.Kind() == SyntaxKind.GlobalKeyword) 2667Debug.Assert(aliasOpt == null || aliasOpt == SyntaxFacts.GetText(SyntaxKind.GlobalKeyword));
Declarations\DeclarationTreeBuilder.cs (2)
444if (directive.GlobalKeyword.IsKind(SyntaxKind.GlobalKeyword)) 603if (directive.GlobalKeyword.IsKind(SyntaxKind.GlobalKeyword))
Parser\DocumentationCommentParser.cs (1)
1457if (alias.ContextualKind == SyntaxKind.GlobalKeyword)
Parser\LanguageParser.cs (6)
675if (this.CurrentToken.ContextualKind != SyntaxKind.GlobalKeyword || this.PeekToken(1).Kind != SyntaxKind.UsingKeyword) 965var globalToken = this.CurrentToken.ContextualKind == SyntaxKind.GlobalKeyword 1738if (this.CurrentToken.ContextualKind == SyntaxKind.GlobalKeyword && this.PeekToken(1).Kind == SyntaxKind.UsingKeyword) 3021if (CurrentToken.ContextualKind == SyntaxKind.GlobalKeyword && this.PeekToken(1).Kind == SyntaxKind.UsingKeyword) 3447if (this.CurrentToken.ContextualKind == SyntaxKind.GlobalKeyword && this.PeekToken(1).Kind == SyntaxKind.UsingKeyword) 7139if (identifierLeft.Identifier.ContextualKind == SyntaxKind.GlobalKeyword)
SymbolDisplay\SymbolDisplayVisitor.cs (1)
224SyntaxFacts.GetText(SyntaxKind.GlobalKeyword)));
SymbolDisplay\SymbolDisplayVisitor_Minimal.cs (1)
155AddKeyword(SyntaxKind.GlobalKeyword);
Symbols\Source\QuickAttributeChecker.cs (1)
99(!onlyGlobalAliases || usingDirective.GlobalKeyword.IsKind(SyntaxKind.GlobalKeyword)))
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (3)
497if (aliasSyntax.Identifier.ContextualKind() == SyntaxKind.GlobalKeyword) 654if (applyIsGlobalFilter.HasValue && usingDirective.GlobalKeyword.IsKind(SyntaxKind.GlobalKeyword) != applyIsGlobalFilter.GetValueOrDefault()) 666if (identifier.ContextualKind() == SyntaxKind.GlobalKeyword)
Syntax\SyntaxKindFacts.cs (3)
1278case SyntaxKind.GlobalKeyword: 1396return SyntaxKind.GlobalKeyword; 1844case SyntaxKind.GlobalKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
48public static readonly SyntaxToken GlobalKeyword = Token(SyntaxKind.GlobalKeyword);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
147public int GlobalKeyword => (int)SyntaxKind.GlobalKeyword;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
420(nextToken.Kind() == SyntaxKind.GlobalKeyword && nextToken.GetAncestor<UsingDirectiveSyntax>()?.GlobalKeyword == nextToken)) 639token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.GlobalKeyword))
Microsoft.CodeAnalysis.CSharp.Features (6)
Completion\KeywordRecommenders\GlobalKeywordRecommender.cs (1)
12internal sealed class GlobalKeywordRecommender() : AbstractSyntacticSingleKeywordRecommender(SyntaxKind.GlobalKeyword)
Completion\KeywordRecommenders\NamespaceKeywordRecommender.cs (1)
80(nextToken.Kind() == SyntaxKind.GlobalKeyword && nextToken.GetAncestor<UsingDirectiveSyntax>()?.GlobalKeyword == nextToken))
Completion\KeywordRecommenders\UsingKeywordRecommender.cs (4)
137if (token.Kind() == SyntaxKind.GlobalKeyword) 141else if (token.Kind() == SyntaxKind.IdentifierToken && SyntaxFacts.GetContextualKeywordKind((string)token.Value!) == SyntaxKind.GlobalKeyword) 149if (token.Kind() == SyntaxKind.GlobalKeyword) 153else if (token.Kind() == SyntaxKind.IdentifierToken && SyntaxFacts.GetContextualKeywordKind((string)token.Value!) == SyntaxKind.GlobalKeyword)
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (1)
Microsoft.NetCore.Analyzers\Runtime\CSharpForwardCancellationTokenToInvocationsFixer.TypeNameVisitor.cs (1)
179=> IdentifierName(Token(SyntaxKind.GlobalKeyword));
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
Classification\SyntaxClassification\NameSyntaxClassifier.cs (1)
137name.Identifier.IsKind(SyntaxKind.GlobalKeyword);
Rename\CSharpRenameRewriterLanguageService.cs (1)
537!token.IsKind(SyntaxKind.GlobalKeyword) &&
Simplification\Simplifiers\NameSimplifier.cs (1)
711aliasName.Alias.Identifier.IsKind(SyntaxKind.GlobalKeyword);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
48public static readonly SyntaxToken GlobalKeyword = Token(SyntaxKind.GlobalKeyword);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
147public int GlobalKeyword => (int)SyntaxKind.GlobalKeyword;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
420(nextToken.Kind() == SyntaxKind.GlobalKeyword && nextToken.GetAncestor<UsingDirectiveSyntax>()?.GlobalKeyword == nextToken)) 639token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.GlobalKeyword))
Microsoft.CodeAnalysis.Razor.Compiler (3)
CSharp\GlobalQualifiedTypeNameRewriter.cs (1)
98return SyntaxFactory.AliasQualifiedName(SyntaxFactory.IdentifierName(SyntaxFactory.Token(CSharp.SyntaxKind.GlobalKeyword)), node);
Language\Legacy\CSharpCodeParser.cs (2)
2470var atStaticOrGlobal = At(CSharpSyntaxKind.StaticKeyword, CSharpSyntaxKind.GlobalKeyword); 2565if (At(SyntaxKind.Identifier) || At(CSharpSyntaxKind.GlobalKeyword))
Roslyn.Diagnostics.CSharp.Analyzers (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
48public static readonly SyntaxToken GlobalKeyword = Token(SyntaxKind.GlobalKeyword);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
147public int GlobalKeyword => (int)SyntaxKind.GlobalKeyword;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
420(nextToken.Kind() == SyntaxKind.GlobalKeyword && nextToken.GetAncestor<UsingDirectiveSyntax>()?.GlobalKeyword == nextToken)) 639token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.GlobalKeyword))