From dbd81ca83d84f2c165168479db2f4b5faac8313a Mon Sep 17 00:00:00 2001 From: greg Date: Tue, 24 Sep 2019 19:24:07 -0700 Subject: [PATCH] names --- schala-lang/language/src/scope_resolution.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/schala-lang/language/src/scope_resolution.rs b/schala-lang/language/src/scope_resolution.rs index 75586c7..66377f7 100644 --- a/schala-lang/language/src/scope_resolution.rs +++ b/schala-lang/language/src/scope_resolution.rs @@ -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(()) }