80 references to GlobalKeyword
Microsoft.CodeAnalysis.CSharp (20)
Binder\Binder_Symbols.cs (2)
353if (node.Identifier.Kind() == SyntaxKind.GlobalKeyword) 2536Debug.Assert(aliasOpt == null || aliasOpt == SyntaxFacts.GetText(SyntaxKind.GlobalKeyword));
Declarations\DeclarationTreeBuilder.cs (2)
358if (directive.GlobalKeyword.IsKind(SyntaxKind.GlobalKeyword)) 517if (directive.GlobalKeyword.IsKind(SyntaxKind.GlobalKeyword))
Parser\DocumentationCommentParser.cs (1)
1375if (alias.ContextualKind == SyntaxKind.GlobalKeyword)
Parser\LanguageParser.cs (6)
518if (this.CurrentToken.ContextualKind != SyntaxKind.GlobalKeyword || this.PeekToken(1).Kind != SyntaxKind.UsingKeyword) 789var globalToken = this.CurrentToken.ContextualKind == SyntaxKind.GlobalKeyword 1399if (this.CurrentToken.ContextualKind == SyntaxKind.GlobalKeyword && this.PeekToken(1).Kind == SyntaxKind.UsingKeyword) 2570if (CurrentToken.ContextualKind == SyntaxKind.GlobalKeyword && this.PeekToken(1).Kind == SyntaxKind.UsingKeyword) 2896if (this.CurrentToken.ContextualKind == SyntaxKind.GlobalKeyword && this.PeekToken(1).Kind == SyntaxKind.UsingKeyword) 6340if (identifierLeft.Identifier.ContextualKind == SyntaxKind.GlobalKeyword)
SymbolDisplay\SymbolDisplayVisitor.cs (1)
173SyntaxFacts.GetText(SyntaxKind.GlobalKeyword)));
SymbolDisplay\SymbolDisplayVisitor_Minimal.cs (1)
149AddKeyword(SyntaxKind.GlobalKeyword);
Symbols\Source\QuickAttributeChecker.cs (1)
98(!onlyGlobalAliases || usingDirective.GlobalKeyword.IsKind(SyntaxKind.GlobalKeyword)))
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (3)
486if (aliasSyntax.Identifier.ContextualKind() == SyntaxKind.GlobalKeyword) 642if (applyIsGlobalFilter.HasValue && usingDirective.GlobalKeyword.IsKind(SyntaxKind.GlobalKeyword) != applyIsGlobalFilter.GetValueOrDefault()) 654if (identifier.ContextualKind() == SyntaxKind.GlobalKeyword)
Syntax\SyntaxKindFacts.cs (3)
1174case SyntaxKind.GlobalKeyword: 1287return SyntaxKind.GlobalKeyword; 1725case SyntaxKind.GlobalKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
CSharpSyntaxKinds.cs (1)
125public int GlobalKeyword => (int)SyntaxKind.GlobalKeyword;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (6)
ExpressionGenerator.cs (1)
302ExpressionSyntax result = SyntaxFactory.IdentifierName(SyntaxFactory.Token(SyntaxKind.GlobalKeyword));
ITypeSymbolExtensions.ExpressionSyntaxGeneratorVisitor.cs (2)
68SyntaxFactory.IdentifierName(SyntaxFactory.Token(SyntaxKind.GlobalKeyword)), 94SyntaxFactory.IdentifierName(SyntaxFactory.Token(SyntaxKind.GlobalKeyword)),
ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
217=> SyntaxFactory.IdentifierName(SyntaxFactory.Token(SyntaxKind.GlobalKeyword));
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (2)
419(nextToken.Kind() == SyntaxKind.GlobalKeyword && nextToken.GetAncestor<UsingDirectiveSyntax>()?.GlobalKeyword == nextToken)) 631token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.GlobalKeyword))
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (1)
CompilationContext.cs (1)
1212syntax = SyntaxFactory.IdentifierName(SyntaxFactory.Token(SyntaxKind.GlobalKeyword));
Microsoft.CodeAnalysis.CSharp.Features (7)
CodeRefactorings\SyncNamespace\CSharpChangeNamespaceService.cs (1)
211var aliasNode = aliasQualifier?.ToIdentifierName() ?? SyntaxFactory.IdentifierName(SyntaxFactory.Token(SyntaxKind.GlobalKeyword));
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 (33)
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)
2001N(SyntaxKind.GlobalKeyword); 2071N(SyntaxKind.GlobalKeyword); 2093N(SyntaxKind.GlobalKeyword);
Parsing\LambdaReturnTypeParsingTests.cs (1)
2045N(SyntaxKind.GlobalKeyword);
Parsing\NameParsingTests.cs (1)
139Assert.Equal(SyntaxKind.GlobalKeyword, an.Alias.Identifier.Kind());
Parsing\PatternParsingTests.cs (2)
11801N(SyntaxKind.GlobalKeyword); 11866N(SyntaxKind.GlobalKeyword);
Parsing\TopLevelStatementsParsingTests.cs (3)
3295N(SyntaxKind.GlobalKeyword); 3305N(SyntaxKind.GlobalKeyword); 3448N(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 (12)
Classification\SyntaxClassification\NameSyntaxClassifier.cs (1)
150identifierNameSyntax.Identifier.IsKind(SyntaxKind.GlobalKeyword);
CodeGeneration\CSharpSyntaxGenerator.cs (1)
3426SyntaxFactory.IdentifierName(SyntaxFactory.Token(SyntaxKind.GlobalKeyword)),
CSharpSyntaxKinds.cs (1)
125public int GlobalKeyword => (int)SyntaxKind.GlobalKeyword;
ExpressionGenerator.cs (1)
302ExpressionSyntax result = SyntaxFactory.IdentifierName(SyntaxFactory.Token(SyntaxKind.GlobalKeyword));
ITypeSymbolExtensions.ExpressionSyntaxGeneratorVisitor.cs (2)
68SyntaxFactory.IdentifierName(SyntaxFactory.Token(SyntaxKind.GlobalKeyword)), 94SyntaxFactory.IdentifierName(SyntaxFactory.Token(SyntaxKind.GlobalKeyword)),
ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
217=> SyntaxFactory.IdentifierName(SyntaxFactory.Token(SyntaxKind.GlobalKeyword));
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (2)
419(nextToken.Kind() == SyntaxKind.GlobalKeyword && nextToken.GetAncestor<UsingDirectiveSyntax>()?.GlobalKeyword == nextToken)) 631token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.GlobalKeyword))
Rename\CSharpRenameRewriterLanguageService.cs (1)
546!token.IsKind(SyntaxKind.GlobalKeyword) &&
Simplification\CSharpSimplificationService.Expander.cs (1)
919SyntaxFactory.IdentifierName(SyntaxFactory.Token(SyntaxKind.GlobalKeyword)),
Simplification\Simplifiers\NameSimplifier.cs (1)
692aliasName.Alias.Identifier.IsKind(SyntaxKind.GlobalKeyword);