aboutsummaryrefslogtreecommitdiff
path: root/crates/libeditor/src/scope/mod_scope.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-09-01 10:30:53 +0100
committerAleksey Kladov <[email protected]>2018-09-01 10:30:53 +0100
commit2161a1689d53be4c4c5ab9353735975e9949fb02 (patch)
treefb68f0f0a8346b80e0d576db9d447e7c841fd709 /crates/libeditor/src/scope/mod_scope.rs
parentf2772e29aeda5e35c282f3b023ce9d470f3fb441 (diff)
Type aliases to scope
Diffstat (limited to 'crates/libeditor/src/scope/mod_scope.rs')
-rw-r--r--crates/libeditor/src/scope/mod_scope.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/libeditor/src/scope/mod_scope.rs b/crates/libeditor/src/scope/mod_scope.rs
index 25faee3b8..052f70569 100644
--- a/crates/libeditor/src/scope/mod_scope.rs
+++ b/crates/libeditor/src/scope/mod_scope.rs
@@ -26,6 +26,7 @@ impl ModuleScope {
26 ast::ModuleItem::ConstDef(item) => Entry::new(item), 26 ast::ModuleItem::ConstDef(item) => Entry::new(item),
27 ast::ModuleItem::StaticDef(item) => Entry::new(item), 27 ast::ModuleItem::StaticDef(item) => Entry::new(item),
28 ast::ModuleItem::TraitDef(item) => Entry::new(item), 28 ast::ModuleItem::TraitDef(item) => Entry::new(item),
29 ast::ModuleItem::TypeDef(item) => Entry::new(item),
29 ast::ModuleItem::Module(item) => Entry::new(item), 30 ast::ModuleItem::Module(item) => Entry::new(item),
30 ast::ModuleItem::UseItem(item) => { 31 ast::ModuleItem::UseItem(item) => {
31 if let Some(tree) = item.use_tree() { 32 if let Some(tree) = item.use_tree() {
@@ -104,6 +105,7 @@ mod tests {
104 y::z, 105 y::z,
105 t, 106 t,
106 }; 107 };
107 ", &["Foo", "Bar", "baz", "quux", "z", "t"]) 108 type T = ();
109 ", &["Foo", "Bar", "baz", "quux", "z", "t", "T"])
108 } 110 }
109} 111}