package org.simantics.scl.compiler.elaboration.fundeps; import org.simantics.scl.compiler.common.exceptions.InternalCompilerError; import org.simantics.scl.compiler.internal.parsing.declarations.FundepAst; public class Fundep { public static final Fundep[] EMPTY_ARRAY = new Fundep[0]; public final int[] from; public final int[] to; public Fundep(int[] from, int[] to) { this.from = from; this.to = to; } public Fundep(int[] from, int to) { this(from, new int[] {to}); } private static int mapParameterName(String[] parameterNames, String name) { for(int i=0;i