X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=bundles%2Forg.simantics.scl.compiler%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Finternal%2Fcodegen%2Ftypes%2FBTypes.java;h=089a54270508b70bae2c79bd278d52cf54eca7e0;hb=refs%2Fchanges%2F38%2F238%2F2;hp=fed668600fa02ebc51d3d39b019f94b7c3d2a442;hpb=24e2b34260f219f0d1644ca7a138894980e25b14;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/internal/codegen/types/BTypes.java b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/internal/codegen/types/BTypes.java index fed668600..089a54270 100644 --- a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/internal/codegen/types/BTypes.java +++ b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/internal/codegen/types/BTypes.java @@ -1,50 +1,50 @@ -package org.simantics.scl.compiler.internal.codegen.types; - -import org.simantics.scl.compiler.types.TCon; -import org.simantics.scl.compiler.types.TFun; -import org.simantics.scl.compiler.types.Type; -import org.simantics.scl.compiler.types.Types; -import org.simantics.scl.compiler.types.exceptions.MatchException; - -/** - * Type utilites for SCL compiler backend - */ -public class BTypes { - - public static final TCon PROC = Types.con(Types.BUILTIN, "Proc"); - - public static Type[] matchFunction(Type type, int arity) throws MatchException { - type = Types.canonical(type); - /*while(type instanceof TForAll) - type = ((TForAll)type).type;*/ - Type[] result = new Type[arity+1]; - for(int i=0;i