X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.scl.compiler%2Fsrc%2Forg%2Fcojen%2Fclassfile%2FTypeDesc.java;h=5843b89e32eae40bb25d84a9e28fee05b017a9ad;hp=acf2bb18d643ae4f40c1d3a6d1896d9782787f63;hb=fad36d463b75c3a9944d875fc627c3533f6da74d;hpb=cb5fc8d606d8b322563e9345c441eecfa7f01753 diff --git a/bundles/org.simantics.scl.compiler/src/org/cojen/classfile/TypeDesc.java b/bundles/org.simantics.scl.compiler/src/org/cojen/classfile/TypeDesc.java index acf2bb18d..5843b89e3 100644 --- a/bundles/org.simantics.scl.compiler/src/org/cojen/classfile/TypeDesc.java +++ b/bundles/org.simantics.scl.compiler/src/org/cojen/classfile/TypeDesc.java @@ -885,4 +885,11 @@ public abstract class TypeDesc extends Descriptor { } } } + + public static TypeDesc[] concat(TypeDesc[] a, TypeDesc[] b) { + TypeDesc[] result = new TypeDesc[a.length + b.length]; + System.arraycopy(a, 0, result, 0, a.length); + System.arraycopy(b, 0, result, a.length, b.length); + return result; + } }