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