package org.simantics.scl.compiler.compilation;\r
\r
import org.simantics.scl.compiler.elaboration.modules.SCLValue;\r
-import org.simantics.scl.compiler.elaboration.modules.TypeConstructor;\r
+import org.simantics.scl.compiler.elaboration.modules.TypeDescriptor;\r
import org.simantics.scl.compiler.environment.AmbiguousNameException;\r
import org.simantics.scl.compiler.environment.Environment;\r
import org.simantics.scl.compiler.errors.ErrorLog;\r
public static void checkIfTypeExists(ErrorLog errorLog, long location,\r
Environment environment, String name) {\r
try {\r
- TypeConstructor value = environment.getLocalNamespace().getTypeConstructor(name);\r
- if(value != null)\r
+ TypeDescriptor tdesc = environment.getLocalNamespace().getTypeDescriptor(name);\r
+ if(tdesc != null)\r
errorLog.log(location,\r
"Type " + name + " is already defined in the module " + \r
- value.name.module + \r
+ tdesc.name.module + \r
" that is imported to the default namespace.");\r
} catch(AmbiguousNameException e) {\r
errorLog.log(location,\r