void (StringBuilder builder, GrEnumConstant constant) { GenerationUtil.writeDocComment(builder, constant, false); builder.append(constant.getName()); final GrArgumentList argumentList = constant.getArgumentList(); if (argumentList != null) { final GroovyResolveResult resolveResult = constant.advancedResolve(); GrSignature signature = GrClosureSignatureUtil.createSignature(resolveResult); new ArgumentListGenerator(builder, context.extend()).generate( signature, argumentList.getExpressionArguments(), argumentList.getNamedArguments(), GrClosableBlock.EMPTY_ARRAY, constant ); } final GrEnumConstantInitializer anonymousBlock = constant.getInitializingClass(); if (anonymousBlock != null) { builder.append("{\n"); new ClassGenerator(classNameProvider, this).writeMembers(builder, anonymousBlock); builder.append("\n}"); } }