Refactor ast::view_item to differentiate between [ident]s and paths

This commit is contained in:
Brian Anderson 2011-08-16 14:22:07 -07:00
parent 67cc5b9e34
commit c6482c0083

View File

@ -560,10 +560,14 @@ fn ty_mach_to_str(tm: ty_mach) -> str {
type view_item = spanned<view_item_>;
// FIXME: May want to just use path here, which would allow things like
// 'import ::foo'
type simple_path = [ident];
tag view_item_ {
view_item_use(ident, [@meta_item], node_id);
view_item_import(ident, [ident], node_id);
view_item_import_glob([ident], node_id);
view_item_import(ident, simple_path, node_id);
view_item_import_glob(simple_path, node_id);
view_item_export([ident], node_id);
}