Code review comment: if we are matching specific scenarios (eg. a native function) in these if conditions; shall we move those into private methods for the readability. For example; then we may write `if (isNativeFunction(...)) {`

Code before review:
public String getSourceForFunction(JsonObject node, boolean pretty, boolean replaceLambda, SourceGenParams sourceGenParams) {
if (node.get("defaultConstructor") != null
&& node.get("defaultConstructor") .getAsBoolean()) {
return "";
} else if (node.get("isConstructor") != null
&& node.get("isConstructor") .getAsBoolean()
&& node.get("markdownDocumentationAttachment") != null && node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("restParameters") != null
&& node.get("endpointNodes") != null && node.get("body") != null
&& node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "") + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("isConstructor") != null
&& node.get("isConstructor") .getAsBoolean() && node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("restParameters") != null
&& node.get("endpointNodes") != null && node.get("body") != null
&& node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "") + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams) + outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("isConstructor") != null
&& node.get("isConstructor") .getAsBoolean()
&& node.get("markdownDocumentationAttachment") != null && node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("endpointNodes") != null
&& node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams) + outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}" + a("", sourceGenParams.isShouldIndent());
} else if (node.get("isConstructor") != null
&& node.get("isConstructor") .getAsBoolean() && node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("endpointNodes") != null
&& node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ w("", sourceGenParams) + ")" + a(" ", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}" + a("", sourceGenParams.isShouldIndent());
} else if (node.get("interface") != null
&& node.get("interface") .getAsBoolean() && node.get("markdownDocumentationAttachment") != null
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty() && node.get("allParams") != null
&& node.get("restParameters") != null
&& node.get("hasReturns") != null && node.get("hasReturns") .getAsBoolean()
&& node.get("returnTypeAnnotationAttachments") != null
&& node.get("returnTypeNode") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "")
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "returns" + a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + ";"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("interface") != null
&& node.get("interface") .getAsBoolean() && node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("restParameters") != null
&& node.get("hasReturns") != null && node.get("hasReturns") .getAsBoolean()
&& node.get("returnTypeAnnotationAttachments") != null
&& node.get("returnTypeNode") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "")
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "returns"
+ a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + ";"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("interface") != null
&& node.get("interface") .getAsBoolean() && node.get("markdownDocumentationAttachment") != null
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty() && node.get("allParams") != null
&& node.get("restParameters") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "")
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + ";"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("interface") != null
&& node.get("interface") .getAsBoolean() && node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("restParameters") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "")
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + ";"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("interface") != null
&& node.get("interface") .getAsBoolean() && node.get("markdownDocumentationAttachment") != null
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty() && node.get("allParams") != null
&& node.get("hasReturns") != null
&& node.get("hasReturns") .getAsBoolean() && node.get("returnTypeAnnotationAttachments") != null
&& node.get("returnTypeNode") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "returns"
+ a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + ";"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("interface") != null
&& node.get("interface") .getAsBoolean() && node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("hasReturns") != null
&& node.get("hasReturns") .getAsBoolean()
&& node.get("returnTypeAnnotationAttachments") != null && node.get("returnTypeNode") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "returns"
+ a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + ";"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("interface") != null
&& node.get("interface") .getAsBoolean() && node.get("markdownDocumentationAttachment") != null
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty() && node.get("allParams") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + ";"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("interface") != null
&& node.get("interface") .getAsBoolean() && node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + ";"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("lambda") != null && node.get("lambda") .getAsBoolean()
&& node.get("markdownDocumentationAttachment") != null
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null && node.get("isStreamAction") != null
&& node.get("isStreamAction") .getAsBoolean()
&& node.get("allParams") != null && node.get("restParameters") != null
&& node.get("endpointNodes") != null && node.get("body") != null
&& node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams) + w("", sourceGenParams) + "=>"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "") + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda)
+ w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams) + outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("lambda") != null && node.get("lambda") .getAsBoolean()
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null && node.get("isStreamAction") != null
&& node.get("isStreamAction") .getAsBoolean()
&& node.get("allParams") != null && node.get("restParameters") != null
&& node.get("endpointNodes") != null && node.get("body") != null
&& node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ w("", sourceGenParams) + "=>"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "") + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda)
+ w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams) + outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}" + a("", sourceGenParams.isShouldIndent());
} else if (node.get("lambda") != null && node.get("lambda") .getAsBoolean()
&& node.get("markdownDocumentationAttachment") != null
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null && node.get("isStreamAction") != null
&& node.get("isStreamAction") .getAsBoolean()
&& node.get("allParams") != null && node.get("endpointNodes") != null
&& node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams) + w("", sourceGenParams) + "=>"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ w("", sourceGenParams) + ")" + a(" ", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}" + a("", sourceGenParams.isShouldIndent());
} else if (node.get("lambda") != null && node.get("lambda") .getAsBoolean()
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null && node.get("isStreamAction") != null
&& node.get("isStreamAction") .getAsBoolean()
&& node.get("allParams") != null && node.get("endpointNodes") != null
&& node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ w("", sourceGenParams) + "=>"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ w("", sourceGenParams) + ")" + a(" ", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "{" + a("", sourceGenParams.isShouldIndent())
+ indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}" + a("", sourceGenParams.isShouldIndent());
} else if (node.get("lambda") != null && node.get("lambda") .getAsBoolean()
&& node.get("markdownDocumentationAttachment") != null
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null && node.get("allParams") != null
&& node.get("restParameters") != null && node.get("hasReturns") != null
&& node.get("hasReturns") .getAsBoolean()
&& node.get("returnTypeNode") != null && node.get("endpointNodes") != null
&& node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams) + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "") + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "returns"
+ a(" ", sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("lambda") != null && node.get("lambda") .getAsBoolean()
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null && node.get("allParams") != null
&& node.get("restParameters") != null && node.get("hasReturns") != null
&& node.get("hasReturns") .getAsBoolean()
&& node.get("returnTypeNode") != null && node.get("endpointNodes") != null
&& node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "") + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda)
+ w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "returns"
+ a(" ", sourceGenParams.isShouldIndent()) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams) + outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("lambda") != null && node.get("lambda") .getAsBoolean()
&& node.get("markdownDocumentationAttachment") != null
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null && node.get("allParams") != null
&& node.get("hasReturns") != null && node.get("hasReturns") .getAsBoolean()
&& node.get("returnTypeNode") != null
&& node.get("endpointNodes") != null && node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams) + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "returns"
+ a(" ", sourceGenParams.isShouldIndent()) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams) + outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("lambda") != null && node.get("lambda") .getAsBoolean()
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null && node.get("allParams") != null
&& node.get("hasReturns") != null
&& node.get("hasReturns") .getAsBoolean() && node.get("returnTypeNode") != null
&& node.get("endpointNodes") != null && node.get("body") != null
&& node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ w("", sourceGenParams) + ")" + a(" ", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "returns"
+ a(" ", sourceGenParams.isShouldIndent()) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams) + outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}" + a("", sourceGenParams.isShouldIndent());
} else if (node.get("lambda") != null && node.get("lambda") .getAsBoolean()
&& node.get("markdownDocumentationAttachment") != null
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null && node.get("allParams") != null
&& node.get("restParameters") != null && node.get("endpointNodes") != null
&& node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams) + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "") + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams) + outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("lambda") != null && node.get("lambda") .getAsBoolean()
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null && node.get("allParams") != null
&& node.get("restParameters") != null
&& node.get("endpointNodes") != null && node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "") + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda)
+ w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams) + outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("lambda") != null && node.get("lambda") .getAsBoolean()
&& node.get("markdownDocumentationAttachment") != null
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null && node.get("allParams") != null
&& node.get("endpointNodes") != null && node.get("body") != null
&& node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams) + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams) + outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}" + a("", sourceGenParams.isShouldIndent());
} else if (node.get("lambda") != null && node.get("lambda") .getAsBoolean()
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null && node.get("allParams") != null
&& node.get("endpointNodes") != null && node.get("body") != null
&& node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ w("", sourceGenParams) + ")" + a(" ", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}" + a("", sourceGenParams.isShouldIndent());
} else if (node.get("noVisibleReceiver") != null
&& node.get("noVisibleReceiver") .getAsBoolean()
&& node.get("markdownDocumentationAttachment") != null && node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("restParameters") != null
&& node.get("hasReturns") != null && node.get("hasReturns") .getAsBoolean()
&& node.get("returnTypeAnnotationAttachments") != null
&& node.get("returnTypeNode") != null && node.get("endpointNodes") != null
&& node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "")
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "returns" + a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("noVisibleReceiver") != null
&& node.get("noVisibleReceiver") .getAsBoolean()
&& node.get("annotationAttachments") != null && node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("restParameters") != null
&& node.get("hasReturns") != null
&& node.get("hasReturns") .getAsBoolean() && node.get("returnTypeAnnotationAttachments") != null
&& node.get("returnTypeNode") != null
&& node.get("endpointNodes") != null && node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "")
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "returns"
+ a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("noVisibleReceiver") != null
&& node.get("noVisibleReceiver") .getAsBoolean()
&& node.get("markdownDocumentationAttachment") != null && node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("hasReturns") != null
&& node.get("hasReturns") .getAsBoolean()
&& node.get("returnTypeAnnotationAttachments") != null && node.get("returnTypeNode") != null
&& node.get("endpointNodes") != null && node.get("body") != null
&& node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "returns"
+ a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams) + outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("noVisibleReceiver") != null
&& node.get("noVisibleReceiver") .getAsBoolean()
&& node.get("annotationAttachments") != null && node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("hasReturns") != null
&& node.get("hasReturns") .getAsBoolean()
&& node.get("returnTypeAnnotationAttachments") != null && node.get("returnTypeNode") != null
&& node.get("endpointNodes") != null && node.get("body") != null
&& node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "returns"
+ a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams) + outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("noVisibleReceiver") != null
&& node.get("noVisibleReceiver") .getAsBoolean()
&& node.get("markdownDocumentationAttachment") != null && node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("restParameters") != null
&& node.get("endpointNodes") != null && node.get("body") != null
&& node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "")
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("noVisibleReceiver") != null
&& node.get("noVisibleReceiver") .getAsBoolean()
&& node.get("annotationAttachments") != null && node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("restParameters") != null
&& node.get("endpointNodes") != null && node.get("body") != null
&& node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "")
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("noVisibleReceiver") != null
&& node.get("noVisibleReceiver") .getAsBoolean()
&& node.get("markdownDocumentationAttachment") != null && node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("endpointNodes") != null
&& node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("noVisibleReceiver") != null
&& node.get("noVisibleReceiver") .getAsBoolean()
&& node.get("annotationAttachments") != null && node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("endpointNodes") != null
&& node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams) + outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("objectOuterFunction") != null
&& node.get("objectOuterFunction") .getAsBoolean()
&& node.get("markdownDocumentationAttachment") != null && node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar") != null
&& !node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar").getAsString().isEmpty()
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("restParameters") != null
&& node.get("hasReturns") != null && node.get("hasReturns") .getAsBoolean()
&& node.get("returnTypeAnnotationAttachments") != null
&& node.get("returnTypeNode") != null && node.get("endpointNodes") != null
&& node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar").getAsString() + a("", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "::"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "") + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda)
+ w("", sourceGenParams) + ")" + a(" ", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "returns"
+ a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda)
+ w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}" + a("", sourceGenParams.isShouldIndent());
} else if (node.get("objectOuterFunction") != null
&& node.get("objectOuterFunction") .getAsBoolean()
&& node.get("annotationAttachments") != null && node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar") != null
&& !node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar").getAsString().isEmpty()
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("restParameters") != null
&& node.get("hasReturns") != null && node.get("hasReturns") .getAsBoolean()
&& node.get("returnTypeAnnotationAttachments") != null
&& node.get("returnTypeNode") != null && node.get("endpointNodes") != null
&& node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar").getAsString() + a("", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "::" + a("", sourceGenParams.isShouldIndent())
+ w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString() + a("", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + "," + a("", sourceGenParams.isShouldIndent()) : "")
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda)
+ w("", sourceGenParams) + ")" + a(" ", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "returns"
+ a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda)
+ w("", sourceGenParams) + "{" + a("", sourceGenParams.isShouldIndent())
+ indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "}" + a("", sourceGenParams.isShouldIndent());
} else if (node.get("objectOuterFunction") != null
&& node.get("objectOuterFunction") .getAsBoolean()
&& node.get("markdownDocumentationAttachment") != null && node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar") != null
&& !node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar").getAsString().isEmpty()
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("hasReturns") != null
&& node.get("hasReturns") .getAsBoolean()
&& node.get("returnTypeAnnotationAttachments") != null && node.get("returnTypeNode") != null
&& node.get("endpointNodes") != null && node.get("body") != null
&& node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar").getAsString() + a("", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "::"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ w("", sourceGenParams) + ")" + a(" ", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "returns"
+ a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda)
+ w("", sourceGenParams) + "{" + a("", sourceGenParams.isShouldIndent())
+ indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("objectOuterFunction") != null
&& node.get("objectOuterFunction") .getAsBoolean()
&& node.get("annotationAttachments") != null && node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar") != null
&& !node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar").getAsString().isEmpty()
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("hasReturns") != null
&& node.get("hasReturns") .getAsBoolean()
&& node.get("returnTypeAnnotationAttachments") != null && node.get("returnTypeNode") != null
&& node.get("endpointNodes") != null && node.get("body") != null
&& node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar").getAsString() + a("", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "::" + a("", sourceGenParams.isShouldIndent())
+ w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString() + a("", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams) + w("", sourceGenParams)
+ ")" + a(" ", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "returns" + a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda)
+ w("", sourceGenParams) + "{" + a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("objectOuterFunction") != null
&& node.get("objectOuterFunction") .getAsBoolean()
&& node.get("markdownDocumentationAttachment") != null && node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar") != null
&& !node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar").getAsString().isEmpty()
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("restParameters") != null
&& node.get("endpointNodes") != null && node.get("body") != null
&& node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar").getAsString() + a("", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "::"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "") + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda)
+ w("", sourceGenParams) + ")" + a(" ", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams) + outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}" + a("", sourceGenParams.isShouldIndent());
} else if (node.get("objectOuterFunction") != null
&& node.get("objectOuterFunction") .getAsBoolean()
&& node.get("annotationAttachments") != null && node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar") != null
&& !node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar").getAsString().isEmpty()
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("restParameters") != null
&& node.get("endpointNodes") != null && node.get("body") != null
&& node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar").getAsString() + a("", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "::" + a("", sourceGenParams.isShouldIndent())
+ w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString() + a("", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + "," + a("", sourceGenParams.isShouldIndent()) : "")
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda)
+ w("", sourceGenParams) + ")" + a(" ", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}" + a("", sourceGenParams.isShouldIndent());
} else if (node.get("objectOuterFunction") != null
&& node.get("objectOuterFunction") .getAsBoolean()
&& node.get("markdownDocumentationAttachment") != null && node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar") != null
&& !node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar").getAsString().isEmpty()
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("endpointNodes") != null
&& node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar").getAsString() + a("", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "::"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ w("", sourceGenParams) + ")" + a(" ", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "{" + a("", sourceGenParams.isShouldIndent())
+ indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "}" + a("", sourceGenParams.isShouldIndent());
} else if (node.get("objectOuterFunction") != null
&& node.get("objectOuterFunction") .getAsBoolean()
&& node.get("annotationAttachments") != null && node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar") != null
&& !node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar").getAsString().isEmpty()
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("endpointNodes") != null
&& node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar").getAsString() + a("", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "::" + a("", sourceGenParams.isShouldIndent())
+ w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString() + a("", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams) + w("", sourceGenParams)
+ ")" + a(" ", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "{" + a("", sourceGenParams.isShouldIndent())
+ indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("native") != null && node.get("native") .getAsBoolean()
&& node.get("markdownDocumentationAttachment") != null
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty() && node.get("allParams") != null
&& node.get("restParameters") != null && node.get("hasReturns") != null
&& node.get("hasReturns") .getAsBoolean()
&& node.get("returnTypeAnnotationAttachments") != null
&& node.get("returnTypeNode") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "extern"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "function" + a("", sourceGenParams.isShouldIndent())
+ w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString() + a("", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "")
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams)
+ ")" + a(" ", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "returns" + a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams)
+ ";" + a("", sourceGenParams.isShouldIndent());
} else if (node.get("native") != null && node.get("native") .getAsBoolean()
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty() && node.get("allParams") != null
&& node.get("restParameters") != null
&& node.get("hasReturns") != null && node.get("hasReturns") .getAsBoolean()
&& node.get("returnTypeAnnotationAttachments") != null
&& node.get("returnTypeNode") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "extern"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent())
+ w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString() + a("", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "")
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "returns" + a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + ";"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("native") != null && node.get("native") .getAsBoolean()
&& node.get("markdownDocumentationAttachment") != null
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty() && node.get("allParams") != null
&& node.get("restParameters") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "extern"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "function" + a("", sourceGenParams.isShouldIndent())
+ w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString() + a("", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "")
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams)
+ ")" + a(" ", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + ";" + a("", sourceGenParams.isShouldIndent());
} else if (node.get("native") != null && node.get("native") .getAsBoolean()
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty() && node.get("allParams") != null
&& node.get("restParameters") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "extern"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent())
+ w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString() + a("", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "")
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ ";" + a("", sourceGenParams.isShouldIndent());
} else if (node.get("native") != null && node.get("native") .getAsBoolean()
&& node.get("markdownDocumentationAttachment") != null
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty() && node.get("allParams") != null
&& node.get("hasReturns") != null && node.get("hasReturns") .getAsBoolean()
&& node.get("returnTypeAnnotationAttachments") != null
&& node.get("returnTypeNode") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "extern"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "function" + a("", sourceGenParams.isShouldIndent())
+ w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString() + a("", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "returns" + a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + ";"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("native") != null && node.get("native") .getAsBoolean()
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty() && node.get("allParams") != null
&& node.get("hasReturns") != null
&& node.get("hasReturns") .getAsBoolean() && node.get("returnTypeAnnotationAttachments") != null
&& node.get("returnTypeNode") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "extern"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent())
+ w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString() + a("", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "returns"
+ a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + ";"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("native") != null && node.get("native") .getAsBoolean()
&& node.get("markdownDocumentationAttachment") != null
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty() && node.get("allParams") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "extern"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "function" + a("", sourceGenParams.isShouldIndent())
+ w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString() + a("", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + ";"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("native") != null && node.get("native") .getAsBoolean()
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty() && node.get("allParams") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "extern"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent())
+ w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString() + a("", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + ";"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("hasReturns") != null
&& node.get("hasReturns") .getAsBoolean() && node.get("markdownDocumentationAttachment") != null
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null && node.get("receiver") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null
&& node.get("restParameters") != null && node.get("returnTypeAnnotationAttachments") != null
&& node.get("returnTypeNode") != null
&& node.get("endpointNodes") != null && node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "<"
+ a("", sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("receiver"), pretty, replaceLambda) + w("", sourceGenParams) + ">"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "")
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "returns" + a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("hasReturns") != null
&& node.get("hasReturns") .getAsBoolean() && node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null && node.get("receiver") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty() && node.get("allParams") != null
&& node.get("restParameters") != null
&& node.get("returnTypeAnnotationAttachments") != null && node.get("returnTypeNode") != null
&& node.get("endpointNodes") != null && node.get("body") != null
&& node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "<"
+ a("", sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("receiver"), pretty, replaceLambda) + w("", sourceGenParams) + ">"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "")
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "returns"
+ a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("hasReturns") != null
&& node.get("hasReturns") .getAsBoolean() && node.get("markdownDocumentationAttachment") != null
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null && node.get("receiver") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null
&& node.get("returnTypeAnnotationAttachments") != null && node.get("returnTypeNode") != null
&& node.get("endpointNodes") != null && node.get("body") != null
&& node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "<"
+ a("", sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("receiver"), pretty, replaceLambda) + w("", sourceGenParams) + ">"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "returns"
+ a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams) + outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("hasReturns") != null
&& node.get("hasReturns") .getAsBoolean() && node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null && node.get("receiver") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty() && node.get("allParams") != null
&& node.get("returnTypeAnnotationAttachments") != null
&& node.get("returnTypeNode") != null && node.get("endpointNodes") != null
&& node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "<"
+ a("", sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("receiver"), pretty, replaceLambda) + w("", sourceGenParams) + ">"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "returns"
+ a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams) + outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("hasReturns") != null
&& node.get("hasReturns") .getAsBoolean() && node.get("markdownDocumentationAttachment") != null
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty() && node.get("allParams") != null
&& node.get("restParameters") != null
&& node.get("returnTypeAnnotationAttachments") != null && node.get("returnTypeNode") != null
&& node.get("endpointNodes") != null && node.get("body") != null
&& node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "")
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "returns" + a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("hasReturns") != null
&& node.get("hasReturns") .getAsBoolean() && node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("restParameters") != null
&& node.get("returnTypeAnnotationAttachments") != null
&& node.get("returnTypeNode") != null && node.get("endpointNodes") != null
&& node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "")
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "returns"
+ a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("hasReturns") != null
&& node.get("hasReturns") .getAsBoolean() && node.get("markdownDocumentationAttachment") != null
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty() && node.get("allParams") != null
&& node.get("returnTypeAnnotationAttachments") != null
&& node.get("returnTypeNode") != null && node.get("endpointNodes") != null
&& node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "returns"
+ a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams) + outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("hasReturns") != null
&& node.get("hasReturns") .getAsBoolean() && node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("returnTypeAnnotationAttachments") != null
&& node.get("returnTypeNode") != null
&& node.get("endpointNodes") != null && node.get("body") != null
&& node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "returns"
+ a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams) + outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("markdownDocumentationAttachment") != null
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null && node.get("receiver") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("restParameters") != null
&& node.get("endpointNodes") != null && node.get("body") != null
&& node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "<"
+ a("", sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("receiver"), pretty, replaceLambda) + w("", sourceGenParams) + ">"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "")
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null && node.get("receiver") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null
&& node.get("restParameters") != null && node.get("endpointNodes") != null
&& node.get("body") != null && node.get("workers") != null) {
return join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "")
+ dent(sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "<"
+ a("", sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("receiver"), pretty, replaceLambda) + w("", sourceGenParams) + ">"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "")
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("markdownDocumentationAttachment") != null
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null && node.get("receiver") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("endpointNodes") != null
&& node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "<"
+ a("", sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("receiver"), pretty, replaceLambda) + w("", sourceGenParams) + ">"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null && node.get("receiver") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("endpointNodes") != null
&& node.get("body") != null && node.get("workers") != null) {
return join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "")
+ dent(sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "<"
+ a("", sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("receiver"), pretty, replaceLambda) + w("", sourceGenParams) + ">"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams) + outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("markdownDocumentationAttachment") != null
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty() && node.get("allParams") != null
&& node.get("restParameters") != null && node.get("endpointNodes") != null
&& node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "")
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty() && node.get("allParams") != null
&& node.get("restParameters") != null
&& node.get("endpointNodes") != null && node.get("body") != null
&& node.get("workers") != null) {
return join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "")
+ dent(sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "")
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("markdownDocumentationAttachment") != null
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty() && node.get("allParams") != null
&& node.get("endpointNodes") != null && node.get("body") != null
&& node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else {
return join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "")
+ dent(sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams) + outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
}
}

