names
This commit is contained in:
parent
6368d10d92
commit
dbd81ca83d
@ -39,7 +39,14 @@ impl<'a> ScopeResolver<'a> {
|
|||||||
self.name_scope_stack.insert(name.clone(), fqsn_prefix);
|
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(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user