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%2Fenvironment%2FNamespace.java;h=3253931feb4dcb396167418c5b07b6d89f3af5c6;hp=921b9029d2d2e7e028e8a1a746908f5305ef6324;hb=a8758de5bc19e5adb3f618d3038743a164f09912;hpb=12d9af17384d960b75d58c3935d2b7b46d93e87b diff --git a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/environment/Namespace.java b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/environment/Namespace.java index 921b9029d..3253931fe 100644 --- a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/environment/Namespace.java +++ b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/environment/Namespace.java @@ -3,9 +3,8 @@ package org.simantics.scl.compiler.environment; 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; @@ -52,13 +51,13 @@ public interface Namespace { SCLEntityType getEntityType(String name) throws AmbiguousNameException; /** - * Get a TypeConstructor for a given name. The same instance is returned on each call. + * Get a TypeDescriptor for a given name. The same instance is returned on each call. * @param name the name of a defined entity type - * @return The return value is a TypeConstructor provided by any source included in the namespace, + * @return The return value is a TypeDescriptor provided by any source included in the namespace, * or null if the name is not found. * @exception AmbiguousNameException if the name matches with multiple imported modules. */ - TypeConstructor getTypeConstructor(String name) throws AmbiguousNameException; + TypeDescriptor getTypeDescriptor(String name) throws AmbiguousNameException; /** * Get an EffectConstructor for a given name. The same instance is returned on each call. @@ -78,15 +77,6 @@ public interface Namespace { */ TypeClass getTypeClass(String name) throws AmbiguousNameException; - /** - * Get a TypeAlias for a given name. The same instance is returned on each call. - * @param name the name of a defined entity type - * @return The return value is a TypeAlias provided by any source included in the namespace, - * or null if the name is not found. - * @exception AmbiguousNameException if the name matches with multiple imported modules. - */ - TypeAlias getTypeAlias(String name) throws AmbiguousNameException; - TransformationRule getRule(String name) throws AmbiguousNameException; MappingRelation getMappingRelation(String name) throws AmbiguousNameException;