X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.scl.compiler%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Fconstants%2Fsingletons%2FTypeOfProxyConstant.java;h=3e63300aaf44015c3cff4aee93d4fc68ed731bd2;hb=refs%2Fchanges%2F38%2F238%2F2;hp=4331a3db326063b7b4d02a4c3273ba57ff2b9bb8;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/constants/singletons/TypeOfProxyConstant.java b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/constants/singletons/TypeOfProxyConstant.java index 4331a3db3..3e63300aa 100644 --- a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/constants/singletons/TypeOfProxyConstant.java +++ b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/constants/singletons/TypeOfProxyConstant.java @@ -1,32 +1,32 @@ -package org.simantics.scl.compiler.constants.singletons; - -import org.simantics.scl.compiler.constants.FunctionValue; -import org.simantics.scl.compiler.internal.codegen.references.Val; -import org.simantics.scl.compiler.internal.codegen.utils.MethodBuilder; -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.Types; -import org.simantics.scl.compiler.types.kinds.Kinds; - -public class TypeOfProxyConstant extends FunctionValue { - private static final TVar A = Types.var(Kinds.STAR); - private static final TCon Type = Types.con(Types.BUILTIN, "Type"); - public static final TypeOfProxyConstant INSTANCE = new TypeOfProxyConstant(); - - private TypeOfProxyConstant() { - super(new TVar[] {A}, Types.NO_EFFECTS, Type, - Types.pred(Types.TYPEABLE, A), Types.apply(Types.TYPE_PROXY, A)); - } - - @Override - public Type applyExact(MethodBuilder mb, Val[] parameters) { - mb.push(parameters[0], Type); - return getReturnType(); - } - - @Override - public String toString() { - return "typeOfProxy"; - } +package org.simantics.scl.compiler.constants.singletons; + +import org.simantics.scl.compiler.constants.FunctionValue; +import org.simantics.scl.compiler.internal.codegen.references.Val; +import org.simantics.scl.compiler.internal.codegen.utils.MethodBuilder; +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.Types; +import org.simantics.scl.compiler.types.kinds.Kinds; + +public class TypeOfProxyConstant extends FunctionValue { + private static final TVar A = Types.var(Kinds.STAR); + private static final TCon Type = Types.con(Types.BUILTIN, "Type"); + public static final TypeOfProxyConstant INSTANCE = new TypeOfProxyConstant(); + + private TypeOfProxyConstant() { + super(new TVar[] {A}, Types.NO_EFFECTS, Type, + Types.pred(Types.TYPEABLE, A), Types.apply(Types.TYPE_PROXY, A)); + } + + @Override + public Type applyExact(MethodBuilder mb, Val[] parameters) { + mb.push(parameters[0], Type); + return getReturnType(); + } + + @Override + public String toString() { + return "typeOfProxy"; + } } \ No newline at end of file