21 references to AliasKeyword
Microsoft.CodeAnalysis.CSharp (5)
Parser\LanguageParser.cs (2)
921&& this.PeekToken(1) is { Kind: SyntaxKind.IdentifierToken, ContextualKind: SyntaxKind.AliasKeyword } 937this.EatContextualToken(SyntaxKind.AliasKeyword),
Syntax\SyntaxKindFacts.cs (3)
1199case SyntaxKind.AliasKeyword: 1295return SyntaxKind.AliasKeyword; 1735case SyntaxKind.AliasKeyword:
Microsoft.CodeAnalysis.CSharp.Features (3)
Completion\CompletionProviders\ExternAliasCompletionProvider.cs (2)
58if (!targetToken.IsKind(SyntaxKind.AliasKeyword) 59&& !(targetToken.IsKind(SyntaxKind.IdentifierToken) && targetToken.HasMatchingText(SyntaxKind.AliasKeyword)))
Completion\KeywordRecommenders\AliasKeywordRecommender.cs (1)
15: base(SyntaxKind.AliasKeyword)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (13)
Generated\Syntax.Test.xml.Generated.cs (4)
467=> InternalSyntaxFactory.ExternAliasDirective(InternalSyntaxFactory.Token(SyntaxKind.ExternKeyword), InternalSyntaxFactory.Token(SyntaxKind.AliasKeyword), InternalSyntaxFactory.Identifier("Identifier"), InternalSyntaxFactory.Token(SyntaxKind.SemicolonToken)); 2607Assert.Equal(SyntaxKind.AliasKeyword, node.AliasKeyword.Kind); 10683=> SyntaxFactory.ExternAliasDirective(SyntaxFactory.Token(SyntaxKind.ExternKeyword), SyntaxFactory.Token(SyntaxKind.AliasKeyword), SyntaxFactory.Identifier("Identifier"), SyntaxFactory.Token(SyntaxKind.SemicolonToken)); 12823Assert.Equal(SyntaxKind.AliasKeyword, node.AliasKeyword.Kind());
Parsing\DeclarationParsingTests.cs (1)
44Assert.Equal(SyntaxKind.AliasKeyword, ea.AliasKeyword.Kind());
Parsing\ScriptParsingTests.cs (1)
1755N(SyntaxKind.AliasKeyword);
Parsing\SingleLineDeclarationParsingTests.cs (2)
630N(SyntaxKind.AliasKeyword); 668N(SyntaxKind.AliasKeyword);
Syntax\SyntaxNodeTests.cs (5)
564Assert.Equal(SyntaxKind.AliasKeyword, tokens[1].Kind()); 581Assert.Equal(SyntaxKind.AliasKeyword, tokens[1].Kind()); 593Assert.Equal(SyntaxKind.AliasKeyword, tokens[1].Kind()); 604Assert.Equal(SyntaxKind.AliasKeyword, tokens[0].Kind()); 617Assert.Equal(SyntaxKind.AliasKeyword, tokens[0].Kind());