X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.scl.compiler%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Fcompilation%2FNamespaceOfModule.java;h=c010835e9dc1383081033c8c28da0408dfef7f7f;hp=8ade1602e23e730ba4e37227eb5ef09dd861eb7c;hb=a8758de5bc19e5adb3f618d3038743a164f09912;hpb=12d9af17384d960b75d58c3935d2b7b46d93e87b diff --git a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/compilation/NamespaceOfModule.java b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/compilation/NamespaceOfModule.java index 8ade1602e..c010835e9 100644 --- a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/compilation/NamespaceOfModule.java +++ b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/compilation/NamespaceOfModule.java @@ -4,9 +4,9 @@ import java.util.Arrays; import java.util.function.Consumer; import org.simantics.scl.compiler.elaboration.modules.SCLValue; -import org.simantics.scl.compiler.elaboration.modules.TypeAlias; import org.simantics.scl.compiler.elaboration.modules.TypeClass; import org.simantics.scl.compiler.elaboration.modules.TypeConstructor; +import org.simantics.scl.compiler.elaboration.modules.TypeDescriptor; import org.simantics.scl.compiler.elaboration.relations.SCLEntityType; import org.simantics.scl.compiler.elaboration.relations.SCLRelation; import org.simantics.scl.compiler.elaboration.rules.MappingRelation; @@ -59,9 +59,9 @@ public class NamespaceOfModule implements Namespace { throw new AmbiguousNameException(Arrays.asList(value.getName().module, value2.getName().module), value.getName().name); } else { - if(value != null) - return value; - return base.getValue(name); + if(value != null) + return value; + return base.getValue(name); } } @@ -83,12 +83,12 @@ public class NamespaceOfModule implements Namespace { } @Override - public TypeConstructor getTypeConstructor(String name) + public TypeDescriptor getTypeDescriptor(String name) throws AmbiguousNameException { - TypeConstructor typeConstructor = module.getTypeConstructor(name); - if(typeConstructor != null) - return typeConstructor; - return base.getTypeConstructor(name); + TypeDescriptor typeDescriptor = module.getTypeDescriptor(name); + if(typeDescriptor != null) + return typeDescriptor; + return base.getTypeDescriptor(name); } @Override @@ -107,14 +107,6 @@ public class NamespaceOfModule implements Namespace { return typeClass; return base.getTypeClass(name); } - - @Override - public TypeAlias getTypeAlias(String name) throws AmbiguousNameException { - TypeAlias typeAlias = module.getTypeAlias(name); - if(typeAlias != null) - return typeAlias; - return base.getTypeAlias(name); - } @Override public MappingRelation getMappingRelation(String name)