]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/internal/codegen/types/StandardTypeConstructor.java
Merged changes from feature/scl to master.
[simantics/platform.git] / bundles / org.simantics.scl.compiler / src / org / simantics / scl / compiler / internal / codegen / types / StandardTypeConstructor.java
index 09923c3a52338f0740550429a4a856d0e65ea3ef..bbcd370bbc19cef0401a155e44b9270b35ae9f88 100644 (file)
@@ -3,6 +3,7 @@ package org.simantics.scl.compiler.internal.codegen.types;
 import org.cojen.classfile.TypeDesc;
 import org.simantics.scl.compiler.elaboration.modules.TypeConstructor;
 import org.simantics.scl.compiler.types.TCon;
+import org.simantics.scl.compiler.types.TVar;
 import org.simantics.scl.compiler.types.Type;
 import org.simantics.scl.compiler.types.kinds.Kind;
 
@@ -24,6 +25,11 @@ public class StandardTypeConstructor extends TypeConstructor {
         this.typeDesc = typeDesc;
         this.documentation = documentation;
     }
+    
+    public StandardTypeConstructor(TCon name, TVar[] parameters, TypeDesc typeDesc) {
+        super(name, parameters);
+        this.typeDesc = typeDesc;
+    }
 
     public void setTypeDesc(TypeDesc typeDesc) {
         this.typeDesc = typeDesc;