/** * Writes out a snippet that instantiates {@link UninstantiatedDescribable} * * @param nested * true if this object is written as a nested expression (in which case we always produce parenthesis for readability */ private static StringBuilder ud2groovy(StringBuilder b, UninstantiatedDescribable ud, boolean blockArgument, boolean nested) { if (!canUseSymbol(ud)) { // if there's no symbol, we need to write this as [$class:...] return map2groovy(b, ud.toShallowMap()); } return functionCall(b, ud, blockArgument, nested); }
return functionCall(b, uninst, blockArgument, nestedExp);