Allow multiple imports in a single statement

Like so: import foo::{bar, baz};

Issue #817
This commit is contained in:
Brian Anderson 2011-08-16 15:21:30 -07:00
parent c4ce463f37
commit cd54e77720
10 changed files with 155 additions and 3 deletions

View file

@ -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);
}