diff options
Diffstat (limited to 'src/comp/syntax/ast.rs')
| -rw-r--r-- | src/comp/syntax/ast.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/comp/syntax/ast.rs b/src/comp/syntax/ast.rs index b286fdaf484..066a0b9675b 100644 --- a/src/comp/syntax/ast.rs +++ b/src/comp/syntax/ast.rs @@ -564,10 +564,15 @@ type view_item = spanned<view_item_>; // 'import ::foo' type simple_path = [ident]; +type import_ident_ = {name: ident, id: node_id}; + +type import_ident = spanned<import_ident_>; + tag view_item_ { view_item_use(ident, [@meta_item], node_id); view_item_import(ident, simple_path, node_id); view_item_import_glob(simple_path, node_id); + view_item_import_from(simple_path, [import_ident], node_id); view_item_export([ident], node_id); } |
