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_syntax/src/grammar.ron | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/ra_syntax/src/grammar.ron') diff --git a/crates/ra_syntax/src/grammar.ron b/crates/ra_syntax/src/grammar.ron index b1775d0f8..c7acbbd6c 100644 --- a/crates/ra_syntax/src/grammar.ron +++ b/crates/ra_syntax/src/grammar.ron @@ -132,7 +132,7 @@ Grammar( "CONST_DEF", "TRAIT_DEF", "IMPL_BLOCK", - "TYPE_DEF", + "TYPE_ALIAS_DEF", "MACRO_CALL", "TOKEN_TREE", @@ -312,7 +312,7 @@ Grammar( ], options: ["TypeRef"] ), - "TypeDef": ( + "TypeAliasDef": ( traits: [ "VisibilityOwner", "NameOwner", @@ -363,11 +363,11 @@ Grammar( ], ), "ModuleItem": ( - enum: ["StructDef", "EnumDef", "FnDef", "TraitDef", "TypeDef", "ImplBlock", + enum: ["StructDef", "EnumDef", "FnDef", "TraitDef", "TypeAliasDef", "ImplBlock", "UseItem", "ExternCrateItem", "ConstDef", "StaticDef", "Module" ] ), "ImplItem": ( - enum: ["FnDef", "TypeDef", "ConstDef"] + enum: ["FnDef", "TypeAliasDef", "ConstDef"] ), "TupleExpr": ( -- cgit v1.2.3