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 ""; } }
static List<Parameter> getParameters( ParameterList pl, boolean includeDefaults, boolean namedInvocation) { List<Parameter> ps = pl.getParameters(); if (includeDefaults) { return ps; } else { List<Parameter> list = new ArrayList<Parameter>(); for (Parameter p : ps) { if (!p.isDefaulted() || (namedInvocation && spreadable(p, ps))) { list.add(p); } } return list; } }