diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-08-16 14:22:07 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-08-17 11:04:05 -0700 |
| commit | c6482c00834af5df92233e4af7e1714b7e97ce80 (patch) | |
| tree | 23826c004766a3966289e143d3f02be4a306a42c | |
| parent | 67cc5b9e346cba9cc8fdaa00e38ef26b4d9936cf (diff) | |
Refactor ast::view_item to differentiate between [ident]s and paths
| -rw-r--r-- | src/comp/syntax/ast.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/comp/syntax/ast.rs b/src/comp/syntax/ast.rs index ec63af65729..b286fdaf484 100644 --- a/src/comp/syntax/ast.rs +++ b/src/comp/syntax/ast.rs @@ -560,10 +560,14 @@ type variant = spanned<variant_>; 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); } |