Line under review: && node.get("returnTypeNode") != null) {

Code after addressing the review:
public String getSourceForFunction(JsonObject node, boolean pretty, boolean replaceLambda, SourceGenParams sourceGenParams) {
if (node.get("defaultConstructor") != null
&& node.get("defaultConstructor") .getAsBoolean()) {
return "";
} else if (node.get("isConstructor") != null
&& node.get("isConstructor") .getAsBoolean()
&& node.get("markdownDocumentationAttachment") != null && node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("restParameters") != null
&& node.get("endpointNodes") != null && node.get("body") != null
&& node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "") + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("isConstructor") != null
&& node.get("isConstructor") .getAsBoolean() && node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("restParameters") != null
&& node.get("endpointNodes") != null && node.get("body") != null
&& node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "") + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams) + outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("isConstructor") != null
&& node.get("isConstructor") .getAsBoolean()
&& node.get("markdownDocumentationAttachment") != null && node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("endpointNodes") != null
&& node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams) + outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}" + a("", sourceGenParams.isShouldIndent());
} else if (node.get("isConstructor") != null
&& node.get("isConstructor") .getAsBoolean() && node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("endpointNodes") != null
&& node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ w("", sourceGenParams) + ")" + a(" ", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}" + a("", sourceGenParams.isShouldIndent());
} else if (node.get("interface") != null
&& node.get("interface") .getAsBoolean() && node.get("markdownDocumentationAttachment") != null
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty() && node.get("allParams") != null
&& node.get("restParameters") != null
&& node.get("hasReturns") != null && node.get("hasReturns") .getAsBoolean()
&& node.get("returnTypeAnnotationAttachments") != null
&& node.get("returnTypeNode") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "")
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "returns" + a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + ";"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("interface") != null
&& node.get("interface") .getAsBoolean() && node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("restParameters") != null
&& node.get("hasReturns") != null && node.get("hasReturns") .getAsBoolean()
&& node.get("returnTypeAnnotationAttachments") != null
&& node.get("returnTypeNode") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "")
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "returns"
+ a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + ";"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("interface") != null
&& node.get("interface") .getAsBoolean() && node.get("markdownDocumentationAttachment") != null
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty() && node.get("allParams") != null
&& node.get("restParameters") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "")
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + ";"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("interface") != null
&& node.get("interface") .getAsBoolean() && node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("restParameters") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "")
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + ";"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("interface") != null
&& node.get("interface") .getAsBoolean() && node.get("markdownDocumentationAttachment") != null
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty() && node.get("allParams") != null
&& node.get("hasReturns") != null
&& node.get("hasReturns") .getAsBoolean() && node.get("returnTypeAnnotationAttachments") != null
&& node.get("returnTypeNode") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "returns"
+ a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + ";"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("interface") != null
&& node.get("interface") .getAsBoolean() && node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("hasReturns") != null
&& node.get("hasReturns") .getAsBoolean()
&& node.get("returnTypeAnnotationAttachments") != null && node.get("returnTypeNode") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "returns"
+ a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + ";"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("interface") != null
&& node.get("interface") .getAsBoolean() && node.get("markdownDocumentationAttachment") != null
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty() && node.get("allParams") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + ";"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("interface") != null
&& node.get("interface") .getAsBoolean() && node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + ";"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("lambda") != null && node.get("lambda") .getAsBoolean()
&& node.get("markdownDocumentationAttachment") != null
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null && node.get("isStreamAction") != null
&& node.get("isStreamAction") .getAsBoolean()
&& node.get("allParams") != null && node.get("restParameters") != null
&& node.get("endpointNodes") != null && node.get("body") != null
&& node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams) + w("", sourceGenParams) + "=>"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "") + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda)
+ w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams) + outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("lambda") != null && node.get("lambda") .getAsBoolean()
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null && node.get("isStreamAction") != null
&& node.get("isStreamAction") .getAsBoolean()
&& node.get("allParams") != null && node.get("restParameters") != null
&& node.get("endpointNodes") != null && node.get("body") != null
&& node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ w("", sourceGenParams) + "=>"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "") + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda)
+ w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams) + outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}" + a("", sourceGenParams.isShouldIndent());
} else if (node.get("lambda") != null && node.get("lambda") .getAsBoolean()
&& node.get("markdownDocumentationAttachment") != null
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null && node.get("isStreamAction") != null
&& node.get("isStreamAction") .getAsBoolean()
&& node.get("allParams") != null && node.get("endpointNodes") != null
&& node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams) + w("", sourceGenParams) + "=>"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ w("", sourceGenParams) + ")" + a(" ", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}" + a("", sourceGenParams.isShouldIndent());
} else if (node.get("lambda") != null && node.get("lambda") .getAsBoolean()
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null && node.get("isStreamAction") != null
&& node.get("isStreamAction") .getAsBoolean()
&& node.get("allParams") != null && node.get("endpointNodes") != null
&& node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ w("", sourceGenParams) + "=>"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ w("", sourceGenParams) + ")" + a(" ", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "{" + a("", sourceGenParams.isShouldIndent())
+ indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}" + a("", sourceGenParams.isShouldIndent());
} else if (node.get("lambda") != null && node.get("lambda") .getAsBoolean()
&& node.get("markdownDocumentationAttachment") != null
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null && node.get("allParams") != null
&& node.get("restParameters") != null && node.get("hasReturns") != null
&& node.get("hasReturns") .getAsBoolean()
&& node.get("returnTypeNode") != null && node.get("endpointNodes") != null
&& node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams) + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "") + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "returns"
+ a(" ", sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("lambda") != null && node.get("lambda") .getAsBoolean()
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null && node.get("allParams") != null
&& node.get("restParameters") != null && node.get("hasReturns") != null
&& node.get("hasReturns") .getAsBoolean()
&& node.get("returnTypeNode") != null && node.get("endpointNodes") != null
&& node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "") + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda)
+ w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "returns"
+ a(" ", sourceGenParams.isShouldIndent()) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams) + outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("lambda") != null && node.get("lambda") .getAsBoolean()
&& node.get("markdownDocumentationAttachment") != null
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null && node.get("allParams") != null
&& node.get("hasReturns") != null && node.get("hasReturns") .getAsBoolean()
&& node.get("returnTypeNode") != null
&& node.get("endpointNodes") != null && node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams) + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "returns"
+ a(" ", sourceGenParams.isShouldIndent()) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams) + outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("lambda") != null && node.get("lambda") .getAsBoolean()
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null && node.get("allParams") != null
&& node.get("hasReturns") != null
&& node.get("hasReturns") .getAsBoolean() && node.get("returnTypeNode") != null
&& node.get("endpointNodes") != null && node.get("body") != null
&& node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ w("", sourceGenParams) + ")" + a(" ", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "returns"
+ a(" ", sourceGenParams.isShouldIndent()) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams) + outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}" + a("", sourceGenParams.isShouldIndent());
} else if (node.get("lambda") != null && node.get("lambda") .getAsBoolean()
&& node.get("markdownDocumentationAttachment") != null
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null && node.get("allParams") != null
&& node.get("restParameters") != null && node.get("endpointNodes") != null
&& node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams) + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "") + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams) + outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("lambda") != null && node.get("lambda") .getAsBoolean()
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null && node.get("allParams") != null
&& node.get("restParameters") != null
&& node.get("endpointNodes") != null && node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "") + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda)
+ w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams) + outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("lambda") != null && node.get("lambda") .getAsBoolean()
&& node.get("markdownDocumentationAttachment") != null
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null && node.get("allParams") != null
&& node.get("endpointNodes") != null && node.get("body") != null
&& node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams) + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams) + outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}" + a("", sourceGenParams.isShouldIndent());
} else if (node.get("lambda") != null && node.get("lambda") .getAsBoolean()
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null && node.get("allParams") != null
&& node.get("endpointNodes") != null && node.get("body") != null
&& node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ w("", sourceGenParams) + ")" + a(" ", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}" + a("", sourceGenParams.isShouldIndent());
} else if (node.get("noVisibleReceiver") != null
&& node.get("noVisibleReceiver") .getAsBoolean()
&& node.get("markdownDocumentationAttachment") != null && node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("restParameters") != null
&& node.get("hasReturns") != null && node.get("hasReturns") .getAsBoolean()
&& node.get("returnTypeAnnotationAttachments") != null
&& node.get("returnTypeNode") != null && node.get("endpointNodes") != null
&& node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "")
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "returns" + a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("noVisibleReceiver") != null
&& node.get("noVisibleReceiver") .getAsBoolean()
&& node.get("annotationAttachments") != null && node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("restParameters") != null
&& node.get("hasReturns") != null
&& node.get("hasReturns") .getAsBoolean() && node.get("returnTypeAnnotationAttachments") != null
&& node.get("returnTypeNode") != null
&& node.get("endpointNodes") != null && node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "")
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "returns"
+ a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("noVisibleReceiver") != null
&& node.get("noVisibleReceiver") .getAsBoolean()
&& node.get("markdownDocumentationAttachment") != null && node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("hasReturns") != null
&& node.get("hasReturns") .getAsBoolean()
&& node.get("returnTypeAnnotationAttachments") != null && node.get("returnTypeNode") != null
&& node.get("endpointNodes") != null && node.get("body") != null
&& node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "returns"
+ a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams) + outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("noVisibleReceiver") != null
&& node.get("noVisibleReceiver") .getAsBoolean()
&& node.get("annotationAttachments") != null && node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("hasReturns") != null
&& node.get("hasReturns") .getAsBoolean()
&& node.get("returnTypeAnnotationAttachments") != null && node.get("returnTypeNode") != null
&& node.get("endpointNodes") != null && node.get("body") != null
&& node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "returns"
+ a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams) + outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("noVisibleReceiver") != null
&& node.get("noVisibleReceiver") .getAsBoolean()
&& node.get("markdownDocumentationAttachment") != null && node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("restParameters") != null
&& node.get("endpointNodes") != null && node.get("body") != null
&& node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "")
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("noVisibleReceiver") != null
&& node.get("noVisibleReceiver") .getAsBoolean()
&& node.get("annotationAttachments") != null && node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("restParameters") != null
&& node.get("endpointNodes") != null && node.get("body") != null
&& node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "")
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("noVisibleReceiver") != null
&& node.get("noVisibleReceiver") .getAsBoolean()
&& node.get("markdownDocumentationAttachment") != null && node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("endpointNodes") != null
&& node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("noVisibleReceiver") != null
&& node.get("noVisibleReceiver") .getAsBoolean()
&& node.get("annotationAttachments") != null && node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("endpointNodes") != null
&& node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams) + outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("objectOuterFunction") != null
&& node.get("objectOuterFunction") .getAsBoolean()
&& node.get("markdownDocumentationAttachment") != null && node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar") != null
&& !node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar").getAsString().isEmpty()
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("restParameters") != null
&& node.get("hasReturns") != null && node.get("hasReturns") .getAsBoolean()
&& node.get("returnTypeAnnotationAttachments") != null
&& node.get("returnTypeNode") != null && node.get("endpointNodes") != null
&& node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar").getAsString() + a("", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "::"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "") + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda)
+ w("", sourceGenParams) + ")" + a(" ", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "returns"
+ a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda)
+ w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}" + a("", sourceGenParams.isShouldIndent());
} else if (node.get("objectOuterFunction") != null
&& node.get("objectOuterFunction") .getAsBoolean()
&& node.get("annotationAttachments") != null && node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar") != null
&& !node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar").getAsString().isEmpty()
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("restParameters") != null
&& node.get("hasReturns") != null && node.get("hasReturns") .getAsBoolean()
&& node.get("returnTypeAnnotationAttachments") != null
&& node.get("returnTypeNode") != null && node.get("endpointNodes") != null
&& node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar").getAsString() + a("", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "::" + a("", sourceGenParams.isShouldIndent())
+ w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString() + a("", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + "," + a("", sourceGenParams.isShouldIndent()) : "")
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda)
+ w("", sourceGenParams) + ")" + a(" ", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "returns"
+ a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda)
+ w("", sourceGenParams) + "{" + a("", sourceGenParams.isShouldIndent())
+ indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "}" + a("", sourceGenParams.isShouldIndent());
} else if (node.get("objectOuterFunction") != null
&& node.get("objectOuterFunction") .getAsBoolean()
&& node.get("markdownDocumentationAttachment") != null && node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar") != null
&& !node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar").getAsString().isEmpty()
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("hasReturns") != null
&& node.get("hasReturns") .getAsBoolean()
&& node.get("returnTypeAnnotationAttachments") != null && node.get("returnTypeNode") != null
&& node.get("endpointNodes") != null && node.get("body") != null
&& node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar").getAsString() + a("", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "::"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ w("", sourceGenParams) + ")" + a(" ", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "returns"
+ a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda)
+ w("", sourceGenParams) + "{" + a("", sourceGenParams.isShouldIndent())
+ indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("objectOuterFunction") != null
&& node.get("objectOuterFunction") .getAsBoolean()
&& node.get("annotationAttachments") != null && node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar") != null
&& !node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar").getAsString().isEmpty()
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("hasReturns") != null
&& node.get("hasReturns") .getAsBoolean()
&& node.get("returnTypeAnnotationAttachments") != null && node.get("returnTypeNode") != null
&& node.get("endpointNodes") != null && node.get("body") != null
&& node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar").getAsString() + a("", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "::" + a("", sourceGenParams.isShouldIndent())
+ w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString() + a("", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams) + w("", sourceGenParams)
+ ")" + a(" ", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "returns" + a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda)
+ w("", sourceGenParams) + "{" + a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("objectOuterFunction") != null
&& node.get("objectOuterFunction") .getAsBoolean()
&& node.get("markdownDocumentationAttachment") != null && node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar") != null
&& !node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar").getAsString().isEmpty()
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("restParameters") != null
&& node.get("endpointNodes") != null && node.get("body") != null
&& node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar").getAsString() + a("", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "::"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "") + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda)
+ w("", sourceGenParams) + ")" + a(" ", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams) + outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}" + a("", sourceGenParams.isShouldIndent());
} else if (node.get("objectOuterFunction") != null
&& node.get("objectOuterFunction") .getAsBoolean()
&& node.get("annotationAttachments") != null && node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar") != null
&& !node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar").getAsString().isEmpty()
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("restParameters") != null
&& node.get("endpointNodes") != null && node.get("body") != null
&& node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar").getAsString() + a("", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "::" + a("", sourceGenParams.isShouldIndent())
+ w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString() + a("", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + "," + a("", sourceGenParams.isShouldIndent()) : "")
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda)
+ w("", sourceGenParams) + ")" + a(" ", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}" + a("", sourceGenParams.isShouldIndent());
} else if (node.get("objectOuterFunction") != null
&& node.get("objectOuterFunction") .getAsBoolean()
&& node.get("markdownDocumentationAttachment") != null && node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar") != null
&& !node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar").getAsString().isEmpty()
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("endpointNodes") != null
&& node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar").getAsString() + a("", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "::"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ w("", sourceGenParams) + ")" + a(" ", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "{" + a("", sourceGenParams.isShouldIndent())
+ indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "}" + a("", sourceGenParams.isShouldIndent());
} else if (node.get("objectOuterFunction") != null
&& node.get("objectOuterFunction") .getAsBoolean()
&& node.get("annotationAttachments") != null && node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar") != null
&& !node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar").getAsString().isEmpty()
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("endpointNodes") != null
&& node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ node.getAsJsonObject("objectOuterFunctionTypeName").get("valueWithBar").getAsString() + a("", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "::" + a("", sourceGenParams.isShouldIndent())
+ w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString() + a("", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams) + w("", sourceGenParams)
+ ")" + a(" ", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "{" + a("", sourceGenParams.isShouldIndent())
+ indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("native") != null && node.get("native") .getAsBoolean()
&& node.get("markdownDocumentationAttachment") != null
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty() && node.get("allParams") != null
&& node.get("restParameters") != null && node.get("hasReturns") != null
&& node.get("hasReturns") .getAsBoolean()
&& node.get("returnTypeAnnotationAttachments") != null
&& node.get("returnTypeNode") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "extern"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "function" + a("", sourceGenParams.isShouldIndent())
+ w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString() + a("", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "")
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams)
+ ")" + a(" ", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "returns" + a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams)
+ ";" + a("", sourceGenParams.isShouldIndent());
} else if (node.get("native") != null && node.get("native") .getAsBoolean()
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty() && node.get("allParams") != null
&& node.get("restParameters") != null
&& node.get("hasReturns") != null && node.get("hasReturns") .getAsBoolean()
&& node.get("returnTypeAnnotationAttachments") != null
&& node.get("returnTypeNode") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "extern"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent())
+ w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString() + a("", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "")
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "returns" + a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + ";"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("native") != null && node.get("native") .getAsBoolean()
&& node.get("markdownDocumentationAttachment") != null
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty() && node.get("allParams") != null
&& node.get("restParameters") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "extern"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "function" + a("", sourceGenParams.isShouldIndent())
+ w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString() + a("", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "")
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams)
+ ")" + a(" ", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + ";" + a("", sourceGenParams.isShouldIndent());
} else if (node.get("native") != null && node.get("native") .getAsBoolean()
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty() && node.get("allParams") != null
&& node.get("restParameters") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "extern"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent())
+ w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString() + a("", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "")
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ ";" + a("", sourceGenParams.isShouldIndent());
} else if (node.get("native") != null && node.get("native") .getAsBoolean()
&& node.get("markdownDocumentationAttachment") != null
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty() && node.get("allParams") != null
&& node.get("hasReturns") != null && node.get("hasReturns") .getAsBoolean()
&& node.get("returnTypeAnnotationAttachments") != null
&& node.get("returnTypeNode") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "extern"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "function" + a("", sourceGenParams.isShouldIndent())
+ w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString() + a("", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "returns" + a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + ";"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("native") != null && node.get("native") .getAsBoolean()
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty() && node.get("allParams") != null
&& node.get("hasReturns") != null
&& node.get("hasReturns") .getAsBoolean() && node.get("returnTypeAnnotationAttachments") != null
&& node.get("returnTypeNode") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "extern"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent())
+ w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString() + a("", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "returns"
+ a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + ";"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("native") != null && node.get("native") .getAsBoolean()
&& node.get("markdownDocumentationAttachment") != null
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty() && node.get("allParams") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "extern"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "function" + a("", sourceGenParams.isShouldIndent())
+ w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString() + a("", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + ";"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("native") != null && node.get("native") .getAsBoolean()
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty() && node.get("allParams") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "extern"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent())
+ w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString() + a("", sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + ";"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("hasReturns") != null
&& node.get("hasReturns") .getAsBoolean() && node.get("markdownDocumentationAttachment") != null
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null && node.get("receiver") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null
&& node.get("restParameters") != null && node.get("returnTypeAnnotationAttachments") != null
&& node.get("returnTypeNode") != null
&& node.get("endpointNodes") != null && node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "<"
+ a("", sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("receiver"), pretty, replaceLambda) + w("", sourceGenParams) + ">"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "")
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "returns" + a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("hasReturns") != null
&& node.get("hasReturns") .getAsBoolean() && node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null && node.get("receiver") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty() && node.get("allParams") != null
&& node.get("restParameters") != null
&& node.get("returnTypeAnnotationAttachments") != null && node.get("returnTypeNode") != null
&& node.get("endpointNodes") != null && node.get("body") != null
&& node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "<"
+ a("", sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("receiver"), pretty, replaceLambda) + w("", sourceGenParams) + ">"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "")
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "returns"
+ a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("hasReturns") != null
&& node.get("hasReturns") .getAsBoolean() && node.get("markdownDocumentationAttachment") != null
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null && node.get("receiver") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null
&& node.get("returnTypeAnnotationAttachments") != null && node.get("returnTypeNode") != null
&& node.get("endpointNodes") != null && node.get("body") != null
&& node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "<"
+ a("", sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("receiver"), pretty, replaceLambda) + w("", sourceGenParams) + ">"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "returns"
+ a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams) + outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("hasReturns") != null
&& node.get("hasReturns") .getAsBoolean() && node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null && node.get("receiver") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty() && node.get("allParams") != null
&& node.get("returnTypeAnnotationAttachments") != null
&& node.get("returnTypeNode") != null && node.get("endpointNodes") != null
&& node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "<"
+ a("", sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("receiver"), pretty, replaceLambda) + w("", sourceGenParams) + ">"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "returns"
+ a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams) + outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("hasReturns") != null
&& node.get("hasReturns") .getAsBoolean() && node.get("markdownDocumentationAttachment") != null
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty() && node.get("allParams") != null
&& node.get("restParameters") != null
&& node.get("returnTypeAnnotationAttachments") != null && node.get("returnTypeNode") != null
&& node.get("endpointNodes") != null && node.get("body") != null
&& node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "")
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "returns" + a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("hasReturns") != null
&& node.get("hasReturns") .getAsBoolean() && node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("restParameters") != null
&& node.get("returnTypeAnnotationAttachments") != null
&& node.get("returnTypeNode") != null && node.get("endpointNodes") != null
&& node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "")
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "returns"
+ a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("hasReturns") != null
&& node.get("hasReturns") .getAsBoolean() && node.get("markdownDocumentationAttachment") != null
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty() && node.get("allParams") != null
&& node.get("returnTypeAnnotationAttachments") != null
&& node.get("returnTypeNode") != null && node.get("endpointNodes") != null
&& node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "returns"
+ a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams) + outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("hasReturns") != null
&& node.get("hasReturns") .getAsBoolean() && node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("returnTypeAnnotationAttachments") != null
&& node.get("returnTypeNode") != null
&& node.get("endpointNodes") != null && node.get("body") != null
&& node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "returns"
+ a(" ", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("returnTypeAnnotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("returnTypeNode"), pretty, replaceLambda) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams) + outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("markdownDocumentationAttachment") != null
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null && node.get("receiver") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("restParameters") != null
&& node.get("endpointNodes") != null && node.get("body") != null
&& node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "<"
+ a("", sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("receiver"), pretty, replaceLambda) + w("", sourceGenParams) + ">"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "")
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null && node.get("receiver") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null
&& node.get("restParameters") != null && node.get("endpointNodes") != null
&& node.get("body") != null && node.get("workers") != null) {
return join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "")
+ dent(sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "<"
+ a("", sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("receiver"), pretty, replaceLambda) + w("", sourceGenParams) + ">"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "")
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("markdownDocumentationAttachment") != null
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null && node.get("receiver") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("endpointNodes") != null
&& node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "<"
+ a("", sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("receiver"), pretty, replaceLambda) + w("", sourceGenParams) + ">"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null && node.get("receiver") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty()
&& node.get("allParams") != null && node.get("endpointNodes") != null
&& node.get("body") != null && node.get("workers") != null) {
return join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "")
+ dent(sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "<"
+ a("", sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("receiver"), pretty, replaceLambda) + w("", sourceGenParams) + ">"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams) + outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("markdownDocumentationAttachment") != null
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty() && node.get("allParams") != null
&& node.get("restParameters") != null && node.get("endpointNodes") != null
&& node.get("body") != null && node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "")
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty() && node.get("allParams") != null
&& node.get("restParameters") != null
&& node.get("endpointNodes") != null && node.get("body") != null
&& node.get("workers") != null) {
return join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "")
+ dent(sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams)
+ (node.has("hasRestParams") && node.get("hasRestParams").getAsBoolean() ? w("", sourceGenParams) + ","
+ a("", sourceGenParams.isShouldIndent()) : "")
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("restParameters"), pretty, replaceLambda) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else if (node.get("markdownDocumentationAttachment") != null
&& node.get("annotationAttachments") != null
&& node.get("deprecatedAttachments") != null
&& node.getAsJsonObject("name").get("valueWithBar") != null
&& !node.getAsJsonObject("name").get("valueWithBar").getAsString().isEmpty() && node.get("allParams") != null
&& node.get("endpointNodes") != null && node.get("body") != null
&& node.get("workers") != null) {
return dent(sourceGenParams.isShouldIndent())
+ a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("markdownDocumentationAttachment"), pretty, replaceLambda)
+ join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "") + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams)
+ "(" + a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ outdent(node, sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
} else {
return join(node.getAsJsonArray("annotationAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ join(node.getAsJsonArray("deprecatedAttachments"), pretty, replaceLambda, "", null, false, sourceGenParams)
+ (node.has("public") && node.get("public").getAsBoolean() ? w("", sourceGenParams) + "public"
+ a(" ", sourceGenParams.isShouldIndent()) : "")
+ dent(sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "function"
+ a("", sourceGenParams.isShouldIndent()) + w(" ", sourceGenParams)
+ node.getAsJsonObject("name").get("valueWithBar").getAsString()
+ a("", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "("
+ a("", sourceGenParams.isShouldIndent())
+ join(node.getAsJsonArray("allParams"), pretty, replaceLambda, "", ",", false, sourceGenParams) + w("", sourceGenParams) + ")"
+ a(" ", sourceGenParams.isShouldIndent()) + w("", sourceGenParams) + "{"
+ a("", sourceGenParams.isShouldIndent()) + indent()
+ join(node.getAsJsonArray("endpointNodes"), pretty, replaceLambda, "", null, false, sourceGenParams) + a("", sourceGenParams.isShouldIndent())
+ getSourceOf(node.getAsJsonObject("body"), pretty, replaceLambda)
+ join(node.getAsJsonArray("workers"), pretty, replaceLambda, "", null, false, sourceGenParams) + outdent(node, sourceGenParams.isShouldIndent())
+ w("", sourceGenParams) + "}"
+ a("", sourceGenParams.isShouldIndent());
}
}