21 references to AliasKeyword
Microsoft.CodeAnalysis.CSharp (5)
Parser\LanguageParser.cs (2)
921
&& this.PeekToken(1) is { Kind: SyntaxKind.IdentifierToken, ContextualKind: SyntaxKind.
AliasKeyword
}
937
this.EatContextualToken(SyntaxKind.
AliasKeyword
),
Syntax\SyntaxKindFacts.cs (3)
1199
case SyntaxKind.
AliasKeyword
:
1295
return SyntaxKind.
AliasKeyword
;
1735
case SyntaxKind.
AliasKeyword
:
Microsoft.CodeAnalysis.CSharp.Features (3)
Completion\CompletionProviders\ExternAliasCompletionProvider.cs (2)
58
if (!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));
2607
Assert.Equal(SyntaxKind.
AliasKeyword
, node.AliasKeyword.Kind);
10683
=> SyntaxFactory.ExternAliasDirective(SyntaxFactory.Token(SyntaxKind.ExternKeyword), SyntaxFactory.Token(SyntaxKind.
AliasKeyword
), SyntaxFactory.Identifier("Identifier"), SyntaxFactory.Token(SyntaxKind.SemicolonToken));
12823
Assert.Equal(SyntaxKind.
AliasKeyword
, node.AliasKeyword.Kind());
Parsing\DeclarationParsingTests.cs (1)
44
Assert.Equal(SyntaxKind.
AliasKeyword
, ea.AliasKeyword.Kind());
Parsing\ScriptParsingTests.cs (1)
1755
N(SyntaxKind.
AliasKeyword
);
Parsing\SingleLineDeclarationParsingTests.cs (2)
630
N(SyntaxKind.
AliasKeyword
);
668
N(SyntaxKind.
AliasKeyword
);
Syntax\SyntaxNodeTests.cs (5)
564
Assert.Equal(SyntaxKind.
AliasKeyword
, tokens[1].Kind());
581
Assert.Equal(SyntaxKind.
AliasKeyword
, tokens[1].Kind());
593
Assert.Equal(SyntaxKind.
AliasKeyword
, tokens[1].Kind());
604
Assert.Equal(SyntaxKind.
AliasKeyword
, tokens[0].Kind());
617
Assert.Equal(SyntaxKind.
AliasKeyword
, tokens[0].Kind());