mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Parse trait alias as a distinct AST type
This commit is contained in:
parent
9b441b9c67
commit
2e7d2c2d04
11 changed files with 103 additions and 10 deletions
|
@ -20,7 +20,7 @@ pub(super) fn trait_(p: &mut Parser<'_>, m: Marker) {
|
|||
// trait Z<U> = where Self: T<U>;
|
||||
generic_params::opt_where_clause(p);
|
||||
p.expect(T![;]);
|
||||
m.complete(p, TRAIT);
|
||||
m.complete(p, TRAIT_ALIAS);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -135,6 +135,7 @@ pub enum SyntaxKind {
|
|||
STATIC,
|
||||
CONST,
|
||||
TRAIT,
|
||||
TRAIT_ALIAS,
|
||||
IMPL,
|
||||
TYPE_ALIAS,
|
||||
MACRO_CALL,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue