This commit is contained in:
greg 2019-09-24 19:24:07 -07:00
parent 6368d10d92
commit dbd81ca83d

View File

@ -39,7 +39,14 @@ impl<'a> ScopeResolver<'a> {
self.name_scope_stack.insert(name.clone(), fqsn_prefix);
()
}
ImportedNames::List(ref names) => unimplemented!()
ImportedNames::List(ref names) => {
let fqsn_prefix: FQSNPrefix = path_components.iter().map(|c| ScopeSegment {
name: c.clone(), kind: ScopeSegmentKind::Type
}).collect();
for name in names.iter() {
self.name_scope_stack.insert(name.clone(), fqsn_prefix.clone());
}
}
};
Ok(())
}