]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/environment/EmptyNamespace.java
New SCL completion implementation
[simantics/platform.git] / bundles / org.simantics.scl.compiler / src / org / simantics / scl / compiler / environment / EmptyNamespace.java
index c5cd410f48b4aa5e0d346991dd3a0fc473a170d2..9e86a7e9d4f159ff8e230668d390b9818829687a 100644 (file)
@@ -1,5 +1,7 @@
 package org.simantics.scl.compiler.environment;
 
+import java.util.Collection;
+import java.util.Collections;
 import java.util.function.Consumer;
 
 import org.simantics.scl.compiler.elaboration.chr.CHRRuleset;
@@ -23,6 +25,11 @@ public enum EmptyNamespace implements Namespace {
     public Namespace getNamespace(String name) {
         return null;
     }
+    
+    @Override
+    public Collection<String> getNamespaces() {
+        return Collections.emptyList();
+    }
 
     @Override
     public SCLValue getValue(String name) throws AmbiguousNameException {