private static boolean spreadable(Parameter param, List<Parameter> list) { Parameter lastParam = list.get(list.size() - 1); if (param == lastParam && param.getModel() instanceof Value) { Type type = param.getType(); Unit unit = param.getDeclaration().getUnit(); return type != null && unit.isIterableParameterType(type); } else { return false; } }
public static String getDefaultValueDescription(Parameter param, CeylonParseController cpc) { if (param.isDefaulted()) { FunctionOrValue model = param.getModel(); if (model instanceof Functional) { return " => ..."; } else { return getInitialValueDescription(model, cpc); } } else { return ""; } }