From 78f10fcdc41d5c58e386bc99a94b34a2bdbaa4cd Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 25 Feb 2019 13:38:52 +0300 Subject: rename type to type_alias in the AST as well --- crates/ra_parser/src/grammar/items.rs | 2 +- crates/ra_parser/src/syntax_kind/generated.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/ra_parser') diff --git a/crates/ra_parser/src/grammar/items.rs b/crates/ra_parser/src/grammar/items.rs index 4b962c1f3..ab9d2de90 100644 --- a/crates/ra_parser/src/grammar/items.rs +++ b/crates/ra_parser/src/grammar/items.rs @@ -173,7 +173,7 @@ fn items_without_modifiers(p: &mut Parser) -> Option { } TYPE_KW => { type_def(p); - TYPE_DEF + TYPE_ALIAS_DEF } MOD_KW => { mod_item(p); diff --git a/crates/ra_parser/src/syntax_kind/generated.rs b/crates/ra_parser/src/syntax_kind/generated.rs index 1d8f988ae..0eed44ecf 100644 --- a/crates/ra_parser/src/syntax_kind/generated.rs +++ b/crates/ra_parser/src/syntax_kind/generated.rs @@ -130,7 +130,7 @@ pub enum SyntaxKind { CONST_DEF, TRAIT_DEF, IMPL_BLOCK, - TYPE_DEF, + TYPE_ALIAS_DEF, MACRO_CALL, TOKEN_TREE, PAREN_TYPE, @@ -467,7 +467,7 @@ impl SyntaxKind { CONST_DEF => &SyntaxInfo { name: "CONST_DEF" }, TRAIT_DEF => &SyntaxInfo { name: "TRAIT_DEF" }, IMPL_BLOCK => &SyntaxInfo { name: "IMPL_BLOCK" }, - TYPE_DEF => &SyntaxInfo { name: "TYPE_DEF" }, + TYPE_ALIAS_DEF => &SyntaxInfo { name: "TYPE_ALIAS_DEF" }, MACRO_CALL => &SyntaxInfo { name: "MACRO_CALL" }, TOKEN_TREE => &SyntaxInfo { name: "TOKEN_TREE" }, PAREN_TYPE => &SyntaxInfo { name: "PAREN_TYPE" }, -- cgit v1.2.3