X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.scl.compiler%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Finternal%2Fcodegen%2Ftypes%2FStandardTypeConstructor.java;h=6af3bd3101487d9efcfceb9573ad81d242c0f479;hb=bf5f7cda1b9b64484cc6e53499e38d6785744aec;hp=09923c3a52338f0740550429a4a856d0e65ea3ef;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/internal/codegen/types/StandardTypeConstructor.java b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/internal/codegen/types/StandardTypeConstructor.java index 09923c3a5..6af3bd310 100644 --- a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/internal/codegen/types/StandardTypeConstructor.java +++ b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/internal/codegen/types/StandardTypeConstructor.java @@ -3,12 +3,13 @@ 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; public class StandardTypeConstructor extends TypeConstructor { private TypeDesc typeDesc; // null, if trivial data type (one constructor with one parameter) - public boolean external; + public boolean external; // this means that the class don't need to be generated public StandardTypeConstructor(TCon con, Kind kind) { super(con, 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;