diff --git a/gradle/libraries.toml b/gradle/libraries.toml index 6faebea5dfb..0b9d1d8a850 100644 --- a/gradle/libraries.toml +++ b/gradle/libraries.toml @@ -163,7 +163,7 @@ moshi = { group = "com.squareup.moshi", name = "moshi", version = "1.14.0" } okio = { group = "com.squareup.okio", name = "okio", version.ref = "okio" } okio-nodefilesystem = { group = "com.squareup.okio", name = "okio-nodefilesystem", version.ref = "okio" } poet-java = { group = "com.squareup", name = "javapoet", version.ref = "javaPoet" } -poet-kotlin = { group = "com.squareup", name = "kotlinpoet", version = "1.14.2" } +poet-kotlin = { group = "com.squareup", name = "kotlinpoet", version = "2.0.0" } rx-java2 = { group = "io.reactivex.rxjava2", name = "rxjava", version.ref = "rx-java2" } rx-java3 = { group = "io.reactivex.rxjava3", name = "rxjava", version.ref = "rx-java3" } sqldelight-android = { group = "app.cash.sqldelight", name = "android-driver", version.ref = "sqldelight" } diff --git a/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/helpers/AdapterCommon.kt b/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/helpers/AdapterCommon.kt index c03cd127596..6aced584a2d 100644 --- a/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/helpers/AdapterCommon.kt +++ b/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/helpers/AdapterCommon.kt @@ -48,7 +48,7 @@ internal fun readFromResponseCodeBlock( } CodeBlock.of( - "var·%N:·%T·=·%L", + "var %N: %T = %L", property.info.responseName.variableName(), context.resolver.resolveIrType(property.info.type, context.jsExport).copy(nullable = !property.info.type.optional), variableInitializer @@ -66,14 +66,14 @@ internal fun readFromResponseCodeBlock( */ val loop = if (regularProperties.isNotEmpty()) { CodeBlock.builder() - .beginControlFlow("while·(true)") - .beginControlFlow("when·($reader.selectName($RESPONSE_NAMES))") + .beginControlFlow("while (true)") + .beginControlFlow("when ($reader.selectName($RESPONSE_NAMES))") .add( regularProperties.mapIndexed { index, property -> val variableName = property.info.responseName.variableName() val adapterInitializer = context.resolver.adapterInitializer(property.info.type, property.requiresBuffering, context.jsExport) CodeBlock.of( - "%L·->·%N·=·%L.$fromJson($reader,·${customScalarAdapters})", + "%L -> %N = %L.$fromJson($reader, ${customScalarAdapters})", index, variableName, adapterInitializer, @@ -104,7 +104,7 @@ internal fun readFromResponseCodeBlock( add("$reader.rewind()\n") add(typenameFromReaderCodeBlock()) } else { - beginControlFlow("check($__typename·!=·null)") + beginControlFlow("check($__typename != null)") add("%S\n", "__typename was not found") endControlFlow() } @@ -119,7 +119,7 @@ internal fun readFromResponseCodeBlock( .apply { if (property.condition != BooleanExpression.True) { add( - "var·%N:·%T·=·null\n", + "var %N: %T = null\n", property.info.responseName.variableName(), context.resolver.resolveIrType(property.info.type, context.jsExport).copy(nullable = !property.info.type.optional), ) @@ -133,17 +133,17 @@ internal fun readFromResponseCodeBlock( } else { "null" } - beginControlFlow("if·(%L.%M($customScalarAdapters.falseVariables,·$typenameLiteral,·$customScalarAdapters.deferredFragmentIdentifiers,·$pathLiteral))", property.condition.codeBlock(), evaluate) + beginControlFlow("if (%L.%M($customScalarAdapters.falseVariables, $typenameLiteral, $customScalarAdapters.deferredFragmentIdentifiers, $pathLiteral))", property.condition.codeBlock(), evaluate) add("$reader.rewind()\n") } else { checkedProperties.add(property.info.responseName) add("$reader.rewind()\n") - add("val·") + add("val ") } } .add( CodeBlock.of( - "%N·=·%L.$fromJson($reader, $customScalarAdapters)\n", + "%N = %L.$fromJson($reader, $customScalarAdapters)\n", property.info.responseName.variableName(), context.resolver.resolveModelAdapter(property.info.type.modelPath()), ) @@ -155,7 +155,7 @@ internal fun readFromResponseCodeBlock( }.joinToCode("\n") val suffix = CodeBlock.builder() - .addStatement("return·%T(", context.resolver.resolveModel(model.id)) + .addStatement("return %T(", context.resolver.resolveModel(model.id)) .indent() .add(model.properties.map { property -> val maybeAssertNotNull = if ( @@ -163,12 +163,12 @@ internal fun readFromResponseCodeBlock( && !property.info.type.optional && !checkedProperties.contains(property.info.responseName) ) { - CodeBlock.of("·?:·%M(reader,·%S)", KotlinSymbols.missingField, property.info.responseName) + CodeBlock.of(" ?: %M(reader, %S)", KotlinSymbols.missingField, property.info.responseName) } else { CodeBlock.of("") } CodeBlock.of( - "%N·=·%N%L", + "%N = %N%L", context.layout.propertyName(property.info.responseName), property.info.responseName.variableName(), maybeAssertNotNull @@ -229,7 +229,7 @@ private fun IrProperty.writeToResponseCodeBlock(context: KotlinContext): CodeBlo * Output types do not distinguish between null and absent */ if (this.info.type.nullable) { - builder.beginControlFlow("if·($value.%N·!=·null)", propertyName) + builder.beginControlFlow("if ($value.%N != null)", propertyName) } builder.addStatement( "%L.$toJson($writer, $customScalarAdapters, $value.%N)", diff --git a/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/helpers/DataClass.kt b/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/helpers/DataClass.kt index 838098ca264..e266a71a618 100644 --- a/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/helpers/DataClass.kt +++ b/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/helpers/DataClass.kt @@ -140,7 +140,7 @@ internal fun TypeSpec.Builder.withEqualsImplementation(className: ClassName): Ty fun methodCode(): CodeBlock { if (propertySpecs.isEmpty()) { return CodeBlock.builder() - .addStatement("return·other != null·&&·other::class·==·this::class") + .addStatement("return other != null && other::class == this::class") .build() } return CodeBlock.builder() @@ -183,7 +183,7 @@ internal fun TypeSpec.Builder.withHashCodeImplementation(): TypeSpec.Builder = a fun methodCode(): CodeBlock { if (propertySpecs.isEmpty()) { - return CodeBlock.builder().addStatement("return·this::class.hashCode()").build() + return CodeBlock.builder().addStatement("return this::class.hashCode()").build() } return CodeBlock.builder() .beginControlFlow("if (%L == null)", MEMOIZED_HASH_CODE_VAR) diff --git a/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/helpers/KDoc.kt b/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/helpers/KDoc.kt index 44d8e8f41d1..5c0fa8c0caa 100644 --- a/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/helpers/KDoc.kt +++ b/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/helpers/KDoc.kt @@ -18,7 +18,7 @@ internal fun TypeSpec.Builder.maybeAddDescription(description: String?): TypeSpe return this } - return addKdoc("%L", description) + return addKdoc("%L", description.replace(' ', '♢')) } internal fun PropertySpec.Builder.maybeAddDescription(description: String?): PropertySpec.Builder { @@ -26,7 +26,7 @@ internal fun PropertySpec.Builder.maybeAddDescription(description: String?): Pro return this } - return addKdoc("%L", description) + return addKdoc("%L", description.replace(' ', '♢')) } internal fun ParameterSpec.Builder.maybeAddDescription(description: String?): ParameterSpec.Builder { @@ -34,7 +34,7 @@ internal fun ParameterSpec.Builder.maybeAddDescription(description: String?): Pa return this } - return addKdoc("%L", description) + return addKdoc("%L", description.replace(' ', '♢')) } internal fun FunSpec.Builder.maybeAddDescription(description: String?): FunSpec.Builder { @@ -42,7 +42,7 @@ internal fun FunSpec.Builder.maybeAddDescription(description: String?): FunSpec. return this } - return addKdoc("%L", description) + return addKdoc("%L", description.replace(' ', '♢')) } diff --git a/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/helpers/NamedType.kt b/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/helpers/NamedType.kt index 2d9c0e43677..2d093a00a5b 100644 --- a/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/helpers/NamedType.kt +++ b/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/helpers/NamedType.kt @@ -71,10 +71,10 @@ internal fun NamedType.toSetterFunSpec(context: KotlinContext): FunSpec { val body = CodeBlock.builder() val parameterType: IrType if (type.optional) { - body.add("this.%N·=·%T(%N)\n", propertyName, KotlinSymbols.Present, propertyName) + body.add("this.%N = %T(%N)\n", propertyName, KotlinSymbols.Present, propertyName) parameterType = type.optional(false) } else { - body.add("this.%N·=·%N\n", propertyName, propertyName) + body.add("this.%N = %N\n", propertyName, propertyName) parameterType = type } body.add("return this") @@ -124,14 +124,14 @@ private fun List.toBuildFunSpec(context: KotlinContext, returnedClass .returns(returnedClassName) .addCode( CodeBlock.builder() - .add("return·%T(\n", returnedClassName) + .add("return %T(\n", returnedClassName) .indent() .apply { forEach { val propertyName = context.layout.propertyName(it.graphQlName) - add("%N·=·%N", propertyName, propertyName) + add("%N = %N", propertyName, propertyName) if (!it.type.nullable && !it.type.optional) { - add("·?:·error(\"missing·value·for·$propertyName\")") + add(" ?: error(\"missing value for $propertyName\")") } add(",\n") } diff --git a/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/helpers/PatchKotlinNative.kt b/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/helpers/PatchKotlinNative.kt index c9f704cf204..9e2b8043f86 100644 --- a/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/helpers/PatchKotlinNative.kt +++ b/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/helpers/PatchKotlinNative.kt @@ -32,7 +32,7 @@ internal fun TypeSpec.patchKotlinNativeOptionalArrayProperties(): TypeSpec { FunSpec .builder("${propertySpec.name}FilterNotNull") .returns(nonOptionalListType) - .addStatement("return·%N%L.filterNotNull()", propertySpec.name, if (propertySpec.type.isNullable) "?" else "") + .addStatement("return %N%L.filterNotNull()", propertySpec.name, if (propertySpec.type.isNullable) "?" else "") .build() } return toBuilder() diff --git a/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/helpers/data-builders.kt b/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/helpers/data-builders.kt index a05c42de919..dae77f59842 100644 --- a/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/helpers/data-builders.kt +++ b/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/helpers/data-builders.kt @@ -84,7 +84,7 @@ internal fun dataBuilderCtor( ) .addCode( CodeBlock.builder() - .add("return·%M(\n", KotlinSymbols.buildData) + .add("return %M(\n", KotlinSymbols.buildData) .indent() .apply { if (builderFactoryParameterRequired) { @@ -141,10 +141,10 @@ internal fun topLevelBuildFunSpec( .receiver(KotlinSymbols.BuilderScope) .addCode( CodeBlock.builder() - .add("return·%T(${customScalarAdapters}).apply($block)", builderClassName) + .add("return %T(${customScalarAdapters}).apply($block)", builderClassName) .apply { if (requiresTypename) { - add(".apply·{·__typename·=·typename·}") + add(".apply { __typename = typename }") } } .add(".build()") @@ -214,7 +214,7 @@ internal fun concreteBuilderTypeSpec( .addFunction(buildFunSpec(packageName, mapName)) .apply { if (typename != null) { - addInitializerBlock(CodeBlock.of("$__typename·=·%S", typename)) + addInitializerBlock(CodeBlock.of("$__typename = %S", typename)) } } .build() @@ -242,7 +242,7 @@ private fun buildFunSpec(packageName: String, mapName: String): FunSpec { .addModifiers(KModifier.OVERRIDE) .addCode( CodeBlock.builder() - .addStatement("return·%T(${Identifier.__fields})", mapClassName) + .addStatement("return %T(${Identifier.__fields})", mapClassName) .build() ) .build() diff --git a/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/operations/CompiledSelectionsBuilder.kt b/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/operations/CompiledSelectionsBuilder.kt index a2086d4730c..d24583ab57f 100644 --- a/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/operations/CompiledSelectionsBuilder.kt +++ b/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/operations/CompiledSelectionsBuilder.kt @@ -49,9 +49,9 @@ internal class CompiledSelectionsBuilder( val builder = CodeBlock.builder() builder.add("%T(\n", KotlinSymbols.CompiledFieldBuilder) builder.indent() - builder.add("name·=·%S,\n", name) + builder.add("name = %S,\n", name) builder.add( - CodeBlock.of("type·=·%L\n", type.codeBlock(context)) + CodeBlock.of("type = %L\n", type.codeBlock(context)) ) builder.unindent() builder.add(")") @@ -77,8 +77,8 @@ internal class CompiledSelectionsBuilder( val builder = CodeBlock.builder() builder.add("%T(\n", KotlinSymbols.CompiledFragmentBuilder) builder.indent() - builder.add("typeCondition·=·%S,\n", typeCondition) - builder.add("possibleTypes·=·%L\n", possibleTypes.map { CodeBlock.of("%S", it) }.toListInitializerCodeblock(false)) + builder.add("typeCondition = %S,\n", typeCondition) + builder.add("possibleTypes = %L\n", possibleTypes.map { CodeBlock.of("%S", it) }.toListInitializerCodeblock(false)) builder.unindent() builder.add(")") @@ -119,7 +119,7 @@ internal class CompiledSelectionsBuilder( check(expression is BooleanExpression.Element) - return CodeBlock.of("%T(%S,·%L)", KotlinSymbols.CompiledCondition, expression.value.name, inverted.toString()) + return CodeBlock.of("%T(%S, %L)", KotlinSymbols.CompiledCondition, expression.value.name, inverted.toString()) } private fun IrArgument.codeBlock(): CodeBlock { diff --git a/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/operations/OperationBuilder.kt b/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/operations/OperationBuilder.kt index 176b07c8a85..06fe7d1b77a 100644 --- a/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/operations/OperationBuilder.kt +++ b/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/operations/OperationBuilder.kt @@ -144,7 +144,7 @@ internal class OperationBuilder( private fun operationIdFunSpec() = FunSpec.builder(Identifier.id) .addModifiers(KModifier.OVERRIDE) .returns(KotlinSymbols.String) - .addStatement("return·${Identifier.OPERATION_ID}") + .addStatement("return ${Identifier.OPERATION_ID}") .build() private fun queryDocumentFunSpec(generateQueryDocument: Boolean) = FunSpec.builder(Identifier.document) @@ -152,9 +152,9 @@ internal class OperationBuilder( .returns(KotlinSymbols.String) .apply { if (generateQueryDocument) { - addStatement("return·${Identifier.OPERATION_DOCUMENT}") + addStatement("return ${Identifier.OPERATION_DOCUMENT}") } else { - addStatement("error(\"The·query·document·was·removed·from·this·operation.·Use·generateQueryDocument.set(true)·if·you·need·it\")") + addStatement("error(\"The query document was removed from this operation. Use generateQueryDocument.set(true) if you need it\")") } } .build() @@ -162,7 +162,7 @@ internal class OperationBuilder( private fun nameFunSpec() = FunSpec.builder(Identifier.name) .addModifiers(KModifier.OVERRIDE) .returns(KotlinSymbols.String) - .addStatement("return·OPERATION_NAME") + .addStatement("return OPERATION_NAME") .build() private fun companionTypeSpec(): TypeSpec { @@ -175,7 +175,7 @@ internal class OperationBuilder( .applyIf(generateQueryDocument) { addProperty(PropertySpec.builder(Identifier.OPERATION_DOCUMENT, KotlinSymbols.String) .getter(FunSpec.getterBuilder() - .addStatement("return·%S", QueryDocumentMinifier.minify(operation.sourceWithFragments)) + .addStatement("return %S", QueryDocumentMinifier.minify(operation.sourceWithFragments)) .build() ) .addKdoc("%L", """ diff --git a/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/operations/util/ExecutableCommon.kt b/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/operations/util/ExecutableCommon.kt index 9a87573c971..ffa25d11117 100644 --- a/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/operations/util/ExecutableCommon.kt +++ b/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/operations/util/ExecutableCommon.kt @@ -56,7 +56,7 @@ internal fun adapterFunSpec( .returns(KotlinSymbols.Adapter.parameterizedBy(context.resolver.resolveIrType(type, context.jsExport))) .addCode( CodeBlock.of( - "return·%L", + "return %L", context.resolver.adapterInitializer(type, property.requiresBuffering, context.jsExport) ) ) @@ -69,13 +69,13 @@ internal fun rootFieldFunSpec(context: KotlinOperationsContext, parentType: Stri .returns(KotlinSymbols.CompiledField) .addCode( CodeBlock.builder() - .add("return·%T(\n", KotlinSymbols.CompiledFieldBuilder) + .add("return %T(\n", KotlinSymbols.CompiledFieldBuilder) .indent() - .add("name·=·%S,\n", Identifier.data) - .add("type·=·%L\n", context.resolver.resolveCompiledType(parentType)) + .add("name = %S,\n", Identifier.data) + .add("type = %L\n", context.resolver.resolveCompiledType(parentType)) .unindent() .add(")\n") - .add(".$selections(selections·=·%T.$root)\n", selectionsClassName) + .add(".$selections(selections = %T.$root)\n", selectionsClassName) .add(".build()\n") .build() ) diff --git a/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/operations/util/PolymorphicFieldResponseAdapterBuilder.kt b/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/operations/util/PolymorphicFieldResponseAdapterBuilder.kt index 339de358a65..6f0416f952d 100644 --- a/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/operations/util/PolymorphicFieldResponseAdapterBuilder.kt +++ b/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/operations/util/PolymorphicFieldResponseAdapterBuilder.kt @@ -118,7 +118,7 @@ internal class PolymorphicFieldResponseAdapterBuilder( builder.add(typenameFromReaderCodeBlock()) - builder.beginControlFlow("return·when($__typename) {") + builder.beginControlFlow("return when($__typename) {") implementations.sortedByDescending { it.typeSet.size }.sortedByDescending { diff --git a/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/schema/EnumAsEnumBuilder.kt b/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/schema/EnumAsEnumBuilder.kt index 1d0a5239b68..f0573727731 100644 --- a/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/schema/EnumAsEnumBuilder.kt +++ b/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/schema/EnumAsEnumBuilder.kt @@ -89,7 +89,7 @@ internal class EnumAsEnumBuilder( private fun IrEnum.knownValuesFunSpec(): FunSpec { return FunSpec.builder(Identifier.knownValues) .addKdoc("Returns all [%T] known at compile time", selfClassName) - .addAnnotation(deprecatedAnnotation("Use knownEntries instead").toBuilder().addMember("replaceWith·=·ReplaceWith(%S)", "this.knownEntries").build()) + .addAnnotation(deprecatedAnnotation("Use knownEntries instead").toBuilder().addMember("replaceWith = ReplaceWith(%S)", "this.knownEntries").build()) .returns(KotlinSymbols.Array.parameterizedBy(selfClassName)) .addCode("return %N.toTypedArray()", Identifier.knownEntries) .build() @@ -103,7 +103,7 @@ internal class EnumAsEnumBuilder( .getter( FunSpec.getterBuilder() .addCode(CodeBlock.builder() - .add("return·listOf(\n") + .add("return listOf(\n") .indent() .add( values.map { @@ -131,7 +131,7 @@ internal class EnumAsEnumBuilder( .addParameter("rawValue", String:: class) .returns(selfClassName) - .addCode("return·$entries.find·{·it.rawValue·==·rawValue·} ?: ") + .addCode("return $entries.find { it.rawValue == rawValue } ?: ") .apply { if (withUnknown) { addCode(Identifier.UNKNOWN__) diff --git a/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/schema/EnumAsSealedBuilder.kt b/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/schema/EnumAsSealedBuilder.kt index 9625f1622ef..ea469b65898 100644 --- a/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/schema/EnumAsSealedBuilder.kt +++ b/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/schema/EnumAsSealedBuilder.kt @@ -110,22 +110,22 @@ internal class EnumAsSealedBuilder( .addModifiers(KModifier.OVERRIDE) .addParameter(ParameterSpec("other", KotlinSymbols.Any.copy(nullable = true))) .returns(KotlinSymbols.Boolean) - .addCode("if·(other·!is·%T) return false\n", unknownValueClassName()) - .addCode("return·this.rawValue·==·other.rawValue") + .addCode("if (other !is %T) return false\n", unknownValueClassName()) + .addCode("return this.rawValue == other.rawValue") .build() ) .addFunction( FunSpec.builder("hashCode") .addModifiers(KModifier.OVERRIDE) .returns(KotlinSymbols.Int) - .addCode("return·this.rawValue.hashCode()") + .addCode("return this.rawValue.hashCode()") .build() ) .addFunction( FunSpec.builder("toString") .addModifiers(KModifier.OVERRIDE) .returns(KotlinSymbols.String) - .addCode("return·\"UNKNOWN__(${'$'}rawValue)\"") + .addCode("return \"UNKNOWN__(${'$'}rawValue)\"") .build() ) .build() @@ -142,10 +142,10 @@ internal class EnumAsSealedBuilder( .maybeAddOptIn(context.resolver, enum.values) .addParameter("rawValue", KotlinSymbols.String) .returns(selfClassName) - .beginControlFlow("return·when(rawValue)") + .beginControlFlow("return when(rawValue)") .addCode( values - .map { CodeBlock.of("%S·->·%T", it.name, it.valueClassName()) } + .map { CodeBlock.of("%S -> %T", it.name, it.valueClassName()) } .joinToCode(separator = "\n", suffix = "\n") ) .addCode("else -> %T(rawValue)\n", unknownValueClassName()) @@ -161,7 +161,7 @@ internal class EnumAsSealedBuilder( .returns(KotlinSymbols.Array.parameterizedBy(selfClassName)) .addCode( CodeBlock.builder() - .add("return·arrayOf(\n") + .add("return arrayOf(\n") .indent() .add( values.map { diff --git a/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/schema/EnumResponseAdapterBuilder.kt b/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/schema/EnumResponseAdapterBuilder.kt index 602ef620211..a45e79a3bc8 100644 --- a/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/schema/EnumResponseAdapterBuilder.kt +++ b/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/schema/EnumResponseAdapterBuilder.kt @@ -48,8 +48,8 @@ internal class EnumResponseAdapterBuilder( .returns(adaptedTypeName) .addCode( CodeBlock.builder() - .addStatement("val·rawValue·=·reader.nextString()!!") - .addStatement("return·%T.${Identifier.safeValueOf}(rawValue)", adaptedTypeName) + .addStatement("val rawValue = reader.nextString()!!") + .addStatement("return %T.${Identifier.safeValueOf}(rawValue)", adaptedTypeName) .build() ) .addModifiers(KModifier.OVERRIDE) diff --git a/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/schema/SchemaBuilder.kt b/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/schema/SchemaBuilder.kt index cb27f7aa48d..74000248a07 100644 --- a/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/schema/SchemaBuilder.kt +++ b/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/schema/SchemaBuilder.kt @@ -73,7 +73,7 @@ internal class SchemaBuilder( builder.addParameter("type", KotlinSymbols.CompiledNamedType) builder.returns(KotlinSymbols.List.parameterizedBy(KotlinSymbols.ObjectType)) - builder.addCode("return·%M(all, type)\n", MemberName("com.apollographql.apollo.api", "possibleTypes")) + builder.addCode("return %M(all, type)\n", MemberName("com.apollographql.apollo.api", "possibleTypes")) return builder.build() } } diff --git a/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/schema/util/TypesBuilder.kt b/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/schema/util/TypesBuilder.kt index 142c815f9c9..8ae1f9981b5 100644 --- a/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/schema/util/TypesBuilder.kt +++ b/libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/codegen/kotlin/schema/util/TypesBuilder.kt @@ -31,7 +31,7 @@ internal fun IrScalar.typePropertySpec(targetTypeName: String?): PropertySpec { val kotlinName = targetTypeName ?: builtinScalarKotlinName(name) ?: "kotlin.Any" return PropertySpec .builder(Identifier.type, KotlinSymbols.CustomScalarType) - .initializer("%T(%S,·%S)", KotlinSymbols.CustomScalarType, name, kotlinName) + .initializer("%T(%S, %S)", KotlinSymbols.CustomScalarType, name, kotlinName) .build() } @@ -47,7 +47,7 @@ private fun builtinScalarKotlinName(name: String): String? = when (name) { internal fun IrEnum.typePropertySpec(): PropertySpec { return PropertySpec .builder(Identifier.type, KotlinSymbols.EnumType) - .initializer("%T(%S,·%L)", KotlinSymbols.EnumType, name, this.values.map { CodeBlock.of("%S", it.name) }.toListInitializerCodeblock()) + .initializer("%T(%S, %L)", KotlinSymbols.EnumType, name, this.values.map { CodeBlock.of("%S", it.name) }.toListInitializerCodeblock()) .build() } @@ -64,14 +64,14 @@ private fun List.implementsToCode(resolver: KotlinResolver): CodeBlock { builder.add("listOf(") builder.add("%L", sorted().map { resolver.resolveCompiledType(it) - }.joinToCode(",·")) + }.joinToCode(", ")) builder.add(")") return builder.build() } internal fun IrObject.typePropertySpec(resolver: KotlinResolver): PropertySpec { val builder = CodeBlock.builder() - builder.add("%T(name·=·%S)", KotlinSymbols.ObjectTypeBuilder, name) + builder.add("%T(name = %S)", KotlinSymbols.ObjectTypeBuilder, name) if (keyFields.isNotEmpty()) { builder.add(".keyFields(%L)", keyFields.toCode()) } @@ -94,12 +94,12 @@ internal fun newBuilderFunSpec(returnedClassName: ClassName): FunSpec { .returns(returnedClassName) .addModifiers(KModifier.OVERRIDE) .addParameter(ParameterSpec.builder(customScalarAdapters, KotlinSymbols.CustomScalarAdapters).build()) - .addCode("return·%T($customScalarAdapters)", returnedClassName) + .addCode("return %T($customScalarAdapters)", returnedClassName) .build() } internal fun IrInterface.typePropertySpec(resolver: KotlinResolver): PropertySpec { val builder = CodeBlock.builder() - builder.add("%T(name·=·%S)", KotlinSymbols.InterfaceTypeBuilder, name) + builder.add("%T(name = %S)", KotlinSymbols.InterfaceTypeBuilder, name) if (keyFields.isNotEmpty()) { builder.add(".keyFields(%L)", keyFields.toCode()) } @@ -122,12 +122,12 @@ internal fun IrUnion.typePropertySpec(resolver: KotlinResolver): PropertySpec { val builder = CodeBlock.builder() builder.add(members.map { resolver.resolveCompiledType(it) - }.joinToCode(",·")) + }.joinToCode(", ")) return PropertySpec .builder(type, KotlinSymbols.UnionType) .maybeAddDescription(description) .maybeAddDeprecation(deprecationReason) - .initializer("%T(%S,·%L)", KotlinSymbols.UnionType, name, builder.build()) + .initializer("%T(%S, %L)", KotlinSymbols.UnionType, name, builder.build()) .build() } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/__schema/kotlin/responseBased/__schema/schema/__Schema.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/__schema/kotlin/responseBased/__schema/schema/__Schema.kt.expected index 8b31ecdee3e..467ebc5ff38 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/__schema/kotlin/responseBased/__schema/schema/__Schema.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/__schema/kotlin/responseBased/__schema/schema/__Schema.kt.expected @@ -16,7 +16,5 @@ public object __Schema { public val all: List = listOf( ) - - public fun possibleTypes(type: CompiledNamedType): List = - com.apollographql.apollo.api.possibleTypes(all, type) + public fun possibleTypes(type: CompiledNamedType): List = com.apollographql.apollo.api.possibleTypes(all, type) } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/__schema/kotlin/responseBased/__schema/type/__CustomScalarAdapters.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/__schema/kotlin/responseBased/__schema/type/__CustomScalarAdapters.kt.expected index a71243456a6..b04dcf6aa6f 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/__schema/kotlin/responseBased/__schema/type/__CustomScalarAdapters.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/__schema/kotlin/responseBased/__schema/type/__CustomScalarAdapters.kt.expected @@ -12,4 +12,3 @@ import com.apollographql.apollo.api.CustomScalarAdapters */ public val __CustomScalarAdapters: CustomScalarAdapters = CustomScalarAdapters.Builder() .build() - diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/antlr_tokens/kotlin/responseBased/antlr_tokens/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/antlr_tokens/kotlin/responseBased/antlr_tokens/TestQuery.kt.expected index d361ca534a1..759f5ce06f9 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/antlr_tokens/kotlin/responseBased/antlr_tokens/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/antlr_tokens/kotlin/responseBased/antlr_tokens/TestQuery.kt.expected @@ -34,8 +34,7 @@ public data class TestQuery( customScalarAdapters: CustomScalarAdapters, withDefaultValues: Boolean, ) { - TestQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, - withDefaultValues) + TestQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, withDefaultValues) } override fun adapter(): Adapter = TestQuery_ResponseAdapter.Data.obj() @@ -77,8 +76,7 @@ public data class TestQuery( * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery(${'$'}operation: String) { typeWithGraphQLKeywords { on null(fragment: ${'$'}operation) alias: null(fragment: \"A string\\nwith a new line\") } }" + get() = "query TestQuery(${'$'}operation: String) { typeWithGraphQLKeywords { on null(fragment: ${'$'}operation) alias: null(fragment: \"A string\\nwith a new line\") } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/antlr_tokens/kotlin/responseBased/antlr_tokens/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/antlr_tokens/kotlin/responseBased/antlr_tokens/adapter/TestQuery_ResponseAdapter.kt.expected index 12c379d058a..6834370b352 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/antlr_tokens/kotlin/responseBased/antlr_tokens/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/antlr_tokens/kotlin/responseBased/antlr_tokens/adapter/TestQuery_ResponseAdapter.kt.expected @@ -20,8 +20,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("typeWithGraphQLKeywords") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _typeWithGraphQLKeywords: TestQuery.Data.TypeWithGraphQLKeywords? = null while (true) { @@ -42,15 +41,13 @@ public object TestQuery_ResponseAdapter { `value`: TestQuery.Data, ) { writer.name("typeWithGraphQLKeywords") - TypeWithGraphQLKeywords.obj().nullable().toJson(writer, customScalarAdapters, - value.typeWithGraphQLKeywords) + TypeWithGraphQLKeywords.obj().nullable().toJson(writer, customScalarAdapters, value.typeWithGraphQLKeywords) } private object TypeWithGraphQLKeywords : Adapter { public val RESPONSE_NAMES: List = listOf("on", "null", "alias") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.TypeWithGraphQLKeywords { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.TypeWithGraphQLKeywords { var _on: String? = null var _null: String? = null var _alias: String? = null diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/arguments_hardcoded/kotlin/responseBased/arguments_hardcoded/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/arguments_hardcoded/kotlin/responseBased/arguments_hardcoded/TestQuery.kt.expected index f6f5dfb1c8a..8ce8a37e058 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/arguments_hardcoded/kotlin/responseBased/arguments_hardcoded/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/arguments_hardcoded/kotlin/responseBased/arguments_hardcoded/TestQuery.kt.expected @@ -82,14 +82,12 @@ public class TestQuery() : Query { * stars * commentary * } - * testNullableArguments(int: null, string: null, float: null, review: null, episode: null, - * boolean: null, list: null) + * testNullableArguments(int: null, string: null, float: null, review: null, episode: null, boolean: null, list: null) * } * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { reviews(episode: JEDI, starsInt: 10, starsFloat: 9.9) { stars commentary } testNullableArguments(int: null, string: null, float: null, review: null, episode: null, boolean: null, list: null) }" + get() = "query TestQuery { reviews(episode: JEDI, starsInt: 10, starsFloat: 9.9) { stars commentary } testNullableArguments(int: null, string: null, float: null, review: null, episode: null, boolean: null, list: null) }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/arguments_hardcoded/kotlin/responseBased/arguments_hardcoded/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/arguments_hardcoded/kotlin/responseBased/arguments_hardcoded/adapter/TestQuery_ResponseAdapter.kt.expected index 642ce445a51..ca5696888af 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/arguments_hardcoded/kotlin/responseBased/arguments_hardcoded/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/arguments_hardcoded/kotlin/responseBased/arguments_hardcoded/adapter/TestQuery_ResponseAdapter.kt.expected @@ -24,8 +24,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("reviews", "testNullableArguments") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _reviews: List? = null var _testNullableArguments: Int? = null @@ -58,8 +57,7 @@ public object TestQuery_ResponseAdapter { private object Review : Adapter { public val RESPONSE_NAMES: List = listOf("stars", "commentary") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Review { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Review { var _stars: Int? = null var _commentary: String? = null diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/big_query/kotlin/responseBased/big_query/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/big_query/kotlin/responseBased/big_query/TestQuery.kt.expected index d26aa8e080f..a1f3ff4d41c 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/big_query/kotlin/responseBased/big_query/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/big_query/kotlin/responseBased/big_query/TestQuery.kt.expected @@ -70,17 +70,14 @@ public class TestQuery() : Query { * * ``` * query TestQuery { - * character(id: - * "vvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoi") - * { + * character(id: "vvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoi") { * name * } * } * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { character(id: \"vvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoi\") { name } }" + get() = "query TestQuery { character(id: \"vvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoivvoihoihoihoihoihoihoihoihoihoihoi\") { name } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/big_query/kotlin/responseBased/big_query/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/big_query/kotlin/responseBased/big_query/adapter/TestQuery_ResponseAdapter.kt.expected index 34fa491c4ad..9c37f876be3 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/big_query/kotlin/responseBased/big_query/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/big_query/kotlin/responseBased/big_query/adapter/TestQuery_ResponseAdapter.kt.expected @@ -21,8 +21,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("character") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _character: TestQuery.Data.Character? = null while (true) { @@ -49,8 +48,7 @@ public object TestQuery_ResponseAdapter { private object Character : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Character { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Character { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/capitalized_fields/kotlin/operationBased/capitalized_fields/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/capitalized_fields/kotlin/operationBased/capitalized_fields/adapter/TestQuery_ResponseAdapter.kt.expected index 45f1b6c8960..12adeec954a 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/capitalized_fields/kotlin/operationBased/capitalized_fields/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/capitalized_fields/kotlin/operationBased/capitalized_fields/adapter/TestQuery_ResponseAdapter.kt.expected @@ -22,8 +22,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("Horse") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _Horse: TestQuery.Horse? = null while (true) { @@ -51,8 +50,7 @@ public object TestQuery_ResponseAdapter { public object Horse : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "Donkey") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Horse { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Horse { var __typename: String? = null var _Donkey: String? = null @@ -65,8 +63,7 @@ public object TestQuery_ResponseAdapter { } reader.rewind() - val _onHorse = com.example.capitalized_fields.adapter.TestQuery_ResponseAdapter.OnHorse.fromJson(reader, - customScalarAdapters) + val _onHorse = com.example.capitalized_fields.adapter.TestQuery_ResponseAdapter.OnHorse.fromJson(reader, customScalarAdapters) return TestQuery.Horse( __typename = __typename ?: missingField(reader, "__typename"), @@ -86,16 +83,14 @@ public object TestQuery_ResponseAdapter { writer.name("Donkey") NullableStringAdapter.toJson(writer, customScalarAdapters, value.Donkey) - com.example.capitalized_fields.adapter.TestQuery_ResponseAdapter.OnHorse.toJson(writer, - customScalarAdapters, value.onHorse) + com.example.capitalized_fields.adapter.TestQuery_ResponseAdapter.OnHorse.toJson(writer, customScalarAdapters, value.onHorse) } } public object OnHorse : Adapter { public val RESPONSE_NAMES: List = listOf("Cow") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.OnHorse { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.OnHorse { var _Cow: TestQuery.Cow? = null while (true) { @@ -123,8 +118,7 @@ public object TestQuery_ResponseAdapter { public object Cow : Adapter { public val RESPONSE_NAMES: List = listOf("Moo") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Cow { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Cow { var _Moo: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/capitalized_fields/kotlin/responseBased/capitalized_fields/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/capitalized_fields/kotlin/responseBased/capitalized_fields/adapter/TestQuery_ResponseAdapter.kt.expected index e2ac28bc800..5f448b86137 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/capitalized_fields/kotlin/responseBased/capitalized_fields/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/capitalized_fields/kotlin/responseBased/capitalized_fields/adapter/TestQuery_ResponseAdapter.kt.expected @@ -22,8 +22,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("Horse") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _Horse: TestQuery.Horse? = null while (true) { @@ -51,8 +50,7 @@ public object TestQuery_ResponseAdapter { public object Horse : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "Donkey", "Cow") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Horse { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Horse { var __typename: String? = null var _Donkey: String? = null var _Cow: TestQuery.Cow? = null @@ -92,8 +90,7 @@ public object TestQuery_ResponseAdapter { public object Cow : Adapter { public val RESPONSE_NAMES: List = listOf("Moo") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Cow { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Cow { var _Moo: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/case_sensitive_enum/kotlin/responseBased/case_sensitive_enum/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/case_sensitive_enum/kotlin/responseBased/case_sensitive_enum/adapter/TestQuery_ResponseAdapter.kt.expected index 5c50949fb71..b02ab8b62dc 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/case_sensitive_enum/kotlin/responseBased/case_sensitive_enum/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/case_sensitive_enum/kotlin/responseBased/case_sensitive_enum/adapter/TestQuery_ResponseAdapter.kt.expected @@ -20,8 +20,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("enum") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _enum: Enum? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/case_sensitive_enum/kotlin/responseBased/case_sensitive_enum/type/Enum.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/case_sensitive_enum/kotlin/responseBased/case_sensitive_enum/type/Enum.kt.expected index 7e3b87f673a..f87eb6c2f94 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/case_sensitive_enum/kotlin/responseBased/case_sensitive_enum/type/Enum.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/case_sensitive_enum/kotlin/responseBased/case_sensitive_enum/type/Enum.kt.expected @@ -52,10 +52,8 @@ public enum class Enum( /** * Returns the [Enum] that represents the specified [rawValue]. - * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your - * schema instead of calling this function directly. + * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your schema instead of calling this function directly. */ - public fun safeValueOf(rawValue: String): Enum = values().find { it.rawValue == rawValue } ?: - UNKNOWN__ + public fun safeValueOf(rawValue: String): Enum = values().find { it.rawValue == rawValue } ?: UNKNOWN__ } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/companion/kotlin/operationBased/companion/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/companion/kotlin/operationBased/companion/adapter/TestQuery_ResponseAdapter.kt.expected index be2da07886a..f6b85e5c1c4 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/companion/kotlin/operationBased/companion/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/companion/kotlin/operationBased/companion/adapter/TestQuery_ResponseAdapter.kt.expected @@ -22,8 +22,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("companion") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _companion: TestQuery.Companion_? = null while (true) { @@ -51,8 +50,7 @@ public object TestQuery_ResponseAdapter { public object Companion : Adapter { public val RESPONSE_NAMES: List = listOf("foo") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Companion_ { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Companion_ { var _foo: Int? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/custom_scalar_type/kotlin/responseBased/custom_scalar_type/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/custom_scalar_type/kotlin/responseBased/custom_scalar_type/TestQuery.kt.expected index 7d8c402d749..3e2e88974cf 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/custom_scalar_type/kotlin/responseBased/custom_scalar_type/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/custom_scalar_type/kotlin/responseBased/custom_scalar_type/TestQuery.kt.expected @@ -110,8 +110,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { hero { id name birthDate appearanceDates fieldWithUnsupportedType profileLink links } }" + get() = "query TestQuery { hero { id name birthDate appearanceDates fieldWithUnsupportedType profileLink links } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/custom_scalar_type/kotlin/responseBased/custom_scalar_type/adapter/ScalarWithGenericType_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/custom_scalar_type/kotlin/responseBased/custom_scalar_type/adapter/ScalarWithGenericType_ResponseAdapter.kt.expected index 60836288371..b74a263120f 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/custom_scalar_type/kotlin/responseBased/custom_scalar_type/adapter/ScalarWithGenericType_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/custom_scalar_type/kotlin/responseBased/custom_scalar_type/adapter/ScalarWithGenericType_ResponseAdapter.kt.expected @@ -19,8 +19,7 @@ public object ScalarWithGenericType_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("listOfString") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - ScalarWithGenericType.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): ScalarWithGenericType.Data { var _listOfString: List? = null while (true) { @@ -41,8 +40,7 @@ public object ScalarWithGenericType_ResponseAdapter { `value`: ScalarWithGenericType.Data, ) { writer.name("listOfString") - customScalarAdapters.responseAdapterFor>(ListOfString.type).nullable().toJson(writer, - customScalarAdapters, value.listOfString) + customScalarAdapters.responseAdapterFor>(ListOfString.type).nullable().toJson(writer, customScalarAdapters, value.listOfString) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/custom_scalar_type/kotlin/responseBased/custom_scalar_type/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/custom_scalar_type/kotlin/responseBased/custom_scalar_type/adapter/TestQuery_ResponseAdapter.kt.expected index 47141f6d2df..43a26956db9 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/custom_scalar_type/kotlin/responseBased/custom_scalar_type/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/custom_scalar_type/kotlin/responseBased/custom_scalar_type/adapter/TestQuery_ResponseAdapter.kt.expected @@ -27,8 +27,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _hero: TestQuery.Data.Hero? = null while (true) { @@ -53,11 +52,10 @@ public object TestQuery_ResponseAdapter { } private object Hero : Adapter { - public val RESPONSE_NAMES: List = listOf("id", "name", "birthDate", "appearanceDates", - "fieldWithUnsupportedType", "profileLink", "links") + public val RESPONSE_NAMES: List = + listOf("id", "name", "birthDate", "appearanceDates", "fieldWithUnsupportedType", "profileLink", "links") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero { var _id: Long? = null var _name: String? = null var _birthDate: UtilDate? = null @@ -96,19 +94,16 @@ public object TestQuery_ResponseAdapter { `value`: TestQuery.Data.Hero, ) { writer.name("id") - customScalarAdapters.responseAdapterFor(GraphQLID.type).toJson(writer, - customScalarAdapters, value.id) + customScalarAdapters.responseAdapterFor(GraphQLID.type).toJson(writer, customScalarAdapters, value.id) writer.name("name") com.example.MyStringAdapter().toJson(writer, customScalarAdapters, value.name) writer.name("birthDate") - customScalarAdapters.responseAdapterFor(TypeDate.type).toJson(writer, - customScalarAdapters, value.birthDate) + customScalarAdapters.responseAdapterFor(TypeDate.type).toJson(writer, customScalarAdapters, value.birthDate) writer.name("appearanceDates") - customScalarAdapters.responseAdapterFor(TypeDate.type).list().toJson(writer, - customScalarAdapters, value.appearanceDates) + customScalarAdapters.responseAdapterFor(TypeDate.type).list().toJson(writer, customScalarAdapters, value.appearanceDates) writer.name("fieldWithUnsupportedType") AnyAdapter.toJson(writer, customScalarAdapters, value.fieldWithUnsupportedType) diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/AnimalQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/AnimalQuery.kt.expected index 88be37c38b6..979b16a0a4e 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/AnimalQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/AnimalQuery.kt.expected @@ -101,13 +101,11 @@ public class AnimalQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query AnimalQuery { animal { __typename ...CatFragment ...DogFragment } } fragment CatFragment on Cat { meow } fragment DogFragment on Dog { woof }" + get() = "query AnimalQuery { animal { __typename ...CatFragment ...DogFragment } } fragment CatFragment on Cat { meow } fragment DogFragment on Dog { woof }" public const val OPERATION_NAME: String = "AnimalQuery" - public fun Data(resolver: FakeResolver = DefaultFakeResolver(__Schema.all), - block: QueryBuilder.() -> Unit = {}): Data = buildData( + public fun Data(resolver: FakeResolver = DefaultFakeResolver(__Schema.all), block: QueryBuilder.() -> Unit = {}): Data = buildData( CompiledQuery, block, AnimalQuery_ResponseAdapter.Data, diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/CharacterQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/CharacterQuery.kt.expected index 43d462e978b..d57bca6ffbd 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/CharacterQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/CharacterQuery.kt.expected @@ -105,13 +105,11 @@ public class CharacterQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query CharacterQuery { character { __typename id name ...HumanFragment ...DroidFragment } } fragment HumanFragment on Human { homePlanet } fragment DroidFragment on Droid { primaryFunction }" + get() = "query CharacterQuery { character { __typename id name ...HumanFragment ...DroidFragment } } fragment HumanFragment on Human { homePlanet } fragment DroidFragment on Droid { primaryFunction }" public const val OPERATION_NAME: String = "CharacterQuery" - public fun Data(resolver: FakeResolver = DefaultFakeResolver(__Schema.all), - block: QueryBuilder.() -> Unit = {}): Data = buildData( + public fun Data(resolver: FakeResolver = DefaultFakeResolver(__Schema.all), block: QueryBuilder.() -> Unit = {}): Data = buildData( CompiledQuery, block, CharacterQuery_ResponseAdapter.Data, diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/NodeQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/NodeQuery.kt.expected index 6bf3d8b9474..547f9acdebf 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/NodeQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/NodeQuery.kt.expected @@ -103,13 +103,11 @@ public class NodeQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query NodeQuery { node { __typename id ...HumanFragment ...DroidFragment } } fragment HumanFragment on Human { homePlanet } fragment DroidFragment on Droid { primaryFunction }" + get() = "query NodeQuery { node { __typename id ...HumanFragment ...DroidFragment } } fragment HumanFragment on Human { homePlanet } fragment DroidFragment on Droid { primaryFunction }" public const val OPERATION_NAME: String = "NodeQuery" - public fun Data(resolver: FakeResolver = DefaultFakeResolver(__Schema.all), - block: QueryBuilder.() -> Unit = {}): Data = buildData( + public fun Data(resolver: FakeResolver = DefaultFakeResolver(__Schema.all), block: QueryBuilder.() -> Unit = {}): Data = buildData( CompiledQuery, block, NodeQuery_ResponseAdapter.Data, diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/adapter/AnimalQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/adapter/AnimalQuery_ResponseAdapter.kt.expected index d2f19ccf804..83896e2ddeb 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/adapter/AnimalQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/adapter/AnimalQuery_ResponseAdapter.kt.expected @@ -24,8 +24,7 @@ public object AnimalQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("animal") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - AnimalQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): AnimalQuery.Data { var _animal: AnimalQuery.Data.Animal? = null while (true) { @@ -52,8 +51,7 @@ public object AnimalQuery_ResponseAdapter { private object Animal : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - AnimalQuery.Data.Animal { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): AnimalQuery.Data.Animal { var __typename: String? = null while (true) { @@ -70,15 +68,13 @@ public object AnimalQuery_ResponseAdapter { var _catFragment: CatFragment? = null if (possibleTypes("Cat").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _catFragment = com.example.data_builders.fragment.CatFragmentImpl_ResponseAdapter.CatFragment.fromJson(reader, - customScalarAdapters) + _catFragment = com.example.data_builders.fragment.CatFragmentImpl_ResponseAdapter.CatFragment.fromJson(reader, customScalarAdapters) } var _dogFragment: DogFragment? = null if (possibleTypes("Dog").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _dogFragment = com.example.data_builders.fragment.DogFragmentImpl_ResponseAdapter.DogFragment.fromJson(reader, - customScalarAdapters) + _dogFragment = com.example.data_builders.fragment.DogFragmentImpl_ResponseAdapter.DogFragment.fromJson(reader, customScalarAdapters) } return AnimalQuery.Data.Animal( @@ -97,13 +93,11 @@ public object AnimalQuery_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.__typename) if (value.catFragment != null) { - com.example.data_builders.fragment.CatFragmentImpl_ResponseAdapter.CatFragment.toJson(writer, - customScalarAdapters, value.catFragment) + com.example.data_builders.fragment.CatFragmentImpl_ResponseAdapter.CatFragment.toJson(writer, customScalarAdapters, value.catFragment) } if (value.dogFragment != null) { - com.example.data_builders.fragment.DogFragmentImpl_ResponseAdapter.DogFragment.toJson(writer, - customScalarAdapters, value.dogFragment) + com.example.data_builders.fragment.DogFragmentImpl_ResponseAdapter.DogFragment.toJson(writer, customScalarAdapters, value.dogFragment) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/adapter/CharacterQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/adapter/CharacterQuery_ResponseAdapter.kt.expected index 104f45dd0be..05902fd8467 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/adapter/CharacterQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/adapter/CharacterQuery_ResponseAdapter.kt.expected @@ -24,8 +24,7 @@ public object CharacterQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("character") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - CharacterQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): CharacterQuery.Data { var _character: CharacterQuery.Data.Character? = null while (true) { @@ -52,8 +51,7 @@ public object CharacterQuery_ResponseAdapter { private object Character : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "id", "name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - CharacterQuery.Data.Character { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): CharacterQuery.Data.Character { var __typename: String? = null var _id: String? = null var _name: String? = null @@ -74,15 +72,13 @@ public object CharacterQuery_ResponseAdapter { var _humanFragment: HumanFragment? = null if (possibleTypes("Human").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _humanFragment = com.example.data_builders.fragment.HumanFragmentImpl_ResponseAdapter.HumanFragment.fromJson(reader, - customScalarAdapters) + _humanFragment = com.example.data_builders.fragment.HumanFragmentImpl_ResponseAdapter.HumanFragment.fromJson(reader, customScalarAdapters) } var _droidFragment: DroidFragment? = null if (possibleTypes("Droid").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _droidFragment = com.example.data_builders.fragment.DroidFragmentImpl_ResponseAdapter.DroidFragment.fromJson(reader, - customScalarAdapters) + _droidFragment = com.example.data_builders.fragment.DroidFragmentImpl_ResponseAdapter.DroidFragment.fromJson(reader, customScalarAdapters) } return CharacterQuery.Data.Character( @@ -109,13 +105,11 @@ public object CharacterQuery_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.name) if (value.humanFragment != null) { - com.example.data_builders.fragment.HumanFragmentImpl_ResponseAdapter.HumanFragment.toJson(writer, - customScalarAdapters, value.humanFragment) + com.example.data_builders.fragment.HumanFragmentImpl_ResponseAdapter.HumanFragment.toJson(writer, customScalarAdapters, value.humanFragment) } if (value.droidFragment != null) { - com.example.data_builders.fragment.DroidFragmentImpl_ResponseAdapter.DroidFragment.toJson(writer, - customScalarAdapters, value.droidFragment) + com.example.data_builders.fragment.DroidFragmentImpl_ResponseAdapter.DroidFragment.toJson(writer, customScalarAdapters, value.droidFragment) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/adapter/NodeQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/adapter/NodeQuery_ResponseAdapter.kt.expected index 0fa0e8fe749..1a8cd2d3220 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/adapter/NodeQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/adapter/NodeQuery_ResponseAdapter.kt.expected @@ -24,8 +24,7 @@ public object NodeQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("node") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - NodeQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): NodeQuery.Data { var _node: NodeQuery.Data.Node? = null while (true) { @@ -52,8 +51,7 @@ public object NodeQuery_ResponseAdapter { private object Node : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "id") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - NodeQuery.Data.Node { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): NodeQuery.Data.Node { var __typename: String? = null var _id: String? = null @@ -72,15 +70,13 @@ public object NodeQuery_ResponseAdapter { var _humanFragment: HumanFragment? = null if (possibleTypes("Human").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _humanFragment = com.example.data_builders.fragment.HumanFragmentImpl_ResponseAdapter.HumanFragment.fromJson(reader, - customScalarAdapters) + _humanFragment = com.example.data_builders.fragment.HumanFragmentImpl_ResponseAdapter.HumanFragment.fromJson(reader, customScalarAdapters) } var _droidFragment: DroidFragment? = null if (possibleTypes("Droid").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _droidFragment = com.example.data_builders.fragment.DroidFragmentImpl_ResponseAdapter.DroidFragment.fromJson(reader, - customScalarAdapters) + _droidFragment = com.example.data_builders.fragment.DroidFragmentImpl_ResponseAdapter.DroidFragment.fromJson(reader, customScalarAdapters) } return NodeQuery.Data.Node( @@ -103,13 +99,11 @@ public object NodeQuery_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.id) if (value.humanFragment != null) { - com.example.data_builders.fragment.HumanFragmentImpl_ResponseAdapter.HumanFragment.toJson(writer, - customScalarAdapters, value.humanFragment) + com.example.data_builders.fragment.HumanFragmentImpl_ResponseAdapter.HumanFragment.toJson(writer, customScalarAdapters, value.humanFragment) } if (value.droidFragment != null) { - com.example.data_builders.fragment.DroidFragmentImpl_ResponseAdapter.DroidFragment.toJson(writer, - customScalarAdapters, value.droidFragment) + com.example.data_builders.fragment.DroidFragmentImpl_ResponseAdapter.DroidFragment.toJson(writer, customScalarAdapters, value.droidFragment) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/fragment/CatFragmentImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/fragment/CatFragmentImpl.kt.expected index c7fe025e2ea..617ebdeda25 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/fragment/CatFragmentImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/fragment/CatFragmentImpl.kt.expected @@ -47,8 +47,7 @@ public class CatFragmentImpl() : Fragment { .build() public companion object { - public fun Data(resolver: FakeResolver = DefaultFakeResolver(__Schema.all), - block: CatBuilder.() -> Unit = {}): CatFragment = buildData( + public fun Data(resolver: FakeResolver = DefaultFakeResolver(__Schema.all), block: CatBuilder.() -> Unit = {}): CatFragment = buildData( Cat, block, CatFragmentImpl_ResponseAdapter.CatFragment, diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/fragment/CatFragmentImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/fragment/CatFragmentImpl_ResponseAdapter.kt.expected index f6448da8584..2309adea503 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/fragment/CatFragmentImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/fragment/CatFragmentImpl_ResponseAdapter.kt.expected @@ -18,8 +18,7 @@ public object CatFragmentImpl_ResponseAdapter { public object CatFragment : Adapter { public val RESPONSE_NAMES: List = listOf("meow") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.data_builders.fragment.CatFragment { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.data_builders.fragment.CatFragment { var _meow: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/fragment/DogFragmentImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/fragment/DogFragmentImpl.kt.expected index 3d890522814..2f938cd71ba 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/fragment/DogFragmentImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/fragment/DogFragmentImpl.kt.expected @@ -47,8 +47,7 @@ public class DogFragmentImpl() : Fragment { .build() public companion object { - public fun Data(resolver: FakeResolver = DefaultFakeResolver(__Schema.all), - block: DogBuilder.() -> Unit = {}): DogFragment = buildData( + public fun Data(resolver: FakeResolver = DefaultFakeResolver(__Schema.all), block: DogBuilder.() -> Unit = {}): DogFragment = buildData( Dog, block, DogFragmentImpl_ResponseAdapter.DogFragment, diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/fragment/DogFragmentImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/fragment/DogFragmentImpl_ResponseAdapter.kt.expected index 70f1a107bf0..833d6f5dee3 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/fragment/DogFragmentImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/fragment/DogFragmentImpl_ResponseAdapter.kt.expected @@ -18,8 +18,7 @@ public object DogFragmentImpl_ResponseAdapter { public object DogFragment : Adapter { public val RESPONSE_NAMES: List = listOf("woof") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.data_builders.fragment.DogFragment { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.data_builders.fragment.DogFragment { var _woof: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/fragment/DroidFragmentImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/fragment/DroidFragmentImpl.kt.expected index 25ec1a00b9e..05c5f509340 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/fragment/DroidFragmentImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/fragment/DroidFragmentImpl.kt.expected @@ -37,8 +37,7 @@ public class DroidFragmentImpl() : Fragment { // This fragment doesn't have any variable } - override fun adapter(): Adapter = - DroidFragmentImpl_ResponseAdapter.DroidFragment.obj() + override fun adapter(): Adapter = DroidFragmentImpl_ResponseAdapter.DroidFragment.obj() override fun rootField(): CompiledField = CompiledField.Builder( name = "data", @@ -48,8 +47,7 @@ public class DroidFragmentImpl() : Fragment { .build() public companion object { - public fun Data(resolver: FakeResolver = DefaultFakeResolver(__Schema.all), - block: DroidBuilder.() -> Unit = {}): DroidFragment = buildData( + public fun Data(resolver: FakeResolver = DefaultFakeResolver(__Schema.all), block: DroidBuilder.() -> Unit = {}): DroidFragment = buildData( Droid, block, DroidFragmentImpl_ResponseAdapter.DroidFragment, diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/fragment/DroidFragmentImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/fragment/DroidFragmentImpl_ResponseAdapter.kt.expected index 7a0fd485373..0c7163e430c 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/fragment/DroidFragmentImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/fragment/DroidFragmentImpl_ResponseAdapter.kt.expected @@ -18,8 +18,7 @@ public object DroidFragmentImpl_ResponseAdapter { public object DroidFragment : Adapter { public val RESPONSE_NAMES: List = listOf("primaryFunction") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.data_builders.fragment.DroidFragment { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.data_builders.fragment.DroidFragment { var _primaryFunction: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/fragment/HumanFragmentImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/fragment/HumanFragmentImpl.kt.expected index a00663130cc..c12bed20cb9 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/fragment/HumanFragmentImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/fragment/HumanFragmentImpl.kt.expected @@ -37,8 +37,7 @@ public class HumanFragmentImpl() : Fragment { // This fragment doesn't have any variable } - override fun adapter(): Adapter = - HumanFragmentImpl_ResponseAdapter.HumanFragment.obj() + override fun adapter(): Adapter = HumanFragmentImpl_ResponseAdapter.HumanFragment.obj() override fun rootField(): CompiledField = CompiledField.Builder( name = "data", @@ -48,8 +47,7 @@ public class HumanFragmentImpl() : Fragment { .build() public companion object { - public fun Data(resolver: FakeResolver = DefaultFakeResolver(__Schema.all), - block: HumanBuilder.() -> Unit = {}): HumanFragment = buildData( + public fun Data(resolver: FakeResolver = DefaultFakeResolver(__Schema.all), block: HumanBuilder.() -> Unit = {}): HumanFragment = buildData( Human, block, HumanFragmentImpl_ResponseAdapter.HumanFragment, diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/fragment/HumanFragmentImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/fragment/HumanFragmentImpl_ResponseAdapter.kt.expected index 58715c6efc8..d86e18d9402 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/fragment/HumanFragmentImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/fragment/HumanFragmentImpl_ResponseAdapter.kt.expected @@ -18,8 +18,7 @@ public object HumanFragmentImpl_ResponseAdapter { public object HumanFragment : Adapter { public val RESPONSE_NAMES: List = listOf("homePlanet") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.data_builders.fragment.HumanFragment { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.data_builders.fragment.HumanFragment { var _homePlanet: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/schema/__Schema.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/schema/__Schema.kt.expected index 1995b5339bd..99850858c67 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/schema/__Schema.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/schema/__Schema.kt.expected @@ -14,12 +14,7 @@ import kotlin.collections.List */ public object __Schema { public val all: List = listOf( - com.example.data_builders.type.Animal.type, com.example.data_builders.type.Cat.type, - com.example.data_builders.type.Character.type, com.example.data_builders.type.Dog.type, - com.example.data_builders.type.Droid.type, com.example.data_builders.type.Human.type, - com.example.data_builders.type.Node.type, com.example.data_builders.type.Query.type) + com.example.data_builders.type.Animal.type, com.example.data_builders.type.Cat.type, com.example.data_builders.type.Character.type, com.example.data_builders.type.Dog.type, com.example.data_builders.type.Droid.type, com.example.data_builders.type.Human.type, com.example.data_builders.type.Node.type, com.example.data_builders.type.Query.type) - - public fun possibleTypes(type: CompiledNamedType): List = - com.apollographql.apollo.api.possibleTypes(all, type) + public fun possibleTypes(type: CompiledNamedType): List = com.apollographql.apollo.api.possibleTypes(all, type) } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/type/Animal.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/type/Animal.kt.expected index 5ce492b4de1..16101d0bad9 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/type/Animal.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/type/Animal.kt.expected @@ -19,8 +19,7 @@ public class Animal { public companion object : BuilderFactory { public val type: UnionType = UnionType("Animal", Cat.type, Dog.type) - override fun newBuilder(customScalarAdapters: CustomScalarAdapters): OtherAnimalBuilder = - OtherAnimalBuilder(customScalarAdapters) + override fun newBuilder(customScalarAdapters: CustomScalarAdapters): OtherAnimalBuilder = OtherAnimalBuilder(customScalarAdapters) } } @@ -34,8 +33,7 @@ public class OtherAnimalBuilder( public class OtherAnimalMap( __fields: Map, -) : AnimalMap, Map by __fields +) : AnimalMap, + Map by __fields -public fun BuilderScope.buildOtherAnimal(typename: String, block: OtherAnimalBuilder.() -> Unit): - OtherAnimalMap = - OtherAnimalBuilder(customScalarAdapters).apply(block).apply { __typename = typename }.build() +public fun BuilderScope.buildOtherAnimal(typename: String, block: OtherAnimalBuilder.() -> Unit): OtherAnimalMap = OtherAnimalBuilder(customScalarAdapters).apply(block).apply { __typename = typename }.build() diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/type/Cat.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/type/Cat.kt.expected index 97296d6de64..2d2205a0ca3 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/type/Cat.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/type/Cat.kt.expected @@ -20,8 +20,7 @@ public class Cat { public val type: ObjectType = ObjectType.Builder(name = "Cat").interfaces(listOf(Node.type)).build() - override fun newBuilder(customScalarAdapters: CustomScalarAdapters): CatBuilder = - CatBuilder(customScalarAdapters) + override fun newBuilder(customScalarAdapters: CustomScalarAdapters): CatBuilder = CatBuilder(customScalarAdapters) } } @@ -40,7 +39,8 @@ public class CatBuilder( public class CatMap( __fields: Map, -) : NodeMap, AnimalMap, Map by __fields +) : NodeMap, + AnimalMap, + Map by __fields -public fun BuilderScope.buildCat(block: CatBuilder.() -> Unit): CatMap = - CatBuilder(customScalarAdapters).apply(block).build() +public fun BuilderScope.buildCat(block: CatBuilder.() -> Unit): CatMap = CatBuilder(customScalarAdapters).apply(block).build() diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/type/Character.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/type/Character.kt.expected index 7fa22e2f4f3..6951af0c824 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/type/Character.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/type/Character.kt.expected @@ -20,8 +20,7 @@ public class Character { public val type: InterfaceType = InterfaceType.Builder(name = "Character").interfaces(listOf(Node.type)).build() - override fun newBuilder(customScalarAdapters: CustomScalarAdapters): OtherCharacterBuilder = - OtherCharacterBuilder(customScalarAdapters) + override fun newBuilder(customScalarAdapters: CustomScalarAdapters): OtherCharacterBuilder = OtherCharacterBuilder(customScalarAdapters) } } @@ -39,8 +38,8 @@ public class OtherCharacterBuilder( public class OtherCharacterMap( __fields: Map, -) : NodeMap, CharacterMap, Map by __fields +) : NodeMap, + CharacterMap, + Map by __fields -public fun BuilderScope.buildOtherCharacter(typename: String, - block: OtherCharacterBuilder.() -> Unit): OtherCharacterMap = - OtherCharacterBuilder(customScalarAdapters).apply(block).apply { __typename = typename }.build() +public fun BuilderScope.buildOtherCharacter(typename: String, block: OtherCharacterBuilder.() -> Unit): OtherCharacterMap = OtherCharacterBuilder(customScalarAdapters).apply(block).apply { __typename = typename }.build() diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/type/Dog.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/type/Dog.kt.expected index 087344b348c..07b4b68129e 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/type/Dog.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/type/Dog.kt.expected @@ -20,8 +20,7 @@ public class Dog { public val type: ObjectType = ObjectType.Builder(name = "Dog").interfaces(listOf(Node.type)).build() - override fun newBuilder(customScalarAdapters: CustomScalarAdapters): DogBuilder = - DogBuilder(customScalarAdapters) + override fun newBuilder(customScalarAdapters: CustomScalarAdapters): DogBuilder = DogBuilder(customScalarAdapters) } } @@ -40,7 +39,8 @@ public class DogBuilder( public class DogMap( __fields: Map, -) : NodeMap, AnimalMap, Map by __fields +) : NodeMap, + AnimalMap, + Map by __fields -public fun BuilderScope.buildDog(block: DogBuilder.() -> Unit): DogMap = - DogBuilder(customScalarAdapters).apply(block).build() +public fun BuilderScope.buildDog(block: DogBuilder.() -> Unit): DogMap = DogBuilder(customScalarAdapters).apply(block).build() diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/type/Droid.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/type/Droid.kt.expected index a074707ddd3..1120508ef26 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/type/Droid.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/type/Droid.kt.expected @@ -20,8 +20,7 @@ public class Droid { public val type: ObjectType = ObjectType.Builder(name = "Droid").interfaces(listOf(Character.type)).build() - override fun newBuilder(customScalarAdapters: CustomScalarAdapters): DroidBuilder = - DroidBuilder(customScalarAdapters) + override fun newBuilder(customScalarAdapters: CustomScalarAdapters): DroidBuilder = DroidBuilder(customScalarAdapters) } } @@ -40,7 +39,7 @@ public class DroidBuilder( public class DroidMap( __fields: Map, -) : CharacterMap, Map by __fields +) : CharacterMap, + Map by __fields -public fun BuilderScope.buildDroid(block: DroidBuilder.() -> Unit): DroidMap = - DroidBuilder(customScalarAdapters).apply(block).build() +public fun BuilderScope.buildDroid(block: DroidBuilder.() -> Unit): DroidMap = DroidBuilder(customScalarAdapters).apply(block).build() diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/type/Human.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/type/Human.kt.expected index 52bc2afc8f4..90dd7cb17d0 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/type/Human.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/type/Human.kt.expected @@ -20,8 +20,7 @@ public class Human { public val type: ObjectType = ObjectType.Builder(name = "Human").interfaces(listOf(Character.type)).build() - override fun newBuilder(customScalarAdapters: CustomScalarAdapters): HumanBuilder = - HumanBuilder(customScalarAdapters) + override fun newBuilder(customScalarAdapters: CustomScalarAdapters): HumanBuilder = HumanBuilder(customScalarAdapters) } } @@ -42,7 +41,7 @@ public class HumanBuilder( public class HumanMap( __fields: Map, -) : CharacterMap, Map by __fields +) : CharacterMap, + Map by __fields -public fun BuilderScope.buildHuman(block: HumanBuilder.() -> Unit): HumanMap = - HumanBuilder(customScalarAdapters).apply(block).build() +public fun BuilderScope.buildHuman(block: HumanBuilder.() -> Unit): HumanMap = HumanBuilder(customScalarAdapters).apply(block).build() diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/type/Node.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/type/Node.kt.expected index c8bc8ec9bf1..82362b9770e 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/type/Node.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/type/Node.kt.expected @@ -19,8 +19,7 @@ public class Node { public companion object : BuilderFactory { public val type: InterfaceType = InterfaceType.Builder(name = "Node").build() - override fun newBuilder(customScalarAdapters: CustomScalarAdapters): OtherNodeBuilder = - OtherNodeBuilder(customScalarAdapters) + override fun newBuilder(customScalarAdapters: CustomScalarAdapters): OtherNodeBuilder = OtherNodeBuilder(customScalarAdapters) } } @@ -36,8 +35,7 @@ public class OtherNodeBuilder( public class OtherNodeMap( __fields: Map, -) : NodeMap, Map by __fields +) : NodeMap, + Map by __fields -public fun BuilderScope.buildOtherNode(typename: String, block: OtherNodeBuilder.() -> Unit): - OtherNodeMap = - OtherNodeBuilder(customScalarAdapters).apply(block).apply { __typename = typename }.build() +public fun BuilderScope.buildOtherNode(typename: String, block: OtherNodeBuilder.() -> Unit): OtherNodeMap = OtherNodeBuilder(customScalarAdapters).apply(block).apply { __typename = typename }.build() diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/type/Query.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/type/Query.kt.expected index 6522b508d6c..82d43e4c366 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/type/Query.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/type/Query.kt.expected @@ -19,8 +19,7 @@ public class Query { public companion object : BuilderFactory { public val type: ObjectType = ObjectType.Builder(name = "Query").build() - override fun newBuilder(customScalarAdapters: CustomScalarAdapters): QueryBuilder = - QueryBuilder(customScalarAdapters) + override fun newBuilder(customScalarAdapters: CustomScalarAdapters): QueryBuilder = QueryBuilder(customScalarAdapters) } } @@ -43,5 +42,4 @@ public class QueryMap( __fields: Map, ) : Map by __fields -public fun BuilderScope.buildQuery(block: QueryBuilder.() -> Unit): QueryMap = - QueryBuilder(customScalarAdapters).apply(block).build() +public fun BuilderScope.buildQuery(block: QueryBuilder.() -> Unit): QueryMap = QueryBuilder(customScalarAdapters).apply(block).build() diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/type/__CustomScalarAdapters.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/type/__CustomScalarAdapters.kt.expected index cd583cc9fbf..669fab07a34 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/type/__CustomScalarAdapters.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/operationBased/data_builders/type/__CustomScalarAdapters.kt.expected @@ -12,4 +12,3 @@ import com.apollographql.apollo.api.CustomScalarAdapters */ public val __CustomScalarAdapters: CustomScalarAdapters = CustomScalarAdapters.Builder() .build() - diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/AnimalQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/AnimalQuery.kt.expected index 706f21e57fb..d3f0eb65e6f 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/AnimalQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/AnimalQuery.kt.expected @@ -83,12 +83,14 @@ public class AnimalQuery() : Query { public data class CatAnimal( override val __typename: String, override val meow: String, - ) : Animal, CatFragment + ) : Animal, + CatFragment public data class DogAnimal( override val __typename: String, override val woof: String, - ) : Animal, DogFragment + ) : Animal, + DogFragment public data class OtherAnimal( override val __typename: String, @@ -122,13 +124,11 @@ public class AnimalQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query AnimalQuery { animal { __typename ...CatFragment ...DogFragment } } fragment CatFragment on Cat { meow } fragment DogFragment on Dog { woof }" + get() = "query AnimalQuery { animal { __typename ...CatFragment ...DogFragment } } fragment CatFragment on Cat { meow } fragment DogFragment on Dog { woof }" public const val OPERATION_NAME: String = "AnimalQuery" - public fun Data(resolver: FakeResolver = DefaultFakeResolver(__Schema.all), - block: QueryBuilder.() -> Unit = {}): Data = buildData( + public fun Data(resolver: FakeResolver = DefaultFakeResolver(__Schema.all), block: QueryBuilder.() -> Unit = {}): Data = buildData( CompiledQuery, block, AnimalQuery_ResponseAdapter.Data, diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/CharacterQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/CharacterQuery.kt.expected index c3a19abbf52..7ff21239d2b 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/CharacterQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/CharacterQuery.kt.expected @@ -89,14 +89,16 @@ public class CharacterQuery() : Query { override val id: String, override val name: String, override val homePlanet: String, - ) : Character, HumanFragment + ) : Character, + HumanFragment public data class DroidCharacter( override val __typename: String, override val id: String, override val name: String, override val primaryFunction: String, - ) : Character, DroidFragment + ) : Character, + DroidFragment public data class OtherCharacter( override val __typename: String, @@ -134,13 +136,11 @@ public class CharacterQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query CharacterQuery { character { __typename id name ...HumanFragment ...DroidFragment } } fragment HumanFragment on Human { homePlanet } fragment DroidFragment on Droid { primaryFunction }" + get() = "query CharacterQuery { character { __typename id name ...HumanFragment ...DroidFragment } } fragment HumanFragment on Human { homePlanet } fragment DroidFragment on Droid { primaryFunction }" public const val OPERATION_NAME: String = "CharacterQuery" - public fun Data(resolver: FakeResolver = DefaultFakeResolver(__Schema.all), - block: QueryBuilder.() -> Unit = {}): Data = buildData( + public fun Data(resolver: FakeResolver = DefaultFakeResolver(__Schema.all), block: QueryBuilder.() -> Unit = {}): Data = buildData( CompiledQuery, block, CharacterQuery_ResponseAdapter.Data, diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/NodeQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/NodeQuery.kt.expected index 974064af134..c4899708b78 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/NodeQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/NodeQuery.kt.expected @@ -86,13 +86,15 @@ public class NodeQuery() : Query { override val __typename: String, override val id: String, override val homePlanet: String, - ) : Node, HumanFragment + ) : Node, + HumanFragment public data class DroidNode( override val __typename: String, override val id: String, override val primaryFunction: String, - ) : Node, DroidFragment + ) : Node, + DroidFragment public data class OtherNode( override val __typename: String, @@ -128,13 +130,11 @@ public class NodeQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query NodeQuery { node { __typename id ...HumanFragment ...DroidFragment } } fragment HumanFragment on Human { homePlanet } fragment DroidFragment on Droid { primaryFunction }" + get() = "query NodeQuery { node { __typename id ...HumanFragment ...DroidFragment } } fragment HumanFragment on Human { homePlanet } fragment DroidFragment on Droid { primaryFunction }" public const val OPERATION_NAME: String = "NodeQuery" - public fun Data(resolver: FakeResolver = DefaultFakeResolver(__Schema.all), - block: QueryBuilder.() -> Unit = {}): Data = buildData( + public fun Data(resolver: FakeResolver = DefaultFakeResolver(__Schema.all), block: QueryBuilder.() -> Unit = {}): Data = buildData( CompiledQuery, block, NodeQuery_ResponseAdapter.Data, diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/adapter/AnimalQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/adapter/AnimalQuery_ResponseAdapter.kt.expected index 07cd9d52a99..b17700ccec1 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/adapter/AnimalQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/adapter/AnimalQuery_ResponseAdapter.kt.expected @@ -22,8 +22,7 @@ public object AnimalQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("animal") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - AnimalQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): AnimalQuery.Data { var _animal: AnimalQuery.Data.Animal? = null while (true) { @@ -48,8 +47,7 @@ public object AnimalQuery_ResponseAdapter { } private object Animal : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - AnimalQuery.Data.Animal { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): AnimalQuery.Data.Animal { val __typename = reader.readTypename() return when(__typename) { "Cat", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/adapter/CharacterQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/adapter/CharacterQuery_ResponseAdapter.kt.expected index 13e8abe5087..e6aeabbcf43 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/adapter/CharacterQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/adapter/CharacterQuery_ResponseAdapter.kt.expected @@ -22,8 +22,7 @@ public object CharacterQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("character") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - CharacterQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): CharacterQuery.Data { var _character: CharacterQuery.Data.Character? = null while (true) { @@ -48,8 +47,7 @@ public object CharacterQuery_ResponseAdapter { } private object Character : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - CharacterQuery.Data.Character { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): CharacterQuery.Data.Character { val __typename = reader.readTypename() return when(__typename) { "Human", @@ -67,12 +65,9 @@ public object CharacterQuery_ResponseAdapter { `value`: CharacterQuery.Data.Character, ) { when(value) { - is CharacterQuery.Data.HumanCharacter -> HumanCharacter.toJson(writer, - customScalarAdapters, value) - is CharacterQuery.Data.DroidCharacter -> DroidCharacter.toJson(writer, - customScalarAdapters, value) - is CharacterQuery.Data.OtherCharacter -> OtherCharacter.toJson(writer, - customScalarAdapters, value) + is CharacterQuery.Data.HumanCharacter -> HumanCharacter.toJson(writer, customScalarAdapters, value) + is CharacterQuery.Data.DroidCharacter -> DroidCharacter.toJson(writer, customScalarAdapters, value) + is CharacterQuery.Data.OtherCharacter -> OtherCharacter.toJson(writer, customScalarAdapters, value) } } } @@ -128,8 +123,8 @@ public object CharacterQuery_ResponseAdapter { } public object DroidCharacter { - public val RESPONSE_NAMES: List = listOf("__typename", "id", "name", - "primaryFunction") + public val RESPONSE_NAMES: List = + listOf("__typename", "id", "name", "primaryFunction") public fun fromJson( reader: JsonReader, diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/adapter/NodeQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/adapter/NodeQuery_ResponseAdapter.kt.expected index 75f66fe19c5..8801facb4c8 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/adapter/NodeQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/adapter/NodeQuery_ResponseAdapter.kt.expected @@ -22,8 +22,7 @@ public object NodeQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("node") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - NodeQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): NodeQuery.Data { var _node: NodeQuery.Data.Node? = null while (true) { @@ -48,8 +47,7 @@ public object NodeQuery_ResponseAdapter { } private object Node : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - NodeQuery.Data.Node { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): NodeQuery.Data.Node { val __typename = reader.readTypename() return when(__typename) { "Human", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/fragment/CatFragmentImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/fragment/CatFragmentImpl.kt.expected index a9c7c6cbefd..1d73d6d0c3d 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/fragment/CatFragmentImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/fragment/CatFragmentImpl.kt.expected @@ -49,11 +49,11 @@ public class CatFragmentImpl() : Fragment { public data class Data( override val meow: String, - ) : CatFragment, Fragment.Data + ) : CatFragment, + Fragment.Data public companion object { - public fun Data(resolver: FakeResolver = DefaultFakeResolver(__Schema.all), - block: CatBuilder.() -> Unit = {}): Data = buildData( + public fun Data(resolver: FakeResolver = DefaultFakeResolver(__Schema.all), block: CatBuilder.() -> Unit = {}): Data = buildData( Cat, block, CatFragmentImpl_ResponseAdapter.Data, diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/fragment/CatFragmentImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/fragment/CatFragmentImpl_ResponseAdapter.kt.expected index 273038bfb08..c4b77c973f1 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/fragment/CatFragmentImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/fragment/CatFragmentImpl_ResponseAdapter.kt.expected @@ -18,8 +18,7 @@ public object CatFragmentImpl_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("meow") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - CatFragmentImpl.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): CatFragmentImpl.Data { var _meow: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/fragment/DogFragmentImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/fragment/DogFragmentImpl.kt.expected index 588d45d6fd9..e913c40adb6 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/fragment/DogFragmentImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/fragment/DogFragmentImpl.kt.expected @@ -49,11 +49,11 @@ public class DogFragmentImpl() : Fragment { public data class Data( override val woof: String, - ) : DogFragment, Fragment.Data + ) : DogFragment, + Fragment.Data public companion object { - public fun Data(resolver: FakeResolver = DefaultFakeResolver(__Schema.all), - block: DogBuilder.() -> Unit = {}): Data = buildData( + public fun Data(resolver: FakeResolver = DefaultFakeResolver(__Schema.all), block: DogBuilder.() -> Unit = {}): Data = buildData( Dog, block, DogFragmentImpl_ResponseAdapter.Data, diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/fragment/DogFragmentImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/fragment/DogFragmentImpl_ResponseAdapter.kt.expected index 4718f7b4a33..88ea6772c34 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/fragment/DogFragmentImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/fragment/DogFragmentImpl_ResponseAdapter.kt.expected @@ -18,8 +18,7 @@ public object DogFragmentImpl_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("woof") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - DogFragmentImpl.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): DogFragmentImpl.Data { var _woof: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/fragment/DroidFragmentImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/fragment/DroidFragmentImpl.kt.expected index 76629b6d0f9..49bd04e7565 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/fragment/DroidFragmentImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/fragment/DroidFragmentImpl.kt.expected @@ -49,11 +49,11 @@ public class DroidFragmentImpl() : Fragment { public data class Data( override val primaryFunction: String, - ) : DroidFragment, Fragment.Data + ) : DroidFragment, + Fragment.Data public companion object { - public fun Data(resolver: FakeResolver = DefaultFakeResolver(__Schema.all), - block: DroidBuilder.() -> Unit = {}): Data = buildData( + public fun Data(resolver: FakeResolver = DefaultFakeResolver(__Schema.all), block: DroidBuilder.() -> Unit = {}): Data = buildData( Droid, block, DroidFragmentImpl_ResponseAdapter.Data, diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/fragment/DroidFragmentImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/fragment/DroidFragmentImpl_ResponseAdapter.kt.expected index c692f99407f..94039c5d895 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/fragment/DroidFragmentImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/fragment/DroidFragmentImpl_ResponseAdapter.kt.expected @@ -18,8 +18,7 @@ public object DroidFragmentImpl_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("primaryFunction") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - DroidFragmentImpl.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): DroidFragmentImpl.Data { var _primaryFunction: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/fragment/HumanFragmentImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/fragment/HumanFragmentImpl.kt.expected index a85b6b34f72..bd1e6aea9f4 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/fragment/HumanFragmentImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/fragment/HumanFragmentImpl.kt.expected @@ -49,11 +49,11 @@ public class HumanFragmentImpl() : Fragment { public data class Data( override val homePlanet: String, - ) : HumanFragment, Fragment.Data + ) : HumanFragment, + Fragment.Data public companion object { - public fun Data(resolver: FakeResolver = DefaultFakeResolver(__Schema.all), - block: HumanBuilder.() -> Unit = {}): Data = buildData( + public fun Data(resolver: FakeResolver = DefaultFakeResolver(__Schema.all), block: HumanBuilder.() -> Unit = {}): Data = buildData( Human, block, HumanFragmentImpl_ResponseAdapter.Data, diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/fragment/HumanFragmentImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/fragment/HumanFragmentImpl_ResponseAdapter.kt.expected index a33b563dac5..8d77e021b7b 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/fragment/HumanFragmentImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/fragment/HumanFragmentImpl_ResponseAdapter.kt.expected @@ -18,8 +18,7 @@ public object HumanFragmentImpl_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("homePlanet") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - HumanFragmentImpl.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): HumanFragmentImpl.Data { var _homePlanet: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/schema/__Schema.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/schema/__Schema.kt.expected index 1995b5339bd..99850858c67 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/schema/__Schema.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/schema/__Schema.kt.expected @@ -14,12 +14,7 @@ import kotlin.collections.List */ public object __Schema { public val all: List = listOf( - com.example.data_builders.type.Animal.type, com.example.data_builders.type.Cat.type, - com.example.data_builders.type.Character.type, com.example.data_builders.type.Dog.type, - com.example.data_builders.type.Droid.type, com.example.data_builders.type.Human.type, - com.example.data_builders.type.Node.type, com.example.data_builders.type.Query.type) + com.example.data_builders.type.Animal.type, com.example.data_builders.type.Cat.type, com.example.data_builders.type.Character.type, com.example.data_builders.type.Dog.type, com.example.data_builders.type.Droid.type, com.example.data_builders.type.Human.type, com.example.data_builders.type.Node.type, com.example.data_builders.type.Query.type) - - public fun possibleTypes(type: CompiledNamedType): List = - com.apollographql.apollo.api.possibleTypes(all, type) + public fun possibleTypes(type: CompiledNamedType): List = com.apollographql.apollo.api.possibleTypes(all, type) } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/type/Animal.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/type/Animal.kt.expected index 5ce492b4de1..16101d0bad9 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/type/Animal.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/type/Animal.kt.expected @@ -19,8 +19,7 @@ public class Animal { public companion object : BuilderFactory { public val type: UnionType = UnionType("Animal", Cat.type, Dog.type) - override fun newBuilder(customScalarAdapters: CustomScalarAdapters): OtherAnimalBuilder = - OtherAnimalBuilder(customScalarAdapters) + override fun newBuilder(customScalarAdapters: CustomScalarAdapters): OtherAnimalBuilder = OtherAnimalBuilder(customScalarAdapters) } } @@ -34,8 +33,7 @@ public class OtherAnimalBuilder( public class OtherAnimalMap( __fields: Map, -) : AnimalMap, Map by __fields +) : AnimalMap, + Map by __fields -public fun BuilderScope.buildOtherAnimal(typename: String, block: OtherAnimalBuilder.() -> Unit): - OtherAnimalMap = - OtherAnimalBuilder(customScalarAdapters).apply(block).apply { __typename = typename }.build() +public fun BuilderScope.buildOtherAnimal(typename: String, block: OtherAnimalBuilder.() -> Unit): OtherAnimalMap = OtherAnimalBuilder(customScalarAdapters).apply(block).apply { __typename = typename }.build() diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/type/Cat.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/type/Cat.kt.expected index 97296d6de64..2d2205a0ca3 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/type/Cat.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/type/Cat.kt.expected @@ -20,8 +20,7 @@ public class Cat { public val type: ObjectType = ObjectType.Builder(name = "Cat").interfaces(listOf(Node.type)).build() - override fun newBuilder(customScalarAdapters: CustomScalarAdapters): CatBuilder = - CatBuilder(customScalarAdapters) + override fun newBuilder(customScalarAdapters: CustomScalarAdapters): CatBuilder = CatBuilder(customScalarAdapters) } } @@ -40,7 +39,8 @@ public class CatBuilder( public class CatMap( __fields: Map, -) : NodeMap, AnimalMap, Map by __fields +) : NodeMap, + AnimalMap, + Map by __fields -public fun BuilderScope.buildCat(block: CatBuilder.() -> Unit): CatMap = - CatBuilder(customScalarAdapters).apply(block).build() +public fun BuilderScope.buildCat(block: CatBuilder.() -> Unit): CatMap = CatBuilder(customScalarAdapters).apply(block).build() diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/type/Character.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/type/Character.kt.expected index 7fa22e2f4f3..6951af0c824 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/type/Character.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/type/Character.kt.expected @@ -20,8 +20,7 @@ public class Character { public val type: InterfaceType = InterfaceType.Builder(name = "Character").interfaces(listOf(Node.type)).build() - override fun newBuilder(customScalarAdapters: CustomScalarAdapters): OtherCharacterBuilder = - OtherCharacterBuilder(customScalarAdapters) + override fun newBuilder(customScalarAdapters: CustomScalarAdapters): OtherCharacterBuilder = OtherCharacterBuilder(customScalarAdapters) } } @@ -39,8 +38,8 @@ public class OtherCharacterBuilder( public class OtherCharacterMap( __fields: Map, -) : NodeMap, CharacterMap, Map by __fields +) : NodeMap, + CharacterMap, + Map by __fields -public fun BuilderScope.buildOtherCharacter(typename: String, - block: OtherCharacterBuilder.() -> Unit): OtherCharacterMap = - OtherCharacterBuilder(customScalarAdapters).apply(block).apply { __typename = typename }.build() +public fun BuilderScope.buildOtherCharacter(typename: String, block: OtherCharacterBuilder.() -> Unit): OtherCharacterMap = OtherCharacterBuilder(customScalarAdapters).apply(block).apply { __typename = typename }.build() diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/type/Dog.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/type/Dog.kt.expected index 087344b348c..07b4b68129e 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/type/Dog.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/type/Dog.kt.expected @@ -20,8 +20,7 @@ public class Dog { public val type: ObjectType = ObjectType.Builder(name = "Dog").interfaces(listOf(Node.type)).build() - override fun newBuilder(customScalarAdapters: CustomScalarAdapters): DogBuilder = - DogBuilder(customScalarAdapters) + override fun newBuilder(customScalarAdapters: CustomScalarAdapters): DogBuilder = DogBuilder(customScalarAdapters) } } @@ -40,7 +39,8 @@ public class DogBuilder( public class DogMap( __fields: Map, -) : NodeMap, AnimalMap, Map by __fields +) : NodeMap, + AnimalMap, + Map by __fields -public fun BuilderScope.buildDog(block: DogBuilder.() -> Unit): DogMap = - DogBuilder(customScalarAdapters).apply(block).build() +public fun BuilderScope.buildDog(block: DogBuilder.() -> Unit): DogMap = DogBuilder(customScalarAdapters).apply(block).build() diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/type/Droid.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/type/Droid.kt.expected index a074707ddd3..1120508ef26 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/type/Droid.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/type/Droid.kt.expected @@ -20,8 +20,7 @@ public class Droid { public val type: ObjectType = ObjectType.Builder(name = "Droid").interfaces(listOf(Character.type)).build() - override fun newBuilder(customScalarAdapters: CustomScalarAdapters): DroidBuilder = - DroidBuilder(customScalarAdapters) + override fun newBuilder(customScalarAdapters: CustomScalarAdapters): DroidBuilder = DroidBuilder(customScalarAdapters) } } @@ -40,7 +39,7 @@ public class DroidBuilder( public class DroidMap( __fields: Map, -) : CharacterMap, Map by __fields +) : CharacterMap, + Map by __fields -public fun BuilderScope.buildDroid(block: DroidBuilder.() -> Unit): DroidMap = - DroidBuilder(customScalarAdapters).apply(block).build() +public fun BuilderScope.buildDroid(block: DroidBuilder.() -> Unit): DroidMap = DroidBuilder(customScalarAdapters).apply(block).build() diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/type/Human.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/type/Human.kt.expected index 52bc2afc8f4..90dd7cb17d0 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/type/Human.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/type/Human.kt.expected @@ -20,8 +20,7 @@ public class Human { public val type: ObjectType = ObjectType.Builder(name = "Human").interfaces(listOf(Character.type)).build() - override fun newBuilder(customScalarAdapters: CustomScalarAdapters): HumanBuilder = - HumanBuilder(customScalarAdapters) + override fun newBuilder(customScalarAdapters: CustomScalarAdapters): HumanBuilder = HumanBuilder(customScalarAdapters) } } @@ -42,7 +41,7 @@ public class HumanBuilder( public class HumanMap( __fields: Map, -) : CharacterMap, Map by __fields +) : CharacterMap, + Map by __fields -public fun BuilderScope.buildHuman(block: HumanBuilder.() -> Unit): HumanMap = - HumanBuilder(customScalarAdapters).apply(block).build() +public fun BuilderScope.buildHuman(block: HumanBuilder.() -> Unit): HumanMap = HumanBuilder(customScalarAdapters).apply(block).build() diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/type/Node.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/type/Node.kt.expected index c8bc8ec9bf1..82362b9770e 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/type/Node.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/type/Node.kt.expected @@ -19,8 +19,7 @@ public class Node { public companion object : BuilderFactory { public val type: InterfaceType = InterfaceType.Builder(name = "Node").build() - override fun newBuilder(customScalarAdapters: CustomScalarAdapters): OtherNodeBuilder = - OtherNodeBuilder(customScalarAdapters) + override fun newBuilder(customScalarAdapters: CustomScalarAdapters): OtherNodeBuilder = OtherNodeBuilder(customScalarAdapters) } } @@ -36,8 +35,7 @@ public class OtherNodeBuilder( public class OtherNodeMap( __fields: Map, -) : NodeMap, Map by __fields +) : NodeMap, + Map by __fields -public fun BuilderScope.buildOtherNode(typename: String, block: OtherNodeBuilder.() -> Unit): - OtherNodeMap = - OtherNodeBuilder(customScalarAdapters).apply(block).apply { __typename = typename }.build() +public fun BuilderScope.buildOtherNode(typename: String, block: OtherNodeBuilder.() -> Unit): OtherNodeMap = OtherNodeBuilder(customScalarAdapters).apply(block).apply { __typename = typename }.build() diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/type/Query.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/type/Query.kt.expected index 6522b508d6c..82d43e4c366 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/type/Query.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/type/Query.kt.expected @@ -19,8 +19,7 @@ public class Query { public companion object : BuilderFactory { public val type: ObjectType = ObjectType.Builder(name = "Query").build() - override fun newBuilder(customScalarAdapters: CustomScalarAdapters): QueryBuilder = - QueryBuilder(customScalarAdapters) + override fun newBuilder(customScalarAdapters: CustomScalarAdapters): QueryBuilder = QueryBuilder(customScalarAdapters) } } @@ -43,5 +42,4 @@ public class QueryMap( __fields: Map, ) : Map by __fields -public fun BuilderScope.buildQuery(block: QueryBuilder.() -> Unit): QueryMap = - QueryBuilder(customScalarAdapters).apply(block).build() +public fun BuilderScope.buildQuery(block: QueryBuilder.() -> Unit): QueryMap = QueryBuilder(customScalarAdapters).apply(block).build() diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/type/__CustomScalarAdapters.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/type/__CustomScalarAdapters.kt.expected index cd583cc9fbf..669fab07a34 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/type/__CustomScalarAdapters.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/data_builders/kotlin/responseBased/data_builders/type/__CustomScalarAdapters.kt.expected @@ -12,4 +12,3 @@ import com.apollographql.apollo.api.CustomScalarAdapters */ public val __CustomScalarAdapters: CustomScalarAdapters = CustomScalarAdapters.Builder() .build() - diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/decapitalized_fields/kotlin/operationBased/decapitalized_fields/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/decapitalized_fields/kotlin/operationBased/decapitalized_fields/TestQuery.kt.expected index 1ddb5aa3928..b132fbbee6b 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/decapitalized_fields/kotlin/operationBased/decapitalized_fields/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/decapitalized_fields/kotlin/operationBased/decapitalized_fields/TestQuery.kt.expected @@ -105,8 +105,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { Horse { __typename Donkey ... on Horse { Cow { Moo } } ...HorseFragment } } fragment HorseFragment on Horse { Cow { Moo } }" + get() = "query TestQuery { Horse { __typename Donkey ... on Horse { Cow { Moo } } ...HorseFragment } } fragment HorseFragment on Horse { Cow { Moo } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/decapitalized_fields/kotlin/operationBased/decapitalized_fields/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/decapitalized_fields/kotlin/operationBased/decapitalized_fields/adapter/TestQuery_ResponseAdapter.kt.expected index 55d49019fd1..75dffb1cbba 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/decapitalized_fields/kotlin/operationBased/decapitalized_fields/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/decapitalized_fields/kotlin/operationBased/decapitalized_fields/adapter/TestQuery_ResponseAdapter.kt.expected @@ -22,8 +22,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("Horse") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _Horse: TestQuery.Data.Horse? = null while (true) { @@ -50,8 +49,7 @@ public object TestQuery_ResponseAdapter { private object Horse : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "Donkey") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Horse { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Horse { var __typename: String? = null var _Donkey: String? = null @@ -64,12 +62,10 @@ public object TestQuery_ResponseAdapter { } reader.rewind() - val _onHorse = com.example.decapitalized_fields.adapter.TestQuery_ResponseAdapter.Data.Horse.OnHorse.fromJson(reader, - customScalarAdapters) + val _onHorse = com.example.decapitalized_fields.adapter.TestQuery_ResponseAdapter.Data.Horse.OnHorse.fromJson(reader, customScalarAdapters) reader.rewind() - val _horseFragment = com.example.decapitalized_fields.fragment.HorseFragmentImpl_ResponseAdapter.HorseFragment.fromJson(reader, - customScalarAdapters) + val _horseFragment = com.example.decapitalized_fields.fragment.HorseFragmentImpl_ResponseAdapter.HorseFragment.fromJson(reader, customScalarAdapters) return TestQuery.Data.Horse( __typename = __typename ?: missingField(reader, "__typename"), @@ -90,18 +86,15 @@ public object TestQuery_ResponseAdapter { writer.name("Donkey") NullableStringAdapter.toJson(writer, customScalarAdapters, value.donkey) - com.example.decapitalized_fields.adapter.TestQuery_ResponseAdapter.Data.Horse.OnHorse.toJson(writer, - customScalarAdapters, value.onHorse) + com.example.decapitalized_fields.adapter.TestQuery_ResponseAdapter.Data.Horse.OnHorse.toJson(writer, customScalarAdapters, value.onHorse) - com.example.decapitalized_fields.fragment.HorseFragmentImpl_ResponseAdapter.HorseFragment.toJson(writer, - customScalarAdapters, value.horseFragment) + com.example.decapitalized_fields.fragment.HorseFragmentImpl_ResponseAdapter.HorseFragment.toJson(writer, customScalarAdapters, value.horseFragment) } private object OnHorse : Adapter { public val RESPONSE_NAMES: List = listOf("Cow") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Horse.OnHorse { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Horse.OnHorse { var _Cow: TestQuery.Data.Horse.OnHorse.Cow? = null while (true) { @@ -128,8 +121,7 @@ public object TestQuery_ResponseAdapter { private object Cow : Adapter { public val RESPONSE_NAMES: List = listOf("Moo") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Horse.OnHorse.Cow { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Horse.OnHorse.Cow { var _Moo: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/decapitalized_fields/kotlin/operationBased/decapitalized_fields/fragment/HorseFragmentImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/decapitalized_fields/kotlin/operationBased/decapitalized_fields/fragment/HorseFragmentImpl.kt.expected index 56e1fb92e83..19fffba11bd 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/decapitalized_fields/kotlin/operationBased/decapitalized_fields/fragment/HorseFragmentImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/decapitalized_fields/kotlin/operationBased/decapitalized_fields/fragment/HorseFragmentImpl.kt.expected @@ -30,8 +30,7 @@ public class HorseFragmentImpl() : Fragment { // This fragment doesn't have any variable } - override fun adapter(): Adapter = - HorseFragmentImpl_ResponseAdapter.HorseFragment.obj() + override fun adapter(): Adapter = HorseFragmentImpl_ResponseAdapter.HorseFragment.obj() override fun rootField(): CompiledField = CompiledField.Builder( name = "data", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/decapitalized_fields/kotlin/operationBased/decapitalized_fields/fragment/HorseFragmentImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/decapitalized_fields/kotlin/operationBased/decapitalized_fields/fragment/HorseFragmentImpl_ResponseAdapter.kt.expected index 2d408c74dd6..d3b76b31619 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/decapitalized_fields/kotlin/operationBased/decapitalized_fields/fragment/HorseFragmentImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/decapitalized_fields/kotlin/operationBased/decapitalized_fields/fragment/HorseFragmentImpl_ResponseAdapter.kt.expected @@ -19,8 +19,7 @@ public object HorseFragmentImpl_ResponseAdapter { public object HorseFragment : Adapter { public val RESPONSE_NAMES: List = listOf("Cow") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.decapitalized_fields.fragment.HorseFragment { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.decapitalized_fields.fragment.HorseFragment { var _Cow: com.example.decapitalized_fields.fragment.HorseFragment.Cow? = null while (true) { @@ -47,8 +46,7 @@ public object HorseFragmentImpl_ResponseAdapter { private object Cow : Adapter { public val RESPONSE_NAMES: List = listOf("Moo") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.decapitalized_fields.fragment.HorseFragment.Cow { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.decapitalized_fields.fragment.HorseFragment.Cow { var _Moo: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/decapitalized_fields/kotlin/responseBased/decapitalized_fields/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/decapitalized_fields/kotlin/responseBased/decapitalized_fields/TestQuery.kt.expected index c3e241d02ed..a2c68d21f8f 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/decapitalized_fields/kotlin/responseBased/decapitalized_fields/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/decapitalized_fields/kotlin/responseBased/decapitalized_fields/TestQuery.kt.expected @@ -100,8 +100,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { Horse { __typename Donkey ... on Horse { Cow { Moo } } ...HorseFragment } } fragment HorseFragment on Horse { Cow { Moo } }" + get() = "query TestQuery { Horse { __typename Donkey ... on Horse { Cow { Moo } } ...HorseFragment } } fragment HorseFragment on Horse { Cow { Moo } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/decapitalized_fields/kotlin/responseBased/decapitalized_fields/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/decapitalized_fields/kotlin/responseBased/decapitalized_fields/adapter/TestQuery_ResponseAdapter.kt.expected index 9033f7303a7..e22008c822a 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/decapitalized_fields/kotlin/responseBased/decapitalized_fields/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/decapitalized_fields/kotlin/responseBased/decapitalized_fields/adapter/TestQuery_ResponseAdapter.kt.expected @@ -22,8 +22,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("Horse") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _Horse: TestQuery.Data.Horse? = null while (true) { @@ -50,8 +49,7 @@ public object TestQuery_ResponseAdapter { private object Horse : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "Donkey", "Cow") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Horse { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Horse { var __typename: String? = null var _Donkey: String? = null var _Cow: TestQuery.Data.Horse.Cow? = null @@ -90,8 +88,7 @@ public object TestQuery_ResponseAdapter { private object Cow : Adapter { public val RESPONSE_NAMES: List = listOf("Moo") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Horse.Cow { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Horse.Cow { var _Moo: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/decapitalized_fields/kotlin/responseBased/decapitalized_fields/fragment/HorseFragmentImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/decapitalized_fields/kotlin/responseBased/decapitalized_fields/fragment/HorseFragmentImpl.kt.expected index 30812340b78..ace8cf49248 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/decapitalized_fields/kotlin/responseBased/decapitalized_fields/fragment/HorseFragmentImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/decapitalized_fields/kotlin/responseBased/decapitalized_fields/fragment/HorseFragmentImpl.kt.expected @@ -42,7 +42,8 @@ public class HorseFragmentImpl() : Fragment { public data class Data( override val cow: Cow?, - ) : HorseFragment, Fragment.Data { + ) : HorseFragment, + Fragment.Data { public data class Cow( override val moo: String?, ) : HorseFragment.Cow diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/decapitalized_fields/kotlin/responseBased/decapitalized_fields/fragment/HorseFragmentImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/decapitalized_fields/kotlin/responseBased/decapitalized_fields/fragment/HorseFragmentImpl_ResponseAdapter.kt.expected index 0ada9761789..4e1792c3373 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/decapitalized_fields/kotlin/responseBased/decapitalized_fields/fragment/HorseFragmentImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/decapitalized_fields/kotlin/responseBased/decapitalized_fields/fragment/HorseFragmentImpl_ResponseAdapter.kt.expected @@ -19,8 +19,7 @@ public object HorseFragmentImpl_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("Cow") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - HorseFragmentImpl.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): HorseFragmentImpl.Data { var _Cow: HorseFragmentImpl.Data.Cow? = null while (true) { @@ -47,8 +46,7 @@ public object HorseFragmentImpl_ResponseAdapter { private object Cow : Adapter { public val RESPONSE_NAMES: List = listOf("Moo") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - HorseFragmentImpl.Data.Cow { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): HorseFragmentImpl.Data.Cow { var _Moo: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/deprecated_merged_field/kotlin/operationBased/deprecated_merged_field/CatQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/deprecated_merged_field/kotlin/operationBased/deprecated_merged_field/CatQuery.kt.expected index 277314a8cef..afd18629670 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/deprecated_merged_field/kotlin/operationBased/deprecated_merged_field/CatQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/deprecated_merged_field/kotlin/operationBased/deprecated_merged_field/CatQuery.kt.expected @@ -90,8 +90,7 @@ public class CatQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query CatQuery { cat { __typename ...AnimalFragment } } fragment AnimalFragment on Animal { __typename ... on Cat { name } ... on Dog { name } }" + get() = "query CatQuery { cat { __typename ...AnimalFragment } } fragment AnimalFragment on Animal { __typename ... on Cat { name } ... on Dog { name } }" public const val OPERATION_NAME: String = "CatQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/deprecated_merged_field/kotlin/operationBased/deprecated_merged_field/adapter/CatQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/deprecated_merged_field/kotlin/operationBased/deprecated_merged_field/adapter/CatQuery_ResponseAdapter.kt.expected index 90f394a08fe..b00354504d9 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/deprecated_merged_field/kotlin/operationBased/deprecated_merged_field/adapter/CatQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/deprecated_merged_field/kotlin/operationBased/deprecated_merged_field/adapter/CatQuery_ResponseAdapter.kt.expected @@ -21,8 +21,7 @@ public object CatQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("cat") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - CatQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): CatQuery.Data { var _cat: CatQuery.Data.Cat? = null while (true) { @@ -49,8 +48,7 @@ public object CatQuery_ResponseAdapter { private object Cat : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - CatQuery.Data.Cat { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): CatQuery.Data.Cat { var __typename: String? = null while (true) { @@ -61,8 +59,7 @@ public object CatQuery_ResponseAdapter { } reader.rewind() - val _animalFragment = com.example.deprecated_merged_field.fragment.AnimalFragmentImpl_ResponseAdapter.AnimalFragment.fromJson(reader, - customScalarAdapters) + val _animalFragment = com.example.deprecated_merged_field.fragment.AnimalFragmentImpl_ResponseAdapter.AnimalFragment.fromJson(reader, customScalarAdapters) return CatQuery.Data.Cat( __typename = __typename ?: missingField(reader, "__typename"), @@ -78,8 +75,7 @@ public object CatQuery_ResponseAdapter { writer.name("__typename") StringAdapter.toJson(writer, customScalarAdapters, value.__typename) - com.example.deprecated_merged_field.fragment.AnimalFragmentImpl_ResponseAdapter.AnimalFragment.toJson(writer, - customScalarAdapters, value.animalFragment) + com.example.deprecated_merged_field.fragment.AnimalFragmentImpl_ResponseAdapter.AnimalFragment.toJson(writer, customScalarAdapters, value.animalFragment) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/deprecated_merged_field/kotlin/operationBased/deprecated_merged_field/fragment/AnimalFragmentImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/deprecated_merged_field/kotlin/operationBased/deprecated_merged_field/fragment/AnimalFragmentImpl.kt.expected index e4707b188ff..cd65bc423c9 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/deprecated_merged_field/kotlin/operationBased/deprecated_merged_field/fragment/AnimalFragmentImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/deprecated_merged_field/kotlin/operationBased/deprecated_merged_field/fragment/AnimalFragmentImpl.kt.expected @@ -30,8 +30,7 @@ public class AnimalFragmentImpl() : Fragment { // This fragment doesn't have any variable } - override fun adapter(): Adapter = - AnimalFragmentImpl_ResponseAdapter.AnimalFragment.obj(true) + override fun adapter(): Adapter = AnimalFragmentImpl_ResponseAdapter.AnimalFragment.obj(true) override fun rootField(): CompiledField = CompiledField.Builder( name = "data", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/deprecated_merged_field/kotlin/operationBased/deprecated_merged_field/fragment/AnimalFragmentImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/deprecated_merged_field/kotlin/operationBased/deprecated_merged_field/fragment/AnimalFragmentImpl_ResponseAdapter.kt.expected index 6766aa41009..36515e98c99 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/deprecated_merged_field/kotlin/operationBased/deprecated_merged_field/fragment/AnimalFragmentImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/deprecated_merged_field/kotlin/operationBased/deprecated_merged_field/fragment/AnimalFragmentImpl_ResponseAdapter.kt.expected @@ -18,12 +18,10 @@ import kotlin.Suppress import kotlin.collections.List public object AnimalFragmentImpl_ResponseAdapter { - public object AnimalFragment : - Adapter { + public object AnimalFragment : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.deprecated_merged_field.fragment.AnimalFragment { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.deprecated_merged_field.fragment.AnimalFragment { var __typename: String? = null while (true) { @@ -40,15 +38,13 @@ public object AnimalFragmentImpl_ResponseAdapter { var _onCat: com.example.deprecated_merged_field.fragment.AnimalFragment.OnCat? = null if (possibleTypes("Cat").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onCat = com.example.deprecated_merged_field.fragment.AnimalFragmentImpl_ResponseAdapter.AnimalFragment.OnCat.fromJson(reader, - customScalarAdapters) + _onCat = com.example.deprecated_merged_field.fragment.AnimalFragmentImpl_ResponseAdapter.AnimalFragment.OnCat.fromJson(reader, customScalarAdapters) } var _onDog: com.example.deprecated_merged_field.fragment.AnimalFragment.OnDog? = null if (possibleTypes("Dog").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onDog = com.example.deprecated_merged_field.fragment.AnimalFragmentImpl_ResponseAdapter.AnimalFragment.OnDog.fromJson(reader, - customScalarAdapters) + _onDog = com.example.deprecated_merged_field.fragment.AnimalFragmentImpl_ResponseAdapter.AnimalFragment.OnDog.fromJson(reader, customScalarAdapters) } return com.example.deprecated_merged_field.fragment.AnimalFragment( @@ -67,22 +63,18 @@ public object AnimalFragmentImpl_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.__typename) if (value.onCat != null) { - com.example.deprecated_merged_field.fragment.AnimalFragmentImpl_ResponseAdapter.AnimalFragment.OnCat.toJson(writer, - customScalarAdapters, value.onCat) + com.example.deprecated_merged_field.fragment.AnimalFragmentImpl_ResponseAdapter.AnimalFragment.OnCat.toJson(writer, customScalarAdapters, value.onCat) } if (value.onDog != null) { - com.example.deprecated_merged_field.fragment.AnimalFragmentImpl_ResponseAdapter.AnimalFragment.OnDog.toJson(writer, - customScalarAdapters, value.onDog) + com.example.deprecated_merged_field.fragment.AnimalFragmentImpl_ResponseAdapter.AnimalFragment.OnDog.toJson(writer, customScalarAdapters, value.onDog) } } - private object OnCat : - Adapter { + private object OnCat : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.deprecated_merged_field.fragment.AnimalFragment.OnCat { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.deprecated_merged_field.fragment.AnimalFragment.OnCat { var _name: String? = null while (true) { @@ -107,12 +99,10 @@ public object AnimalFragmentImpl_ResponseAdapter { } } - private object OnDog : - Adapter { + private object OnDog : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.deprecated_merged_field.fragment.AnimalFragment.OnDog { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.deprecated_merged_field.fragment.AnimalFragment.OnDog { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/deprecated_merged_field/kotlin/responseBased/deprecated_merged_field/CatQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/deprecated_merged_field/kotlin/responseBased/deprecated_merged_field/CatQuery.kt.expected index 5732708528b..418f1babb7a 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/deprecated_merged_field/kotlin/responseBased/deprecated_merged_field/CatQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/deprecated_merged_field/kotlin/responseBased/deprecated_merged_field/CatQuery.kt.expected @@ -92,7 +92,8 @@ public class CatQuery() : Query { public data class OtherAnimalCat( override val __typename: String, override val name: String, - ) : AnimalCat, CatAnimalFragment + ) : AnimalCat, + CatAnimalFragment } public companion object { @@ -123,8 +124,7 @@ public class CatQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query CatQuery { cat { __typename ...AnimalFragment } } fragment AnimalFragment on Animal { __typename ... on Cat { name } ... on Dog { name } }" + get() = "query CatQuery { cat { __typename ...AnimalFragment } } fragment AnimalFragment on Animal { __typename ... on Cat { name } ... on Dog { name } }" public const val OPERATION_NAME: String = "CatQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/deprecated_merged_field/kotlin/responseBased/deprecated_merged_field/adapter/CatQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/deprecated_merged_field/kotlin/responseBased/deprecated_merged_field/adapter/CatQuery_ResponseAdapter.kt.expected index 61696613da2..57c4f76bae8 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/deprecated_merged_field/kotlin/responseBased/deprecated_merged_field/adapter/CatQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/deprecated_merged_field/kotlin/responseBased/deprecated_merged_field/adapter/CatQuery_ResponseAdapter.kt.expected @@ -23,8 +23,7 @@ public object CatQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("cat") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - CatQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): CatQuery.Data { var _cat: CatQuery.Data.Cat? = null while (true) { @@ -49,8 +48,7 @@ public object CatQuery_ResponseAdapter { } private object Cat : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - CatQuery.Data.Cat { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): CatQuery.Data.Cat { val __typename = reader.readTypename() return when(__typename) { "Cat", @@ -66,8 +64,7 @@ public object CatQuery_ResponseAdapter { `value`: CatQuery.Data.Cat, ) { when(value) { - is CatQuery.Data.OtherAnimalCat -> OtherAnimalCat.toJson(writer, customScalarAdapters, - value) + is CatQuery.Data.OtherAnimalCat -> OtherAnimalCat.toJson(writer, customScalarAdapters, value) is CatQuery.Data.OtherCat -> OtherCat.toJson(writer, customScalarAdapters, value) } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/deprecated_merged_field/kotlin/responseBased/deprecated_merged_field/fragment/AnimalFragmentImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/deprecated_merged_field/kotlin/responseBased/deprecated_merged_field/fragment/AnimalFragmentImpl.kt.expected index 0ea4ea0a4b3..fb5d04efdd1 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/deprecated_merged_field/kotlin/responseBased/deprecated_merged_field/fragment/AnimalFragmentImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/deprecated_merged_field/kotlin/responseBased/deprecated_merged_field/fragment/AnimalFragmentImpl.kt.expected @@ -57,15 +57,18 @@ public class AnimalFragmentImpl() : Fragment { public data class CatData( override val __typename: String, override val name: String, - ) : Data, CatAnimalFragment + ) : Data, + CatAnimalFragment public data class DogData( override val __typename: String, @Deprecated(message = "No longer supported") override val name: String, - ) : Data, DogAnimalFragment + ) : Data, + DogAnimalFragment public data class OtherData( override val __typename: String, - ) : Data, AnimalFragment + ) : Data, + AnimalFragment } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/deprecated_merged_field/kotlin/responseBased/deprecated_merged_field/fragment/AnimalFragmentImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/deprecated_merged_field/kotlin/responseBased/deprecated_merged_field/fragment/AnimalFragmentImpl_ResponseAdapter.kt.expected index 9209825cae7..9059b42c542 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/deprecated_merged_field/kotlin/responseBased/deprecated_merged_field/fragment/AnimalFragmentImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/deprecated_merged_field/kotlin/responseBased/deprecated_merged_field/fragment/AnimalFragmentImpl_ResponseAdapter.kt.expected @@ -18,8 +18,7 @@ import kotlin.collections.List public object AnimalFragmentImpl_ResponseAdapter { public object Data : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - AnimalFragmentImpl.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): AnimalFragmentImpl.Data { val __typename = reader.readTypename() return when(__typename) { "Cat", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/deprecation/kotlin/responseBased/deprecation/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/deprecation/kotlin/responseBased/deprecation/TestQuery.kt.expected index 3aee3e54062..dc87248c6d4 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/deprecation/kotlin/responseBased/deprecation/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/deprecation/kotlin/responseBased/deprecation/TestQuery.kt.expected @@ -36,8 +36,7 @@ public data class TestQuery( customScalarAdapters: CustomScalarAdapters, withDefaultValues: Boolean, ) { - TestQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, - withDefaultValues) + TestQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, withDefaultValues) } override fun adapter(): Adapter = TestQuery_ResponseAdapter.Data.obj() @@ -81,8 +80,7 @@ public data class TestQuery( * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery(${'$'}episode: Episode) { hero(episode: ${'$'}episode) { name deprecated deprecatedBool } }" + get() = "query TestQuery(${'$'}episode: Episode) { hero(episode: ${'$'}episode) { name deprecated deprecatedBool } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/deprecation/kotlin/responseBased/deprecation/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/deprecation/kotlin/responseBased/deprecation/adapter/TestQuery_ResponseAdapter.kt.expected index e37644010f3..c466aa7454a 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/deprecation/kotlin/responseBased/deprecation/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/deprecation/kotlin/responseBased/deprecation/adapter/TestQuery_ResponseAdapter.kt.expected @@ -24,8 +24,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _hero: TestQuery.Data.Hero? = null while (true) { @@ -52,8 +51,7 @@ public object TestQuery_ResponseAdapter { private object Hero : Adapter { public val RESPONSE_NAMES: List = listOf("name", "deprecated", "deprecatedBool") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero { var _name: String? = null var _deprecated: String? = null var _deprecatedBool: Boolean? = null diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/deprecation/kotlin/responseBased/deprecation/adapter/TestQuery_VariablesAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/deprecation/kotlin/responseBased/deprecation/adapter/TestQuery_VariablesAdapter.kt.expected index 8b153c1f4b3..0f9e64f01f0 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/deprecation/kotlin/responseBased/deprecation/adapter/TestQuery_VariablesAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/deprecation/kotlin/responseBased/deprecation/adapter/TestQuery_VariablesAdapter.kt.expected @@ -28,8 +28,7 @@ public object TestQuery_VariablesAdapter { ) { if (value.episode is Optional.Present) { writer.name("episode") - Episode_ResponseAdapter.nullable().present().toJson(writer, customScalarAdapters, - value.episode) + Episode_ResponseAdapter.nullable().present().toJson(writer, customScalarAdapters, value.episode) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/deprecation/kotlin/responseBased/deprecation/type/Episode.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/deprecation/kotlin/responseBased/deprecation/type/Episode.kt.expected index b4ee2ccb15f..50cbe014188 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/deprecation/kotlin/responseBased/deprecation/type/Episode.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/deprecation/kotlin/responseBased/deprecation/type/Episode.kt.expected @@ -47,10 +47,8 @@ public enum class Episode( /** * Returns the [Episode] that represents the specified [rawValue]. - * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your - * schema instead of calling this function directly. + * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your schema instead of calling this function directly. */ - public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: - UNKNOWN__ + public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: UNKNOWN__ } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/enum_field/kotlin/responseBased/enum_field/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/enum_field/kotlin/responseBased/enum_field/adapter/TestQuery_ResponseAdapter.kt.expected index a32f6341d0d..edb89a58251 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/enum_field/kotlin/responseBased/enum_field/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/enum_field/kotlin/responseBased/enum_field/adapter/TestQuery_ResponseAdapter.kt.expected @@ -22,8 +22,7 @@ internal object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("gravity", "gravityAsEnum") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _gravity: Gravity? = null var _gravityAsEnum: GravityAsEnum? = null @@ -50,8 +49,7 @@ internal object TestQuery_ResponseAdapter { Gravity_ResponseAdapter.nullable().toJson(writer, customScalarAdapters, value.gravity) writer.name("gravityAsEnum") - GravityAsEnum_ResponseAdapter.nullable().toJson(writer, customScalarAdapters, - value.gravityAsEnum) + GravityAsEnum_ResponseAdapter.nullable().toJson(writer, customScalarAdapters, value.gravityAsEnum) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/enum_field/kotlin/responseBased/enum_field/type/Gravity.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/enum_field/kotlin/responseBased/enum_field/type/Gravity.kt.expected index 9bd820a6312..3c12a4bca16 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/enum_field/kotlin/responseBased/enum_field/type/Gravity.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/enum_field/kotlin/responseBased/enum_field/type/Gravity.kt.expected @@ -18,13 +18,12 @@ internal sealed interface Gravity { public val rawValue: kotlin.String public companion object { - public val type: EnumType = EnumType("Gravity", listOf("TOP", "CENTER", "BOTTOM", "bottom", - "is", "type", "String", "field")) + public val type: EnumType = + EnumType("Gravity", listOf("TOP", "CENTER", "BOTTOM", "bottom", "is", "type", "String", "field")) /** * Returns the [Gravity] that represents the specified [rawValue]. - * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your - * schema instead of calling this function directly. + * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your schema instead of calling this function directly. */ @Suppress("DEPRECATION") public fun safeValueOf(rawValue: kotlin.String): Gravity = when(rawValue) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/enum_field/kotlin/responseBased/enum_field/type/GravityAsEnum.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/enum_field/kotlin/responseBased/enum_field/type/GravityAsEnum.kt.expected index 3654005ee80..f57226c2838 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/enum_field/kotlin/responseBased/enum_field/type/GravityAsEnum.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/enum_field/kotlin/responseBased/enum_field/type/GravityAsEnum.kt.expected @@ -43,8 +43,8 @@ internal enum class GravityAsEnum( ; public companion object { - public val type: EnumType = EnumType("GravityAsEnum", listOf("TOP", "CENTER", "BOTTOM", - "bottom", "is", "while", "type", "String", "field")) + public val type: EnumType = + EnumType("GravityAsEnum", listOf("TOP", "CENTER", "BOTTOM", "bottom", "is", "while", "type", "String", "field")) /** * All [GravityAsEnum] known at compile time @@ -73,10 +73,8 @@ internal enum class GravityAsEnum( /** * Returns the [GravityAsEnum] that represents the specified [rawValue]. - * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your - * schema instead of calling this function directly. + * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your schema instead of calling this function directly. */ - public fun safeValueOf(rawValue: kotlin.String): GravityAsEnum = - entries.find { it.rawValue == rawValue } ?: UNKNOWN__ + public fun safeValueOf(rawValue: kotlin.String): GravityAsEnum = entries.find { it.rawValue == rawValue } ?: UNKNOWN__ } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/enum_field/kotlin/responseBased/enum_field/type/adapter/GravityAsEnum_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/enum_field/kotlin/responseBased/enum_field/type/adapter/GravityAsEnum_ResponseAdapter.kt.expected index 973e0c959ef..081b78c1209 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/enum_field/kotlin/responseBased/enum_field/type/adapter/GravityAsEnum_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/enum_field/kotlin/responseBased/enum_field/type/adapter/GravityAsEnum_ResponseAdapter.kt.expected @@ -12,8 +12,7 @@ import com.apollographql.apollo.api.json.JsonWriter import com.example.enum_field.type.GravityAsEnum internal object GravityAsEnum_ResponseAdapter : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - GravityAsEnum { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): GravityAsEnum { val rawValue = reader.nextString()!! return GravityAsEnum.safeValueOf(rawValue) } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/enums_as_sealed/kotlin/responseBased/enums_as_sealed/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/enums_as_sealed/kotlin/responseBased/enums_as_sealed/adapter/TestQuery_ResponseAdapter.kt.expected index 0176eff3dce..19d5360f744 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/enums_as_sealed/kotlin/responseBased/enums_as_sealed/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/enums_as_sealed/kotlin/responseBased/enums_as_sealed/adapter/TestQuery_ResponseAdapter.kt.expected @@ -20,8 +20,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("enum") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _enum: Enum? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/enums_as_sealed/kotlin/responseBased/enums_as_sealed/type/Enum.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/enums_as_sealed/kotlin/responseBased/enums_as_sealed/type/Enum.kt.expected index 9e933d29c8a..49c471e1b9a 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/enums_as_sealed/kotlin/responseBased/enums_as_sealed/type/Enum.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/enums_as_sealed/kotlin/responseBased/enums_as_sealed/type/Enum.kt.expected @@ -22,8 +22,7 @@ public sealed interface Enum { /** * Returns the [Enum] that represents the specified [rawValue]. - * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your - * schema instead of calling this function directly. + * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your schema instead of calling this function directly. */ @Suppress("DEPRECATION") public fun safeValueOf(rawValue: String): Enum = when(rawValue) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/field_with_include_directive/kotlin/responseBased/field_with_include_directive/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/field_with_include_directive/kotlin/responseBased/field_with_include_directive/TestQuery.kt.expected index 83e3951e4f2..8948a3df9c2 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/field_with_include_directive/kotlin/responseBased/field_with_include_directive/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/field_with_include_directive/kotlin/responseBased/field_with_include_directive/TestQuery.kt.expected @@ -35,8 +35,7 @@ public data class TestQuery( customScalarAdapters: CustomScalarAdapters, withDefaultValues: Boolean, ) { - TestQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, - withDefaultValues) + TestQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, withDefaultValues) } override fun adapter(): Adapter = TestQuery_ResponseAdapter.Data.obj() @@ -80,8 +79,7 @@ public data class TestQuery( * The un-minimized version is: * * ``` - * query TestQuery($includeName: Boolean!, $skipFriends: Boolean!) @operationDirective(dummy: - * "hello") { + * query TestQuery($includeName: Boolean!, $skipFriends: Boolean!) @operationDirective(dummy: "hello") { * hero { * name @include(if: $includeName) * friendsConnection @skip(if: $skipFriends) { @@ -92,8 +90,7 @@ public data class TestQuery( * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery(${'$'}includeName: Boolean!, ${'$'}skipFriends: Boolean!) @operationDirective(dummy: \"hello\") { hero { name @include(if: ${'$'}includeName) friendsConnection @skip(if: ${'$'}skipFriends) { totalCount } } }" + get() = "query TestQuery(${'$'}includeName: Boolean!, ${'$'}skipFriends: Boolean!) @operationDirective(dummy: \"hello\") { hero { name @include(if: ${'$'}includeName) friendsConnection @skip(if: ${'$'}skipFriends) { totalCount } } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/field_with_include_directive/kotlin/responseBased/field_with_include_directive/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/field_with_include_directive/kotlin/responseBased/field_with_include_directive/adapter/TestQuery_ResponseAdapter.kt.expected index b7736155862..fbd9a603d90 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/field_with_include_directive/kotlin/responseBased/field_with_include_directive/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/field_with_include_directive/kotlin/responseBased/field_with_include_directive/adapter/TestQuery_ResponseAdapter.kt.expected @@ -22,8 +22,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _hero: TestQuery.Data.Hero? = null while (true) { @@ -50,8 +49,7 @@ public object TestQuery_ResponseAdapter { private object Hero : Adapter { public val RESPONSE_NAMES: List = listOf("name", "friendsConnection") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero { var _name: String? = null var _friendsConnection: TestQuery.Data.Hero.FriendsConnection? = null @@ -78,15 +76,13 @@ public object TestQuery_ResponseAdapter { NullableStringAdapter.toJson(writer, customScalarAdapters, value.name) writer.name("friendsConnection") - FriendsConnection.obj().nullable().toJson(writer, customScalarAdapters, - value.friendsConnection) + FriendsConnection.obj().nullable().toJson(writer, customScalarAdapters, value.friendsConnection) } private object FriendsConnection : Adapter { public val RESPONSE_NAMES: List = listOf("totalCount") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero.FriendsConnection { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero.FriendsConnection { var _totalCount: Int? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fieldset_with_multiple_super/kotlin/operationBased/fieldset_with_multiple_super/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fieldset_with_multiple_super/kotlin/operationBased/fieldset_with_multiple_super/TestQuery.kt.expected index 27b17bed00a..601ec0bb6ae 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fieldset_with_multiple_super/kotlin/operationBased/fieldset_with_multiple_super/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fieldset_with_multiple_super/kotlin/operationBased/fieldset_with_multiple_super/TestQuery.kt.expected @@ -122,8 +122,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { c { __typename ... on A { __typename fieldA1 ... on B { fieldB1 } } ... on B { __typename fieldB2 ... on A { fieldA2 } } } }" + get() = "query TestQuery { c { __typename ... on A { __typename fieldA1 ... on B { fieldB1 } } ... on B { __typename fieldB2 ... on A { fieldA2 } } } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fieldset_with_multiple_super/kotlin/operationBased/fieldset_with_multiple_super/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fieldset_with_multiple_super/kotlin/operationBased/fieldset_with_multiple_super/adapter/TestQuery_ResponseAdapter.kt.expected index 984e9e11dda..f6c45b722b6 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fieldset_with_multiple_super/kotlin/operationBased/fieldset_with_multiple_super/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fieldset_with_multiple_super/kotlin/operationBased/fieldset_with_multiple_super/adapter/TestQuery_ResponseAdapter.kt.expected @@ -23,8 +23,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("c") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _c: TestQuery.Data.C? = null while (true) { @@ -51,8 +50,7 @@ public object TestQuery_ResponseAdapter { private object C : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.C { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.C { var __typename: String? = null while (true) { @@ -69,15 +67,13 @@ public object TestQuery_ResponseAdapter { var _onA: TestQuery.Data.C.OnA? = null if (possibleTypes("ABC","AC").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onA = com.example.fieldset_with_multiple_super.adapter.TestQuery_ResponseAdapter.Data.C.OnA.fromJson(reader, - customScalarAdapters) + _onA = com.example.fieldset_with_multiple_super.adapter.TestQuery_ResponseAdapter.Data.C.OnA.fromJson(reader, customScalarAdapters) } var _onB: TestQuery.Data.C.OnB? = null if (possibleTypes("ABC","BC").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onB = com.example.fieldset_with_multiple_super.adapter.TestQuery_ResponseAdapter.Data.C.OnB.fromJson(reader, - customScalarAdapters) + _onB = com.example.fieldset_with_multiple_super.adapter.TestQuery_ResponseAdapter.Data.C.OnB.fromJson(reader, customScalarAdapters) } return TestQuery.Data.C( @@ -96,21 +92,18 @@ public object TestQuery_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.__typename) if (value.onA != null) { - com.example.fieldset_with_multiple_super.adapter.TestQuery_ResponseAdapter.Data.C.OnA.toJson(writer, - customScalarAdapters, value.onA) + com.example.fieldset_with_multiple_super.adapter.TestQuery_ResponseAdapter.Data.C.OnA.toJson(writer, customScalarAdapters, value.onA) } if (value.onB != null) { - com.example.fieldset_with_multiple_super.adapter.TestQuery_ResponseAdapter.Data.C.OnB.toJson(writer, - customScalarAdapters, value.onB) + com.example.fieldset_with_multiple_super.adapter.TestQuery_ResponseAdapter.Data.C.OnB.toJson(writer, customScalarAdapters, value.onB) } } private object OnA : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "fieldA1") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.C.OnA { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.C.OnA { var __typename: String? = null var _fieldA1: String? = null @@ -129,8 +122,7 @@ public object TestQuery_ResponseAdapter { var _onB: TestQuery.Data.C.OnA.OnB? = null if (possibleTypes("ABC","BC").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onB = com.example.fieldset_with_multiple_super.adapter.TestQuery_ResponseAdapter.Data.C.OnA.OnB.fromJson(reader, - customScalarAdapters) + _onB = com.example.fieldset_with_multiple_super.adapter.TestQuery_ResponseAdapter.Data.C.OnA.OnB.fromJson(reader, customScalarAdapters) } return TestQuery.Data.C.OnA( @@ -152,16 +144,14 @@ public object TestQuery_ResponseAdapter { NullableStringAdapter.toJson(writer, customScalarAdapters, value.fieldA1) if (value.onB != null) { - com.example.fieldset_with_multiple_super.adapter.TestQuery_ResponseAdapter.Data.C.OnA.OnB.toJson(writer, - customScalarAdapters, value.onB) + com.example.fieldset_with_multiple_super.adapter.TestQuery_ResponseAdapter.Data.C.OnA.OnB.toJson(writer, customScalarAdapters, value.onB) } } private object OnB : Adapter { public val RESPONSE_NAMES: List = listOf("fieldB1") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.C.OnA.OnB { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.C.OnA.OnB { var _fieldB1: String? = null while (true) { @@ -190,8 +180,7 @@ public object TestQuery_ResponseAdapter { private object OnB : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "fieldB2") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.C.OnB { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.C.OnB { var __typename: String? = null var _fieldB2: String? = null @@ -210,8 +199,7 @@ public object TestQuery_ResponseAdapter { var _onA: TestQuery.Data.C.OnB.OnA? = null if (possibleTypes("ABC","AC").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onA = com.example.fieldset_with_multiple_super.adapter.TestQuery_ResponseAdapter.Data.C.OnB.OnA.fromJson(reader, - customScalarAdapters) + _onA = com.example.fieldset_with_multiple_super.adapter.TestQuery_ResponseAdapter.Data.C.OnB.OnA.fromJson(reader, customScalarAdapters) } return TestQuery.Data.C.OnB( @@ -233,16 +221,14 @@ public object TestQuery_ResponseAdapter { NullableStringAdapter.toJson(writer, customScalarAdapters, value.fieldB2) if (value.onA != null) { - com.example.fieldset_with_multiple_super.adapter.TestQuery_ResponseAdapter.Data.C.OnB.OnA.toJson(writer, - customScalarAdapters, value.onA) + com.example.fieldset_with_multiple_super.adapter.TestQuery_ResponseAdapter.Data.C.OnB.OnA.toJson(writer, customScalarAdapters, value.onA) } } private object OnA : Adapter { public val RESPONSE_NAMES: List = listOf("fieldA2") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.C.OnB.OnA { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.C.OnB.OnA { var _fieldA2: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fieldset_with_multiple_super/kotlin/responseBased/fieldset_with_multiple_super/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fieldset_with_multiple_super/kotlin/responseBased/fieldset_with_multiple_super/TestQuery.kt.expected index 85cdaeeb17e..0988ee9eb2f 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fieldset_with_multiple_super/kotlin/responseBased/fieldset_with_multiple_super/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fieldset_with_multiple_super/kotlin/responseBased/fieldset_with_multiple_super/TestQuery.kt.expected @@ -86,7 +86,8 @@ public class TestQuery() : Query { public val fieldB1: String?, override val fieldB2: String?, public val fieldA2: String?, - ) : AC, BC + ) : AC, + BC public data class OtherC( override val __typename: String, @@ -134,8 +135,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { c { __typename ... on A { __typename fieldA1 ... on B { fieldB1 } } ... on B { __typename fieldB2 ... on A { fieldA2 } } } }" + get() = "query TestQuery { c { __typename ... on A { __typename fieldA1 ... on B { fieldB1 } } ... on B { __typename fieldB2 ... on A { fieldA2 } } } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fieldset_with_multiple_super/kotlin/responseBased/fieldset_with_multiple_super/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fieldset_with_multiple_super/kotlin/responseBased/fieldset_with_multiple_super/adapter/TestQuery_ResponseAdapter.kt.expected index fad5acb8efb..ea259d89535 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fieldset_with_multiple_super/kotlin/responseBased/fieldset_with_multiple_super/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fieldset_with_multiple_super/kotlin/responseBased/fieldset_with_multiple_super/adapter/TestQuery_ResponseAdapter.kt.expected @@ -24,8 +24,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("c") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _c: TestQuery.Data.C? = null while (true) { @@ -50,8 +49,7 @@ public object TestQuery_ResponseAdapter { } private object C : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.C { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.C { val __typename = reader.readTypename() return when(__typename) { "ABC", @@ -80,8 +78,8 @@ public object TestQuery_ResponseAdapter { } public object ABC { - public val RESPONSE_NAMES: List = listOf("__typename", "fieldA1", "fieldB1", - "fieldB2", "fieldA2") + public val RESPONSE_NAMES: List = + listOf("__typename", "fieldA1", "fieldB1", "fieldB2", "fieldA2") public fun fromJson( reader: JsonReader, diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_include_directive/kotlin/operationBased/fragment_spread_with_include_directive/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_include_directive/kotlin/operationBased/fragment_spread_with_include_directive/TestQuery.kt.expected index 11c65d93911..de439f2d5e0 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_include_directive/kotlin/operationBased/fragment_spread_with_include_directive/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_include_directive/kotlin/operationBased/fragment_spread_with_include_directive/TestQuery.kt.expected @@ -42,8 +42,7 @@ public data class TestQuery( customScalarAdapters: CustomScalarAdapters, withDefaultValues: Boolean, ) { - TestQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, - withDefaultValues) + TestQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, withDefaultValues) } override fun adapter(): Adapter = TestQuery_ResponseAdapter.Data.obj() @@ -94,9 +93,7 @@ public data class TestQuery( * The un-minimized version is: * * ``` - * query TestQuery($withDetails: Boolean!, $skipHumanDetails: Boolean!, - * $optionalWithDefaultFalse: Boolean = false , $optionalWithDefaultTrue: Boolean = true , - * $optionalWithNoDefault: Boolean) { + * query TestQuery($withDetails: Boolean!, $skipHumanDetails: Boolean!, $optionalWithDefaultFalse: Boolean = false , $optionalWithDefaultTrue: Boolean = true , $optionalWithNoDefault: Boolean) { * hero { * __typename * id @@ -126,8 +123,7 @@ public data class TestQuery( * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery(${'$'}withDetails: Boolean!, ${'$'}skipHumanDetails: Boolean!, ${'$'}optionalWithDefaultFalse: Boolean = false , ${'$'}optionalWithDefaultTrue: Boolean = true , ${'$'}optionalWithNoDefault: Boolean) { hero { __typename id ...HeroDetails @include(if: ${'$'}withDetails) @skip(if: ${'$'}skipHumanDetails) ...HumanDetails @include(if: ${'$'}withDetails) ...DroidDetails @skip(if: ${'$'}optionalWithDefaultTrue) ...OtherDroidDetails @include(if: ${'$'}optionalWithDefaultTrue) } getBoolean(booleanArg: ${'$'}optionalWithNoDefault) } fragment HeroDetails on Character { name } fragment HumanDetails on Human { homePlanet } fragment DroidDetails on Droid { primaryFunction } fragment OtherDroidDetails on Droid { id }" + get() = "query TestQuery(${'$'}withDetails: Boolean!, ${'$'}skipHumanDetails: Boolean!, ${'$'}optionalWithDefaultFalse: Boolean = false , ${'$'}optionalWithDefaultTrue: Boolean = true , ${'$'}optionalWithNoDefault: Boolean) { hero { __typename id ...HeroDetails @include(if: ${'$'}withDetails) @skip(if: ${'$'}skipHumanDetails) ...HumanDetails @include(if: ${'$'}withDetails) ...DroidDetails @skip(if: ${'$'}optionalWithDefaultTrue) ...OtherDroidDetails @include(if: ${'$'}optionalWithDefaultTrue) } getBoolean(booleanArg: ${'$'}optionalWithNoDefault) } fragment HeroDetails on Character { name } fragment HumanDetails on Human { homePlanet } fragment DroidDetails on Droid { primaryFunction } fragment OtherDroidDetails on Droid { id }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_include_directive/kotlin/operationBased/fragment_spread_with_include_directive/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_include_directive/kotlin/operationBased/fragment_spread_with_include_directive/adapter/TestQuery_ResponseAdapter.kt.expected index 0e116a97919..9c3c61d2b7f 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_include_directive/kotlin/operationBased/fragment_spread_with_include_directive/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_include_directive/kotlin/operationBased/fragment_spread_with_include_directive/adapter/TestQuery_ResponseAdapter.kt.expected @@ -32,8 +32,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero", "getBoolean") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _hero: TestQuery.Data.Hero? = null var _getBoolean: Boolean? = null @@ -66,8 +65,7 @@ public object TestQuery_ResponseAdapter { private object Hero : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "id") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero { var __typename: String? = null var _id: String? = null @@ -86,29 +84,25 @@ public object TestQuery_ResponseAdapter { var _heroDetails: HeroDetails? = null if (and(variable("withDetails"),not(variable("skipHumanDetails"))).evaluate(customScalarAdapters.falseVariables, null, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _heroDetails = com.example.fragment_spread_with_include_directive.fragment.HeroDetailsImpl_ResponseAdapter.HeroDetails.fromJson(reader, - customScalarAdapters) + _heroDetails = com.example.fragment_spread_with_include_directive.fragment.HeroDetailsImpl_ResponseAdapter.HeroDetails.fromJson(reader, customScalarAdapters) } var _humanDetails: HumanDetails? = null if (and(possibleTypes("Human"),variable("withDetails")).evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _humanDetails = com.example.fragment_spread_with_include_directive.fragment.HumanDetailsImpl_ResponseAdapter.HumanDetails.fromJson(reader, - customScalarAdapters) + _humanDetails = com.example.fragment_spread_with_include_directive.fragment.HumanDetailsImpl_ResponseAdapter.HumanDetails.fromJson(reader, customScalarAdapters) } var _droidDetails: DroidDetails? = null if (and(possibleTypes("Droid"),not(variable("optionalWithDefaultTrue"))).evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _droidDetails = com.example.fragment_spread_with_include_directive.fragment.DroidDetailsImpl_ResponseAdapter.DroidDetails.fromJson(reader, - customScalarAdapters) + _droidDetails = com.example.fragment_spread_with_include_directive.fragment.DroidDetailsImpl_ResponseAdapter.DroidDetails.fromJson(reader, customScalarAdapters) } var _otherDroidDetails: OtherDroidDetails? = null if (and(possibleTypes("Droid"),variable("optionalWithDefaultTrue")).evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _otherDroidDetails = com.example.fragment_spread_with_include_directive.fragment.OtherDroidDetailsImpl_ResponseAdapter.OtherDroidDetails.fromJson(reader, - customScalarAdapters) + _otherDroidDetails = com.example.fragment_spread_with_include_directive.fragment.OtherDroidDetailsImpl_ResponseAdapter.OtherDroidDetails.fromJson(reader, customScalarAdapters) } return TestQuery.Data.Hero( @@ -133,23 +127,19 @@ public object TestQuery_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.id) if (value.heroDetails != null) { - com.example.fragment_spread_with_include_directive.fragment.HeroDetailsImpl_ResponseAdapter.HeroDetails.toJson(writer, - customScalarAdapters, value.heroDetails) + com.example.fragment_spread_with_include_directive.fragment.HeroDetailsImpl_ResponseAdapter.HeroDetails.toJson(writer, customScalarAdapters, value.heroDetails) } if (value.humanDetails != null) { - com.example.fragment_spread_with_include_directive.fragment.HumanDetailsImpl_ResponseAdapter.HumanDetails.toJson(writer, - customScalarAdapters, value.humanDetails) + com.example.fragment_spread_with_include_directive.fragment.HumanDetailsImpl_ResponseAdapter.HumanDetails.toJson(writer, customScalarAdapters, value.humanDetails) } if (value.droidDetails != null) { - com.example.fragment_spread_with_include_directive.fragment.DroidDetailsImpl_ResponseAdapter.DroidDetails.toJson(writer, - customScalarAdapters, value.droidDetails) + com.example.fragment_spread_with_include_directive.fragment.DroidDetailsImpl_ResponseAdapter.DroidDetails.toJson(writer, customScalarAdapters, value.droidDetails) } if (value.otherDroidDetails != null) { - com.example.fragment_spread_with_include_directive.fragment.OtherDroidDetailsImpl_ResponseAdapter.OtherDroidDetails.toJson(writer, - customScalarAdapters, value.otherDroidDetails) + com.example.fragment_spread_with_include_directive.fragment.OtherDroidDetailsImpl_ResponseAdapter.OtherDroidDetails.toJson(writer, customScalarAdapters, value.otherDroidDetails) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_include_directive/kotlin/operationBased/fragment_spread_with_include_directive/adapter/TestQuery_VariablesAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_include_directive/kotlin/operationBased/fragment_spread_with_include_directive/adapter/TestQuery_VariablesAdapter.kt.expected index 47e27731e51..4862429cc96 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_include_directive/kotlin/operationBased/fragment_spread_with_include_directive/adapter/TestQuery_VariablesAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_include_directive/kotlin/operationBased/fragment_spread_with_include_directive/adapter/TestQuery_VariablesAdapter.kt.expected @@ -33,8 +33,7 @@ public object TestQuery_VariablesAdapter { BooleanAdapter.toJson(writer, customScalarAdapters, value.skipHumanDetails) if (value.optionalWithDefaultFalse is Optional.Present) { writer.name("optionalWithDefaultFalse") - NullableBooleanAdapter.present().toJson(writer, customScalarAdapters, - value.optionalWithDefaultFalse) + NullableBooleanAdapter.present().toJson(writer, customScalarAdapters, value.optionalWithDefaultFalse) } else if (withDefaultValues) { writer.name("optionalWithDefaultFalse") @@ -42,8 +41,7 @@ public object TestQuery_VariablesAdapter { } if (value.optionalWithDefaultTrue is Optional.Present) { writer.name("optionalWithDefaultTrue") - NullableBooleanAdapter.present().toJson(writer, customScalarAdapters, - value.optionalWithDefaultTrue) + NullableBooleanAdapter.present().toJson(writer, customScalarAdapters, value.optionalWithDefaultTrue) } else if (withDefaultValues) { writer.name("optionalWithDefaultTrue") @@ -51,8 +49,7 @@ public object TestQuery_VariablesAdapter { } if (value.optionalWithNoDefault is Optional.Present) { writer.name("optionalWithNoDefault") - NullableBooleanAdapter.present().toJson(writer, customScalarAdapters, - value.optionalWithNoDefault) + NullableBooleanAdapter.present().toJson(writer, customScalarAdapters, value.optionalWithNoDefault) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_include_directive/kotlin/operationBased/fragment_spread_with_include_directive/fragment/DroidDetailsImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_include_directive/kotlin/operationBased/fragment_spread_with_include_directive/fragment/DroidDetailsImpl.kt.expected index 3d603ea7c72..2f86dfa7048 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_include_directive/kotlin/operationBased/fragment_spread_with_include_directive/fragment/DroidDetailsImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_include_directive/kotlin/operationBased/fragment_spread_with_include_directive/fragment/DroidDetailsImpl.kt.expected @@ -30,8 +30,7 @@ public class DroidDetailsImpl() : Fragment { // This fragment doesn't have any variable } - override fun adapter(): Adapter = - DroidDetailsImpl_ResponseAdapter.DroidDetails.obj() + override fun adapter(): Adapter = DroidDetailsImpl_ResponseAdapter.DroidDetails.obj() override fun rootField(): CompiledField = CompiledField.Builder( name = "data", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_include_directive/kotlin/operationBased/fragment_spread_with_include_directive/fragment/DroidDetailsImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_include_directive/kotlin/operationBased/fragment_spread_with_include_directive/fragment/DroidDetailsImpl_ResponseAdapter.kt.expected index d08b8aca245..db4a41d97ab 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_include_directive/kotlin/operationBased/fragment_spread_with_include_directive/fragment/DroidDetailsImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_include_directive/kotlin/operationBased/fragment_spread_with_include_directive/fragment/DroidDetailsImpl_ResponseAdapter.kt.expected @@ -14,12 +14,10 @@ import kotlin.String import kotlin.collections.List public object DroidDetailsImpl_ResponseAdapter { - public object DroidDetails : - Adapter { + public object DroidDetails : Adapter { public val RESPONSE_NAMES: List = listOf("primaryFunction") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.fragment_spread_with_include_directive.fragment.DroidDetails { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.fragment_spread_with_include_directive.fragment.DroidDetails { var _primaryFunction: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_include_directive/kotlin/operationBased/fragment_spread_with_include_directive/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_include_directive/kotlin/operationBased/fragment_spread_with_include_directive/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected index 59176f903eb..2ecf1a0f5a0 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_include_directive/kotlin/operationBased/fragment_spread_with_include_directive/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_include_directive/kotlin/operationBased/fragment_spread_with_include_directive/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected @@ -15,12 +15,10 @@ import kotlin.String import kotlin.collections.List public object HeroDetailsImpl_ResponseAdapter { - public object HeroDetails : - Adapter { + public object HeroDetails : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.fragment_spread_with_include_directive.fragment.HeroDetails { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.fragment_spread_with_include_directive.fragment.HeroDetails { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_include_directive/kotlin/operationBased/fragment_spread_with_include_directive/fragment/HumanDetailsImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_include_directive/kotlin/operationBased/fragment_spread_with_include_directive/fragment/HumanDetailsImpl.kt.expected index 27baa65011f..8d613240418 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_include_directive/kotlin/operationBased/fragment_spread_with_include_directive/fragment/HumanDetailsImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_include_directive/kotlin/operationBased/fragment_spread_with_include_directive/fragment/HumanDetailsImpl.kt.expected @@ -30,8 +30,7 @@ public class HumanDetailsImpl() : Fragment { // This fragment doesn't have any variable } - override fun adapter(): Adapter = - HumanDetailsImpl_ResponseAdapter.HumanDetails.obj() + override fun adapter(): Adapter = HumanDetailsImpl_ResponseAdapter.HumanDetails.obj() override fun rootField(): CompiledField = CompiledField.Builder( name = "data", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_include_directive/kotlin/operationBased/fragment_spread_with_include_directive/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_include_directive/kotlin/operationBased/fragment_spread_with_include_directive/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected index e2795ebd752..9a114478084 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_include_directive/kotlin/operationBased/fragment_spread_with_include_directive/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_include_directive/kotlin/operationBased/fragment_spread_with_include_directive/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected @@ -14,12 +14,10 @@ import kotlin.String import kotlin.collections.List public object HumanDetailsImpl_ResponseAdapter { - public object HumanDetails : - Adapter { + public object HumanDetails : Adapter { public val RESPONSE_NAMES: List = listOf("homePlanet") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.fragment_spread_with_include_directive.fragment.HumanDetails { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.fragment_spread_with_include_directive.fragment.HumanDetails { var _homePlanet: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_include_directive/kotlin/operationBased/fragment_spread_with_include_directive/fragment/OtherDroidDetailsImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_include_directive/kotlin/operationBased/fragment_spread_with_include_directive/fragment/OtherDroidDetailsImpl.kt.expected index 9fb4db06b6d..743a84a3f63 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_include_directive/kotlin/operationBased/fragment_spread_with_include_directive/fragment/OtherDroidDetailsImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_include_directive/kotlin/operationBased/fragment_spread_with_include_directive/fragment/OtherDroidDetailsImpl.kt.expected @@ -30,8 +30,7 @@ public class OtherDroidDetailsImpl() : Fragment { // This fragment doesn't have any variable } - override fun adapter(): Adapter = - OtherDroidDetailsImpl_ResponseAdapter.OtherDroidDetails.obj() + override fun adapter(): Adapter = OtherDroidDetailsImpl_ResponseAdapter.OtherDroidDetails.obj() override fun rootField(): CompiledField = CompiledField.Builder( name = "data", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_include_directive/kotlin/operationBased/fragment_spread_with_include_directive/fragment/OtherDroidDetailsImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_include_directive/kotlin/operationBased/fragment_spread_with_include_directive/fragment/OtherDroidDetailsImpl_ResponseAdapter.kt.expected index 6802d4308cc..8921d30e4e8 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_include_directive/kotlin/operationBased/fragment_spread_with_include_directive/fragment/OtherDroidDetailsImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_include_directive/kotlin/operationBased/fragment_spread_with_include_directive/fragment/OtherDroidDetailsImpl_ResponseAdapter.kt.expected @@ -15,12 +15,10 @@ import kotlin.String import kotlin.collections.List public object OtherDroidDetailsImpl_ResponseAdapter { - public object OtherDroidDetails : - Adapter { + public object OtherDroidDetails : Adapter { public val RESPONSE_NAMES: List = listOf("id") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.fragment_spread_with_include_directive.fragment.OtherDroidDetails { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.fragment_spread_with_include_directive.fragment.OtherDroidDetails { var _id: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_include_directive/kotlin/operationBased/fragment_spread_with_include_directive/selections/TestQuerySelections.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_include_directive/kotlin/operationBased/fragment_spread_with_include_directive/selections/TestQuerySelections.kt.expected index f8ee0ab8998..662af6df2a8 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_include_directive/kotlin/operationBased/fragment_spread_with_include_directive/selections/TestQuerySelections.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_include_directive/kotlin/operationBased/fragment_spread_with_include_directive/selections/TestQuerySelections.kt.expected @@ -36,8 +36,7 @@ public object TestQuerySelections { CompiledFragment.Builder( typeCondition = "Character", possibleTypes = listOf("Droid", "Human") - ).condition(listOf(CompiledCondition("withDetails", false), - CompiledCondition("skipHumanDetails", true))) + ).condition(listOf(CompiledCondition("withDetails", false), CompiledCondition("skipHumanDetails", true))) .selections(HeroDetailsSelections.__root) .build(), CompiledFragment.Builder( diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_nested_fields/kotlin/operationBased/fragment_spread_with_nested_fields/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_nested_fields/kotlin/operationBased/fragment_spread_with_nested_fields/TestQuery.kt.expected index 76f098c7142..8a3eb9e3736 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_nested_fields/kotlin/operationBased/fragment_spread_with_nested_fields/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_nested_fields/kotlin/operationBased/fragment_spread_with_nested_fields/TestQuery.kt.expected @@ -92,8 +92,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { hero { __typename ...HeroDetails } } fragment HeroDetails on Character { name friendsConnection { totalCount edges { node { name } } } }" + get() = "query TestQuery { hero { __typename ...HeroDetails } } fragment HeroDetails on Character { name friendsConnection { totalCount edges { node { name } } } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_nested_fields/kotlin/operationBased/fragment_spread_with_nested_fields/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_nested_fields/kotlin/operationBased/fragment_spread_with_nested_fields/adapter/TestQuery_ResponseAdapter.kt.expected index d533c11eb6a..0efd39f0368 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_nested_fields/kotlin/operationBased/fragment_spread_with_nested_fields/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_nested_fields/kotlin/operationBased/fragment_spread_with_nested_fields/adapter/TestQuery_ResponseAdapter.kt.expected @@ -21,8 +21,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _hero: TestQuery.Data.Hero? = null while (true) { @@ -49,8 +48,7 @@ public object TestQuery_ResponseAdapter { private object Hero : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero { var __typename: String? = null while (true) { @@ -61,8 +59,7 @@ public object TestQuery_ResponseAdapter { } reader.rewind() - val _heroDetails = com.example.fragment_spread_with_nested_fields.fragment.HeroDetailsImpl_ResponseAdapter.HeroDetails.fromJson(reader, - customScalarAdapters) + val _heroDetails = com.example.fragment_spread_with_nested_fields.fragment.HeroDetailsImpl_ResponseAdapter.HeroDetails.fromJson(reader, customScalarAdapters) return TestQuery.Data.Hero( __typename = __typename ?: missingField(reader, "__typename"), @@ -78,8 +75,7 @@ public object TestQuery_ResponseAdapter { writer.name("__typename") StringAdapter.toJson(writer, customScalarAdapters, value.__typename) - com.example.fragment_spread_with_nested_fields.fragment.HeroDetailsImpl_ResponseAdapter.HeroDetails.toJson(writer, - customScalarAdapters, value.heroDetails) + com.example.fragment_spread_with_nested_fields.fragment.HeroDetailsImpl_ResponseAdapter.HeroDetails.toJson(writer, customScalarAdapters, value.heroDetails) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_nested_fields/kotlin/operationBased/fragment_spread_with_nested_fields/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_nested_fields/kotlin/operationBased/fragment_spread_with_nested_fields/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected index cc3ccaa04fa..d030a6ee8c2 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_nested_fields/kotlin/operationBased/fragment_spread_with_nested_fields/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_nested_fields/kotlin/operationBased/fragment_spread_with_nested_fields/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected @@ -20,12 +20,10 @@ import kotlin.String import kotlin.collections.List public object HeroDetailsImpl_ResponseAdapter { - public object HeroDetails : - Adapter { + public object HeroDetails : Adapter { public val RESPONSE_NAMES: List = listOf("name", "friendsConnection") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.fragment_spread_with_nested_fields.fragment.HeroDetails { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.fragment_spread_with_nested_fields.fragment.HeroDetails { var _name: String? = null var _friendsConnection: com.example.fragment_spread_with_nested_fields.fragment.HeroDetails.FriendsConnection? = null @@ -55,13 +53,10 @@ public object HeroDetailsImpl_ResponseAdapter { FriendsConnection.obj().toJson(writer, customScalarAdapters, value.friendsConnection) } - private object FriendsConnection : - Adapter - { + private object FriendsConnection : Adapter { public val RESPONSE_NAMES: List = listOf("totalCount", "edges") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.fragment_spread_with_nested_fields.fragment.HeroDetails.FriendsConnection { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.fragment_spread_with_nested_fields.fragment.HeroDetails.FriendsConnection { var _totalCount: Int? = null var _edges: List? = null @@ -91,13 +86,10 @@ public object HeroDetailsImpl_ResponseAdapter { Edge.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, value.edges) } - private object Edge : - Adapter - { + private object Edge : Adapter { public val RESPONSE_NAMES: List = listOf("node") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.fragment_spread_with_nested_fields.fragment.HeroDetails.FriendsConnection.Edge { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.fragment_spread_with_nested_fields.fragment.HeroDetails.FriendsConnection.Edge { var _node: com.example.fragment_spread_with_nested_fields.fragment.HeroDetails.FriendsConnection.Edge.Node? = null while (true) { @@ -121,13 +113,10 @@ public object HeroDetailsImpl_ResponseAdapter { Node.obj().nullable().toJson(writer, customScalarAdapters, value.node) } - private object Node : - Adapter - { + private object Node : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.fragment_spread_with_nested_fields.fragment.HeroDetails.FriendsConnection.Edge.Node { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.fragment_spread_with_nested_fields.fragment.HeroDetails.FriendsConnection.Edge.Node { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_nested_fields/kotlin/responseBased/fragment_spread_with_nested_fields/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_nested_fields/kotlin/responseBased/fragment_spread_with_nested_fields/TestQuery.kt.expected index 3d76d9a7341..d2202248eac 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_nested_fields/kotlin/responseBased/fragment_spread_with_nested_fields/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_nested_fields/kotlin/responseBased/fragment_spread_with_nested_fields/TestQuery.kt.expected @@ -130,8 +130,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { hero { __typename ...HeroDetails } } fragment HeroDetails on Character { name friendsConnection { totalCount edges { node { name } } } }" + get() = "query TestQuery { hero { __typename ...HeroDetails } } fragment HeroDetails on Character { name friendsConnection { totalCount edges { node { name } } } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_nested_fields/kotlin/responseBased/fragment_spread_with_nested_fields/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_nested_fields/kotlin/responseBased/fragment_spread_with_nested_fields/adapter/TestQuery_ResponseAdapter.kt.expected index b2ad12d49db..7d48af310c9 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_nested_fields/kotlin/responseBased/fragment_spread_with_nested_fields/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_nested_fields/kotlin/responseBased/fragment_spread_with_nested_fields/adapter/TestQuery_ResponseAdapter.kt.expected @@ -24,8 +24,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _hero: TestQuery.Data.Hero? = null while (true) { @@ -52,8 +51,7 @@ public object TestQuery_ResponseAdapter { private object Hero : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "name", "friendsConnection") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero { var __typename: String? = null var _name: String? = null var _friendsConnection: TestQuery.Data.Hero.FriendsConnection? = null @@ -92,8 +90,7 @@ public object TestQuery_ResponseAdapter { private object FriendsConnection : Adapter { public val RESPONSE_NAMES: List = listOf("totalCount", "edges") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero.FriendsConnection { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero.FriendsConnection { var _totalCount: Int? = null var _edges: List? = null @@ -126,8 +123,7 @@ public object TestQuery_ResponseAdapter { private object Edge : Adapter { public val RESPONSE_NAMES: List = listOf("node") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero.FriendsConnection.Edge { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero.FriendsConnection.Edge { var _node: TestQuery.Data.Hero.FriendsConnection.Edge.Node? = null while (true) { @@ -154,8 +150,7 @@ public object TestQuery_ResponseAdapter { private object Node : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero.FriendsConnection.Edge.Node { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero.FriendsConnection.Edge.Node { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_nested_fields/kotlin/responseBased/fragment_spread_with_nested_fields/fragment/HeroDetailsImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_nested_fields/kotlin/responseBased/fragment_spread_with_nested_fields/fragment/HeroDetailsImpl.kt.expected index 5efa332df82..952d60c1378 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_nested_fields/kotlin/responseBased/fragment_spread_with_nested_fields/fragment/HeroDetailsImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_nested_fields/kotlin/responseBased/fragment_spread_with_nested_fields/fragment/HeroDetailsImpl.kt.expected @@ -50,7 +50,8 @@ public class HeroDetailsImpl() : Fragment { * The friends of the character exposed as a connection with edges */ override val friendsConnection: FriendsConnection, - ) : HeroDetails, Fragment.Data { + ) : HeroDetails, + Fragment.Data { public data class FriendsConnection( /** * The total number of friends diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_nested_fields/kotlin/responseBased/fragment_spread_with_nested_fields/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_nested_fields/kotlin/responseBased/fragment_spread_with_nested_fields/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected index dc302944c7a..e22aedc3736 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_nested_fields/kotlin/responseBased/fragment_spread_with_nested_fields/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_spread_with_nested_fields/kotlin/responseBased/fragment_spread_with_nested_fields/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected @@ -23,8 +23,7 @@ public object HeroDetailsImpl_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("name", "friendsConnection") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - HeroDetailsImpl.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): HeroDetailsImpl.Data { var _name: String? = null var _friendsConnection: HeroDetailsImpl.Data.FriendsConnection? = null @@ -57,8 +56,7 @@ public object HeroDetailsImpl_ResponseAdapter { private object FriendsConnection : Adapter { public val RESPONSE_NAMES: List = listOf("totalCount", "edges") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - HeroDetailsImpl.Data.FriendsConnection { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): HeroDetailsImpl.Data.FriendsConnection { var _totalCount: Int? = null var _edges: List? = null @@ -91,8 +89,7 @@ public object HeroDetailsImpl_ResponseAdapter { private object Edge : Adapter { public val RESPONSE_NAMES: List = listOf("node") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - HeroDetailsImpl.Data.FriendsConnection.Edge { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): HeroDetailsImpl.Data.FriendsConnection.Edge { var _node: HeroDetailsImpl.Data.FriendsConnection.Edge.Node? = null while (true) { @@ -119,8 +116,7 @@ public object HeroDetailsImpl_ResponseAdapter { private object Node : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - HeroDetailsImpl.Data.FriendsConnection.Edge.Node { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): HeroDetailsImpl.Data.FriendsConnection.Edge.Node { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/operationBased/fragment_used_twice/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/operationBased/fragment_used_twice/TestQuery.kt.expected index e4a6c5bc50a..2c7d75ff21e 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/operationBased/fragment_used_twice/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/operationBased/fragment_used_twice/TestQuery.kt.expected @@ -103,8 +103,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { hero { __typename ...HeroDetails ...HumanDetails } } fragment CharacterDetails on Character { name birthDate } fragment HeroDetails on Character { __typename name ...CharacterDetails } fragment HumanDetails on Human { __typename name ...CharacterDetails }" + get() = "query TestQuery { hero { __typename ...HeroDetails ...HumanDetails } } fragment CharacterDetails on Character { name birthDate } fragment HeroDetails on Character { __typename name ...CharacterDetails } fragment HumanDetails on Human { __typename name ...CharacterDetails }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/operationBased/fragment_used_twice/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/operationBased/fragment_used_twice/adapter/TestQuery_ResponseAdapter.kt.expected index 36229c71756..2c09cfc51fe 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/operationBased/fragment_used_twice/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/operationBased/fragment_used_twice/adapter/TestQuery_ResponseAdapter.kt.expected @@ -23,8 +23,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _hero: TestQuery.Data.Hero? = null while (true) { @@ -51,8 +50,7 @@ public object TestQuery_ResponseAdapter { private object Hero : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero { var __typename: String? = null while (true) { @@ -67,14 +65,12 @@ public object TestQuery_ResponseAdapter { } reader.rewind() - val _heroDetails = com.example.fragment_used_twice.fragment.HeroDetailsImpl_ResponseAdapter.HeroDetails.fromJson(reader, - customScalarAdapters) + val _heroDetails = com.example.fragment_used_twice.fragment.HeroDetailsImpl_ResponseAdapter.HeroDetails.fromJson(reader, customScalarAdapters) var _humanDetails: HumanDetails? = null if (possibleTypes("Human").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _humanDetails = com.example.fragment_used_twice.fragment.HumanDetailsImpl_ResponseAdapter.HumanDetails.fromJson(reader, - customScalarAdapters) + _humanDetails = com.example.fragment_used_twice.fragment.HumanDetailsImpl_ResponseAdapter.HumanDetails.fromJson(reader, customScalarAdapters) } return TestQuery.Data.Hero( @@ -92,12 +88,10 @@ public object TestQuery_ResponseAdapter { writer.name("__typename") StringAdapter.toJson(writer, customScalarAdapters, value.__typename) - com.example.fragment_used_twice.fragment.HeroDetailsImpl_ResponseAdapter.HeroDetails.toJson(writer, - customScalarAdapters, value.heroDetails) + com.example.fragment_used_twice.fragment.HeroDetailsImpl_ResponseAdapter.HeroDetails.toJson(writer, customScalarAdapters, value.heroDetails) if (value.humanDetails != null) { - com.example.fragment_used_twice.fragment.HumanDetailsImpl_ResponseAdapter.HumanDetails.toJson(writer, - customScalarAdapters, value.humanDetails) + com.example.fragment_used_twice.fragment.HumanDetailsImpl_ResponseAdapter.HumanDetails.toJson(writer, customScalarAdapters, value.humanDetails) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/operationBased/fragment_used_twice/fragment/CharacterDetailsImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/operationBased/fragment_used_twice/fragment/CharacterDetailsImpl.kt.expected index 7904c8d83e1..35459880756 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/operationBased/fragment_used_twice/fragment/CharacterDetailsImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/operationBased/fragment_used_twice/fragment/CharacterDetailsImpl.kt.expected @@ -30,8 +30,7 @@ public class CharacterDetailsImpl() : Fragment { // This fragment doesn't have any variable } - override fun adapter(): Adapter = - CharacterDetailsImpl_ResponseAdapter.CharacterDetails.obj() + override fun adapter(): Adapter = CharacterDetailsImpl_ResponseAdapter.CharacterDetails.obj() override fun rootField(): CompiledField = CompiledField.Builder( name = "data", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/operationBased/fragment_used_twice/fragment/CharacterDetailsImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/operationBased/fragment_used_twice/fragment/CharacterDetailsImpl_ResponseAdapter.kt.expected index 8109e4c5146..4ffbc090a7d 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/operationBased/fragment_used_twice/fragment/CharacterDetailsImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/operationBased/fragment_used_twice/fragment/CharacterDetailsImpl_ResponseAdapter.kt.expected @@ -17,12 +17,10 @@ import kotlin.String import kotlin.collections.List public object CharacterDetailsImpl_ResponseAdapter { - public object CharacterDetails : - Adapter { + public object CharacterDetails : Adapter { public val RESPONSE_NAMES: List = listOf("name", "birthDate") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.fragment_used_twice.fragment.CharacterDetails { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.fragment_used_twice.fragment.CharacterDetails { var _name: String? = null var _birthDate: Any? = null diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/operationBased/fragment_used_twice/fragment/HeroDetailsImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/operationBased/fragment_used_twice/fragment/HeroDetailsImpl.kt.expected index 3d40359079b..7b7c6cf1b47 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/operationBased/fragment_used_twice/fragment/HeroDetailsImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/operationBased/fragment_used_twice/fragment/HeroDetailsImpl.kt.expected @@ -30,8 +30,7 @@ public class HeroDetailsImpl() : Fragment { // This fragment doesn't have any variable } - override fun adapter(): Adapter = - HeroDetailsImpl_ResponseAdapter.HeroDetails.obj(true) + override fun adapter(): Adapter = HeroDetailsImpl_ResponseAdapter.HeroDetails.obj(true) override fun rootField(): CompiledField = CompiledField.Builder( name = "data", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/operationBased/fragment_used_twice/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/operationBased/fragment_used_twice/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected index c6518f56f20..cd671c08564 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/operationBased/fragment_used_twice/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/operationBased/fragment_used_twice/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected @@ -18,8 +18,7 @@ public object HeroDetailsImpl_ResponseAdapter { public object HeroDetails : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.fragment_used_twice.fragment.HeroDetails { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.fragment_used_twice.fragment.HeroDetails { var __typename: String? = null var _name: String? = null @@ -32,8 +31,7 @@ public object HeroDetailsImpl_ResponseAdapter { } reader.rewind() - val _characterDetails = com.example.fragment_used_twice.fragment.CharacterDetailsImpl_ResponseAdapter.CharacterDetails.fromJson(reader, - customScalarAdapters) + val _characterDetails = com.example.fragment_used_twice.fragment.CharacterDetailsImpl_ResponseAdapter.CharacterDetails.fromJson(reader, customScalarAdapters) return com.example.fragment_used_twice.fragment.HeroDetails( __typename = __typename ?: missingField(reader, "__typename"), @@ -53,8 +51,7 @@ public object HeroDetailsImpl_ResponseAdapter { writer.name("name") StringAdapter.toJson(writer, customScalarAdapters, value.name) - com.example.fragment_used_twice.fragment.CharacterDetailsImpl_ResponseAdapter.CharacterDetails.toJson(writer, - customScalarAdapters, value.characterDetails) + com.example.fragment_used_twice.fragment.CharacterDetailsImpl_ResponseAdapter.CharacterDetails.toJson(writer, customScalarAdapters, value.characterDetails) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/operationBased/fragment_used_twice/fragment/HumanDetailsImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/operationBased/fragment_used_twice/fragment/HumanDetailsImpl.kt.expected index b9ccb0e5e6e..cb902be9730 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/operationBased/fragment_used_twice/fragment/HumanDetailsImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/operationBased/fragment_used_twice/fragment/HumanDetailsImpl.kt.expected @@ -30,8 +30,7 @@ public class HumanDetailsImpl() : Fragment { // This fragment doesn't have any variable } - override fun adapter(): Adapter = - HumanDetailsImpl_ResponseAdapter.HumanDetails.obj(true) + override fun adapter(): Adapter = HumanDetailsImpl_ResponseAdapter.HumanDetails.obj(true) override fun rootField(): CompiledField = CompiledField.Builder( name = "data", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/operationBased/fragment_used_twice/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/operationBased/fragment_used_twice/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected index efa7fb38389..cd923e6c1b9 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/operationBased/fragment_used_twice/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/operationBased/fragment_used_twice/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected @@ -18,8 +18,7 @@ public object HumanDetailsImpl_ResponseAdapter { public object HumanDetails : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.fragment_used_twice.fragment.HumanDetails { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.fragment_used_twice.fragment.HumanDetails { var __typename: String? = null var _name: String? = null @@ -32,8 +31,7 @@ public object HumanDetailsImpl_ResponseAdapter { } reader.rewind() - val _characterDetails = com.example.fragment_used_twice.fragment.CharacterDetailsImpl_ResponseAdapter.CharacterDetails.fromJson(reader, - customScalarAdapters) + val _characterDetails = com.example.fragment_used_twice.fragment.CharacterDetailsImpl_ResponseAdapter.CharacterDetails.fromJson(reader, customScalarAdapters) return com.example.fragment_used_twice.fragment.HumanDetails( __typename = __typename ?: missingField(reader, "__typename"), @@ -53,8 +51,7 @@ public object HumanDetailsImpl_ResponseAdapter { writer.name("name") StringAdapter.toJson(writer, customScalarAdapters, value.name) - com.example.fragment_used_twice.fragment.CharacterDetailsImpl_ResponseAdapter.CharacterDetails.toJson(writer, - customScalarAdapters, value.characterDetails) + com.example.fragment_used_twice.fragment.CharacterDetailsImpl_ResponseAdapter.CharacterDetails.toJson(writer, customScalarAdapters, value.characterDetails) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/responseBased/fragment_used_twice/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/responseBased/fragment_used_twice/TestQuery.kt.expected index 6ad9e73d3f8..1f15c818ed1 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/responseBased/fragment_used_twice/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/responseBased/fragment_used_twice/TestQuery.kt.expected @@ -92,7 +92,9 @@ public class TestQuery() : Query { * The date character was born. */ override val birthDate: Any, - ) : Hero, HeroDetails, CharacterHumanDetails + ) : Hero, + HeroDetails, + CharacterHumanDetails public data class OtherHero( override val __typename: String, @@ -104,7 +106,8 @@ public class TestQuery() : Query { * The date character was born. */ override val birthDate: Any, - ) : Hero, HeroDetails + ) : Hero, + HeroDetails } public companion object { @@ -143,8 +146,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { hero { __typename ...HeroDetails ...HumanDetails } } fragment CharacterDetails on Character { name birthDate } fragment HeroDetails on Character { __typename name ...CharacterDetails } fragment HumanDetails on Human { __typename name ...CharacterDetails }" + get() = "query TestQuery { hero { __typename ...HeroDetails ...HumanDetails } } fragment CharacterDetails on Character { name birthDate } fragment HeroDetails on Character { __typename name ...CharacterDetails } fragment HumanDetails on Human { __typename name ...CharacterDetails }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/responseBased/fragment_used_twice/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/responseBased/fragment_used_twice/adapter/TestQuery_ResponseAdapter.kt.expected index eaa7040dbff..df6eac90300 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/responseBased/fragment_used_twice/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/responseBased/fragment_used_twice/adapter/TestQuery_ResponseAdapter.kt.expected @@ -25,8 +25,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _hero: TestQuery.Data.Hero? = null while (true) { @@ -51,8 +50,7 @@ public object TestQuery_ResponseAdapter { } private object Hero : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero { val __typename = reader.readTypename() return when(__typename) { "Human", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/responseBased/fragment_used_twice/fragment/CharacterDetailsImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/responseBased/fragment_used_twice/fragment/CharacterDetailsImpl.kt.expected index ff7c437bcce..dfed088b4e9 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/responseBased/fragment_used_twice/fragment/CharacterDetailsImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/responseBased/fragment_used_twice/fragment/CharacterDetailsImpl.kt.expected @@ -49,5 +49,6 @@ public class CharacterDetailsImpl() : Fragment { * The date character was born. */ override val birthDate: Any, - ) : CharacterDetails, Fragment.Data + ) : CharacterDetails, + Fragment.Data } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/responseBased/fragment_used_twice/fragment/CharacterDetailsImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/responseBased/fragment_used_twice/fragment/CharacterDetailsImpl_ResponseAdapter.kt.expected index 60a0be65a8f..b38b6cade0f 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/responseBased/fragment_used_twice/fragment/CharacterDetailsImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/responseBased/fragment_used_twice/fragment/CharacterDetailsImpl_ResponseAdapter.kt.expected @@ -20,8 +20,7 @@ public object CharacterDetailsImpl_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("name", "birthDate") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - CharacterDetailsImpl.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): CharacterDetailsImpl.Data { var _name: String? = null var _birthDate: Any? = null diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/responseBased/fragment_used_twice/fragment/HeroDetailsImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/responseBased/fragment_used_twice/fragment/HeroDetailsImpl.kt.expected index cc510efb1bb..235ac669027 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/responseBased/fragment_used_twice/fragment/HeroDetailsImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/responseBased/fragment_used_twice/fragment/HeroDetailsImpl.kt.expected @@ -51,7 +51,9 @@ public class HeroDetailsImpl() : Fragment { * The date character was born. */ override val birthDate: Any, - ) : CharacterDetails, HeroDetails, Fragment.Data { + ) : CharacterDetails, + HeroDetails, + Fragment.Data { public companion object { @Suppress("USELESS_CAST") public fun Data.characterDetails(): CharacterDetails? = this as? CharacterDetails diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/responseBased/fragment_used_twice/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/responseBased/fragment_used_twice/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected index 20a4a93e8d3..1dfb29c46f3 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/responseBased/fragment_used_twice/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/responseBased/fragment_used_twice/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected @@ -20,8 +20,7 @@ public object HeroDetailsImpl_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "name", "birthDate") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - HeroDetailsImpl.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): HeroDetailsImpl.Data { var __typename: String? = null var _name: String? = null var _birthDate: Any? = null diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/responseBased/fragment_used_twice/fragment/HumanDetailsImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/responseBased/fragment_used_twice/fragment/HumanDetailsImpl.kt.expected index 74c8da0c62b..359569387be 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/responseBased/fragment_used_twice/fragment/HumanDetailsImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/responseBased/fragment_used_twice/fragment/HumanDetailsImpl.kt.expected @@ -69,7 +69,9 @@ public class HumanDetailsImpl() : Fragment { * The date character was born. */ override val birthDate: Any, - ) : Data, CharacterDetails, CharacterHumanDetails + ) : Data, + CharacterDetails, + CharacterHumanDetails public data class OtherData( override val __typename: String, @@ -77,5 +79,6 @@ public class HumanDetailsImpl() : Fragment { * What this human calls themselves */ override val name: String, - ) : Data, HumanDetails + ) : Data, + HumanDetails } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/responseBased/fragment_used_twice/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/responseBased/fragment_used_twice/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected index a1f1c5d95ba..e88d4cd7a1d 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/responseBased/fragment_used_twice/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_used_twice/kotlin/responseBased/fragment_used_twice/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected @@ -20,8 +20,7 @@ import kotlin.collections.List public object HumanDetailsImpl_ResponseAdapter { public object Data : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - HumanDetailsImpl.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): HumanDetailsImpl.Data { val __typename = reader.readTypename() return when(__typename) { "Human", @@ -37,8 +36,7 @@ public object HumanDetailsImpl_ResponseAdapter { `value`: HumanDetailsImpl.Data, ) { when(value) { - is HumanDetailsImpl.CharacterData -> CharacterData.toJson(writer, customScalarAdapters, - value) + is HumanDetailsImpl.CharacterData -> CharacterData.toJson(writer, customScalarAdapters, value) is HumanDetailsImpl.OtherData -> OtherData.toJson(writer, customScalarAdapters, value) } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/operationBased/fragment_with_inline_fragment/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/operationBased/fragment_with_inline_fragment/TestQuery.kt.expected index f6dcc860b9c..c6856f9e427 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/operationBased/fragment_with_inline_fragment/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/operationBased/fragment_with_inline_fragment/TestQuery.kt.expected @@ -121,8 +121,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { hero { __typename name ...HeroDetails appearsIn } } fragment HumanDetails on Human { name } fragment DroidDetails on Droid { name primaryFunction } fragment HeroDetails on Character { __typename ...HumanDetails ... on Droid { __typename ...DroidDetails } name friendsConnection { totalCount edges { node { name } } } }" + get() = "query TestQuery { hero { __typename name ...HeroDetails appearsIn } } fragment HumanDetails on Human { name } fragment DroidDetails on Droid { name primaryFunction } fragment HeroDetails on Character { __typename ...HumanDetails ... on Droid { __typename ...DroidDetails } name friendsConnection { totalCount edges { node { name } } } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/operationBased/fragment_with_inline_fragment/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/operationBased/fragment_with_inline_fragment/adapter/TestQuery_ResponseAdapter.kt.expected index a4627fa9c7d..ba007bc0209 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/operationBased/fragment_with_inline_fragment/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/operationBased/fragment_with_inline_fragment/adapter/TestQuery_ResponseAdapter.kt.expected @@ -24,8 +24,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _hero: TestQuery.Data.Hero? = null while (true) { @@ -52,8 +51,7 @@ public object TestQuery_ResponseAdapter { private object Hero : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "name", "appearsIn") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero { var __typename: String? = null var _name: String? = null var _appearsIn: List? = null @@ -68,8 +66,7 @@ public object TestQuery_ResponseAdapter { } reader.rewind() - val _heroDetails = com.example.fragment_with_inline_fragment.fragment.HeroDetailsImpl_ResponseAdapter.HeroDetails.fromJson(reader, - customScalarAdapters) + val _heroDetails = com.example.fragment_with_inline_fragment.fragment.HeroDetailsImpl_ResponseAdapter.HeroDetails.fromJson(reader, customScalarAdapters) return TestQuery.Data.Hero( __typename = __typename ?: missingField(reader, "__typename"), @@ -91,11 +88,9 @@ public object TestQuery_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.name) writer.name("appearsIn") - Episode_ResponseAdapter.nullable().list().toJson(writer, customScalarAdapters, - value.appearsIn) + Episode_ResponseAdapter.nullable().list().toJson(writer, customScalarAdapters, value.appearsIn) - com.example.fragment_with_inline_fragment.fragment.HeroDetailsImpl_ResponseAdapter.HeroDetails.toJson(writer, - customScalarAdapters, value.heroDetails) + com.example.fragment_with_inline_fragment.fragment.HeroDetailsImpl_ResponseAdapter.HeroDetails.toJson(writer, customScalarAdapters, value.heroDetails) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/operationBased/fragment_with_inline_fragment/fragment/DroidDetailsImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/operationBased/fragment_with_inline_fragment/fragment/DroidDetailsImpl.kt.expected index f561f335f9a..e9736e9cae0 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/operationBased/fragment_with_inline_fragment/fragment/DroidDetailsImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/operationBased/fragment_with_inline_fragment/fragment/DroidDetailsImpl.kt.expected @@ -30,8 +30,7 @@ public class DroidDetailsImpl() : Fragment { // This fragment doesn't have any variable } - override fun adapter(): Adapter = - DroidDetailsImpl_ResponseAdapter.DroidDetails.obj() + override fun adapter(): Adapter = DroidDetailsImpl_ResponseAdapter.DroidDetails.obj() override fun rootField(): CompiledField = CompiledField.Builder( name = "data", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/operationBased/fragment_with_inline_fragment/fragment/DroidDetailsImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/operationBased/fragment_with_inline_fragment/fragment/DroidDetailsImpl_ResponseAdapter.kt.expected index b50bbb8f65a..86a9d0923e5 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/operationBased/fragment_with_inline_fragment/fragment/DroidDetailsImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/operationBased/fragment_with_inline_fragment/fragment/DroidDetailsImpl_ResponseAdapter.kt.expected @@ -16,12 +16,10 @@ import kotlin.String import kotlin.collections.List public object DroidDetailsImpl_ResponseAdapter { - public object DroidDetails : - Adapter { + public object DroidDetails : Adapter { public val RESPONSE_NAMES: List = listOf("name", "primaryFunction") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.fragment_with_inline_fragment.fragment.DroidDetails { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.fragment_with_inline_fragment.fragment.DroidDetails { var _name: String? = null var _primaryFunction: String? = null diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/operationBased/fragment_with_inline_fragment/fragment/HeroDetailsImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/operationBased/fragment_with_inline_fragment/fragment/HeroDetailsImpl.kt.expected index a8dbb499773..fc4ae2ac475 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/operationBased/fragment_with_inline_fragment/fragment/HeroDetailsImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/operationBased/fragment_with_inline_fragment/fragment/HeroDetailsImpl.kt.expected @@ -30,8 +30,7 @@ public class HeroDetailsImpl() : Fragment { // This fragment doesn't have any variable } - override fun adapter(): Adapter = - HeroDetailsImpl_ResponseAdapter.HeroDetails.obj(true) + override fun adapter(): Adapter = HeroDetailsImpl_ResponseAdapter.HeroDetails.obj(true) override fun rootField(): CompiledField = CompiledField.Builder( name = "data", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/operationBased/fragment_with_inline_fragment/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/operationBased/fragment_with_inline_fragment/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected index 75baa5f3464..809f01050e7 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/operationBased/fragment_with_inline_fragment/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/operationBased/fragment_with_inline_fragment/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected @@ -22,12 +22,10 @@ import kotlin.String import kotlin.collections.List public object HeroDetailsImpl_ResponseAdapter { - public object HeroDetails : - Adapter { + public object HeroDetails : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "name", "friendsConnection") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.fragment_with_inline_fragment.fragment.HeroDetails { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.fragment_with_inline_fragment.fragment.HeroDetails { var __typename: String? = null var _name: String? = null var _friendsConnection: com.example.fragment_with_inline_fragment.fragment.HeroDetails.FriendsConnection? = null @@ -48,15 +46,13 @@ public object HeroDetailsImpl_ResponseAdapter { var _onDroid: com.example.fragment_with_inline_fragment.fragment.HeroDetails.OnDroid? = null if (possibleTypes("Droid").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onDroid = com.example.fragment_with_inline_fragment.fragment.HeroDetailsImpl_ResponseAdapter.HeroDetails.OnDroid.fromJson(reader, - customScalarAdapters) + _onDroid = com.example.fragment_with_inline_fragment.fragment.HeroDetailsImpl_ResponseAdapter.HeroDetails.OnDroid.fromJson(reader, customScalarAdapters) } var _humanDetails: HumanDetails? = null if (possibleTypes("Human").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _humanDetails = com.example.fragment_with_inline_fragment.fragment.HumanDetailsImpl_ResponseAdapter.HumanDetails.fromJson(reader, - customScalarAdapters) + _humanDetails = com.example.fragment_with_inline_fragment.fragment.HumanDetailsImpl_ResponseAdapter.HumanDetails.fromJson(reader, customScalarAdapters) } return com.example.fragment_with_inline_fragment.fragment.HeroDetails( @@ -83,22 +79,18 @@ public object HeroDetailsImpl_ResponseAdapter { FriendsConnection.obj().toJson(writer, customScalarAdapters, value.friendsConnection) if (value.onDroid != null) { - com.example.fragment_with_inline_fragment.fragment.HeroDetailsImpl_ResponseAdapter.HeroDetails.OnDroid.toJson(writer, - customScalarAdapters, value.onDroid) + com.example.fragment_with_inline_fragment.fragment.HeroDetailsImpl_ResponseAdapter.HeroDetails.OnDroid.toJson(writer, customScalarAdapters, value.onDroid) } if (value.humanDetails != null) { - com.example.fragment_with_inline_fragment.fragment.HumanDetailsImpl_ResponseAdapter.HumanDetails.toJson(writer, - customScalarAdapters, value.humanDetails) + com.example.fragment_with_inline_fragment.fragment.HumanDetailsImpl_ResponseAdapter.HumanDetails.toJson(writer, customScalarAdapters, value.humanDetails) } } - private object FriendsConnection : - Adapter { + private object FriendsConnection : Adapter { public val RESPONSE_NAMES: List = listOf("totalCount", "edges") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.fragment_with_inline_fragment.fragment.HeroDetails.FriendsConnection { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.fragment_with_inline_fragment.fragment.HeroDetails.FriendsConnection { var _totalCount: Int? = null var _edges: List? = null @@ -128,13 +120,10 @@ public object HeroDetailsImpl_ResponseAdapter { Edge.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, value.edges) } - private object Edge : - Adapter - { + private object Edge : Adapter { public val RESPONSE_NAMES: List = listOf("node") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.fragment_with_inline_fragment.fragment.HeroDetails.FriendsConnection.Edge { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.fragment_with_inline_fragment.fragment.HeroDetails.FriendsConnection.Edge { var _node: com.example.fragment_with_inline_fragment.fragment.HeroDetails.FriendsConnection.Edge.Node? = null while (true) { @@ -158,13 +147,10 @@ public object HeroDetailsImpl_ResponseAdapter { Node.obj().nullable().toJson(writer, customScalarAdapters, value.node) } - private object Node : - Adapter - { + private object Node : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.fragment_with_inline_fragment.fragment.HeroDetails.FriendsConnection.Edge.Node { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.fragment_with_inline_fragment.fragment.HeroDetails.FriendsConnection.Edge.Node { var _name: String? = null while (true) { @@ -191,12 +177,10 @@ public object HeroDetailsImpl_ResponseAdapter { } } - private object OnDroid : - Adapter { + private object OnDroid : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.fragment_with_inline_fragment.fragment.HeroDetails.OnDroid { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.fragment_with_inline_fragment.fragment.HeroDetails.OnDroid { var __typename: String? = null while (true) { @@ -207,8 +191,7 @@ public object HeroDetailsImpl_ResponseAdapter { } reader.rewind() - val _droidDetails = com.example.fragment_with_inline_fragment.fragment.DroidDetailsImpl_ResponseAdapter.DroidDetails.fromJson(reader, - customScalarAdapters) + val _droidDetails = com.example.fragment_with_inline_fragment.fragment.DroidDetailsImpl_ResponseAdapter.DroidDetails.fromJson(reader, customScalarAdapters) return com.example.fragment_with_inline_fragment.fragment.HeroDetails.OnDroid( __typename = __typename ?: missingField(reader, "__typename"), @@ -224,8 +207,7 @@ public object HeroDetailsImpl_ResponseAdapter { writer.name("__typename") StringAdapter.toJson(writer, customScalarAdapters, value.__typename) - com.example.fragment_with_inline_fragment.fragment.DroidDetailsImpl_ResponseAdapter.DroidDetails.toJson(writer, - customScalarAdapters, value.droidDetails) + com.example.fragment_with_inline_fragment.fragment.DroidDetailsImpl_ResponseAdapter.DroidDetails.toJson(writer, customScalarAdapters, value.droidDetails) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/operationBased/fragment_with_inline_fragment/fragment/HumanDetailsImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/operationBased/fragment_with_inline_fragment/fragment/HumanDetailsImpl.kt.expected index d462ae5d2b4..dbcfc115f0b 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/operationBased/fragment_with_inline_fragment/fragment/HumanDetailsImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/operationBased/fragment_with_inline_fragment/fragment/HumanDetailsImpl.kt.expected @@ -30,8 +30,7 @@ public class HumanDetailsImpl() : Fragment { // This fragment doesn't have any variable } - override fun adapter(): Adapter = - HumanDetailsImpl_ResponseAdapter.HumanDetails.obj() + override fun adapter(): Adapter = HumanDetailsImpl_ResponseAdapter.HumanDetails.obj() override fun rootField(): CompiledField = CompiledField.Builder( name = "data", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/operationBased/fragment_with_inline_fragment/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/operationBased/fragment_with_inline_fragment/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected index 4ac09f6cf36..7b3c29fb525 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/operationBased/fragment_with_inline_fragment/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/operationBased/fragment_with_inline_fragment/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected @@ -15,12 +15,10 @@ import kotlin.String import kotlin.collections.List public object HumanDetailsImpl_ResponseAdapter { - public object HumanDetails : - Adapter { + public object HumanDetails : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.fragment_with_inline_fragment.fragment.HumanDetails { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.fragment_with_inline_fragment.fragment.HumanDetails { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/operationBased/fragment_with_inline_fragment/type/Episode.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/operationBased/fragment_with_inline_fragment/type/Episode.kt.expected index 85a7aeaada8..a2631667f46 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/operationBased/fragment_with_inline_fragment/type/Episode.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/operationBased/fragment_with_inline_fragment/type/Episode.kt.expected @@ -47,8 +47,8 @@ public enum class Episode( ; public companion object { - public val type: EnumType = EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", - "DEPRECATED", "new")) + public val type: EnumType = + EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", "DEPRECATED", "new")) /** * All [Episode] known at compile time @@ -73,10 +73,8 @@ public enum class Episode( /** * Returns the [Episode] that represents the specified [rawValue]. - * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your - * schema instead of calling this function directly. + * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your schema instead of calling this function directly. */ - public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: - UNKNOWN__ + public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: UNKNOWN__ } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/responseBased/fragment_with_inline_fragment/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/responseBased/fragment_with_inline_fragment/TestQuery.kt.expected index 9c2181366ea..1773782d3bb 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/responseBased/fragment_with_inline_fragment/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/responseBased/fragment_with_inline_fragment/TestQuery.kt.expected @@ -129,7 +129,8 @@ public class TestQuery() : Query { * The movies this character appears in */ override val appearsIn: List, - ) : Hero, HumanHeroDetails { + ) : Hero, + HumanHeroDetails { public fun appearsInFilterNotNull(): List = appearsIn.filterNotNull() public data class FriendsConnection( @@ -141,7 +142,8 @@ public class TestQuery() : Query { * The edges for each of the character's friends. */ override val edges: List?, - ) : Hero.FriendsConnection, HumanHeroDetails.FriendsConnection { + ) : Hero.FriendsConnection, + HumanHeroDetails.FriendsConnection { public fun edgesFilterNotNull(): List? = edges?.filterNotNull() public data class Edge( @@ -149,13 +151,15 @@ public class TestQuery() : Query { * The character represented by this friendship edge */ override val node: Node?, - ) : Hero.FriendsConnection.Edge, HumanHeroDetails.FriendsConnection.Edge { + ) : Hero.FriendsConnection.Edge, + HumanHeroDetails.FriendsConnection.Edge { public data class Node( /** * The name of the character */ override val name: String, - ) : Hero.FriendsConnection.Edge.Node, HumanHeroDetails.FriendsConnection.Edge.Node + ) : Hero.FriendsConnection.Edge.Node, + HumanHeroDetails.FriendsConnection.Edge.Node } } } @@ -179,7 +183,8 @@ public class TestQuery() : Query { * The movies this character appears in */ override val appearsIn: List, - ) : Hero, DroidHeroDetails { + ) : Hero, + DroidHeroDetails { public fun appearsInFilterNotNull(): List = appearsIn.filterNotNull() public data class FriendsConnection( @@ -191,7 +196,8 @@ public class TestQuery() : Query { * The edges for each of the character's friends. */ override val edges: List?, - ) : Hero.FriendsConnection, DroidHeroDetails.FriendsConnection { + ) : Hero.FriendsConnection, + DroidHeroDetails.FriendsConnection { public fun edgesFilterNotNull(): List? = edges?.filterNotNull() public data class Edge( @@ -199,13 +205,15 @@ public class TestQuery() : Query { * The character represented by this friendship edge */ override val node: Node?, - ) : Hero.FriendsConnection.Edge, DroidHeroDetails.FriendsConnection.Edge { + ) : Hero.FriendsConnection.Edge, + DroidHeroDetails.FriendsConnection.Edge { public data class Node( /** * The name of the character */ override val name: String, - ) : Hero.FriendsConnection.Edge.Node, DroidHeroDetails.FriendsConnection.Edge.Node + ) : Hero.FriendsConnection.Edge.Node, + DroidHeroDetails.FriendsConnection.Edge.Node } } } @@ -224,7 +232,8 @@ public class TestQuery() : Query { * The movies this character appears in */ override val appearsIn: List, - ) : Hero, HeroDetails { + ) : Hero, + HeroDetails { public fun appearsInFilterNotNull(): List = appearsIn.filterNotNull() public data class FriendsConnection( @@ -236,7 +245,8 @@ public class TestQuery() : Query { * The edges for each of the character's friends. */ override val edges: List?, - ) : Hero.FriendsConnection, HeroDetails.FriendsConnection { + ) : Hero.FriendsConnection, + HeroDetails.FriendsConnection { public fun edgesFilterNotNull(): List? = edges?.filterNotNull() public data class Edge( @@ -244,13 +254,15 @@ public class TestQuery() : Query { * The character represented by this friendship edge */ override val node: Node?, - ) : Hero.FriendsConnection.Edge, HeroDetails.FriendsConnection.Edge { + ) : Hero.FriendsConnection.Edge, + HeroDetails.FriendsConnection.Edge { public data class Node( /** * The name of the character */ override val name: String, - ) : Hero.FriendsConnection.Edge.Node, HeroDetails.FriendsConnection.Edge.Node + ) : Hero.FriendsConnection.Edge.Node, + HeroDetails.FriendsConnection.Edge.Node } } } @@ -303,8 +315,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { hero { __typename name ...HeroDetails appearsIn } } fragment HumanDetails on Human { name } fragment DroidDetails on Droid { name primaryFunction } fragment HeroDetails on Character { __typename ...HumanDetails ... on Droid { __typename ...DroidDetails } name friendsConnection { totalCount edges { node { name } } } }" + get() = "query TestQuery { hero { __typename name ...HeroDetails appearsIn } } fragment HumanDetails on Human { name } fragment DroidDetails on Droid { name primaryFunction } fragment HeroDetails on Character { __typename ...HumanDetails ... on Droid { __typename ...DroidDetails } name friendsConnection { totalCount edges { node { name } } } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/responseBased/fragment_with_inline_fragment/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/responseBased/fragment_with_inline_fragment/adapter/TestQuery_ResponseAdapter.kt.expected index fe84a5e31bd..dad49f4f1f0 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/responseBased/fragment_with_inline_fragment/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/responseBased/fragment_with_inline_fragment/adapter/TestQuery_ResponseAdapter.kt.expected @@ -29,8 +29,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _hero: TestQuery.Data.Hero? = null while (true) { @@ -55,8 +54,7 @@ public object TestQuery_ResponseAdapter { } private object Hero : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero { val __typename = reader.readTypename() return when(__typename) { "Human", @@ -82,8 +80,8 @@ public object TestQuery_ResponseAdapter { } public object HumanHero { - public val RESPONSE_NAMES: List = listOf("__typename", "name", "friendsConnection", - "appearsIn") + public val RESPONSE_NAMES: List = + listOf("__typename", "name", "friendsConnection", "appearsIn") public fun fromJson( reader: JsonReader, @@ -128,15 +126,13 @@ public object TestQuery_ResponseAdapter { FriendsConnection.obj().toJson(writer, customScalarAdapters, value.friendsConnection) writer.name("appearsIn") - Episode_ResponseAdapter.nullable().list().toJson(writer, customScalarAdapters, - value.appearsIn) + Episode_ResponseAdapter.nullable().list().toJson(writer, customScalarAdapters, value.appearsIn) } private object FriendsConnection : Adapter { public val RESPONSE_NAMES: List = listOf("totalCount", "edges") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.HumanHero.FriendsConnection { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.HumanHero.FriendsConnection { var _totalCount: Int? = null var _edges: List? = null @@ -169,8 +165,7 @@ public object TestQuery_ResponseAdapter { private object Edge : Adapter { public val RESPONSE_NAMES: List = listOf("node") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.HumanHero.FriendsConnection.Edge { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.HumanHero.FriendsConnection.Edge { var _node: TestQuery.Data.HumanHero.FriendsConnection.Edge.Node? = null while (true) { @@ -197,8 +192,7 @@ public object TestQuery_ResponseAdapter { private object Node : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.HumanHero.FriendsConnection.Edge.Node { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.HumanHero.FriendsConnection.Edge.Node { var _name: String? = null while (true) { @@ -227,8 +221,8 @@ public object TestQuery_ResponseAdapter { } public object DroidHero { - public val RESPONSE_NAMES: List = listOf("__typename", "name", "primaryFunction", - "friendsConnection", "appearsIn") + public val RESPONSE_NAMES: List = + listOf("__typename", "name", "primaryFunction", "friendsConnection", "appearsIn") public fun fromJson( reader: JsonReader, @@ -279,15 +273,13 @@ public object TestQuery_ResponseAdapter { FriendsConnection.obj().toJson(writer, customScalarAdapters, value.friendsConnection) writer.name("appearsIn") - Episode_ResponseAdapter.nullable().list().toJson(writer, customScalarAdapters, - value.appearsIn) + Episode_ResponseAdapter.nullable().list().toJson(writer, customScalarAdapters, value.appearsIn) } private object FriendsConnection : Adapter { public val RESPONSE_NAMES: List = listOf("totalCount", "edges") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.DroidHero.FriendsConnection { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.DroidHero.FriendsConnection { var _totalCount: Int? = null var _edges: List? = null @@ -320,8 +312,7 @@ public object TestQuery_ResponseAdapter { private object Edge : Adapter { public val RESPONSE_NAMES: List = listOf("node") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.DroidHero.FriendsConnection.Edge { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.DroidHero.FriendsConnection.Edge { var _node: TestQuery.Data.DroidHero.FriendsConnection.Edge.Node? = null while (true) { @@ -348,8 +339,7 @@ public object TestQuery_ResponseAdapter { private object Node : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.DroidHero.FriendsConnection.Edge.Node { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.DroidHero.FriendsConnection.Edge.Node { var _name: String? = null while (true) { @@ -378,8 +368,8 @@ public object TestQuery_ResponseAdapter { } public object OtherHero { - public val RESPONSE_NAMES: List = listOf("__typename", "name", "friendsConnection", - "appearsIn") + public val RESPONSE_NAMES: List = + listOf("__typename", "name", "friendsConnection", "appearsIn") public fun fromJson( reader: JsonReader, @@ -424,15 +414,13 @@ public object TestQuery_ResponseAdapter { FriendsConnection.obj().toJson(writer, customScalarAdapters, value.friendsConnection) writer.name("appearsIn") - Episode_ResponseAdapter.nullable().list().toJson(writer, customScalarAdapters, - value.appearsIn) + Episode_ResponseAdapter.nullable().list().toJson(writer, customScalarAdapters, value.appearsIn) } private object FriendsConnection : Adapter { public val RESPONSE_NAMES: List = listOf("totalCount", "edges") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.OtherHero.FriendsConnection { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.OtherHero.FriendsConnection { var _totalCount: Int? = null var _edges: List? = null @@ -465,8 +453,7 @@ public object TestQuery_ResponseAdapter { private object Edge : Adapter { public val RESPONSE_NAMES: List = listOf("node") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.OtherHero.FriendsConnection.Edge { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.OtherHero.FriendsConnection.Edge { var _node: TestQuery.Data.OtherHero.FriendsConnection.Edge.Node? = null while (true) { @@ -493,8 +480,7 @@ public object TestQuery_ResponseAdapter { private object Node : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.OtherHero.FriendsConnection.Edge.Node { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.OtherHero.FriendsConnection.Edge.Node { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/responseBased/fragment_with_inline_fragment/fragment/DroidDetailsImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/responseBased/fragment_with_inline_fragment/fragment/DroidDetailsImpl.kt.expected index be126ffce32..74913a5b96f 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/responseBased/fragment_with_inline_fragment/fragment/DroidDetailsImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/responseBased/fragment_with_inline_fragment/fragment/DroidDetailsImpl.kt.expected @@ -49,5 +49,6 @@ public class DroidDetailsImpl() : Fragment { * This droid's primary function */ override val primaryFunction: String?, - ) : DroidDetails, Fragment.Data + ) : DroidDetails, + Fragment.Data } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/responseBased/fragment_with_inline_fragment/fragment/DroidDetailsImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/responseBased/fragment_with_inline_fragment/fragment/DroidDetailsImpl_ResponseAdapter.kt.expected index 5bb62ba15c4..737a61a5b09 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/responseBased/fragment_with_inline_fragment/fragment/DroidDetailsImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/responseBased/fragment_with_inline_fragment/fragment/DroidDetailsImpl_ResponseAdapter.kt.expected @@ -19,8 +19,7 @@ public object DroidDetailsImpl_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("name", "primaryFunction") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - DroidDetailsImpl.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): DroidDetailsImpl.Data { var _name: String? = null var _primaryFunction: String? = null diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/responseBased/fragment_with_inline_fragment/fragment/HeroDetailsImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/responseBased/fragment_with_inline_fragment/fragment/HeroDetailsImpl.kt.expected index 7749796cbb9..1c120d0dec2 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/responseBased/fragment_with_inline_fragment/fragment/HeroDetailsImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/responseBased/fragment_with_inline_fragment/fragment/HeroDetailsImpl.kt.expected @@ -107,7 +107,9 @@ public class HeroDetailsImpl() : Fragment { * The friends of the character exposed as a connection with edges */ override val friendsConnection: FriendsConnection, - ) : Data, HumanDetails, HumanHeroDetails { + ) : Data, + HumanDetails, + HumanHeroDetails { public data class FriendsConnection( /** * The total number of friends @@ -117,7 +119,8 @@ public class HeroDetailsImpl() : Fragment { * The edges for each of the character's friends. */ override val edges: List?, - ) : Data.FriendsConnection, HumanHeroDetails.FriendsConnection { + ) : Data.FriendsConnection, + HumanHeroDetails.FriendsConnection { public fun edgesFilterNotNull(): List? = edges?.filterNotNull() public data class Edge( @@ -125,13 +128,15 @@ public class HeroDetailsImpl() : Fragment { * The character represented by this friendship edge */ override val node: Node?, - ) : Data.FriendsConnection.Edge, HumanHeroDetails.FriendsConnection.Edge { + ) : Data.FriendsConnection.Edge, + HumanHeroDetails.FriendsConnection.Edge { public data class Node( /** * The name of the character */ override val name: String, - ) : Data.FriendsConnection.Edge.Node, HumanHeroDetails.FriendsConnection.Edge.Node + ) : Data.FriendsConnection.Edge.Node, + HumanHeroDetails.FriendsConnection.Edge.Node } } } @@ -151,7 +156,9 @@ public class HeroDetailsImpl() : Fragment { * The friends of the character exposed as a connection with edges */ override val friendsConnection: FriendsConnection, - ) : Data, DroidDetails, DroidHeroDetails { + ) : Data, + DroidDetails, + DroidHeroDetails { public data class FriendsConnection( /** * The total number of friends @@ -161,7 +168,8 @@ public class HeroDetailsImpl() : Fragment { * The edges for each of the character's friends. */ override val edges: List?, - ) : Data.FriendsConnection, DroidHeroDetails.FriendsConnection { + ) : Data.FriendsConnection, + DroidHeroDetails.FriendsConnection { public fun edgesFilterNotNull(): List? = edges?.filterNotNull() public data class Edge( @@ -169,13 +177,15 @@ public class HeroDetailsImpl() : Fragment { * The character represented by this friendship edge */ override val node: Node?, - ) : Data.FriendsConnection.Edge, DroidHeroDetails.FriendsConnection.Edge { + ) : Data.FriendsConnection.Edge, + DroidHeroDetails.FriendsConnection.Edge { public data class Node( /** * The name of the character */ override val name: String, - ) : Data.FriendsConnection.Edge.Node, DroidHeroDetails.FriendsConnection.Edge.Node + ) : Data.FriendsConnection.Edge.Node, + DroidHeroDetails.FriendsConnection.Edge.Node } } } @@ -190,7 +200,8 @@ public class HeroDetailsImpl() : Fragment { * The friends of the character exposed as a connection with edges */ override val friendsConnection: FriendsConnection, - ) : Data, HeroDetails { + ) : Data, + HeroDetails { public data class FriendsConnection( /** * The total number of friends @@ -200,7 +211,8 @@ public class HeroDetailsImpl() : Fragment { * The edges for each of the character's friends. */ override val edges: List?, - ) : Data.FriendsConnection, HeroDetails.FriendsConnection { + ) : Data.FriendsConnection, + HeroDetails.FriendsConnection { public fun edgesFilterNotNull(): List? = edges?.filterNotNull() public data class Edge( @@ -208,13 +220,15 @@ public class HeroDetailsImpl() : Fragment { * The character represented by this friendship edge */ override val node: Node?, - ) : Data.FriendsConnection.Edge, HeroDetails.FriendsConnection.Edge { + ) : Data.FriendsConnection.Edge, + HeroDetails.FriendsConnection.Edge { public data class Node( /** * The name of the character */ override val name: String, - ) : Data.FriendsConnection.Edge.Node, HeroDetails.FriendsConnection.Edge.Node + ) : Data.FriendsConnection.Edge.Node, + HeroDetails.FriendsConnection.Edge.Node } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/responseBased/fragment_with_inline_fragment/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/responseBased/fragment_with_inline_fragment/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected index 08f385f76c2..bb2afd75c06 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/responseBased/fragment_with_inline_fragment/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/responseBased/fragment_with_inline_fragment/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected @@ -24,8 +24,7 @@ import kotlin.collections.List public object HeroDetailsImpl_ResponseAdapter { public object Data : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - HeroDetailsImpl.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): HeroDetailsImpl.Data { val __typename = reader.readTypename() return when(__typename) { "Human", @@ -96,8 +95,7 @@ public object HeroDetailsImpl_ResponseAdapter { private object FriendsConnection : Adapter { public val RESPONSE_NAMES: List = listOf("totalCount", "edges") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - HeroDetailsImpl.HumanData.FriendsConnection { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): HeroDetailsImpl.HumanData.FriendsConnection { var _totalCount: Int? = null var _edges: List? = null @@ -130,8 +128,7 @@ public object HeroDetailsImpl_ResponseAdapter { private object Edge : Adapter { public val RESPONSE_NAMES: List = listOf("node") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - HeroDetailsImpl.HumanData.FriendsConnection.Edge { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): HeroDetailsImpl.HumanData.FriendsConnection.Edge { var _node: HeroDetailsImpl.HumanData.FriendsConnection.Edge.Node? = null while (true) { @@ -158,8 +155,7 @@ public object HeroDetailsImpl_ResponseAdapter { private object Node : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - HeroDetailsImpl.HumanData.FriendsConnection.Edge.Node { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): HeroDetailsImpl.HumanData.FriendsConnection.Edge.Node { var _name: String? = null while (true) { @@ -188,8 +184,8 @@ public object HeroDetailsImpl_ResponseAdapter { } public object DroidData { - public val RESPONSE_NAMES: List = listOf("__typename", "name", "primaryFunction", - "friendsConnection") + public val RESPONSE_NAMES: List = + listOf("__typename", "name", "primaryFunction", "friendsConnection") public fun fromJson( reader: JsonReader, @@ -240,8 +236,7 @@ public object HeroDetailsImpl_ResponseAdapter { private object FriendsConnection : Adapter { public val RESPONSE_NAMES: List = listOf("totalCount", "edges") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - HeroDetailsImpl.DroidData.FriendsConnection { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): HeroDetailsImpl.DroidData.FriendsConnection { var _totalCount: Int? = null var _edges: List? = null @@ -274,8 +269,7 @@ public object HeroDetailsImpl_ResponseAdapter { private object Edge : Adapter { public val RESPONSE_NAMES: List = listOf("node") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - HeroDetailsImpl.DroidData.FriendsConnection.Edge { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): HeroDetailsImpl.DroidData.FriendsConnection.Edge { var _node: HeroDetailsImpl.DroidData.FriendsConnection.Edge.Node? = null while (true) { @@ -302,8 +296,7 @@ public object HeroDetailsImpl_ResponseAdapter { private object Node : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - HeroDetailsImpl.DroidData.FriendsConnection.Edge.Node { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): HeroDetailsImpl.DroidData.FriendsConnection.Edge.Node { var _name: String? = null while (true) { @@ -377,8 +370,7 @@ public object HeroDetailsImpl_ResponseAdapter { private object FriendsConnection : Adapter { public val RESPONSE_NAMES: List = listOf("totalCount", "edges") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - HeroDetailsImpl.OtherData.FriendsConnection { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): HeroDetailsImpl.OtherData.FriendsConnection { var _totalCount: Int? = null var _edges: List? = null @@ -411,8 +403,7 @@ public object HeroDetailsImpl_ResponseAdapter { private object Edge : Adapter { public val RESPONSE_NAMES: List = listOf("node") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - HeroDetailsImpl.OtherData.FriendsConnection.Edge { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): HeroDetailsImpl.OtherData.FriendsConnection.Edge { var _node: HeroDetailsImpl.OtherData.FriendsConnection.Edge.Node? = null while (true) { @@ -439,8 +430,7 @@ public object HeroDetailsImpl_ResponseAdapter { private object Node : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - HeroDetailsImpl.OtherData.FriendsConnection.Edge.Node { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): HeroDetailsImpl.OtherData.FriendsConnection.Edge.Node { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/responseBased/fragment_with_inline_fragment/fragment/HumanDetailsImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/responseBased/fragment_with_inline_fragment/fragment/HumanDetailsImpl.kt.expected index e55ba744af6..503e8513dcb 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/responseBased/fragment_with_inline_fragment/fragment/HumanDetailsImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/responseBased/fragment_with_inline_fragment/fragment/HumanDetailsImpl.kt.expected @@ -45,5 +45,6 @@ public class HumanDetailsImpl() : Fragment { * What this human calls themselves */ override val name: String, - ) : HumanDetails, Fragment.Data + ) : HumanDetails, + Fragment.Data } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/responseBased/fragment_with_inline_fragment/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/responseBased/fragment_with_inline_fragment/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected index e262675fd92..cdee6b7d5fc 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/responseBased/fragment_with_inline_fragment/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/responseBased/fragment_with_inline_fragment/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected @@ -18,8 +18,7 @@ public object HumanDetailsImpl_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - HumanDetailsImpl.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): HumanDetailsImpl.Data { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/responseBased/fragment_with_inline_fragment/type/Episode.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/responseBased/fragment_with_inline_fragment/type/Episode.kt.expected index 85a7aeaada8..a2631667f46 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/responseBased/fragment_with_inline_fragment/type/Episode.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_inline_fragment/kotlin/responseBased/fragment_with_inline_fragment/type/Episode.kt.expected @@ -47,8 +47,8 @@ public enum class Episode( ; public companion object { - public val type: EnumType = EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", - "DEPRECATED", "new")) + public val type: EnumType = + EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", "DEPRECATED", "new")) /** * All [Episode] known at compile time @@ -73,10 +73,8 @@ public enum class Episode( /** * Returns the [Episode] that represents the specified [rawValue]. - * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your - * schema instead of calling this function directly. + * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your schema instead of calling this function directly. */ - public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: - UNKNOWN__ + public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: UNKNOWN__ } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_multiple_fieldsets/kotlin/operationBased/fragment_with_multiple_fieldsets/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_multiple_fieldsets/kotlin/operationBased/fragment_with_multiple_fieldsets/TestQuery.kt.expected index 8c80b4f1268..55112016bea 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_multiple_fieldsets/kotlin/operationBased/fragment_with_multiple_fieldsets/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_multiple_fieldsets/kotlin/operationBased/fragment_with_multiple_fieldsets/TestQuery.kt.expected @@ -87,8 +87,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { i { __typename ...iFragment } } fragment iFragment on I { __typename ... on A { fieldA } }" + get() = "query TestQuery { i { __typename ...iFragment } } fragment iFragment on I { __typename ... on A { fieldA } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_multiple_fieldsets/kotlin/operationBased/fragment_with_multiple_fieldsets/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_multiple_fieldsets/kotlin/operationBased/fragment_with_multiple_fieldsets/adapter/TestQuery_ResponseAdapter.kt.expected index 45307f0af6e..97001f5a308 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_multiple_fieldsets/kotlin/operationBased/fragment_with_multiple_fieldsets/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_multiple_fieldsets/kotlin/operationBased/fragment_with_multiple_fieldsets/adapter/TestQuery_ResponseAdapter.kt.expected @@ -21,8 +21,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("i") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _i: TestQuery.Data.I? = null while (true) { @@ -49,8 +48,7 @@ public object TestQuery_ResponseAdapter { private object I : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.I { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.I { var __typename: String? = null while (true) { @@ -61,8 +59,7 @@ public object TestQuery_ResponseAdapter { } reader.rewind() - val _iFragment = com.example.fragment_with_multiple_fieldsets.fragment.IFragmentImpl_ResponseAdapter.IFragment.fromJson(reader, - customScalarAdapters) + val _iFragment = com.example.fragment_with_multiple_fieldsets.fragment.IFragmentImpl_ResponseAdapter.IFragment.fromJson(reader, customScalarAdapters) return TestQuery.Data.I( __typename = __typename ?: missingField(reader, "__typename"), @@ -78,8 +75,7 @@ public object TestQuery_ResponseAdapter { writer.name("__typename") StringAdapter.toJson(writer, customScalarAdapters, value.__typename) - com.example.fragment_with_multiple_fieldsets.fragment.IFragmentImpl_ResponseAdapter.IFragment.toJson(writer, - customScalarAdapters, value.iFragment) + com.example.fragment_with_multiple_fieldsets.fragment.IFragmentImpl_ResponseAdapter.IFragment.toJson(writer, customScalarAdapters, value.iFragment) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_multiple_fieldsets/kotlin/operationBased/fragment_with_multiple_fieldsets/fragment/IFragmentImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_multiple_fieldsets/kotlin/operationBased/fragment_with_multiple_fieldsets/fragment/IFragmentImpl_ResponseAdapter.kt.expected index e36c4cca330..b74c36d7fe6 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_multiple_fieldsets/kotlin/operationBased/fragment_with_multiple_fieldsets/fragment/IFragmentImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_multiple_fieldsets/kotlin/operationBased/fragment_with_multiple_fieldsets/fragment/IFragmentImpl_ResponseAdapter.kt.expected @@ -17,12 +17,10 @@ import kotlin.String import kotlin.collections.List public object IFragmentImpl_ResponseAdapter { - public object IFragment : Adapter - { + public object IFragment : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.fragment_with_multiple_fieldsets.fragment.IFragment { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.fragment_with_multiple_fieldsets.fragment.IFragment { var __typename: String? = null while (true) { @@ -39,8 +37,7 @@ public object IFragmentImpl_ResponseAdapter { var _onA: com.example.fragment_with_multiple_fieldsets.fragment.IFragment.OnA? = null if (possibleTypes("A").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onA = com.example.fragment_with_multiple_fieldsets.fragment.IFragmentImpl_ResponseAdapter.IFragment.OnA.fromJson(reader, - customScalarAdapters) + _onA = com.example.fragment_with_multiple_fieldsets.fragment.IFragmentImpl_ResponseAdapter.IFragment.OnA.fromJson(reader, customScalarAdapters) } return com.example.fragment_with_multiple_fieldsets.fragment.IFragment( @@ -58,17 +55,14 @@ public object IFragmentImpl_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.__typename) if (value.onA != null) { - com.example.fragment_with_multiple_fieldsets.fragment.IFragmentImpl_ResponseAdapter.IFragment.OnA.toJson(writer, - customScalarAdapters, value.onA) + com.example.fragment_with_multiple_fieldsets.fragment.IFragmentImpl_ResponseAdapter.IFragment.OnA.toJson(writer, customScalarAdapters, value.onA) } } - private object OnA : - Adapter { + private object OnA : Adapter { public val RESPONSE_NAMES: List = listOf("fieldA") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.fragment_with_multiple_fieldsets.fragment.IFragment.OnA { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.fragment_with_multiple_fieldsets.fragment.IFragment.OnA { var _fieldA: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_multiple_fieldsets/kotlin/responseBased/fragment_with_multiple_fieldsets/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_multiple_fieldsets/kotlin/responseBased/fragment_with_multiple_fieldsets/TestQuery.kt.expected index 0c8ea784178..c415b07ddc2 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_multiple_fieldsets/kotlin/responseBased/fragment_with_multiple_fieldsets/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_multiple_fieldsets/kotlin/responseBased/fragment_with_multiple_fieldsets/TestQuery.kt.expected @@ -70,11 +70,13 @@ public class TestQuery() : Query { public data class AI( override val __typename: String, override val fieldA: String?, - ) : I, AIFragment + ) : I, + AIFragment public data class OtherI( override val __typename: String, - ) : I, IFragment + ) : I, + IFragment } public companion object { @@ -102,8 +104,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { i { __typename ...iFragment } } fragment iFragment on I { __typename ... on A { fieldA } }" + get() = "query TestQuery { i { __typename ...iFragment } } fragment iFragment on I { __typename ... on A { fieldA } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_multiple_fieldsets/kotlin/responseBased/fragment_with_multiple_fieldsets/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_multiple_fieldsets/kotlin/responseBased/fragment_with_multiple_fieldsets/adapter/TestQuery_ResponseAdapter.kt.expected index 0b3711ca83d..73ccd359303 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_multiple_fieldsets/kotlin/responseBased/fragment_with_multiple_fieldsets/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_multiple_fieldsets/kotlin/responseBased/fragment_with_multiple_fieldsets/adapter/TestQuery_ResponseAdapter.kt.expected @@ -24,8 +24,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("i") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _i: TestQuery.Data.I? = null while (true) { @@ -50,8 +49,7 @@ public object TestQuery_ResponseAdapter { } private object I : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.I { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.I { val __typename = reader.readTypename() return when(__typename) { "A", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_multiple_fieldsets/kotlin/responseBased/fragment_with_multiple_fieldsets/fragment/IFragmentImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_multiple_fieldsets/kotlin/responseBased/fragment_with_multiple_fieldsets/fragment/IFragmentImpl.kt.expected index de74ca4772e..05fc5ca726c 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_multiple_fieldsets/kotlin/responseBased/fragment_with_multiple_fieldsets/fragment/IFragmentImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_multiple_fieldsets/kotlin/responseBased/fragment_with_multiple_fieldsets/fragment/IFragmentImpl.kt.expected @@ -53,9 +53,11 @@ public class IFragmentImpl() : Fragment { public data class AData( override val __typename: String, override val fieldA: String?, - ) : Data, AIFragment + ) : Data, + AIFragment public data class OtherData( override val __typename: String, - ) : Data, IFragment + ) : Data, + IFragment } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_multiple_fieldsets/kotlin/responseBased/fragment_with_multiple_fieldsets/fragment/IFragmentImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_multiple_fieldsets/kotlin/responseBased/fragment_with_multiple_fieldsets/fragment/IFragmentImpl_ResponseAdapter.kt.expected index e36be402d31..7ed4c3f9905 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_multiple_fieldsets/kotlin/responseBased/fragment_with_multiple_fieldsets/fragment/IFragmentImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragment_with_multiple_fieldsets/kotlin/responseBased/fragment_with_multiple_fieldsets/fragment/IFragmentImpl_ResponseAdapter.kt.expected @@ -19,8 +19,7 @@ import kotlin.collections.List public object IFragmentImpl_ResponseAdapter { public object Data : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - IFragmentImpl.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): IFragmentImpl.Data { val __typename = reader.readTypename() return when(__typename) { "A", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/operationBased/fragments_same_type_condition/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/operationBased/fragments_same_type_condition/TestQuery.kt.expected index 715c31562eb..e0244009f13 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/operationBased/fragments_same_type_condition/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/operationBased/fragments_same_type_condition/TestQuery.kt.expected @@ -94,8 +94,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { hero { __typename ...DroidDetails1 ...DroidDetails2 } } fragment DroidDetails1 on Droid { name } fragment DroidDetails2 on Droid { primaryFunction }" + get() = "query TestQuery { hero { __typename ...DroidDetails1 ...DroidDetails2 } } fragment DroidDetails1 on Droid { name } fragment DroidDetails2 on Droid { primaryFunction }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/operationBased/fragments_same_type_condition/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/operationBased/fragments_same_type_condition/adapter/TestQuery_ResponseAdapter.kt.expected index 8652a552031..291c338671d 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/operationBased/fragments_same_type_condition/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/operationBased/fragments_same_type_condition/adapter/TestQuery_ResponseAdapter.kt.expected @@ -24,8 +24,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _hero: TestQuery.Data.Hero? = null while (true) { @@ -52,8 +51,7 @@ public object TestQuery_ResponseAdapter { private object Hero : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero { var __typename: String? = null while (true) { @@ -70,15 +68,13 @@ public object TestQuery_ResponseAdapter { var _droidDetails1: DroidDetails1? = null if (possibleTypes("Droid").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _droidDetails1 = com.example.fragments_same_type_condition.fragment.DroidDetails1Impl_ResponseAdapter.DroidDetails1.fromJson(reader, - customScalarAdapters) + _droidDetails1 = com.example.fragments_same_type_condition.fragment.DroidDetails1Impl_ResponseAdapter.DroidDetails1.fromJson(reader, customScalarAdapters) } var _droidDetails2: DroidDetails2? = null if (possibleTypes("Droid").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _droidDetails2 = com.example.fragments_same_type_condition.fragment.DroidDetails2Impl_ResponseAdapter.DroidDetails2.fromJson(reader, - customScalarAdapters) + _droidDetails2 = com.example.fragments_same_type_condition.fragment.DroidDetails2Impl_ResponseAdapter.DroidDetails2.fromJson(reader, customScalarAdapters) } return TestQuery.Data.Hero( @@ -97,13 +93,11 @@ public object TestQuery_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.__typename) if (value.droidDetails1 != null) { - com.example.fragments_same_type_condition.fragment.DroidDetails1Impl_ResponseAdapter.DroidDetails1.toJson(writer, - customScalarAdapters, value.droidDetails1) + com.example.fragments_same_type_condition.fragment.DroidDetails1Impl_ResponseAdapter.DroidDetails1.toJson(writer, customScalarAdapters, value.droidDetails1) } if (value.droidDetails2 != null) { - com.example.fragments_same_type_condition.fragment.DroidDetails2Impl_ResponseAdapter.DroidDetails2.toJson(writer, - customScalarAdapters, value.droidDetails2) + com.example.fragments_same_type_condition.fragment.DroidDetails2Impl_ResponseAdapter.DroidDetails2.toJson(writer, customScalarAdapters, value.droidDetails2) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/operationBased/fragments_same_type_condition/fragment/DroidDetails1Impl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/operationBased/fragments_same_type_condition/fragment/DroidDetails1Impl.kt.expected index 4a99c28ee13..154bbed45f5 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/operationBased/fragments_same_type_condition/fragment/DroidDetails1Impl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/operationBased/fragments_same_type_condition/fragment/DroidDetails1Impl.kt.expected @@ -30,8 +30,7 @@ public class DroidDetails1Impl() : Fragment { // This fragment doesn't have any variable } - override fun adapter(): Adapter = - DroidDetails1Impl_ResponseAdapter.DroidDetails1.obj() + override fun adapter(): Adapter = DroidDetails1Impl_ResponseAdapter.DroidDetails1.obj() override fun rootField(): CompiledField = CompiledField.Builder( name = "data", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/operationBased/fragments_same_type_condition/fragment/DroidDetails1Impl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/operationBased/fragments_same_type_condition/fragment/DroidDetails1Impl_ResponseAdapter.kt.expected index 5d7321418ab..6ed065d3944 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/operationBased/fragments_same_type_condition/fragment/DroidDetails1Impl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/operationBased/fragments_same_type_condition/fragment/DroidDetails1Impl_ResponseAdapter.kt.expected @@ -15,12 +15,10 @@ import kotlin.String import kotlin.collections.List public object DroidDetails1Impl_ResponseAdapter { - public object DroidDetails1 : - Adapter { + public object DroidDetails1 : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.fragments_same_type_condition.fragment.DroidDetails1 { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.fragments_same_type_condition.fragment.DroidDetails1 { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/operationBased/fragments_same_type_condition/fragment/DroidDetails2Impl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/operationBased/fragments_same_type_condition/fragment/DroidDetails2Impl.kt.expected index ad4c20afe24..a7a54ef74b6 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/operationBased/fragments_same_type_condition/fragment/DroidDetails2Impl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/operationBased/fragments_same_type_condition/fragment/DroidDetails2Impl.kt.expected @@ -30,8 +30,7 @@ public class DroidDetails2Impl() : Fragment { // This fragment doesn't have any variable } - override fun adapter(): Adapter = - DroidDetails2Impl_ResponseAdapter.DroidDetails2.obj() + override fun adapter(): Adapter = DroidDetails2Impl_ResponseAdapter.DroidDetails2.obj() override fun rootField(): CompiledField = CompiledField.Builder( name = "data", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/operationBased/fragments_same_type_condition/fragment/DroidDetails2Impl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/operationBased/fragments_same_type_condition/fragment/DroidDetails2Impl_ResponseAdapter.kt.expected index f77b4b0ae8a..a9f446124bf 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/operationBased/fragments_same_type_condition/fragment/DroidDetails2Impl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/operationBased/fragments_same_type_condition/fragment/DroidDetails2Impl_ResponseAdapter.kt.expected @@ -14,12 +14,10 @@ import kotlin.String import kotlin.collections.List public object DroidDetails2Impl_ResponseAdapter { - public object DroidDetails2 : - Adapter { + public object DroidDetails2 : Adapter { public val RESPONSE_NAMES: List = listOf("primaryFunction") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.fragments_same_type_condition.fragment.DroidDetails2 { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.fragments_same_type_condition.fragment.DroidDetails2 { var _primaryFunction: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/responseBased/fragments_same_type_condition/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/responseBased/fragments_same_type_condition/TestQuery.kt.expected index f08b98678fd..6b7092906ad 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/responseBased/fragments_same_type_condition/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/responseBased/fragments_same_type_condition/TestQuery.kt.expected @@ -80,7 +80,9 @@ public class TestQuery() : Query { * This droid's primary function */ override val primaryFunction: String?, - ) : Hero, DroidDetails1, DroidDetails2 + ) : Hero, + DroidDetails1, + DroidDetails2 public data class OtherHero( override val __typename: String, @@ -114,8 +116,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { hero { __typename ...DroidDetails1 ...DroidDetails2 } } fragment DroidDetails1 on Droid { name } fragment DroidDetails2 on Droid { primaryFunction }" + get() = "query TestQuery { hero { __typename ...DroidDetails1 ...DroidDetails2 } } fragment DroidDetails1 on Droid { name } fragment DroidDetails2 on Droid { primaryFunction }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/responseBased/fragments_same_type_condition/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/responseBased/fragments_same_type_condition/adapter/TestQuery_ResponseAdapter.kt.expected index dc242b6122e..2fe8028acae 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/responseBased/fragments_same_type_condition/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/responseBased/fragments_same_type_condition/adapter/TestQuery_ResponseAdapter.kt.expected @@ -24,8 +24,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _hero: TestQuery.Data.Hero? = null while (true) { @@ -50,8 +49,7 @@ public object TestQuery_ResponseAdapter { } private object Hero : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero { val __typename = reader.readTypename() return when(__typename) { "Droid", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/responseBased/fragments_same_type_condition/fragment/DroidDetails1Impl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/responseBased/fragments_same_type_condition/fragment/DroidDetails1Impl.kt.expected index 366fb383c3d..2c6b6272b38 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/responseBased/fragments_same_type_condition/fragment/DroidDetails1Impl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/responseBased/fragments_same_type_condition/fragment/DroidDetails1Impl.kt.expected @@ -45,5 +45,6 @@ public class DroidDetails1Impl() : Fragment { * What others call this droid */ override val name: String, - ) : DroidDetails1, Fragment.Data + ) : DroidDetails1, + Fragment.Data } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/responseBased/fragments_same_type_condition/fragment/DroidDetails1Impl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/responseBased/fragments_same_type_condition/fragment/DroidDetails1Impl_ResponseAdapter.kt.expected index 335f438364f..e925cd538ee 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/responseBased/fragments_same_type_condition/fragment/DroidDetails1Impl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/responseBased/fragments_same_type_condition/fragment/DroidDetails1Impl_ResponseAdapter.kt.expected @@ -18,8 +18,7 @@ public object DroidDetails1Impl_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - DroidDetails1Impl.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): DroidDetails1Impl.Data { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/responseBased/fragments_same_type_condition/fragment/DroidDetails2Impl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/responseBased/fragments_same_type_condition/fragment/DroidDetails2Impl.kt.expected index 1fa0995e87e..6a1f132581e 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/responseBased/fragments_same_type_condition/fragment/DroidDetails2Impl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/responseBased/fragments_same_type_condition/fragment/DroidDetails2Impl.kt.expected @@ -45,5 +45,6 @@ public class DroidDetails2Impl() : Fragment { * This droid's primary function */ override val primaryFunction: String?, - ) : DroidDetails2, Fragment.Data + ) : DroidDetails2, + Fragment.Data } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/responseBased/fragments_same_type_condition/fragment/DroidDetails2Impl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/responseBased/fragments_same_type_condition/fragment/DroidDetails2Impl_ResponseAdapter.kt.expected index c14ac982561..8016f0629f7 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/responseBased/fragments_same_type_condition/fragment/DroidDetails2Impl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_same_type_condition/kotlin/responseBased/fragments_same_type_condition/fragment/DroidDetails2Impl_ResponseAdapter.kt.expected @@ -17,8 +17,7 @@ public object DroidDetails2Impl_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("primaryFunction") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - DroidDetails2Impl.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): DroidDetails2Impl.Data { var _primaryFunction: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/InlineMultipleWithDefer.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/InlineMultipleWithDefer.kt.expected index 3e3163507ea..e5aa6d638ce 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/InlineMultipleWithDefer.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/InlineMultipleWithDefer.kt.expected @@ -102,8 +102,7 @@ public class InlineMultipleWithDefer() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query InlineMultipleWithDefer { hero { __typename ... on Droid @defer(label: \"d_first\") { name } ... on Droid @defer(label: \"d_second\") { id } } }" + get() = "query InlineMultipleWithDefer { hero { __typename ... on Droid @defer(label: \"d_first\") { name } ... on Droid @defer(label: \"d_second\") { id } } }" public const val OPERATION_NAME: String = "InlineMultipleWithDefer" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/InlineMultipleWithDeferAndInclude.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/InlineMultipleWithDeferAndInclude.kt.expected index 3802f14aaa0..3dc239a5e3c 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/InlineMultipleWithDeferAndInclude.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/InlineMultipleWithDeferAndInclude.kt.expected @@ -36,12 +36,10 @@ public data class InlineMultipleWithDeferAndInclude( customScalarAdapters: CustomScalarAdapters, withDefaultValues: Boolean, ) { - InlineMultipleWithDeferAndInclude_VariablesAdapter.serializeVariables(writer, this, - customScalarAdapters, withDefaultValues) + InlineMultipleWithDeferAndInclude_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, withDefaultValues) } - override fun adapter(): Adapter = - InlineMultipleWithDeferAndInclude_ResponseAdapter.Data.obj() + override fun adapter(): Adapter = InlineMultipleWithDeferAndInclude_ResponseAdapter.Data.obj() override fun rootField(): CompiledField = CompiledField.Builder( name = "data", @@ -134,8 +132,7 @@ public data class InlineMultipleWithDeferAndInclude( * The un-minimized version is: * * ``` - * query InlineMultipleWithDeferAndInclude($cond1: Boolean!, $cond2: Boolean!, $cond3: Boolean!, - * $cond4: Boolean!) { + * query InlineMultipleWithDeferAndInclude($cond1: Boolean!, $cond2: Boolean!, $cond3: Boolean!, $cond4: Boolean!) { * hero { * __typename * ... on Droid @include(if: $cond1) { @@ -161,8 +158,7 @@ public data class InlineMultipleWithDeferAndInclude( * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query InlineMultipleWithDeferAndInclude(${'$'}cond1: Boolean!, ${'$'}cond2: Boolean!, ${'$'}cond3: Boolean!, ${'$'}cond4: Boolean!) { hero { __typename ... on Droid @include(if: ${'$'}cond1) { name } ... on Droid @skip(if: ${'$'}cond2) { id } ... on Droid @defer(label: \"e_first\") { name } ... on Droid @defer(label: \"e_second\") { id } ... on Droid @defer(label: \"e_third\") @include(if: ${'$'}cond3) { name } ... on Droid @defer(label: \"e_fourth\") @skip(if: ${'$'}cond4) { id } } }" + get() = "query InlineMultipleWithDeferAndInclude(${'$'}cond1: Boolean!, ${'$'}cond2: Boolean!, ${'$'}cond3: Boolean!, ${'$'}cond4: Boolean!) { hero { __typename ... on Droid @include(if: ${'$'}cond1) { name } ... on Droid @skip(if: ${'$'}cond2) { id } ... on Droid @defer(label: \"e_first\") { name } ... on Droid @defer(label: \"e_second\") { id } ... on Droid @defer(label: \"e_third\") @include(if: ${'$'}cond3) { name } ... on Droid @defer(label: \"e_fourth\") @skip(if: ${'$'}cond4) { id } } }" public const val OPERATION_NAME: String = "InlineMultipleWithDeferAndInclude" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/InlineMultipleWithDeferWithIf.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/InlineMultipleWithDeferWithIf.kt.expected index 708d9abe7b7..90cd8a0d927 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/InlineMultipleWithDeferWithIf.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/InlineMultipleWithDeferWithIf.kt.expected @@ -33,8 +33,7 @@ public data class InlineMultipleWithDeferWithIf( customScalarAdapters: CustomScalarAdapters, withDefaultValues: Boolean, ) { - InlineMultipleWithDeferWithIf_VariablesAdapter.serializeVariables(writer, this, - customScalarAdapters, withDefaultValues) + InlineMultipleWithDeferWithIf_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, withDefaultValues) } override fun adapter(): Adapter = InlineMultipleWithDeferWithIf_ResponseAdapter.Data.obj() @@ -114,8 +113,7 @@ public data class InlineMultipleWithDeferWithIf( * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query InlineMultipleWithDeferWithIf(${'$'}cond: Boolean!) { hero { __typename ... on Character @defer(label: \"f_first\", if: false) { id } ... on Character @defer(label: \"f_second\", if: true) { name } ... on Character @defer(label: \"f_third\", if: ${'$'}cond) { name } } }" + get() = "query InlineMultipleWithDeferWithIf(${'$'}cond: Boolean!) { hero { __typename ... on Character @defer(label: \"f_first\", if: false) { id } ... on Character @defer(label: \"f_second\", if: true) { name } ... on Character @defer(label: \"f_third\", if: ${'$'}cond) { name } } }" public const val OPERATION_NAME: String = "InlineMultipleWithDeferWithIf" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/SpreadMultipleWithDefer.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/SpreadMultipleWithDefer.kt.expected index ba3d5d3490d..71cca951e21 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/SpreadMultipleWithDefer.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/SpreadMultipleWithDefer.kt.expected @@ -85,8 +85,7 @@ public class SpreadMultipleWithDefer() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query SpreadMultipleWithDefer { hero { __typename ...DroidDetails @defer(label: \"a_first\") ...DroidDetails @defer(label: \"a_second\") } } fragment DroidDetails on Droid { name }" + get() = "query SpreadMultipleWithDefer { hero { __typename ...DroidDetails @defer(label: \"a_first\") ...DroidDetails @defer(label: \"a_second\") } } fragment DroidDetails on Droid { name }" public const val OPERATION_NAME: String = "SpreadMultipleWithDefer" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/SpreadMultipleWithDeferAndInclude.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/SpreadMultipleWithDeferAndInclude.kt.expected index d3aeb4acf4b..34db0c926ea 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/SpreadMultipleWithDeferAndInclude.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/SpreadMultipleWithDeferAndInclude.kt.expected @@ -37,12 +37,10 @@ public data class SpreadMultipleWithDeferAndInclude( customScalarAdapters: CustomScalarAdapters, withDefaultValues: Boolean, ) { - SpreadMultipleWithDeferAndInclude_VariablesAdapter.serializeVariables(writer, this, - customScalarAdapters, withDefaultValues) + SpreadMultipleWithDeferAndInclude_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, withDefaultValues) } - override fun adapter(): Adapter = - SpreadMultipleWithDeferAndInclude_ResponseAdapter.Data.obj() + override fun adapter(): Adapter = SpreadMultipleWithDeferAndInclude_ResponseAdapter.Data.obj() override fun rootField(): CompiledField = CompiledField.Builder( name = "data", @@ -73,8 +71,7 @@ public data class SpreadMultipleWithDeferAndInclude( * The un-minimized version is: * * ``` - * query SpreadMultipleWithDeferAndInclude($cond1: Boolean!, $cond2: Boolean!, $cond3: Boolean!, - * $cond4: Boolean!) { + * query SpreadMultipleWithDeferAndInclude($cond1: Boolean!, $cond2: Boolean!, $cond3: Boolean!, $cond4: Boolean!) { * hero { * __typename * ...DroidDetails @include(if: $cond1) @@ -92,8 +89,7 @@ public data class SpreadMultipleWithDeferAndInclude( * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query SpreadMultipleWithDeferAndInclude(${'$'}cond1: Boolean!, ${'$'}cond2: Boolean!, ${'$'}cond3: Boolean!, ${'$'}cond4: Boolean!) { hero { __typename ...DroidDetails @include(if: ${'$'}cond1) ...DroidDetails @skip(if: ${'$'}cond2) ...DroidDetails @defer(label: \"b_first\") ...DroidDetails @defer(label: \"b_second\") ...DroidDetails @defer(label: \"b_third\") @include(if: ${'$'}cond3) ...DroidDetails @defer(label: \"b_fourth\") @skip(if: ${'$'}cond4) } } fragment DroidDetails on Droid { name }" + get() = "query SpreadMultipleWithDeferAndInclude(${'$'}cond1: Boolean!, ${'$'}cond2: Boolean!, ${'$'}cond3: Boolean!, ${'$'}cond4: Boolean!) { hero { __typename ...DroidDetails @include(if: ${'$'}cond1) ...DroidDetails @skip(if: ${'$'}cond2) ...DroidDetails @defer(label: \"b_first\") ...DroidDetails @defer(label: \"b_second\") ...DroidDetails @defer(label: \"b_third\") @include(if: ${'$'}cond3) ...DroidDetails @defer(label: \"b_fourth\") @skip(if: ${'$'}cond4) } } fragment DroidDetails on Droid { name }" public const val OPERATION_NAME: String = "SpreadMultipleWithDeferAndInclude" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/SpreadMultipleWithDeferWithIf.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/SpreadMultipleWithDeferWithIf.kt.expected index 02e29afe4c7..8ebb607ebca 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/SpreadMultipleWithDeferWithIf.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/SpreadMultipleWithDeferWithIf.kt.expected @@ -36,8 +36,7 @@ public data class SpreadMultipleWithDeferWithIf( customScalarAdapters: CustomScalarAdapters, withDefaultValues: Boolean, ) { - SpreadMultipleWithDeferWithIf_VariablesAdapter.serializeVariables(writer, this, - customScalarAdapters, withDefaultValues) + SpreadMultipleWithDeferWithIf_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, withDefaultValues) } override fun adapter(): Adapter = SpreadMultipleWithDeferWithIf_ResponseAdapter.Data.obj() @@ -102,8 +101,7 @@ public data class SpreadMultipleWithDeferWithIf( * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query SpreadMultipleWithDeferWithIf(${'$'}cond: Boolean!) { hero { __typename ...CharacterDetails @defer(label: \"c_first\", if: false) ...CharacterDetails2 @defer(label: \"c_second\", if: true) ...CharacterDetails3 @defer(label: \"c_third\", if: ${'$'}cond) } } fragment CharacterDetails on Droid { name } fragment CharacterDetails2 on Droid { id } fragment CharacterDetails3 on Droid { birthDate }" + get() = "query SpreadMultipleWithDeferWithIf(${'$'}cond: Boolean!) { hero { __typename ...CharacterDetails @defer(label: \"c_first\", if: false) ...CharacterDetails2 @defer(label: \"c_second\", if: true) ...CharacterDetails3 @defer(label: \"c_third\", if: ${'$'}cond) } } fragment CharacterDetails on Droid { name } fragment CharacterDetails2 on Droid { id } fragment CharacterDetails3 on Droid { birthDate }" public const val OPERATION_NAME: String = "SpreadMultipleWithDeferWithIf" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/SpreadSingleWithDefer.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/SpreadSingleWithDefer.kt.expected index f0894292158..fb9efd4c741 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/SpreadSingleWithDefer.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/SpreadSingleWithDefer.kt.expected @@ -84,8 +84,7 @@ public class SpreadSingleWithDefer() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query SpreadSingleWithDefer { hero { __typename ...DroidDetails @defer } } fragment DroidDetails on Droid { name }" + get() = "query SpreadSingleWithDefer { hero { __typename ...DroidDetails @defer } } fragment DroidDetails on Droid { name }" public const val OPERATION_NAME: String = "SpreadSingleWithDefer" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/adapter/InlineMultipleWithDeferAndInclude_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/adapter/InlineMultipleWithDeferAndInclude_ResponseAdapter.kt.expected index 4101b2e5932..5a1aaabeb0f 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/adapter/InlineMultipleWithDeferAndInclude_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/adapter/InlineMultipleWithDeferAndInclude_ResponseAdapter.kt.expected @@ -27,8 +27,7 @@ public object InlineMultipleWithDeferAndInclude_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - InlineMultipleWithDeferAndInclude.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): InlineMultipleWithDeferAndInclude.Data { var _hero: InlineMultipleWithDeferAndInclude.Data.Hero? = null while (true) { @@ -55,8 +54,7 @@ public object InlineMultipleWithDeferAndInclude_ResponseAdapter { private object Hero : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - InlineMultipleWithDeferAndInclude.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): InlineMultipleWithDeferAndInclude.Data.Hero { var __typename: String? = null val __path = reader.getPath() @@ -74,43 +72,37 @@ public object InlineMultipleWithDeferAndInclude_ResponseAdapter { var _onDroidIfCond1: InlineMultipleWithDeferAndInclude.Data.Hero.OnDroidIfCond1? = null if (and(possibleTypes("Droid"),variable("cond1")).evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, __path)) { reader.rewind() - _onDroidIfCond1 = com.example.fragments_with_defer_and_include_directives.adapter.InlineMultipleWithDeferAndInclude_ResponseAdapter.Data.Hero.OnDroidIfCond1.fromJson(reader, - customScalarAdapters) + _onDroidIfCond1 = com.example.fragments_with_defer_and_include_directives.adapter.InlineMultipleWithDeferAndInclude_ResponseAdapter.Data.Hero.OnDroidIfCond1.fromJson(reader, customScalarAdapters) } var _onDroidIfNotCond2: InlineMultipleWithDeferAndInclude.Data.Hero.OnDroidIfNotCond2? = null if (and(possibleTypes("Droid"),not(variable("cond2"))).evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, __path)) { reader.rewind() - _onDroidIfNotCond2 = com.example.fragments_with_defer_and_include_directives.adapter.InlineMultipleWithDeferAndInclude_ResponseAdapter.Data.Hero.OnDroidIfNotCond2.fromJson(reader, - customScalarAdapters) + _onDroidIfNotCond2 = com.example.fragments_with_defer_and_include_directives.adapter.InlineMultipleWithDeferAndInclude_ResponseAdapter.Data.Hero.OnDroidIfNotCond2.fromJson(reader, customScalarAdapters) } var _onDroidDeferE_first: InlineMultipleWithDeferAndInclude.Data.Hero.OnDroidDeferE_first? = null if (and(possibleTypes("Droid"),label("e_first")).evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, __path)) { reader.rewind() - _onDroidDeferE_first = com.example.fragments_with_defer_and_include_directives.adapter.InlineMultipleWithDeferAndInclude_ResponseAdapter.Data.Hero.OnDroidDeferE_first.fromJson(reader, - customScalarAdapters) + _onDroidDeferE_first = com.example.fragments_with_defer_and_include_directives.adapter.InlineMultipleWithDeferAndInclude_ResponseAdapter.Data.Hero.OnDroidDeferE_first.fromJson(reader, customScalarAdapters) } var _onDroidDeferE_second: InlineMultipleWithDeferAndInclude.Data.Hero.OnDroidDeferE_second? = null if (and(possibleTypes("Droid"),label("e_second")).evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, __path)) { reader.rewind() - _onDroidDeferE_second = com.example.fragments_with_defer_and_include_directives.adapter.InlineMultipleWithDeferAndInclude_ResponseAdapter.Data.Hero.OnDroidDeferE_second.fromJson(reader, - customScalarAdapters) + _onDroidDeferE_second = com.example.fragments_with_defer_and_include_directives.adapter.InlineMultipleWithDeferAndInclude_ResponseAdapter.Data.Hero.OnDroidDeferE_second.fromJson(reader, customScalarAdapters) } var _onDroidDeferE_third: InlineMultipleWithDeferAndInclude.Data.Hero.OnDroidDeferE_third? = null if (and(possibleTypes("Droid"),and(label("e_third"),variable("cond3"))).evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, __path)) { reader.rewind() - _onDroidDeferE_third = com.example.fragments_with_defer_and_include_directives.adapter.InlineMultipleWithDeferAndInclude_ResponseAdapter.Data.Hero.OnDroidDeferE_third.fromJson(reader, - customScalarAdapters) + _onDroidDeferE_third = com.example.fragments_with_defer_and_include_directives.adapter.InlineMultipleWithDeferAndInclude_ResponseAdapter.Data.Hero.OnDroidDeferE_third.fromJson(reader, customScalarAdapters) } var _onDroidDeferE_fourth: InlineMultipleWithDeferAndInclude.Data.Hero.OnDroidDeferE_fourth? = null if (and(possibleTypes("Droid"),and(label("e_fourth"),not(variable("cond4")))).evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, __path)) { reader.rewind() - _onDroidDeferE_fourth = com.example.fragments_with_defer_and_include_directives.adapter.InlineMultipleWithDeferAndInclude_ResponseAdapter.Data.Hero.OnDroidDeferE_fourth.fromJson(reader, - customScalarAdapters) + _onDroidDeferE_fourth = com.example.fragments_with_defer_and_include_directives.adapter.InlineMultipleWithDeferAndInclude_ResponseAdapter.Data.Hero.OnDroidDeferE_fourth.fromJson(reader, customScalarAdapters) } return InlineMultipleWithDeferAndInclude.Data.Hero( @@ -133,42 +125,34 @@ public object InlineMultipleWithDeferAndInclude_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.__typename) if (value.onDroidIfCond1 != null) { - com.example.fragments_with_defer_and_include_directives.adapter.InlineMultipleWithDeferAndInclude_ResponseAdapter.Data.Hero.OnDroidIfCond1.toJson(writer, - customScalarAdapters, value.onDroidIfCond1) + com.example.fragments_with_defer_and_include_directives.adapter.InlineMultipleWithDeferAndInclude_ResponseAdapter.Data.Hero.OnDroidIfCond1.toJson(writer, customScalarAdapters, value.onDroidIfCond1) } if (value.onDroidIfNotCond2 != null) { - com.example.fragments_with_defer_and_include_directives.adapter.InlineMultipleWithDeferAndInclude_ResponseAdapter.Data.Hero.OnDroidIfNotCond2.toJson(writer, - customScalarAdapters, value.onDroidIfNotCond2) + com.example.fragments_with_defer_and_include_directives.adapter.InlineMultipleWithDeferAndInclude_ResponseAdapter.Data.Hero.OnDroidIfNotCond2.toJson(writer, customScalarAdapters, value.onDroidIfNotCond2) } if (value.onDroidDeferE_first != null) { - com.example.fragments_with_defer_and_include_directives.adapter.InlineMultipleWithDeferAndInclude_ResponseAdapter.Data.Hero.OnDroidDeferE_first.toJson(writer, - customScalarAdapters, value.onDroidDeferE_first) + com.example.fragments_with_defer_and_include_directives.adapter.InlineMultipleWithDeferAndInclude_ResponseAdapter.Data.Hero.OnDroidDeferE_first.toJson(writer, customScalarAdapters, value.onDroidDeferE_first) } if (value.onDroidDeferE_second != null) { - com.example.fragments_with_defer_and_include_directives.adapter.InlineMultipleWithDeferAndInclude_ResponseAdapter.Data.Hero.OnDroidDeferE_second.toJson(writer, - customScalarAdapters, value.onDroidDeferE_second) + com.example.fragments_with_defer_and_include_directives.adapter.InlineMultipleWithDeferAndInclude_ResponseAdapter.Data.Hero.OnDroidDeferE_second.toJson(writer, customScalarAdapters, value.onDroidDeferE_second) } if (value.onDroidDeferE_third != null) { - com.example.fragments_with_defer_and_include_directives.adapter.InlineMultipleWithDeferAndInclude_ResponseAdapter.Data.Hero.OnDroidDeferE_third.toJson(writer, - customScalarAdapters, value.onDroidDeferE_third) + com.example.fragments_with_defer_and_include_directives.adapter.InlineMultipleWithDeferAndInclude_ResponseAdapter.Data.Hero.OnDroidDeferE_third.toJson(writer, customScalarAdapters, value.onDroidDeferE_third) } if (value.onDroidDeferE_fourth != null) { - com.example.fragments_with_defer_and_include_directives.adapter.InlineMultipleWithDeferAndInclude_ResponseAdapter.Data.Hero.OnDroidDeferE_fourth.toJson(writer, - customScalarAdapters, value.onDroidDeferE_fourth) + com.example.fragments_with_defer_and_include_directives.adapter.InlineMultipleWithDeferAndInclude_ResponseAdapter.Data.Hero.OnDroidDeferE_fourth.toJson(writer, customScalarAdapters, value.onDroidDeferE_fourth) } } - private object OnDroidIfCond1 : - Adapter { + private object OnDroidIfCond1 : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - InlineMultipleWithDeferAndInclude.Data.Hero.OnDroidIfCond1 { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): InlineMultipleWithDeferAndInclude.Data.Hero.OnDroidIfCond1 { var _name: String? = null while (true) { @@ -193,12 +177,10 @@ public object InlineMultipleWithDeferAndInclude_ResponseAdapter { } } - private object OnDroidIfNotCond2 : - Adapter { + private object OnDroidIfNotCond2 : Adapter { public val RESPONSE_NAMES: List = listOf("id") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - InlineMultipleWithDeferAndInclude.Data.Hero.OnDroidIfNotCond2 { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): InlineMultipleWithDeferAndInclude.Data.Hero.OnDroidIfNotCond2 { var _id: String? = null while (true) { @@ -223,12 +205,10 @@ public object InlineMultipleWithDeferAndInclude_ResponseAdapter { } } - private object OnDroidDeferE_first : - Adapter { + private object OnDroidDeferE_first : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - InlineMultipleWithDeferAndInclude.Data.Hero.OnDroidDeferE_first { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): InlineMultipleWithDeferAndInclude.Data.Hero.OnDroidDeferE_first { var _name: String? = null while (true) { @@ -253,12 +233,10 @@ public object InlineMultipleWithDeferAndInclude_ResponseAdapter { } } - private object OnDroidDeferE_second : - Adapter { + private object OnDroidDeferE_second : Adapter { public val RESPONSE_NAMES: List = listOf("id") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - InlineMultipleWithDeferAndInclude.Data.Hero.OnDroidDeferE_second { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): InlineMultipleWithDeferAndInclude.Data.Hero.OnDroidDeferE_second { var _id: String? = null while (true) { @@ -283,12 +261,10 @@ public object InlineMultipleWithDeferAndInclude_ResponseAdapter { } } - private object OnDroidDeferE_third : - Adapter { + private object OnDroidDeferE_third : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - InlineMultipleWithDeferAndInclude.Data.Hero.OnDroidDeferE_third { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): InlineMultipleWithDeferAndInclude.Data.Hero.OnDroidDeferE_third { var _name: String? = null while (true) { @@ -313,12 +289,10 @@ public object InlineMultipleWithDeferAndInclude_ResponseAdapter { } } - private object OnDroidDeferE_fourth : - Adapter { + private object OnDroidDeferE_fourth : Adapter { public val RESPONSE_NAMES: List = listOf("id") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - InlineMultipleWithDeferAndInclude.Data.Hero.OnDroidDeferE_fourth { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): InlineMultipleWithDeferAndInclude.Data.Hero.OnDroidDeferE_fourth { var _id: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/adapter/InlineMultipleWithDeferWithIf_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/adapter/InlineMultipleWithDeferWithIf_ResponseAdapter.kt.expected index bb4262def5f..891814efb2b 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/adapter/InlineMultipleWithDeferWithIf_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/adapter/InlineMultipleWithDeferWithIf_ResponseAdapter.kt.expected @@ -26,8 +26,7 @@ public object InlineMultipleWithDeferWithIf_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - InlineMultipleWithDeferWithIf.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): InlineMultipleWithDeferWithIf.Data { var _hero: InlineMultipleWithDeferWithIf.Data.Hero? = null while (true) { @@ -54,8 +53,7 @@ public object InlineMultipleWithDeferWithIf_ResponseAdapter { private object Hero : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - InlineMultipleWithDeferWithIf.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): InlineMultipleWithDeferWithIf.Data.Hero { var __typename: String? = null val __path = reader.getPath() @@ -67,21 +65,18 @@ public object InlineMultipleWithDeferWithIf_ResponseAdapter { } reader.rewind() - val _onCharacter = com.example.fragments_with_defer_and_include_directives.adapter.InlineMultipleWithDeferWithIf_ResponseAdapter.Data.Hero.OnCharacter.fromJson(reader, - customScalarAdapters) + val _onCharacter = com.example.fragments_with_defer_and_include_directives.adapter.InlineMultipleWithDeferWithIf_ResponseAdapter.Data.Hero.OnCharacter.fromJson(reader, customScalarAdapters) var _onCharacterDeferF_second: InlineMultipleWithDeferWithIf.Data.Hero.OnCharacterDeferF_second? = null if (label("f_second").evaluate(customScalarAdapters.falseVariables, null, customScalarAdapters.deferredFragmentIdentifiers, __path)) { reader.rewind() - _onCharacterDeferF_second = com.example.fragments_with_defer_and_include_directives.adapter.InlineMultipleWithDeferWithIf_ResponseAdapter.Data.Hero.OnCharacterDeferF_second.fromJson(reader, - customScalarAdapters) + _onCharacterDeferF_second = com.example.fragments_with_defer_and_include_directives.adapter.InlineMultipleWithDeferWithIf_ResponseAdapter.Data.Hero.OnCharacterDeferF_second.fromJson(reader, customScalarAdapters) } var _onCharacterDeferF_third: InlineMultipleWithDeferWithIf.Data.Hero.OnCharacterDeferF_third? = null if (or(not(variable("cond")),label("f_third")).evaluate(customScalarAdapters.falseVariables, null, customScalarAdapters.deferredFragmentIdentifiers, __path)) { reader.rewind() - _onCharacterDeferF_third = com.example.fragments_with_defer_and_include_directives.adapter.InlineMultipleWithDeferWithIf_ResponseAdapter.Data.Hero.OnCharacterDeferF_third.fromJson(reader, - customScalarAdapters) + _onCharacterDeferF_third = com.example.fragments_with_defer_and_include_directives.adapter.InlineMultipleWithDeferWithIf_ResponseAdapter.Data.Hero.OnCharacterDeferF_third.fromJson(reader, customScalarAdapters) } return InlineMultipleWithDeferWithIf.Data.Hero( @@ -100,25 +95,21 @@ public object InlineMultipleWithDeferWithIf_ResponseAdapter { writer.name("__typename") StringAdapter.toJson(writer, customScalarAdapters, value.__typename) - com.example.fragments_with_defer_and_include_directives.adapter.InlineMultipleWithDeferWithIf_ResponseAdapter.Data.Hero.OnCharacter.toJson(writer, - customScalarAdapters, value.onCharacter) + com.example.fragments_with_defer_and_include_directives.adapter.InlineMultipleWithDeferWithIf_ResponseAdapter.Data.Hero.OnCharacter.toJson(writer, customScalarAdapters, value.onCharacter) if (value.onCharacterDeferF_second != null) { - com.example.fragments_with_defer_and_include_directives.adapter.InlineMultipleWithDeferWithIf_ResponseAdapter.Data.Hero.OnCharacterDeferF_second.toJson(writer, - customScalarAdapters, value.onCharacterDeferF_second) + com.example.fragments_with_defer_and_include_directives.adapter.InlineMultipleWithDeferWithIf_ResponseAdapter.Data.Hero.OnCharacterDeferF_second.toJson(writer, customScalarAdapters, value.onCharacterDeferF_second) } if (value.onCharacterDeferF_third != null) { - com.example.fragments_with_defer_and_include_directives.adapter.InlineMultipleWithDeferWithIf_ResponseAdapter.Data.Hero.OnCharacterDeferF_third.toJson(writer, - customScalarAdapters, value.onCharacterDeferF_third) + com.example.fragments_with_defer_and_include_directives.adapter.InlineMultipleWithDeferWithIf_ResponseAdapter.Data.Hero.OnCharacterDeferF_third.toJson(writer, customScalarAdapters, value.onCharacterDeferF_third) } } private object OnCharacter : Adapter { public val RESPONSE_NAMES: List = listOf("id") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - InlineMultipleWithDeferWithIf.Data.Hero.OnCharacter { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): InlineMultipleWithDeferWithIf.Data.Hero.OnCharacter { var _id: String? = null while (true) { @@ -143,12 +134,10 @@ public object InlineMultipleWithDeferWithIf_ResponseAdapter { } } - private object OnCharacterDeferF_second : - Adapter { + private object OnCharacterDeferF_second : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - InlineMultipleWithDeferWithIf.Data.Hero.OnCharacterDeferF_second { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): InlineMultipleWithDeferWithIf.Data.Hero.OnCharacterDeferF_second { var _name: String? = null while (true) { @@ -173,12 +162,10 @@ public object InlineMultipleWithDeferWithIf_ResponseAdapter { } } - private object OnCharacterDeferF_third : - Adapter { + private object OnCharacterDeferF_third : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - InlineMultipleWithDeferWithIf.Data.Hero.OnCharacterDeferF_third { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): InlineMultipleWithDeferWithIf.Data.Hero.OnCharacterDeferF_third { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/adapter/InlineMultipleWithDefer_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/adapter/InlineMultipleWithDefer_ResponseAdapter.kt.expected index eea10e6376e..e4b8d8569eb 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/adapter/InlineMultipleWithDefer_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/adapter/InlineMultipleWithDefer_ResponseAdapter.kt.expected @@ -25,8 +25,7 @@ public object InlineMultipleWithDefer_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - InlineMultipleWithDefer.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): InlineMultipleWithDefer.Data { var _hero: InlineMultipleWithDefer.Data.Hero? = null while (true) { @@ -53,8 +52,7 @@ public object InlineMultipleWithDefer_ResponseAdapter { private object Hero : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - InlineMultipleWithDefer.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): InlineMultipleWithDefer.Data.Hero { var __typename: String? = null val __path = reader.getPath() @@ -72,15 +70,13 @@ public object InlineMultipleWithDefer_ResponseAdapter { var _onDroidDeferD_first: InlineMultipleWithDefer.Data.Hero.OnDroidDeferD_first? = null if (and(possibleTypes("Droid"),label("d_first")).evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, __path)) { reader.rewind() - _onDroidDeferD_first = com.example.fragments_with_defer_and_include_directives.adapter.InlineMultipleWithDefer_ResponseAdapter.Data.Hero.OnDroidDeferD_first.fromJson(reader, - customScalarAdapters) + _onDroidDeferD_first = com.example.fragments_with_defer_and_include_directives.adapter.InlineMultipleWithDefer_ResponseAdapter.Data.Hero.OnDroidDeferD_first.fromJson(reader, customScalarAdapters) } var _onDroidDeferD_second: InlineMultipleWithDefer.Data.Hero.OnDroidDeferD_second? = null if (and(possibleTypes("Droid"),label("d_second")).evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, __path)) { reader.rewind() - _onDroidDeferD_second = com.example.fragments_with_defer_and_include_directives.adapter.InlineMultipleWithDefer_ResponseAdapter.Data.Hero.OnDroidDeferD_second.fromJson(reader, - customScalarAdapters) + _onDroidDeferD_second = com.example.fragments_with_defer_and_include_directives.adapter.InlineMultipleWithDefer_ResponseAdapter.Data.Hero.OnDroidDeferD_second.fromJson(reader, customScalarAdapters) } return InlineMultipleWithDefer.Data.Hero( @@ -99,22 +95,18 @@ public object InlineMultipleWithDefer_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.__typename) if (value.onDroidDeferD_first != null) { - com.example.fragments_with_defer_and_include_directives.adapter.InlineMultipleWithDefer_ResponseAdapter.Data.Hero.OnDroidDeferD_first.toJson(writer, - customScalarAdapters, value.onDroidDeferD_first) + com.example.fragments_with_defer_and_include_directives.adapter.InlineMultipleWithDefer_ResponseAdapter.Data.Hero.OnDroidDeferD_first.toJson(writer, customScalarAdapters, value.onDroidDeferD_first) } if (value.onDroidDeferD_second != null) { - com.example.fragments_with_defer_and_include_directives.adapter.InlineMultipleWithDefer_ResponseAdapter.Data.Hero.OnDroidDeferD_second.toJson(writer, - customScalarAdapters, value.onDroidDeferD_second) + com.example.fragments_with_defer_and_include_directives.adapter.InlineMultipleWithDefer_ResponseAdapter.Data.Hero.OnDroidDeferD_second.toJson(writer, customScalarAdapters, value.onDroidDeferD_second) } } - private object OnDroidDeferD_first : - Adapter { + private object OnDroidDeferD_first : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - InlineMultipleWithDefer.Data.Hero.OnDroidDeferD_first { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): InlineMultipleWithDefer.Data.Hero.OnDroidDeferD_first { var _name: String? = null while (true) { @@ -139,12 +131,10 @@ public object InlineMultipleWithDefer_ResponseAdapter { } } - private object OnDroidDeferD_second : - Adapter { + private object OnDroidDeferD_second : Adapter { public val RESPONSE_NAMES: List = listOf("id") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - InlineMultipleWithDefer.Data.Hero.OnDroidDeferD_second { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): InlineMultipleWithDefer.Data.Hero.OnDroidDeferD_second { var _id: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/adapter/InlineSingleWithDefer_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/adapter/InlineSingleWithDefer_ResponseAdapter.kt.expected index 7bc24676309..a58091596c6 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/adapter/InlineSingleWithDefer_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/adapter/InlineSingleWithDefer_ResponseAdapter.kt.expected @@ -25,8 +25,7 @@ public object InlineSingleWithDefer_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - InlineSingleWithDefer.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): InlineSingleWithDefer.Data { var _hero: InlineSingleWithDefer.Data.Hero? = null while (true) { @@ -53,8 +52,7 @@ public object InlineSingleWithDefer_ResponseAdapter { private object Hero : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - InlineSingleWithDefer.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): InlineSingleWithDefer.Data.Hero { var __typename: String? = null val __path = reader.getPath() @@ -72,8 +70,7 @@ public object InlineSingleWithDefer_ResponseAdapter { var _onDroid: InlineSingleWithDefer.Data.Hero.OnDroid? = null if (and(possibleTypes("Droid"),label()).evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, __path)) { reader.rewind() - _onDroid = com.example.fragments_with_defer_and_include_directives.adapter.InlineSingleWithDefer_ResponseAdapter.Data.Hero.OnDroid.fromJson(reader, - customScalarAdapters) + _onDroid = com.example.fragments_with_defer_and_include_directives.adapter.InlineSingleWithDefer_ResponseAdapter.Data.Hero.OnDroid.fromJson(reader, customScalarAdapters) } return InlineSingleWithDefer.Data.Hero( @@ -91,16 +88,14 @@ public object InlineSingleWithDefer_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.__typename) if (value.onDroid != null) { - com.example.fragments_with_defer_and_include_directives.adapter.InlineSingleWithDefer_ResponseAdapter.Data.Hero.OnDroid.toJson(writer, - customScalarAdapters, value.onDroid) + com.example.fragments_with_defer_and_include_directives.adapter.InlineSingleWithDefer_ResponseAdapter.Data.Hero.OnDroid.toJson(writer, customScalarAdapters, value.onDroid) } } private object OnDroid : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - InlineSingleWithDefer.Data.Hero.OnDroid { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): InlineSingleWithDefer.Data.Hero.OnDroid { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/adapter/SpreadMultipleWithDeferAndInclude_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/adapter/SpreadMultipleWithDeferAndInclude_ResponseAdapter.kt.expected index e601669a799..14becba0a0f 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/adapter/SpreadMultipleWithDeferAndInclude_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/adapter/SpreadMultipleWithDeferAndInclude_ResponseAdapter.kt.expected @@ -28,8 +28,7 @@ public object SpreadMultipleWithDeferAndInclude_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - SpreadMultipleWithDeferAndInclude.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): SpreadMultipleWithDeferAndInclude.Data { var _hero: SpreadMultipleWithDeferAndInclude.Data.Hero? = null while (true) { @@ -56,8 +55,7 @@ public object SpreadMultipleWithDeferAndInclude_ResponseAdapter { private object Hero : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - SpreadMultipleWithDeferAndInclude.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): SpreadMultipleWithDeferAndInclude.Data.Hero { var __typename: String? = null val __path = reader.getPath() @@ -75,8 +73,7 @@ public object SpreadMultipleWithDeferAndInclude_ResponseAdapter { var _droidDetails: DroidDetails? = null if (and(possibleTypes("Droid"),or(variable("cond1"),not(variable("cond2")),label("b_first"),label("b_second"),and(label("b_third"),variable("cond3")),and(label("b_fourth"),not(variable("cond4"))))).evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, __path)) { reader.rewind() - _droidDetails = com.example.fragments_with_defer_and_include_directives.fragment.DroidDetailsImpl_ResponseAdapter.DroidDetails.fromJson(reader, - customScalarAdapters) + _droidDetails = com.example.fragments_with_defer_and_include_directives.fragment.DroidDetailsImpl_ResponseAdapter.DroidDetails.fromJson(reader, customScalarAdapters) } return SpreadMultipleWithDeferAndInclude.Data.Hero( @@ -94,8 +91,7 @@ public object SpreadMultipleWithDeferAndInclude_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.__typename) if (value.droidDetails != null) { - com.example.fragments_with_defer_and_include_directives.fragment.DroidDetailsImpl_ResponseAdapter.DroidDetails.toJson(writer, - customScalarAdapters, value.droidDetails) + com.example.fragments_with_defer_and_include_directives.fragment.DroidDetailsImpl_ResponseAdapter.DroidDetails.toJson(writer, customScalarAdapters, value.droidDetails) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/adapter/SpreadMultipleWithDeferWithIf_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/adapter/SpreadMultipleWithDeferWithIf_ResponseAdapter.kt.expected index 74b71ffb8d5..d69c4a43a40 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/adapter/SpreadMultipleWithDeferWithIf_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/adapter/SpreadMultipleWithDeferWithIf_ResponseAdapter.kt.expected @@ -30,8 +30,7 @@ public object SpreadMultipleWithDeferWithIf_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - SpreadMultipleWithDeferWithIf.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): SpreadMultipleWithDeferWithIf.Data { var _hero: SpreadMultipleWithDeferWithIf.Data.Hero? = null while (true) { @@ -58,8 +57,7 @@ public object SpreadMultipleWithDeferWithIf_ResponseAdapter { private object Hero : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - SpreadMultipleWithDeferWithIf.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): SpreadMultipleWithDeferWithIf.Data.Hero { var __typename: String? = null val __path = reader.getPath() @@ -77,22 +75,19 @@ public object SpreadMultipleWithDeferWithIf_ResponseAdapter { var _characterDetails: CharacterDetails? = null if (possibleTypes("Droid").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, __path)) { reader.rewind() - _characterDetails = com.example.fragments_with_defer_and_include_directives.fragment.CharacterDetailsImpl_ResponseAdapter.CharacterDetails.fromJson(reader, - customScalarAdapters) + _characterDetails = com.example.fragments_with_defer_and_include_directives.fragment.CharacterDetailsImpl_ResponseAdapter.CharacterDetails.fromJson(reader, customScalarAdapters) } var _characterDetails2: CharacterDetails2? = null if (and(possibleTypes("Droid"),label("c_second")).evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, __path)) { reader.rewind() - _characterDetails2 = com.example.fragments_with_defer_and_include_directives.fragment.CharacterDetails2Impl_ResponseAdapter.CharacterDetails2.fromJson(reader, - customScalarAdapters) + _characterDetails2 = com.example.fragments_with_defer_and_include_directives.fragment.CharacterDetails2Impl_ResponseAdapter.CharacterDetails2.fromJson(reader, customScalarAdapters) } var _characterDetails3: CharacterDetails3? = null if (and(possibleTypes("Droid"),or(not(variable("cond")),label("c_third"))).evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, __path)) { reader.rewind() - _characterDetails3 = com.example.fragments_with_defer_and_include_directives.fragment.CharacterDetails3Impl_ResponseAdapter.CharacterDetails3.fromJson(reader, - customScalarAdapters) + _characterDetails3 = com.example.fragments_with_defer_and_include_directives.fragment.CharacterDetails3Impl_ResponseAdapter.CharacterDetails3.fromJson(reader, customScalarAdapters) } return SpreadMultipleWithDeferWithIf.Data.Hero( @@ -112,18 +107,15 @@ public object SpreadMultipleWithDeferWithIf_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.__typename) if (value.characterDetails != null) { - com.example.fragments_with_defer_and_include_directives.fragment.CharacterDetailsImpl_ResponseAdapter.CharacterDetails.toJson(writer, - customScalarAdapters, value.characterDetails) + com.example.fragments_with_defer_and_include_directives.fragment.CharacterDetailsImpl_ResponseAdapter.CharacterDetails.toJson(writer, customScalarAdapters, value.characterDetails) } if (value.characterDetails2 != null) { - com.example.fragments_with_defer_and_include_directives.fragment.CharacterDetails2Impl_ResponseAdapter.CharacterDetails2.toJson(writer, - customScalarAdapters, value.characterDetails2) + com.example.fragments_with_defer_and_include_directives.fragment.CharacterDetails2Impl_ResponseAdapter.CharacterDetails2.toJson(writer, customScalarAdapters, value.characterDetails2) } if (value.characterDetails3 != null) { - com.example.fragments_with_defer_and_include_directives.fragment.CharacterDetails3Impl_ResponseAdapter.CharacterDetails3.toJson(writer, - customScalarAdapters, value.characterDetails3) + com.example.fragments_with_defer_and_include_directives.fragment.CharacterDetails3Impl_ResponseAdapter.CharacterDetails3.toJson(writer, customScalarAdapters, value.characterDetails3) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/adapter/SpreadMultipleWithDefer_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/adapter/SpreadMultipleWithDefer_ResponseAdapter.kt.expected index e8b470015e2..8ffef3d9cc9 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/adapter/SpreadMultipleWithDefer_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/adapter/SpreadMultipleWithDefer_ResponseAdapter.kt.expected @@ -26,8 +26,7 @@ public object SpreadMultipleWithDefer_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - SpreadMultipleWithDefer.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): SpreadMultipleWithDefer.Data { var _hero: SpreadMultipleWithDefer.Data.Hero? = null while (true) { @@ -54,8 +53,7 @@ public object SpreadMultipleWithDefer_ResponseAdapter { private object Hero : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - SpreadMultipleWithDefer.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): SpreadMultipleWithDefer.Data.Hero { var __typename: String? = null val __path = reader.getPath() @@ -73,8 +71,7 @@ public object SpreadMultipleWithDefer_ResponseAdapter { var _droidDetails: DroidDetails? = null if (and(possibleTypes("Droid"),or(label("a_first"),label("a_second"))).evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, __path)) { reader.rewind() - _droidDetails = com.example.fragments_with_defer_and_include_directives.fragment.DroidDetailsImpl_ResponseAdapter.DroidDetails.fromJson(reader, - customScalarAdapters) + _droidDetails = com.example.fragments_with_defer_and_include_directives.fragment.DroidDetailsImpl_ResponseAdapter.DroidDetails.fromJson(reader, customScalarAdapters) } return SpreadMultipleWithDefer.Data.Hero( @@ -92,8 +89,7 @@ public object SpreadMultipleWithDefer_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.__typename) if (value.droidDetails != null) { - com.example.fragments_with_defer_and_include_directives.fragment.DroidDetailsImpl_ResponseAdapter.DroidDetails.toJson(writer, - customScalarAdapters, value.droidDetails) + com.example.fragments_with_defer_and_include_directives.fragment.DroidDetailsImpl_ResponseAdapter.DroidDetails.toJson(writer, customScalarAdapters, value.droidDetails) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/adapter/SpreadSingleWithDefer_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/adapter/SpreadSingleWithDefer_ResponseAdapter.kt.expected index 8335efa88a9..84cb7284e22 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/adapter/SpreadSingleWithDefer_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/adapter/SpreadSingleWithDefer_ResponseAdapter.kt.expected @@ -25,8 +25,7 @@ public object SpreadSingleWithDefer_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - SpreadSingleWithDefer.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): SpreadSingleWithDefer.Data { var _hero: SpreadSingleWithDefer.Data.Hero? = null while (true) { @@ -53,8 +52,7 @@ public object SpreadSingleWithDefer_ResponseAdapter { private object Hero : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - SpreadSingleWithDefer.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): SpreadSingleWithDefer.Data.Hero { var __typename: String? = null val __path = reader.getPath() @@ -72,8 +70,7 @@ public object SpreadSingleWithDefer_ResponseAdapter { var _droidDetails: DroidDetails? = null if (and(possibleTypes("Droid"),label()).evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, __path)) { reader.rewind() - _droidDetails = com.example.fragments_with_defer_and_include_directives.fragment.DroidDetailsImpl_ResponseAdapter.DroidDetails.fromJson(reader, - customScalarAdapters) + _droidDetails = com.example.fragments_with_defer_and_include_directives.fragment.DroidDetailsImpl_ResponseAdapter.DroidDetails.fromJson(reader, customScalarAdapters) } return SpreadSingleWithDefer.Data.Hero( @@ -91,8 +88,7 @@ public object SpreadSingleWithDefer_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.__typename) if (value.droidDetails != null) { - com.example.fragments_with_defer_and_include_directives.fragment.DroidDetailsImpl_ResponseAdapter.DroidDetails.toJson(writer, - customScalarAdapters, value.droidDetails) + com.example.fragments_with_defer_and_include_directives.fragment.DroidDetailsImpl_ResponseAdapter.DroidDetails.toJson(writer, customScalarAdapters, value.droidDetails) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/fragment/CharacterDetails2Impl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/fragment/CharacterDetails2Impl.kt.expected index f8a822d5cb8..c22de6dfd9b 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/fragment/CharacterDetails2Impl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/fragment/CharacterDetails2Impl.kt.expected @@ -30,8 +30,7 @@ public class CharacterDetails2Impl() : Fragment { // This fragment doesn't have any variable } - override fun adapter(): Adapter = - CharacterDetails2Impl_ResponseAdapter.CharacterDetails2.obj() + override fun adapter(): Adapter = CharacterDetails2Impl_ResponseAdapter.CharacterDetails2.obj() override fun rootField(): CompiledField = CompiledField.Builder( name = "data", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/fragment/CharacterDetails2Impl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/fragment/CharacterDetails2Impl_ResponseAdapter.kt.expected index d89662125f1..ae1b7efe2d3 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/fragment/CharacterDetails2Impl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/fragment/CharacterDetails2Impl_ResponseAdapter.kt.expected @@ -15,12 +15,10 @@ import kotlin.String import kotlin.collections.List public object CharacterDetails2Impl_ResponseAdapter { - public object CharacterDetails2 : - Adapter { + public object CharacterDetails2 : Adapter { public val RESPONSE_NAMES: List = listOf("id") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.fragments_with_defer_and_include_directives.fragment.CharacterDetails2 { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.fragments_with_defer_and_include_directives.fragment.CharacterDetails2 { var _id: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/fragment/CharacterDetails3Impl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/fragment/CharacterDetails3Impl.kt.expected index 9b9faede5b2..1fd89f635e2 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/fragment/CharacterDetails3Impl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/fragment/CharacterDetails3Impl.kt.expected @@ -30,8 +30,7 @@ public class CharacterDetails3Impl() : Fragment { // This fragment doesn't have any variable } - override fun adapter(): Adapter = - CharacterDetails3Impl_ResponseAdapter.CharacterDetails3.obj() + override fun adapter(): Adapter = CharacterDetails3Impl_ResponseAdapter.CharacterDetails3.obj() override fun rootField(): CompiledField = CompiledField.Builder( name = "data", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/fragment/CharacterDetails3Impl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/fragment/CharacterDetails3Impl_ResponseAdapter.kt.expected index 6513d901e70..81f94322063 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/fragment/CharacterDetails3Impl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/fragment/CharacterDetails3Impl_ResponseAdapter.kt.expected @@ -16,12 +16,10 @@ import kotlin.String import kotlin.collections.List public object CharacterDetails3Impl_ResponseAdapter { - public object CharacterDetails3 : - Adapter { + public object CharacterDetails3 : Adapter { public val RESPONSE_NAMES: List = listOf("birthDate") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.fragments_with_defer_and_include_directives.fragment.CharacterDetails3 { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.fragments_with_defer_and_include_directives.fragment.CharacterDetails3 { var _birthDate: Any? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/fragment/CharacterDetailsImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/fragment/CharacterDetailsImpl.kt.expected index c65edbdb340..59b6aed4b28 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/fragment/CharacterDetailsImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/fragment/CharacterDetailsImpl.kt.expected @@ -30,8 +30,7 @@ public class CharacterDetailsImpl() : Fragment { // This fragment doesn't have any variable } - override fun adapter(): Adapter = - CharacterDetailsImpl_ResponseAdapter.CharacterDetails.obj() + override fun adapter(): Adapter = CharacterDetailsImpl_ResponseAdapter.CharacterDetails.obj() override fun rootField(): CompiledField = CompiledField.Builder( name = "data", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/fragment/CharacterDetailsImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/fragment/CharacterDetailsImpl_ResponseAdapter.kt.expected index eb99f25a88b..608a4364816 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/fragment/CharacterDetailsImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/fragment/CharacterDetailsImpl_ResponseAdapter.kt.expected @@ -15,12 +15,10 @@ import kotlin.String import kotlin.collections.List public object CharacterDetailsImpl_ResponseAdapter { - public object CharacterDetails : - Adapter { + public object CharacterDetails : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.fragments_with_defer_and_include_directives.fragment.CharacterDetails { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.fragments_with_defer_and_include_directives.fragment.CharacterDetails { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/fragment/DroidDetailsImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/fragment/DroidDetailsImpl.kt.expected index e3a0eac0133..15c7ae26d5b 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/fragment/DroidDetailsImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/fragment/DroidDetailsImpl.kt.expected @@ -30,8 +30,7 @@ public class DroidDetailsImpl() : Fragment { // This fragment doesn't have any variable } - override fun adapter(): Adapter = - DroidDetailsImpl_ResponseAdapter.DroidDetails.obj() + override fun adapter(): Adapter = DroidDetailsImpl_ResponseAdapter.DroidDetails.obj() override fun rootField(): CompiledField = CompiledField.Builder( name = "data", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/fragment/DroidDetailsImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/fragment/DroidDetailsImpl_ResponseAdapter.kt.expected index 7c1d916d184..0e12c247a6c 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/fragment/DroidDetailsImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_defer_and_include_directives/kotlin/operationBased/fragments_with_defer_and_include_directives/fragment/DroidDetailsImpl_ResponseAdapter.kt.expected @@ -15,12 +15,10 @@ import kotlin.String import kotlin.collections.List public object DroidDetailsImpl_ResponseAdapter { - public object DroidDetails : - Adapter { + public object DroidDetails : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.fragments_with_defer_and_include_directives.fragment.DroidDetails { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.fragments_with_defer_and_include_directives.fragment.DroidDetails { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/operationBased/fragments_with_type_condition/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/operationBased/fragments_with_type_condition/TestQuery.kt.expected index a9103858e2d..492359ce880 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/operationBased/fragments_with_type_condition/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/operationBased/fragments_with_type_condition/TestQuery.kt.expected @@ -114,8 +114,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { r2: hero { __typename ...HumanDetails ...DroidDetails } luke: hero { __typename ...HumanDetails ...DroidDetails } } fragment HumanDetails on Human { name height } fragment DroidDetails on Droid { name primaryFunction }" + get() = "query TestQuery { r2: hero { __typename ...HumanDetails ...DroidDetails } luke: hero { __typename ...HumanDetails ...DroidDetails } } fragment HumanDetails on Human { name height } fragment DroidDetails on Droid { name primaryFunction }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/operationBased/fragments_with_type_condition/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/operationBased/fragments_with_type_condition/adapter/TestQuery_ResponseAdapter.kt.expected index 2b1bb4242dc..34929b9e21c 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/operationBased/fragments_with_type_condition/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/operationBased/fragments_with_type_condition/adapter/TestQuery_ResponseAdapter.kt.expected @@ -24,8 +24,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("r2", "luke") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _r2: TestQuery.Data.R2? = null var _luke: TestQuery.Data.Luke? = null @@ -58,8 +57,7 @@ public object TestQuery_ResponseAdapter { private object R2 : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.R2 { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.R2 { var __typename: String? = null while (true) { @@ -76,15 +74,13 @@ public object TestQuery_ResponseAdapter { var _humanDetails: HumanDetails? = null if (possibleTypes("Human").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _humanDetails = com.example.fragments_with_type_condition.fragment.HumanDetailsImpl_ResponseAdapter.HumanDetails.fromJson(reader, - customScalarAdapters) + _humanDetails = com.example.fragments_with_type_condition.fragment.HumanDetailsImpl_ResponseAdapter.HumanDetails.fromJson(reader, customScalarAdapters) } var _droidDetails: DroidDetails? = null if (possibleTypes("Droid").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _droidDetails = com.example.fragments_with_type_condition.fragment.DroidDetailsImpl_ResponseAdapter.DroidDetails.fromJson(reader, - customScalarAdapters) + _droidDetails = com.example.fragments_with_type_condition.fragment.DroidDetailsImpl_ResponseAdapter.DroidDetails.fromJson(reader, customScalarAdapters) } return TestQuery.Data.R2( @@ -103,13 +99,11 @@ public object TestQuery_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.__typename) if (value.humanDetails != null) { - com.example.fragments_with_type_condition.fragment.HumanDetailsImpl_ResponseAdapter.HumanDetails.toJson(writer, - customScalarAdapters, value.humanDetails) + com.example.fragments_with_type_condition.fragment.HumanDetailsImpl_ResponseAdapter.HumanDetails.toJson(writer, customScalarAdapters, value.humanDetails) } if (value.droidDetails != null) { - com.example.fragments_with_type_condition.fragment.DroidDetailsImpl_ResponseAdapter.DroidDetails.toJson(writer, - customScalarAdapters, value.droidDetails) + com.example.fragments_with_type_condition.fragment.DroidDetailsImpl_ResponseAdapter.DroidDetails.toJson(writer, customScalarAdapters, value.droidDetails) } } } @@ -117,8 +111,7 @@ public object TestQuery_ResponseAdapter { private object Luke : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Luke { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Luke { var __typename: String? = null while (true) { @@ -135,15 +128,13 @@ public object TestQuery_ResponseAdapter { var _humanDetails: HumanDetails? = null if (possibleTypes("Human").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _humanDetails = com.example.fragments_with_type_condition.fragment.HumanDetailsImpl_ResponseAdapter.HumanDetails.fromJson(reader, - customScalarAdapters) + _humanDetails = com.example.fragments_with_type_condition.fragment.HumanDetailsImpl_ResponseAdapter.HumanDetails.fromJson(reader, customScalarAdapters) } var _droidDetails: DroidDetails? = null if (possibleTypes("Droid").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _droidDetails = com.example.fragments_with_type_condition.fragment.DroidDetailsImpl_ResponseAdapter.DroidDetails.fromJson(reader, - customScalarAdapters) + _droidDetails = com.example.fragments_with_type_condition.fragment.DroidDetailsImpl_ResponseAdapter.DroidDetails.fromJson(reader, customScalarAdapters) } return TestQuery.Data.Luke( @@ -162,13 +153,11 @@ public object TestQuery_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.__typename) if (value.humanDetails != null) { - com.example.fragments_with_type_condition.fragment.HumanDetailsImpl_ResponseAdapter.HumanDetails.toJson(writer, - customScalarAdapters, value.humanDetails) + com.example.fragments_with_type_condition.fragment.HumanDetailsImpl_ResponseAdapter.HumanDetails.toJson(writer, customScalarAdapters, value.humanDetails) } if (value.droidDetails != null) { - com.example.fragments_with_type_condition.fragment.DroidDetailsImpl_ResponseAdapter.DroidDetails.toJson(writer, - customScalarAdapters, value.droidDetails) + com.example.fragments_with_type_condition.fragment.DroidDetailsImpl_ResponseAdapter.DroidDetails.toJson(writer, customScalarAdapters, value.droidDetails) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/operationBased/fragments_with_type_condition/fragment/DroidDetailsImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/operationBased/fragments_with_type_condition/fragment/DroidDetailsImpl.kt.expected index 94df09bcb45..58d63b35828 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/operationBased/fragments_with_type_condition/fragment/DroidDetailsImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/operationBased/fragments_with_type_condition/fragment/DroidDetailsImpl.kt.expected @@ -30,8 +30,7 @@ public class DroidDetailsImpl() : Fragment { // This fragment doesn't have any variable } - override fun adapter(): Adapter = - DroidDetailsImpl_ResponseAdapter.DroidDetails.obj() + override fun adapter(): Adapter = DroidDetailsImpl_ResponseAdapter.DroidDetails.obj() override fun rootField(): CompiledField = CompiledField.Builder( name = "data", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/operationBased/fragments_with_type_condition/fragment/DroidDetailsImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/operationBased/fragments_with_type_condition/fragment/DroidDetailsImpl_ResponseAdapter.kt.expected index fb6b11afdcc..a3290991208 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/operationBased/fragments_with_type_condition/fragment/DroidDetailsImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/operationBased/fragments_with_type_condition/fragment/DroidDetailsImpl_ResponseAdapter.kt.expected @@ -16,12 +16,10 @@ import kotlin.String import kotlin.collections.List public object DroidDetailsImpl_ResponseAdapter { - public object DroidDetails : - Adapter { + public object DroidDetails : Adapter { public val RESPONSE_NAMES: List = listOf("name", "primaryFunction") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.fragments_with_type_condition.fragment.DroidDetails { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.fragments_with_type_condition.fragment.DroidDetails { var _name: String? = null var _primaryFunction: String? = null diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/operationBased/fragments_with_type_condition/fragment/HumanDetailsImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/operationBased/fragments_with_type_condition/fragment/HumanDetailsImpl.kt.expected index f35aff3043f..72f735eaef7 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/operationBased/fragments_with_type_condition/fragment/HumanDetailsImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/operationBased/fragments_with_type_condition/fragment/HumanDetailsImpl.kt.expected @@ -30,8 +30,7 @@ public class HumanDetailsImpl() : Fragment { // This fragment doesn't have any variable } - override fun adapter(): Adapter = - HumanDetailsImpl_ResponseAdapter.HumanDetails.obj() + override fun adapter(): Adapter = HumanDetailsImpl_ResponseAdapter.HumanDetails.obj() override fun rootField(): CompiledField = CompiledField.Builder( name = "data", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/operationBased/fragments_with_type_condition/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/operationBased/fragments_with_type_condition/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected index f5742f1f7b2..834ad654763 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/operationBased/fragments_with_type_condition/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/operationBased/fragments_with_type_condition/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected @@ -17,12 +17,10 @@ import kotlin.String import kotlin.collections.List public object HumanDetailsImpl_ResponseAdapter { - public object HumanDetails : - Adapter { + public object HumanDetails : Adapter { public val RESPONSE_NAMES: List = listOf("name", "height") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.fragments_with_type_condition.fragment.HumanDetails { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.fragments_with_type_condition.fragment.HumanDetails { var _name: String? = null var _height: Double? = null diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/responseBased/fragments_with_type_condition/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/responseBased/fragments_with_type_condition/TestQuery.kt.expected index b1c587e1a2c..0fd55265354 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/responseBased/fragments_with_type_condition/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/responseBased/fragments_with_type_condition/TestQuery.kt.expected @@ -85,7 +85,8 @@ public class TestQuery() : Query { * Height in the preferred unit, default is meters */ override val height: Double?, - ) : R2, HumanDetails + ) : R2, + HumanDetails public data class DroidR2( override val __typename: String, @@ -97,7 +98,8 @@ public class TestQuery() : Query { * This droid's primary function */ override val primaryFunction: String?, - ) : R2, DroidDetails + ) : R2, + DroidDetails public data class OtherR2( override val __typename: String, @@ -131,7 +133,8 @@ public class TestQuery() : Query { * Height in the preferred unit, default is meters */ override val height: Double?, - ) : Luke, HumanDetails + ) : Luke, + HumanDetails public data class DroidLuke( override val __typename: String, @@ -143,7 +146,8 @@ public class TestQuery() : Query { * This droid's primary function */ override val primaryFunction: String?, - ) : Luke, DroidDetails + ) : Luke, + DroidDetails public data class OtherLuke( override val __typename: String, @@ -184,8 +188,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { r2: hero { __typename ...HumanDetails ...DroidDetails } luke: hero { __typename ...HumanDetails ...DroidDetails } } fragment HumanDetails on Human { name height } fragment DroidDetails on Droid { name primaryFunction }" + get() = "query TestQuery { r2: hero { __typename ...HumanDetails ...DroidDetails } luke: hero { __typename ...HumanDetails ...DroidDetails } } fragment HumanDetails on Human { name height } fragment DroidDetails on Droid { name primaryFunction }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/responseBased/fragments_with_type_condition/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/responseBased/fragments_with_type_condition/adapter/TestQuery_ResponseAdapter.kt.expected index d25acba1412..8ed98afd74a 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/responseBased/fragments_with_type_condition/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/responseBased/fragments_with_type_condition/adapter/TestQuery_ResponseAdapter.kt.expected @@ -26,8 +26,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("r2", "luke") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _r2: TestQuery.Data.R2? = null var _luke: TestQuery.Data.Luke? = null @@ -58,8 +57,7 @@ public object TestQuery_ResponseAdapter { } private object R2 : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.R2 { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.R2 { val __typename = reader.readTypename() return when(__typename) { "Human", @@ -205,8 +203,7 @@ public object TestQuery_ResponseAdapter { } private object Luke : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Luke { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Luke { val __typename = reader.readTypename() return when(__typename) { "Human", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/responseBased/fragments_with_type_condition/fragment/DroidDetailsImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/responseBased/fragments_with_type_condition/fragment/DroidDetailsImpl.kt.expected index f1ba6a91f09..f2f7ef8c671 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/responseBased/fragments_with_type_condition/fragment/DroidDetailsImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/responseBased/fragments_with_type_condition/fragment/DroidDetailsImpl.kt.expected @@ -49,5 +49,6 @@ public class DroidDetailsImpl() : Fragment { * This droid's primary function */ override val primaryFunction: String?, - ) : DroidDetails, Fragment.Data + ) : DroidDetails, + Fragment.Data } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/responseBased/fragments_with_type_condition/fragment/DroidDetailsImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/responseBased/fragments_with_type_condition/fragment/DroidDetailsImpl_ResponseAdapter.kt.expected index 0724dba7d2d..2a11dfc6bfe 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/responseBased/fragments_with_type_condition/fragment/DroidDetailsImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/responseBased/fragments_with_type_condition/fragment/DroidDetailsImpl_ResponseAdapter.kt.expected @@ -19,8 +19,7 @@ public object DroidDetailsImpl_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("name", "primaryFunction") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - DroidDetailsImpl.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): DroidDetailsImpl.Data { var _name: String? = null var _primaryFunction: String? = null diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/responseBased/fragments_with_type_condition/fragment/HumanDetailsImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/responseBased/fragments_with_type_condition/fragment/HumanDetailsImpl.kt.expected index fe7e4c05bd3..3036a97d40a 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/responseBased/fragments_with_type_condition/fragment/HumanDetailsImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/responseBased/fragments_with_type_condition/fragment/HumanDetailsImpl.kt.expected @@ -50,5 +50,6 @@ public class HumanDetailsImpl() : Fragment { * Height in the preferred unit, default is meters */ override val height: Double?, - ) : HumanDetails, Fragment.Data + ) : HumanDetails, + Fragment.Data } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/responseBased/fragments_with_type_condition/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/responseBased/fragments_with_type_condition/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected index 04cf15cee3a..2c3a114a393 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/responseBased/fragments_with_type_condition/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/fragments_with_type_condition/kotlin/responseBased/fragments_with_type_condition/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected @@ -20,8 +20,7 @@ public object HumanDetailsImpl_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("name", "height") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - HumanDetailsImpl.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): HumanDetailsImpl.Data { var _name: String? = null var _height: Double? = null diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/hero_details/kotlin/responseBased/hero_details/HeroDetails.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/hero_details/kotlin/responseBased/hero_details/HeroDetails.kt.expected index 4bce7b9215e..7b39c9e1303 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/hero_details/kotlin/responseBased/hero_details/HeroDetails.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/hero_details/kotlin/responseBased/hero_details/HeroDetails.kt.expected @@ -123,8 +123,7 @@ public class HeroDetails() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query HeroDetails { hero { type name friendsConnection { totalCount edges { node { name } } } } }" + get() = "query HeroDetails { hero { type name friendsConnection { totalCount edges { node { name } } } } }" public const val OPERATION_NAME: String = "HeroDetails" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/hero_details/kotlin/responseBased/hero_details/adapter/HeroDetails_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/hero_details/kotlin/responseBased/hero_details/adapter/HeroDetails_ResponseAdapter.kt.expected index 7d8473a3f97..6df72295168 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/hero_details/kotlin/responseBased/hero_details/adapter/HeroDetails_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/hero_details/kotlin/responseBased/hero_details/adapter/HeroDetails_ResponseAdapter.kt.expected @@ -26,8 +26,7 @@ public object HeroDetails_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - HeroDetails.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): HeroDetails.Data { var _hero: HeroDetails.Data.Hero? = null while (true) { @@ -54,8 +53,7 @@ public object HeroDetails_ResponseAdapter { private object Hero : Adapter { public val RESPONSE_NAMES: List = listOf("type", "name", "friendsConnection") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - HeroDetails.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): HeroDetails.Data.Hero { var _type: Hero_type? = null var _name: String? = null var _friendsConnection: HeroDetails.Data.Hero.FriendsConnection? = null @@ -94,8 +92,7 @@ public object HeroDetails_ResponseAdapter { private object FriendsConnection : Adapter { public val RESPONSE_NAMES: List = listOf("totalCount", "edges") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - HeroDetails.Data.Hero.FriendsConnection { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): HeroDetails.Data.Hero.FriendsConnection { var _totalCount: Int? = null var _edges: List? = null @@ -128,8 +125,7 @@ public object HeroDetails_ResponseAdapter { private object Edge : Adapter { public val RESPONSE_NAMES: List = listOf("node") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - HeroDetails.Data.Hero.FriendsConnection.Edge { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): HeroDetails.Data.Hero.FriendsConnection.Edge { var _node: HeroDetails.Data.Hero.FriendsConnection.Edge.Node? = null while (true) { @@ -156,8 +152,7 @@ public object HeroDetails_ResponseAdapter { private object Node : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - HeroDetails.Data.Hero.FriendsConnection.Edge.Node { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): HeroDetails.Data.Hero.FriendsConnection.Edge.Node { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/hero_details/kotlin/responseBased/hero_details/type/hero_type.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/hero_details/kotlin/responseBased/hero_details/type/hero_type.kt.expected index b62e8649e50..d3b00d6c904 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/hero_details/kotlin/responseBased/hero_details/type/hero_type.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/hero_details/kotlin/responseBased/hero_details/type/hero_type.kt.expected @@ -47,10 +47,8 @@ public enum class Hero_type( /** * Returns the [Hero_type] that represents the specified [rawValue]. - * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your - * schema instead of calling this function directly. + * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your schema instead of calling this function directly. */ - public fun safeValueOf(rawValue: String): Hero_type = values().find { it.rawValue == rawValue } - ?: UNKNOWN__ + public fun safeValueOf(rawValue: String): Hero_type = values().find { it.rawValue == rawValue } ?: UNKNOWN__ } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/hero_details_semantic_naming/kotlin/responseBased/hero_details_semantic_naming/HeroDetailsQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/hero_details_semantic_naming/kotlin/responseBased/hero_details_semantic_naming/HeroDetailsQuery.kt.expected index acdf2da1c72..8ae51f69ff6 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/hero_details_semantic_naming/kotlin/responseBased/hero_details_semantic_naming/HeroDetailsQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/hero_details_semantic_naming/kotlin/responseBased/hero_details_semantic_naming/HeroDetailsQuery.kt.expected @@ -117,8 +117,7 @@ public class HeroDetailsQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query HeroDetails { hero { name friendsConnection { totalCount edges { node { name } } } } }" + get() = "query HeroDetails { hero { name friendsConnection { totalCount edges { node { name } } } } }" public const val OPERATION_NAME: String = "HeroDetails" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/hero_details_semantic_naming/kotlin/responseBased/hero_details_semantic_naming/adapter/HeroDetailsQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/hero_details_semantic_naming/kotlin/responseBased/hero_details_semantic_naming/adapter/HeroDetailsQuery_ResponseAdapter.kt.expected index 5cee767dabb..ba5ccbb00a5 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/hero_details_semantic_naming/kotlin/responseBased/hero_details_semantic_naming/adapter/HeroDetailsQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/hero_details_semantic_naming/kotlin/responseBased/hero_details_semantic_naming/adapter/HeroDetailsQuery_ResponseAdapter.kt.expected @@ -24,8 +24,7 @@ public object HeroDetailsQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - HeroDetailsQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): HeroDetailsQuery.Data { var _hero: HeroDetailsQuery.Data.Hero? = null while (true) { @@ -52,8 +51,7 @@ public object HeroDetailsQuery_ResponseAdapter { private object Hero : Adapter { public val RESPONSE_NAMES: List = listOf("name", "friendsConnection") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - HeroDetailsQuery.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): HeroDetailsQuery.Data.Hero { var _name: String? = null var _friendsConnection: HeroDetailsQuery.Data.Hero.FriendsConnection? = null @@ -86,8 +84,7 @@ public object HeroDetailsQuery_ResponseAdapter { private object FriendsConnection : Adapter { public val RESPONSE_NAMES: List = listOf("totalCount", "edges") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - HeroDetailsQuery.Data.Hero.FriendsConnection { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): HeroDetailsQuery.Data.Hero.FriendsConnection { var _totalCount: Int? = null var _edges: List? = null @@ -120,8 +117,7 @@ public object HeroDetailsQuery_ResponseAdapter { private object Edge : Adapter { public val RESPONSE_NAMES: List = listOf("node") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - HeroDetailsQuery.Data.Hero.FriendsConnection.Edge { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): HeroDetailsQuery.Data.Hero.FriendsConnection.Edge { var _node: HeroDetailsQuery.Data.Hero.FriendsConnection.Edge.Node? = null while (true) { @@ -148,8 +144,7 @@ public object HeroDetailsQuery_ResponseAdapter { private object Node : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - HeroDetailsQuery.Data.Hero.FriendsConnection.Edge.Node { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): HeroDetailsQuery.Data.Hero.FriendsConnection.Edge.Node { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/hero_name/kotlin/operationBased/hero_name/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/hero_name/kotlin/operationBased/hero_name/TestQuery.kt.expected index bc39928181e..ecc5b548be9 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/hero_name/kotlin/operationBased/hero_name/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/hero_name/kotlin/operationBased/hero_name/TestQuery.kt.expected @@ -98,8 +98,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { hero { __typename name birthDate ... on Droid { primaryFunction } } }" + get() = "query TestQuery { hero { __typename name birthDate ... on Droid { primaryFunction } } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/hero_name/kotlin/operationBased/hero_name/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/hero_name/kotlin/operationBased/hero_name/adapter/TestQuery_ResponseAdapter.kt.expected index f6683838b55..673d244811a 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/hero_name/kotlin/operationBased/hero_name/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/hero_name/kotlin/operationBased/hero_name/adapter/TestQuery_ResponseAdapter.kt.expected @@ -26,8 +26,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _hero: TestQuery.Data.Hero? = null while (true) { @@ -54,8 +53,7 @@ public object TestQuery_ResponseAdapter { private object Hero : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "name", "birthDate") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero { var __typename: String? = null var _name: String? = null var _birthDate: Any? = null @@ -76,8 +74,7 @@ public object TestQuery_ResponseAdapter { var _onDroid: TestQuery.Data.Hero.OnDroid? = null if (possibleTypes("Droid").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onDroid = com.example.hero_name.adapter.TestQuery_ResponseAdapter.Data.Hero.OnDroid.fromJson(reader, - customScalarAdapters) + _onDroid = com.example.hero_name.adapter.TestQuery_ResponseAdapter.Data.Hero.OnDroid.fromJson(reader, customScalarAdapters) } return TestQuery.Data.Hero( @@ -103,16 +100,14 @@ public object TestQuery_ResponseAdapter { AnyAdapter.toJson(writer, customScalarAdapters, value.birthDate) if (value.onDroid != null) { - com.example.hero_name.adapter.TestQuery_ResponseAdapter.Data.Hero.OnDroid.toJson(writer, - customScalarAdapters, value.onDroid) + com.example.hero_name.adapter.TestQuery_ResponseAdapter.Data.Hero.OnDroid.toJson(writer, customScalarAdapters, value.onDroid) } } private object OnDroid : Adapter { public val RESPONSE_NAMES: List = listOf("primaryFunction") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero.OnDroid { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero.OnDroid { var _primaryFunction: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/hero_name/kotlin/responseBased/hero_name/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/hero_name/kotlin/responseBased/hero_name/TestQuery.kt.expected index 9508d84294f..adabc0cf3a8 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/hero_name/kotlin/responseBased/hero_name/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/hero_name/kotlin/responseBased/hero_name/TestQuery.kt.expected @@ -123,8 +123,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { hero { __typename name birthDate ... on Droid { primaryFunction } } }" + get() = "query TestQuery { hero { __typename name birthDate ... on Droid { primaryFunction } } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/hero_name/kotlin/responseBased/hero_name/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/hero_name/kotlin/responseBased/hero_name/adapter/TestQuery_ResponseAdapter.kt.expected index 5950d49554a..11b3a0cc181 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/hero_name/kotlin/responseBased/hero_name/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/hero_name/kotlin/responseBased/hero_name/adapter/TestQuery_ResponseAdapter.kt.expected @@ -26,8 +26,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _hero: TestQuery.Data.Hero? = null while (true) { @@ -52,8 +51,7 @@ public object TestQuery_ResponseAdapter { } private object Hero : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero { val __typename = reader.readTypename() return when(__typename) { "Droid", @@ -76,8 +74,8 @@ public object TestQuery_ResponseAdapter { } public object DroidHero { - public val RESPONSE_NAMES: List = listOf("__typename", "name", "birthDate", - "primaryFunction") + public val RESPONSE_NAMES: List = + listOf("__typename", "name", "birthDate", "primaryFunction") public fun fromJson( reader: JsonReader, diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/hero_name_query_long_name/kotlin/responseBased/hero_name_query_long_name/TestQueryWithAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/hero_name_query_long_name/kotlin/responseBased/hero_name_query_long_name/TestQueryWithAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName.kt.expected index 5d157fdee9c..67cddcb5165 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/hero_name_query_long_name/kotlin/responseBased/hero_name_query_long_name/TestQueryWithAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/hero_name_query_long_name/kotlin/responseBased/hero_name_query_long_name/TestQueryWithAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName.kt.expected @@ -21,14 +21,10 @@ import kotlin.Boolean import kotlin.String import com.example.hero_name_query_long_name.type.Query as CompiledQuery -public data class - TestQueryWithAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName( - public - val episodeAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName: +public data class TestQueryWithAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName( + public val episodeAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName: Optional = Optional.Absent, -) : - Query - { +) : Query { override fun id(): String = OPERATION_ID override fun document(): String = OPERATION_DOCUMENT @@ -40,12 +36,10 @@ public data class customScalarAdapters: CustomScalarAdapters, withDefaultValues: Boolean, ) { - TestQueryWithAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName_VariablesAdapter.serializeVariables(writer, - this, customScalarAdapters, withDefaultValues) + TestQueryWithAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, withDefaultValues) } - override fun adapter(): Adapter = - TestQueryWithAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName_ResponseAdapter.Data.obj() + override fun adapter(): Adapter = TestQueryWithAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName_ResponseAdapter.Data.obj() override fun rootField(): CompiledField = CompiledField.Builder( name = "data", @@ -62,8 +56,7 @@ public data class /** * The name of the character */ - public - val nameAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName: + public val nameAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName: String, ) } @@ -77,20 +70,15 @@ public data class * The un-minimized version is: * * ``` - * query - * TestQueryWithAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName($episodeAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName: - * Episode) { - * heroAVeryAVeryAVeryAVeryAVeryAVeryAV: hero(episode: - * $episodeAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName) { - * nameAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName: - * name + * query TestQueryWithAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName($episodeAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName: Episode) { + * heroAVeryAVeryAVeryAVeryAVeryAVeryAV: hero(episode: $episodeAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName) { + * nameAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName: name * } * } * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQueryWithAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName(${'$'}episodeAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName: Episode) { heroAVeryAVeryAVeryAVeryAVeryAVeryAV: hero(episode: ${'$'}episodeAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName) { nameAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName: name } }" + get() = "query TestQueryWithAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName(${'$'}episodeAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName: Episode) { heroAVeryAVeryAVeryAVeryAVeryAVeryAV: hero(episode: ${'$'}episodeAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName) { nameAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName: name } }" public const val OPERATION_NAME: String = "TestQueryWithAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName" diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/hero_name_query_long_name/kotlin/responseBased/hero_name_query_long_name/adapter/TestQueryWithAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/hero_name_query_long_name/kotlin/responseBased/hero_name_query_long_name/adapter/TestQueryWithAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName_ResponseAdapter.kt.expected index 09f79e9695c..9db58ddc133 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/hero_name_query_long_name/kotlin/responseBased/hero_name_query_long_name/adapter/TestQueryWithAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/hero_name_query_long_name/kotlin/responseBased/hero_name_query_long_name/adapter/TestQueryWithAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName_ResponseAdapter.kt.expected @@ -17,16 +17,11 @@ import com.example.hero_name_query_long_name.TestQueryWithAVeryAVeryAVeryAVeryAV import kotlin.String import kotlin.collections.List -public object - TestQueryWithAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName_ResponseAdapter - { - public object Data : - Adapter - { +public object TestQueryWithAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName_ResponseAdapter { + public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("heroAVeryAVeryAVeryAVeryAVeryAVeryAV") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQueryWithAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQueryWithAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName.Data { var _heroAVeryAVeryAVeryAVeryAVeryAVeryAV: TestQueryWithAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName.Data.HeroAVeryAVeryAVeryAVeryAVeryAVeryAV? = null while (true) { @@ -47,18 +42,14 @@ public object `value`: TestQueryWithAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName.Data, ) { writer.name("heroAVeryAVeryAVeryAVeryAVeryAVeryAV") - HeroAVeryAVeryAVeryAVeryAVeryAVeryAV.obj().nullable().toJson(writer, customScalarAdapters, - value.heroAVeryAVeryAVeryAVeryAVeryAVeryAV) + HeroAVeryAVeryAVeryAVeryAVeryAVeryAV.obj().nullable().toJson(writer, customScalarAdapters, value.heroAVeryAVeryAVeryAVeryAVeryAVeryAV) } - private object HeroAVeryAVeryAVeryAVeryAVeryAVeryAV : - Adapter - { + private object HeroAVeryAVeryAVeryAVeryAVeryAVeryAV : Adapter { public val RESPONSE_NAMES: List = listOf("nameAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQueryWithAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName.Data.HeroAVeryAVeryAVeryAVeryAVeryAVeryAV { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQueryWithAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName.Data.HeroAVeryAVeryAVeryAVeryAVeryAVeryAV { var _nameAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName: String? = null while (true) { @@ -79,8 +70,7 @@ public object `value`: TestQueryWithAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName.Data.HeroAVeryAVeryAVeryAVeryAVeryAVeryAV, ) { writer.name("nameAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName") - StringAdapter.toJson(writer, customScalarAdapters, - value.nameAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName) + StringAdapter.toJson(writer, customScalarAdapters, value.nameAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/hero_name_query_long_name/kotlin/responseBased/hero_name_query_long_name/adapter/TestQueryWithAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName_VariablesAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/hero_name_query_long_name/kotlin/responseBased/hero_name_query_long_name/adapter/TestQueryWithAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName_VariablesAdapter.kt.expected index abede5c8c39..ff9012fedfd 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/hero_name_query_long_name/kotlin/responseBased/hero_name_query_long_name/adapter/TestQueryWithAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName_VariablesAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/hero_name_query_long_name/kotlin/responseBased/hero_name_query_long_name/adapter/TestQueryWithAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName_VariablesAdapter.kt.expected @@ -15,9 +15,7 @@ import com.example.hero_name_query_long_name.type.adapter.Episode_ResponseAdapte import kotlin.Boolean import kotlin.Suppress -public object - TestQueryWithAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName_VariablesAdapter - { +public object TestQueryWithAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName_VariablesAdapter { @Suppress( "UNUSED_PARAMETER", "UNUSED_VARIABLE", @@ -28,12 +26,9 @@ public object customScalarAdapters: CustomScalarAdapters, withDefaultValues: Boolean, ) { - if - (value.episodeAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName - is Optional.Present) { + if (value.episodeAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName is Optional.Present) { writer.name("episodeAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName") - Episode_ResponseAdapter.nullable().present().toJson(writer, customScalarAdapters, - value.episodeAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName) + Episode_ResponseAdapter.nullable().present().toJson(writer, customScalarAdapters, value.episodeAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongName) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/hero_name_query_long_name/kotlin/responseBased/hero_name_query_long_name/selections/TestQueryWithAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongNameSelections.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/hero_name_query_long_name/kotlin/responseBased/hero_name_query_long_name/selections/TestQueryWithAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongNameSelections.kt.expected index ea21e3292b5..cbd75c50770 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/hero_name_query_long_name/kotlin/responseBased/hero_name_query_long_name/selections/TestQueryWithAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongNameSelections.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/hero_name_query_long_name/kotlin/responseBased/hero_name_query_long_name/selections/TestQueryWithAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongNameSelections.kt.expected @@ -15,9 +15,7 @@ import com.example.hero_name_query_long_name.type.GraphQLString import com.example.hero_name_query_long_name.type.Query import kotlin.collections.List -public object - TestQueryWithAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongNameSelections - { +public object TestQueryWithAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryAVeryLongNameSelections { private val __hero: List = listOf( CompiledField.Builder( name = "name", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/hero_name_query_long_name/kotlin/responseBased/hero_name_query_long_name/type/Episode.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/hero_name_query_long_name/kotlin/responseBased/hero_name_query_long_name/type/Episode.kt.expected index 37b176f06cd..e849d678d9a 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/hero_name_query_long_name/kotlin/responseBased/hero_name_query_long_name/type/Episode.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/hero_name_query_long_name/kotlin/responseBased/hero_name_query_long_name/type/Episode.kt.expected @@ -47,8 +47,8 @@ public enum class Episode( ; public companion object { - public val type: EnumType = EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", - "DEPRECATED", "new")) + public val type: EnumType = + EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", "DEPRECATED", "new")) /** * All [Episode] known at compile time @@ -73,10 +73,8 @@ public enum class Episode( /** * Returns the [Episode] that represents the specified [rawValue]. - * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your - * schema instead of calling this function directly. + * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your schema instead of calling this function directly. */ - public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: - UNKNOWN__ + public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: UNKNOWN__ } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/hero_with_review/kotlin/responseBased/hero_with_review/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/hero_with_review/kotlin/responseBased/hero_with_review/TestQuery.kt.expected index d2779e27f60..6a1aaeb5dde 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/hero_with_review/kotlin/responseBased/hero_with_review/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/hero_with_review/kotlin/responseBased/hero_with_review/TestQuery.kt.expected @@ -35,8 +35,7 @@ public data class TestQuery( customScalarAdapters: CustomScalarAdapters, withDefaultValues: Boolean, ) { - TestQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, - withDefaultValues) + TestQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, withDefaultValues) } override fun adapter(): Adapter = TestQuery_ResponseAdapter.Data.obj() @@ -92,8 +91,7 @@ public data class TestQuery( * ``` */ public val OPERATION_DOCUMENT: String - get() = - "mutation TestQuery(${'$'}ep: Episode!) { createReview(episode: ${'$'}ep, review: { stars: 5 listOfEnums: [JEDI,EMPIRE,NEWHOPE] listOfStringNonOptional: [\"1\",\"2\",\"3\"] favoriteColor: { red: 1 blue: 1 } } ) { stars commentary } }" + get() = "mutation TestQuery(${'$'}ep: Episode!) { createReview(episode: ${'$'}ep, review: { stars: 5 listOfEnums: [JEDI,EMPIRE,NEWHOPE] listOfStringNonOptional: [\"1\",\"2\",\"3\"] favoriteColor: { red: 1 blue: 1 } } ) { stars commentary } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/hero_with_review/kotlin/responseBased/hero_with_review/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/hero_with_review/kotlin/responseBased/hero_with_review/adapter/TestQuery_ResponseAdapter.kt.expected index 6dd93b9b478..1848d408a26 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/hero_with_review/kotlin/responseBased/hero_with_review/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/hero_with_review/kotlin/responseBased/hero_with_review/adapter/TestQuery_ResponseAdapter.kt.expected @@ -23,8 +23,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("createReview") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _createReview: TestQuery.Data.CreateReview? = null while (true) { @@ -51,8 +50,7 @@ public object TestQuery_ResponseAdapter { private object CreateReview : Adapter { public val RESPONSE_NAMES: List = listOf("stars", "commentary") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.CreateReview { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.CreateReview { var _stars: Int? = null var _commentary: String? = null diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/hero_with_review/kotlin/responseBased/hero_with_review/type/Episode.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/hero_with_review/kotlin/responseBased/hero_with_review/type/Episode.kt.expected index 1a657ea0711..03bea9e55f6 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/hero_with_review/kotlin/responseBased/hero_with_review/type/Episode.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/hero_with_review/kotlin/responseBased/hero_with_review/type/Episode.kt.expected @@ -47,8 +47,8 @@ public enum class Episode( ; public companion object { - public val type: EnumType = EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", - "DEPRECATED", "new")) + public val type: EnumType = + EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", "DEPRECATED", "new")) /** * All [Episode] known at compile time @@ -73,10 +73,8 @@ public enum class Episode( /** * Returns the [Episode] that represents the specified [rawValue]. - * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your - * schema instead of calling this function directly. + * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your schema instead of calling this function directly. */ - public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: - UNKNOWN__ + public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: UNKNOWN__ } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_for_non_optional_field/kotlin/operationBased/inline_fragment_for_non_optional_field/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_for_non_optional_field/kotlin/operationBased/inline_fragment_for_non_optional_field/TestQuery.kt.expected index cd43cdca6b9..3a5c59e5fb2 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_for_non_optional_field/kotlin/operationBased/inline_fragment_for_non_optional_field/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_for_non_optional_field/kotlin/operationBased/inline_fragment_for_non_optional_field/TestQuery.kt.expected @@ -94,8 +94,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { nonOptionalHero(episode: EMPIRE) { __typename name ... on Human { height } } }" + get() = "query TestQuery { nonOptionalHero(episode: EMPIRE) { __typename name ... on Human { height } } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_for_non_optional_field/kotlin/operationBased/inline_fragment_for_non_optional_field/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_for_non_optional_field/kotlin/operationBased/inline_fragment_for_non_optional_field/adapter/TestQuery_ResponseAdapter.kt.expected index 280c936b4d5..e66365e8d67 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_for_non_optional_field/kotlin/operationBased/inline_fragment_for_non_optional_field/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_for_non_optional_field/kotlin/operationBased/inline_fragment_for_non_optional_field/adapter/TestQuery_ResponseAdapter.kt.expected @@ -24,8 +24,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("nonOptionalHero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _nonOptionalHero: TestQuery.Data.NonOptionalHero? = null while (true) { @@ -52,8 +51,7 @@ public object TestQuery_ResponseAdapter { private object NonOptionalHero : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.NonOptionalHero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.NonOptionalHero { var __typename: String? = null var _name: String? = null @@ -72,8 +70,7 @@ public object TestQuery_ResponseAdapter { var _onHuman: TestQuery.Data.NonOptionalHero.OnHuman? = null if (possibleTypes("Human").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onHuman = com.example.inline_fragment_for_non_optional_field.adapter.TestQuery_ResponseAdapter.Data.NonOptionalHero.OnHuman.fromJson(reader, - customScalarAdapters) + _onHuman = com.example.inline_fragment_for_non_optional_field.adapter.TestQuery_ResponseAdapter.Data.NonOptionalHero.OnHuman.fromJson(reader, customScalarAdapters) } return TestQuery.Data.NonOptionalHero( @@ -95,16 +92,14 @@ public object TestQuery_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.name) if (value.onHuman != null) { - com.example.inline_fragment_for_non_optional_field.adapter.TestQuery_ResponseAdapter.Data.NonOptionalHero.OnHuman.toJson(writer, - customScalarAdapters, value.onHuman) + com.example.inline_fragment_for_non_optional_field.adapter.TestQuery_ResponseAdapter.Data.NonOptionalHero.OnHuman.toJson(writer, customScalarAdapters, value.onHuman) } } private object OnHuman : Adapter { public val RESPONSE_NAMES: List = listOf("height") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.NonOptionalHero.OnHuman { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.NonOptionalHero.OnHuman { var _height: Double? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_for_non_optional_field/kotlin/responseBased/inline_fragment_for_non_optional_field/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_for_non_optional_field/kotlin/responseBased/inline_fragment_for_non_optional_field/TestQuery.kt.expected index 564bd199e3e..72b8d80121f 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_for_non_optional_field/kotlin/responseBased/inline_fragment_for_non_optional_field/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_for_non_optional_field/kotlin/responseBased/inline_fragment_for_non_optional_field/TestQuery.kt.expected @@ -110,8 +110,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { nonOptionalHero(episode: EMPIRE) { __typename name ... on Human { height } } }" + get() = "query TestQuery { nonOptionalHero(episode: EMPIRE) { __typename name ... on Human { height } } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_for_non_optional_field/kotlin/responseBased/inline_fragment_for_non_optional_field/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_for_non_optional_field/kotlin/responseBased/inline_fragment_for_non_optional_field/adapter/TestQuery_ResponseAdapter.kt.expected index cbab0a06b92..f1663a212e5 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_for_non_optional_field/kotlin/responseBased/inline_fragment_for_non_optional_field/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_for_non_optional_field/kotlin/responseBased/inline_fragment_for_non_optional_field/adapter/TestQuery_ResponseAdapter.kt.expected @@ -24,8 +24,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("nonOptionalHero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _nonOptionalHero: TestQuery.Data.NonOptionalHero? = null while (true) { @@ -50,8 +49,7 @@ public object TestQuery_ResponseAdapter { } private object NonOptionalHero : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.NonOptionalHero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.NonOptionalHero { val __typename = reader.readTypename() return when(__typename) { "Human", @@ -67,10 +65,8 @@ public object TestQuery_ResponseAdapter { `value`: TestQuery.Data.NonOptionalHero, ) { when(value) { - is TestQuery.Data.HumanNonOptionalHero -> HumanNonOptionalHero.toJson(writer, - customScalarAdapters, value) - is TestQuery.Data.OtherNonOptionalHero -> OtherNonOptionalHero.toJson(writer, - customScalarAdapters, value) + is TestQuery.Data.HumanNonOptionalHero -> HumanNonOptionalHero.toJson(writer, customScalarAdapters, value) + is TestQuery.Data.OtherNonOptionalHero -> OtherNonOptionalHero.toJson(writer, customScalarAdapters, value) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_inside_inline_fragment/kotlin/operationBased/inline_fragment_inside_inline_fragment/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_inside_inline_fragment/kotlin/operationBased/inline_fragment_inside_inline_fragment/TestQuery.kt.expected index cb7782f5064..7452ad2cca9 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_inside_inline_fragment/kotlin/operationBased/inline_fragment_inside_inline_fragment/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_inside_inline_fragment/kotlin/operationBased/inline_fragment_inside_inline_fragment/TestQuery.kt.expected @@ -121,8 +121,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { search(text: \"bla-bla\") { __typename ... on Character { __typename name ... on Human { homePlanet } ... on Droid { primaryFunction } } } }" + get() = "query TestQuery { search(text: \"bla-bla\") { __typename ... on Character { __typename name ... on Human { homePlanet } ... on Droid { primaryFunction } } } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_inside_inline_fragment/kotlin/operationBased/inline_fragment_inside_inline_fragment/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_inside_inline_fragment/kotlin/operationBased/inline_fragment_inside_inline_fragment/adapter/TestQuery_ResponseAdapter.kt.expected index 176c9e295d8..a6f8a94155f 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_inside_inline_fragment/kotlin/operationBased/inline_fragment_inside_inline_fragment/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_inside_inline_fragment/kotlin/operationBased/inline_fragment_inside_inline_fragment/adapter/TestQuery_ResponseAdapter.kt.expected @@ -25,8 +25,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("search") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _search: List? = null while (true) { @@ -47,15 +46,13 @@ public object TestQuery_ResponseAdapter { `value`: TestQuery.Data, ) { writer.name("search") - Search.obj(true).nullable().list().nullable().toJson(writer, customScalarAdapters, - value.search) + Search.obj(true).nullable().list().nullable().toJson(writer, customScalarAdapters, value.search) } private object Search : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Search { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Search { var __typename: String? = null while (true) { @@ -72,8 +69,7 @@ public object TestQuery_ResponseAdapter { var _onCharacter: TestQuery.Data.Search.OnCharacter? = null if (possibleTypes("Droid","Human").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onCharacter = com.example.inline_fragment_inside_inline_fragment.adapter.TestQuery_ResponseAdapter.Data.Search.OnCharacter.fromJson(reader, - customScalarAdapters) + _onCharacter = com.example.inline_fragment_inside_inline_fragment.adapter.TestQuery_ResponseAdapter.Data.Search.OnCharacter.fromJson(reader, customScalarAdapters) } return TestQuery.Data.Search( @@ -91,16 +87,14 @@ public object TestQuery_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.__typename) if (value.onCharacter != null) { - com.example.inline_fragment_inside_inline_fragment.adapter.TestQuery_ResponseAdapter.Data.Search.OnCharacter.toJson(writer, - customScalarAdapters, value.onCharacter) + com.example.inline_fragment_inside_inline_fragment.adapter.TestQuery_ResponseAdapter.Data.Search.OnCharacter.toJson(writer, customScalarAdapters, value.onCharacter) } } private object OnCharacter : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Search.OnCharacter { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Search.OnCharacter { var __typename: String? = null var _name: String? = null @@ -119,15 +113,13 @@ public object TestQuery_ResponseAdapter { var _onHuman: TestQuery.Data.Search.OnCharacter.OnHuman? = null if (possibleTypes("Human").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onHuman = com.example.inline_fragment_inside_inline_fragment.adapter.TestQuery_ResponseAdapter.Data.Search.OnCharacter.OnHuman.fromJson(reader, - customScalarAdapters) + _onHuman = com.example.inline_fragment_inside_inline_fragment.adapter.TestQuery_ResponseAdapter.Data.Search.OnCharacter.OnHuman.fromJson(reader, customScalarAdapters) } var _onDroid: TestQuery.Data.Search.OnCharacter.OnDroid? = null if (possibleTypes("Droid").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onDroid = com.example.inline_fragment_inside_inline_fragment.adapter.TestQuery_ResponseAdapter.Data.Search.OnCharacter.OnDroid.fromJson(reader, - customScalarAdapters) + _onDroid = com.example.inline_fragment_inside_inline_fragment.adapter.TestQuery_ResponseAdapter.Data.Search.OnCharacter.OnDroid.fromJson(reader, customScalarAdapters) } return TestQuery.Data.Search.OnCharacter( @@ -150,21 +142,18 @@ public object TestQuery_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.name) if (value.onHuman != null) { - com.example.inline_fragment_inside_inline_fragment.adapter.TestQuery_ResponseAdapter.Data.Search.OnCharacter.OnHuman.toJson(writer, - customScalarAdapters, value.onHuman) + com.example.inline_fragment_inside_inline_fragment.adapter.TestQuery_ResponseAdapter.Data.Search.OnCharacter.OnHuman.toJson(writer, customScalarAdapters, value.onHuman) } if (value.onDroid != null) { - com.example.inline_fragment_inside_inline_fragment.adapter.TestQuery_ResponseAdapter.Data.Search.OnCharacter.OnDroid.toJson(writer, - customScalarAdapters, value.onDroid) + com.example.inline_fragment_inside_inline_fragment.adapter.TestQuery_ResponseAdapter.Data.Search.OnCharacter.OnDroid.toJson(writer, customScalarAdapters, value.onDroid) } } private object OnHuman : Adapter { public val RESPONSE_NAMES: List = listOf("homePlanet") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Search.OnCharacter.OnHuman { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Search.OnCharacter.OnHuman { var _homePlanet: String? = null while (true) { @@ -192,8 +181,7 @@ public object TestQuery_ResponseAdapter { private object OnDroid : Adapter { public val RESPONSE_NAMES: List = listOf("primaryFunction") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Search.OnCharacter.OnDroid { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Search.OnCharacter.OnDroid { var _primaryFunction: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_inside_inline_fragment/kotlin/responseBased/inline_fragment_inside_inline_fragment/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_inside_inline_fragment/kotlin/responseBased/inline_fragment_inside_inline_fragment/TestQuery.kt.expected index d722196f89e..871f6f761b4 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_inside_inline_fragment/kotlin/responseBased/inline_fragment_inside_inline_fragment/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_inside_inline_fragment/kotlin/responseBased/inline_fragment_inside_inline_fragment/TestQuery.kt.expected @@ -136,8 +136,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { search(text: \"bla-bla\") { __typename ... on Character { __typename name ... on Human { homePlanet } ... on Droid { primaryFunction } } } }" + get() = "query TestQuery { search(text: \"bla-bla\") { __typename ... on Character { __typename name ... on Human { homePlanet } ... on Droid { primaryFunction } } } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_inside_inline_fragment/kotlin/responseBased/inline_fragment_inside_inline_fragment/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_inside_inline_fragment/kotlin/responseBased/inline_fragment_inside_inline_fragment/adapter/TestQuery_ResponseAdapter.kt.expected index f7076ba04e6..426bc0d291d 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_inside_inline_fragment/kotlin/responseBased/inline_fragment_inside_inline_fragment/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_inside_inline_fragment/kotlin/responseBased/inline_fragment_inside_inline_fragment/adapter/TestQuery_ResponseAdapter.kt.expected @@ -25,8 +25,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("search") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _search: List? = null while (true) { @@ -51,8 +50,7 @@ public object TestQuery_ResponseAdapter { } private object Search : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Search { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Search { val __typename = reader.readTypename() return when(__typename) { "Human", @@ -70,10 +68,8 @@ public object TestQuery_ResponseAdapter { `value`: TestQuery.Data.Search, ) { when(value) { - is TestQuery.Data.CharacterHumanSearch -> CharacterHumanSearch.toJson(writer, - customScalarAdapters, value) - is TestQuery.Data.CharacterDroidSearch -> CharacterDroidSearch.toJson(writer, - customScalarAdapters, value) + is TestQuery.Data.CharacterHumanSearch -> CharacterHumanSearch.toJson(writer, customScalarAdapters, value) + is TestQuery.Data.CharacterDroidSearch -> CharacterDroidSearch.toJson(writer, customScalarAdapters, value) is TestQuery.Data.OtherSearch -> OtherSearch.toJson(writer, customScalarAdapters, value) } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_intersection/kotlin/operationBased/inline_fragment_intersection/TestOperation.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_intersection/kotlin/operationBased/inline_fragment_intersection/TestOperation.kt.expected index 3088aa00907..3ed64cbb0cb 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_intersection/kotlin/operationBased/inline_fragment_intersection/TestOperation.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_intersection/kotlin/operationBased/inline_fragment_intersection/TestOperation.kt.expected @@ -170,8 +170,7 @@ public class TestOperation() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestOperation { random { __typename ... on Being { __typename name friends { __typename name ... on Wookie { lifeExpectancy } } ... on Human { profilePictureUrl friends { __typename isFamous ... on Wookie { race } } } } ... on Wookie { race friends { lifeExpectancy } } ... on Being { friends { __typename ... on Wookie { lifeExpectancy } } } } }" + get() = "query TestOperation { random { __typename ... on Being { __typename name friends { __typename name ... on Wookie { lifeExpectancy } } ... on Human { profilePictureUrl friends { __typename isFamous ... on Wookie { race } } } } ... on Wookie { race friends { lifeExpectancy } } ... on Being { friends { __typename ... on Wookie { lifeExpectancy } } } } }" public const val OPERATION_NAME: String = "TestOperation" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_intersection/kotlin/operationBased/inline_fragment_intersection/adapter/TestOperation_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_intersection/kotlin/operationBased/inline_fragment_intersection/adapter/TestOperation_ResponseAdapter.kt.expected index 48b8469bf72..d4440dcc4fe 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_intersection/kotlin/operationBased/inline_fragment_intersection/adapter/TestOperation_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_intersection/kotlin/operationBased/inline_fragment_intersection/adapter/TestOperation_ResponseAdapter.kt.expected @@ -30,8 +30,7 @@ public object TestOperation_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("random") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestOperation.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestOperation.Data { var _random: TestOperation.Data.Random? = null while (true) { @@ -58,8 +57,7 @@ public object TestOperation_ResponseAdapter { private object Random : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestOperation.Data.Random { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestOperation.Data.Random { var __typename: String? = null while (true) { @@ -76,15 +74,13 @@ public object TestOperation_ResponseAdapter { var _onBeing: TestOperation.Data.Random.OnBeing? = null if (possibleTypes("Human","Wookie").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onBeing = com.example.inline_fragment_intersection.adapter.TestOperation_ResponseAdapter.Data.Random.OnBeing.fromJson(reader, - customScalarAdapters) + _onBeing = com.example.inline_fragment_intersection.adapter.TestOperation_ResponseAdapter.Data.Random.OnBeing.fromJson(reader, customScalarAdapters) } var _onWookie: TestOperation.Data.Random.OnWookie? = null if (possibleTypes("Wookie").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onWookie = com.example.inline_fragment_intersection.adapter.TestOperation_ResponseAdapter.Data.Random.OnWookie.fromJson(reader, - customScalarAdapters) + _onWookie = com.example.inline_fragment_intersection.adapter.TestOperation_ResponseAdapter.Data.Random.OnWookie.fromJson(reader, customScalarAdapters) } return TestOperation.Data.Random( @@ -103,21 +99,18 @@ public object TestOperation_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.__typename) if (value.onBeing != null) { - com.example.inline_fragment_intersection.adapter.TestOperation_ResponseAdapter.Data.Random.OnBeing.toJson(writer, - customScalarAdapters, value.onBeing) + com.example.inline_fragment_intersection.adapter.TestOperation_ResponseAdapter.Data.Random.OnBeing.toJson(writer, customScalarAdapters, value.onBeing) } if (value.onWookie != null) { - com.example.inline_fragment_intersection.adapter.TestOperation_ResponseAdapter.Data.Random.OnWookie.toJson(writer, - customScalarAdapters, value.onWookie) + com.example.inline_fragment_intersection.adapter.TestOperation_ResponseAdapter.Data.Random.OnWookie.toJson(writer, customScalarAdapters, value.onWookie) } } private object OnBeing : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "name", "friends") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestOperation.Data.Random.OnBeing { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestOperation.Data.Random.OnBeing { var __typename: String? = null var _name: String? = null var _friends: List? = null @@ -138,8 +131,7 @@ public object TestOperation_ResponseAdapter { var _onHuman: TestOperation.Data.Random.OnBeing.OnHuman? = null if (possibleTypes("Human").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onHuman = com.example.inline_fragment_intersection.adapter.TestOperation_ResponseAdapter.Data.Random.OnBeing.OnHuman.fromJson(reader, - customScalarAdapters) + _onHuman = com.example.inline_fragment_intersection.adapter.TestOperation_ResponseAdapter.Data.Random.OnBeing.OnHuman.fromJson(reader, customScalarAdapters) } return TestOperation.Data.Random.OnBeing( @@ -165,16 +157,14 @@ public object TestOperation_ResponseAdapter { Friend.obj(true).list().toJson(writer, customScalarAdapters, value.friends) if (value.onHuman != null) { - com.example.inline_fragment_intersection.adapter.TestOperation_ResponseAdapter.Data.Random.OnBeing.OnHuman.toJson(writer, - customScalarAdapters, value.onHuman) + com.example.inline_fragment_intersection.adapter.TestOperation_ResponseAdapter.Data.Random.OnBeing.OnHuman.toJson(writer, customScalarAdapters, value.onHuman) } } private object Friend : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestOperation.Data.Random.OnBeing.Friend { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestOperation.Data.Random.OnBeing.Friend { var __typename: String? = null var _name: String? = null @@ -193,8 +183,7 @@ public object TestOperation_ResponseAdapter { var _onWookie: TestOperation.Data.Random.OnBeing.Friend.OnWookie? = null if (possibleTypes("Wookie").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onWookie = com.example.inline_fragment_intersection.adapter.TestOperation_ResponseAdapter.Data.Random.OnBeing.Friend.OnWookie.fromJson(reader, - customScalarAdapters) + _onWookie = com.example.inline_fragment_intersection.adapter.TestOperation_ResponseAdapter.Data.Random.OnBeing.Friend.OnWookie.fromJson(reader, customScalarAdapters) } return TestOperation.Data.Random.OnBeing.Friend( @@ -216,16 +205,14 @@ public object TestOperation_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.name) if (value.onWookie != null) { - com.example.inline_fragment_intersection.adapter.TestOperation_ResponseAdapter.Data.Random.OnBeing.Friend.OnWookie.toJson(writer, - customScalarAdapters, value.onWookie) + com.example.inline_fragment_intersection.adapter.TestOperation_ResponseAdapter.Data.Random.OnBeing.Friend.OnWookie.toJson(writer, customScalarAdapters, value.onWookie) } } private object OnWookie : Adapter { public val RESPONSE_NAMES: List = listOf("lifeExpectancy") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestOperation.Data.Random.OnBeing.Friend.OnWookie { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestOperation.Data.Random.OnBeing.Friend.OnWookie { var _lifeExpectancy: Double? = null while (true) { @@ -254,8 +241,7 @@ public object TestOperation_ResponseAdapter { private object OnHuman : Adapter { public val RESPONSE_NAMES: List = listOf("profilePictureUrl", "friends") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestOperation.Data.Random.OnBeing.OnHuman { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestOperation.Data.Random.OnBeing.OnHuman { var _profilePictureUrl: String? = null var _friends: List? = null @@ -288,8 +274,7 @@ public object TestOperation_ResponseAdapter { private object Friend : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "isFamous") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestOperation.Data.Random.OnBeing.OnHuman.Friend { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestOperation.Data.Random.OnBeing.OnHuman.Friend { var __typename: String? = null var _isFamous: Boolean? = null @@ -308,8 +293,7 @@ public object TestOperation_ResponseAdapter { var _onWookie: TestOperation.Data.Random.OnBeing.OnHuman.Friend.OnWookie? = null if (possibleTypes("Wookie").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onWookie = com.example.inline_fragment_intersection.adapter.TestOperation_ResponseAdapter.Data.Random.OnBeing.OnHuman.Friend.OnWookie.fromJson(reader, - customScalarAdapters) + _onWookie = com.example.inline_fragment_intersection.adapter.TestOperation_ResponseAdapter.Data.Random.OnBeing.OnHuman.Friend.OnWookie.fromJson(reader, customScalarAdapters) } return TestOperation.Data.Random.OnBeing.OnHuman.Friend( @@ -331,17 +315,14 @@ public object TestOperation_ResponseAdapter { NullableBooleanAdapter.toJson(writer, customScalarAdapters, value.isFamous) if (value.onWookie != null) { - com.example.inline_fragment_intersection.adapter.TestOperation_ResponseAdapter.Data.Random.OnBeing.OnHuman.Friend.OnWookie.toJson(writer, - customScalarAdapters, value.onWookie) + com.example.inline_fragment_intersection.adapter.TestOperation_ResponseAdapter.Data.Random.OnBeing.OnHuman.Friend.OnWookie.toJson(writer, customScalarAdapters, value.onWookie) } } - private object OnWookie : - Adapter { + private object OnWookie : Adapter { public val RESPONSE_NAMES: List = listOf("race") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestOperation.Data.Random.OnBeing.OnHuman.Friend.OnWookie { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestOperation.Data.Random.OnBeing.OnHuman.Friend.OnWookie { var _race: Race? = null while (true) { @@ -372,8 +353,7 @@ public object TestOperation_ResponseAdapter { private object OnWookie : Adapter { public val RESPONSE_NAMES: List = listOf("race", "friends") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestOperation.Data.Random.OnWookie { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestOperation.Data.Random.OnWookie { var _race: Race? = null var _friends: List? = null @@ -406,8 +386,7 @@ public object TestOperation_ResponseAdapter { private object Friend : Adapter { public val RESPONSE_NAMES: List = listOf("lifeExpectancy") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestOperation.Data.Random.OnWookie.Friend { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestOperation.Data.Random.OnWookie.Friend { var _lifeExpectancy: Double? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_intersection/kotlin/operationBased/inline_fragment_intersection/type/Race.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_intersection/kotlin/operationBased/inline_fragment_intersection/type/Race.kt.expected index f5414d95385..bd17e1ed82f 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_intersection/kotlin/operationBased/inline_fragment_intersection/type/Race.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_intersection/kotlin/operationBased/inline_fragment_intersection/type/Race.kt.expected @@ -46,10 +46,8 @@ public enum class Race( /** * Returns the [Race] that represents the specified [rawValue]. - * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your - * schema instead of calling this function directly. + * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your schema instead of calling this function directly. */ - public fun safeValueOf(rawValue: String): Race = values().find { it.rawValue == rawValue } ?: - UNKNOWN__ + public fun safeValueOf(rawValue: String): Race = values().find { it.rawValue == rawValue } ?: UNKNOWN__ } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_intersection/kotlin/responseBased/inline_fragment_intersection/TestOperation.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_intersection/kotlin/responseBased/inline_fragment_intersection/TestOperation.kt.expected index 547e216a904..a1a7273ff9b 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_intersection/kotlin/responseBased/inline_fragment_intersection/TestOperation.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_intersection/kotlin/responseBased/inline_fragment_intersection/TestOperation.kt.expected @@ -138,13 +138,15 @@ public class TestOperation() : Query { override val lifeExpectancy: Double?, override val isFamous: Boolean?, public val race: Race, - ) : Friend, BeingRandom.WookieFriend + ) : Friend, + BeingRandom.WookieFriend public data class OtherFriend( override val __typename: String, override val name: String, override val isFamous: Boolean?, - ) : Friend, BeingRandom.Friend + ) : Friend, + BeingRandom.Friend } public data class BeingWookieRandom( @@ -152,7 +154,8 @@ public class TestOperation() : Query { override val name: String, override val friends: List, override val race: Race, - ) : BeingRandom, WookieRandom { + ) : BeingRandom, + WookieRandom { public sealed interface Friend : BeingRandom.Friend, WookieRandom.Friend { override val __typename: String @@ -170,13 +173,17 @@ public class TestOperation() : Query { override val __typename: String, override val name: String, override val lifeExpectancy: Double?, - ) : Friend, BeingRandom.WookieFriend, WookieRandom.Friend + ) : Friend, + BeingRandom.WookieFriend, + WookieRandom.Friend public data class OtherFriend( override val __typename: String, override val name: String, override val lifeExpectancy: Double?, - ) : Friend, BeingRandom.Friend, WookieRandom.Friend + ) : Friend, + BeingRandom.Friend, + WookieRandom.Friend } public data class OtherRandom( @@ -236,8 +243,7 @@ public class TestOperation() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestOperation { random { __typename ... on Being { __typename name friends { __typename name ... on Wookie { lifeExpectancy } } ... on Human { profilePictureUrl friends { __typename isFamous ... on Wookie { race } } } } ... on Wookie { race friends { lifeExpectancy } } ... on Being { friends { __typename ... on Wookie { lifeExpectancy } } } } }" + get() = "query TestOperation { random { __typename ... on Being { __typename name friends { __typename name ... on Wookie { lifeExpectancy } } ... on Human { profilePictureUrl friends { __typename isFamous ... on Wookie { race } } } } ... on Wookie { race friends { lifeExpectancy } } ... on Being { friends { __typename ... on Wookie { lifeExpectancy } } } } }" public const val OPERATION_NAME: String = "TestOperation" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_intersection/kotlin/responseBased/inline_fragment_intersection/adapter/TestOperation_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_intersection/kotlin/responseBased/inline_fragment_intersection/adapter/TestOperation_ResponseAdapter.kt.expected index c1fac9bf903..ecd5affac1b 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_intersection/kotlin/responseBased/inline_fragment_intersection/adapter/TestOperation_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_intersection/kotlin/responseBased/inline_fragment_intersection/adapter/TestOperation_ResponseAdapter.kt.expected @@ -30,8 +30,7 @@ public object TestOperation_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("random") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestOperation.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestOperation.Data { var _random: TestOperation.Data.Random? = null while (true) { @@ -56,8 +55,7 @@ public object TestOperation_ResponseAdapter { } private object Random : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestOperation.Data.Random { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestOperation.Data.Random { val __typename = reader.readTypename() return when(__typename) { "Human", @@ -75,19 +73,16 @@ public object TestOperation_ResponseAdapter { `value`: TestOperation.Data.Random, ) { when(value) { - is TestOperation.Data.BeingHumanRandom -> BeingHumanRandom.toJson(writer, - customScalarAdapters, value) - is TestOperation.Data.BeingWookieRandom -> BeingWookieRandom.toJson(writer, - customScalarAdapters, value) - is TestOperation.Data.OtherRandom -> OtherRandom.toJson(writer, customScalarAdapters, - value) + is TestOperation.Data.BeingHumanRandom -> BeingHumanRandom.toJson(writer, customScalarAdapters, value) + is TestOperation.Data.BeingWookieRandom -> BeingWookieRandom.toJson(writer, customScalarAdapters, value) + is TestOperation.Data.OtherRandom -> OtherRandom.toJson(writer, customScalarAdapters, value) } } } public object BeingHumanRandom { - public val RESPONSE_NAMES: List = listOf("__typename", "name", "friends", - "profilePictureUrl") + public val RESPONSE_NAMES: List = + listOf("__typename", "name", "friends", "profilePictureUrl") public fun fromJson( reader: JsonReader, @@ -136,8 +131,7 @@ public object TestOperation_ResponseAdapter { } private object Friend : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestOperation.Data.BeingHumanRandom.Friend { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestOperation.Data.BeingHumanRandom.Friend { val __typename = reader.readTypename() return when(__typename) { "Wookie", @@ -153,17 +147,15 @@ public object TestOperation_ResponseAdapter { `value`: TestOperation.Data.BeingHumanRandom.Friend, ) { when(value) { - is TestOperation.Data.BeingHumanRandom.WookieFriend -> WookieFriend.toJson(writer, - customScalarAdapters, value) - is TestOperation.Data.BeingHumanRandom.OtherFriend -> OtherFriend.toJson(writer, - customScalarAdapters, value) + is TestOperation.Data.BeingHumanRandom.WookieFriend -> WookieFriend.toJson(writer, customScalarAdapters, value) + is TestOperation.Data.BeingHumanRandom.OtherFriend -> OtherFriend.toJson(writer, customScalarAdapters, value) } } } public object WookieFriend { - public val RESPONSE_NAMES: List = listOf("__typename", "name", "lifeExpectancy", - "isFamous", "race") + public val RESPONSE_NAMES: List = + listOf("__typename", "name", "lifeExpectancy", "isFamous", "race") public fun fromJson( reader: JsonReader, @@ -313,8 +305,7 @@ public object TestOperation_ResponseAdapter { } private object Friend : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestOperation.Data.BeingWookieRandom.Friend { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestOperation.Data.BeingWookieRandom.Friend { val __typename = reader.readTypename() return when(__typename) { "Wookie", @@ -330,10 +321,8 @@ public object TestOperation_ResponseAdapter { `value`: TestOperation.Data.BeingWookieRandom.Friend, ) { when(value) { - is TestOperation.Data.BeingWookieRandom.WookieFriend -> WookieFriend.toJson(writer, - customScalarAdapters, value) - is TestOperation.Data.BeingWookieRandom.OtherFriend -> OtherFriend.toJson(writer, - customScalarAdapters, value) + is TestOperation.Data.BeingWookieRandom.WookieFriend -> WookieFriend.toJson(writer, customScalarAdapters, value) + is TestOperation.Data.BeingWookieRandom.OtherFriend -> OtherFriend.toJson(writer, customScalarAdapters, value) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_intersection/kotlin/responseBased/inline_fragment_intersection/type/Race.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_intersection/kotlin/responseBased/inline_fragment_intersection/type/Race.kt.expected index f5414d95385..bd17e1ed82f 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_intersection/kotlin/responseBased/inline_fragment_intersection/type/Race.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_intersection/kotlin/responseBased/inline_fragment_intersection/type/Race.kt.expected @@ -46,10 +46,8 @@ public enum class Race( /** * Returns the [Race] that represents the specified [rawValue]. - * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your - * schema instead of calling this function directly. + * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your schema instead of calling this function directly. */ - public fun safeValueOf(rawValue: String): Race = values().find { it.rawValue == rawValue } ?: - UNKNOWN__ + public fun safeValueOf(rawValue: String): Race = values().find { it.rawValue == rawValue } ?: UNKNOWN__ } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_merge_fields/kotlin/operationBased/inline_fragment_merge_fields/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_merge_fields/kotlin/operationBased/inline_fragment_merge_fields/TestQuery.kt.expected index bd989a665c3..efeca36c02f 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_merge_fields/kotlin/operationBased/inline_fragment_merge_fields/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_merge_fields/kotlin/operationBased/inline_fragment_merge_fields/TestQuery.kt.expected @@ -167,8 +167,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { hero { __typename name friendsConnection { edges { node { name } } } ... on Character { name profileLink friendsConnection { edges { node { name } } } } } }" + get() = "query TestQuery { hero { __typename name friendsConnection { edges { node { name } } } ... on Character { name profileLink friendsConnection { edges { node { name } } } } } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_merge_fields/kotlin/operationBased/inline_fragment_merge_fields/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_merge_fields/kotlin/operationBased/inline_fragment_merge_fields/adapter/TestQuery_ResponseAdapter.kt.expected index df5311e802d..d2036723147 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_merge_fields/kotlin/operationBased/inline_fragment_merge_fields/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_merge_fields/kotlin/operationBased/inline_fragment_merge_fields/adapter/TestQuery_ResponseAdapter.kt.expected @@ -24,8 +24,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _hero: TestQuery.Data.Hero? = null while (true) { @@ -52,8 +51,7 @@ public object TestQuery_ResponseAdapter { private object Hero : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "name", "friendsConnection") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero { var __typename: String? = null var _name: String? = null var _friendsConnection: TestQuery.Data.Hero.FriendsConnection? = null @@ -68,8 +66,7 @@ public object TestQuery_ResponseAdapter { } reader.rewind() - val _onCharacter = com.example.inline_fragment_merge_fields.adapter.TestQuery_ResponseAdapter.Data.Hero.OnCharacter.fromJson(reader, - customScalarAdapters) + val _onCharacter = com.example.inline_fragment_merge_fields.adapter.TestQuery_ResponseAdapter.Data.Hero.OnCharacter.fromJson(reader, customScalarAdapters) return TestQuery.Data.Hero( __typename = __typename ?: missingField(reader, "__typename"), @@ -93,15 +90,13 @@ public object TestQuery_ResponseAdapter { writer.name("friendsConnection") FriendsConnection.obj().toJson(writer, customScalarAdapters, value.friendsConnection) - com.example.inline_fragment_merge_fields.adapter.TestQuery_ResponseAdapter.Data.Hero.OnCharacter.toJson(writer, - customScalarAdapters, value.onCharacter) + com.example.inline_fragment_merge_fields.adapter.TestQuery_ResponseAdapter.Data.Hero.OnCharacter.toJson(writer, customScalarAdapters, value.onCharacter) } private object FriendsConnection : Adapter { public val RESPONSE_NAMES: List = listOf("edges") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero.FriendsConnection { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero.FriendsConnection { var _edges: List? = null while (true) { @@ -128,8 +123,7 @@ public object TestQuery_ResponseAdapter { private object Edge : Adapter { public val RESPONSE_NAMES: List = listOf("node") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero.FriendsConnection.Edge { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero.FriendsConnection.Edge { var _node: TestQuery.Data.Hero.FriendsConnection.Edge.Node? = null while (true) { @@ -156,8 +150,7 @@ public object TestQuery_ResponseAdapter { private object Node : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero.FriendsConnection.Edge.Node { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero.FriendsConnection.Edge.Node { var _name: String? = null while (true) { @@ -187,8 +180,7 @@ public object TestQuery_ResponseAdapter { private object OnCharacter : Adapter { public val RESPONSE_NAMES: List = listOf("name", "profileLink", "friendsConnection") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero.OnCharacter { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero.OnCharacter { var _name: String? = null var _profileLink: Any? = null var _friendsConnection: TestQuery.Data.Hero.OnCharacter.FriendsConnection? = null @@ -224,12 +216,10 @@ public object TestQuery_ResponseAdapter { FriendsConnection.obj().toJson(writer, customScalarAdapters, value.friendsConnection) } - private object FriendsConnection : - Adapter { + private object FriendsConnection : Adapter { public val RESPONSE_NAMES: List = listOf("edges") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero.OnCharacter.FriendsConnection { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero.OnCharacter.FriendsConnection { var _edges: List? = null while (true) { @@ -250,15 +240,13 @@ public object TestQuery_ResponseAdapter { `value`: TestQuery.Data.Hero.OnCharacter.FriendsConnection, ) { writer.name("edges") - Edge.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, - value.edges) + Edge.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, value.edges) } private object Edge : Adapter { public val RESPONSE_NAMES: List = listOf("node") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero.OnCharacter.FriendsConnection.Edge { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero.OnCharacter.FriendsConnection.Edge { var _node: TestQuery.Data.Hero.OnCharacter.FriendsConnection.Edge.Node? = null while (true) { @@ -282,12 +270,10 @@ public object TestQuery_ResponseAdapter { Node.obj().nullable().toJson(writer, customScalarAdapters, value.node) } - private object Node : - Adapter { + private object Node : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero.OnCharacter.FriendsConnection.Edge.Node { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero.OnCharacter.FriendsConnection.Edge.Node { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_merge_fields/kotlin/responseBased/inline_fragment_merge_fields/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_merge_fields/kotlin/responseBased/inline_fragment_merge_fields/TestQuery.kt.expected index 1f4a486465d..73997f517ad 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_merge_fields/kotlin/responseBased/inline_fragment_merge_fields/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_merge_fields/kotlin/responseBased/inline_fragment_merge_fields/TestQuery.kt.expected @@ -129,8 +129,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { hero { __typename name friendsConnection { edges { node { name } } } ... on Character { name profileLink friendsConnection { edges { node { name } } } } } }" + get() = "query TestQuery { hero { __typename name friendsConnection { edges { node { name } } } ... on Character { name profileLink friendsConnection { edges { node { name } } } } } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_merge_fields/kotlin/responseBased/inline_fragment_merge_fields/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_merge_fields/kotlin/responseBased/inline_fragment_merge_fields/adapter/TestQuery_ResponseAdapter.kt.expected index 2fa8b0c747f..7f4b2b263f4 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_merge_fields/kotlin/responseBased/inline_fragment_merge_fields/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_merge_fields/kotlin/responseBased/inline_fragment_merge_fields/adapter/TestQuery_ResponseAdapter.kt.expected @@ -24,8 +24,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _hero: TestQuery.Data.Hero? = null while (true) { @@ -50,11 +49,10 @@ public object TestQuery_ResponseAdapter { } private object Hero : Adapter { - public val RESPONSE_NAMES: List = listOf("__typename", "name", "friendsConnection", - "profileLink") + public val RESPONSE_NAMES: List = + listOf("__typename", "name", "friendsConnection", "profileLink") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero { var __typename: String? = null var _name: String? = null var _friendsConnection: TestQuery.Data.Hero.FriendsConnection? = null @@ -99,8 +97,7 @@ public object TestQuery_ResponseAdapter { private object FriendsConnection : Adapter { public val RESPONSE_NAMES: List = listOf("edges") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero.FriendsConnection { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero.FriendsConnection { var _edges: List? = null while (true) { @@ -127,8 +124,7 @@ public object TestQuery_ResponseAdapter { private object Edge : Adapter { public val RESPONSE_NAMES: List = listOf("node") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero.FriendsConnection.Edge { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero.FriendsConnection.Edge { var _node: TestQuery.Data.Hero.FriendsConnection.Edge.Node? = null while (true) { @@ -155,8 +151,7 @@ public object TestQuery_ResponseAdapter { private object Node : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero.FriendsConnection.Edge.Node { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero.FriendsConnection.Edge.Node { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_simple/kotlin/operationBased/inline_fragment_simple/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_simple/kotlin/operationBased/inline_fragment_simple/adapter/TestQuery_ResponseAdapter.kt.expected index ed9d876d004..7ab1d1e0055 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_simple/kotlin/operationBased/inline_fragment_simple/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_simple/kotlin/operationBased/inline_fragment_simple/adapter/TestQuery_ResponseAdapter.kt.expected @@ -24,8 +24,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _hero: TestQuery.Data.Hero? = null while (true) { @@ -52,8 +51,7 @@ public object TestQuery_ResponseAdapter { private object Hero : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero { var __typename: String? = null while (true) { @@ -70,8 +68,7 @@ public object TestQuery_ResponseAdapter { var _onHuman: TestQuery.Data.Hero.OnHuman? = null if (possibleTypes("Human").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onHuman = com.example.inline_fragment_simple.adapter.TestQuery_ResponseAdapter.Data.Hero.OnHuman.fromJson(reader, - customScalarAdapters) + _onHuman = com.example.inline_fragment_simple.adapter.TestQuery_ResponseAdapter.Data.Hero.OnHuman.fromJson(reader, customScalarAdapters) } return TestQuery.Data.Hero( @@ -89,16 +86,14 @@ public object TestQuery_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.__typename) if (value.onHuman != null) { - com.example.inline_fragment_simple.adapter.TestQuery_ResponseAdapter.Data.Hero.OnHuman.toJson(writer, - customScalarAdapters, value.onHuman) + com.example.inline_fragment_simple.adapter.TestQuery_ResponseAdapter.Data.Hero.OnHuman.toJson(writer, customScalarAdapters, value.onHuman) } } private object OnHuman : Adapter { public val RESPONSE_NAMES: List = listOf("height") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero.OnHuman { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero.OnHuman { var _height: Double? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_simple/kotlin/responseBased/inline_fragment_simple/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_simple/kotlin/responseBased/inline_fragment_simple/adapter/TestQuery_ResponseAdapter.kt.expected index 43daae2f14b..ce1f7fc40f5 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_simple/kotlin/responseBased/inline_fragment_simple/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_simple/kotlin/responseBased/inline_fragment_simple/adapter/TestQuery_ResponseAdapter.kt.expected @@ -25,8 +25,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _hero: TestQuery.Data.Hero? = null while (true) { @@ -51,8 +50,7 @@ public object TestQuery_ResponseAdapter { } private object Hero : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero { val __typename = reader.readTypename() return when(__typename) { "Human", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_type_coercion/kotlin/operationBased/inline_fragment_type_coercion/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_type_coercion/kotlin/operationBased/inline_fragment_type_coercion/adapter/TestQuery_ResponseAdapter.kt.expected index 8fce3c9175b..09d19148f9f 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_type_coercion/kotlin/operationBased/inline_fragment_type_coercion/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_type_coercion/kotlin/operationBased/inline_fragment_type_coercion/adapter/TestQuery_ResponseAdapter.kt.expected @@ -23,8 +23,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("foo") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _foo: TestQuery.Data.Foo? = null while (true) { @@ -51,8 +50,7 @@ public object TestQuery_ResponseAdapter { private object Foo : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "foo") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Foo { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Foo { var __typename: String? = null var _foo: String? = null @@ -71,8 +69,7 @@ public object TestQuery_ResponseAdapter { var _onBar: TestQuery.Data.Foo.OnBar? = null if (possibleTypes("BarObject","FooBar").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onBar = com.example.inline_fragment_type_coercion.adapter.TestQuery_ResponseAdapter.Data.Foo.OnBar.fromJson(reader, - customScalarAdapters) + _onBar = com.example.inline_fragment_type_coercion.adapter.TestQuery_ResponseAdapter.Data.Foo.OnBar.fromJson(reader, customScalarAdapters) } return TestQuery.Data.Foo( @@ -94,16 +91,14 @@ public object TestQuery_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.foo) if (value.onBar != null) { - com.example.inline_fragment_type_coercion.adapter.TestQuery_ResponseAdapter.Data.Foo.OnBar.toJson(writer, - customScalarAdapters, value.onBar) + com.example.inline_fragment_type_coercion.adapter.TestQuery_ResponseAdapter.Data.Foo.OnBar.toJson(writer, customScalarAdapters, value.onBar) } } private object OnBar : Adapter { public val RESPONSE_NAMES: List = listOf("bar") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Foo.OnBar { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Foo.OnBar { var _bar: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_type_coercion/kotlin/responseBased/inline_fragment_type_coercion/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_type_coercion/kotlin/responseBased/inline_fragment_type_coercion/adapter/TestQuery_ResponseAdapter.kt.expected index 33f9fb4c4b6..e2503cccc60 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_type_coercion/kotlin/responseBased/inline_fragment_type_coercion/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_type_coercion/kotlin/responseBased/inline_fragment_type_coercion/adapter/TestQuery_ResponseAdapter.kt.expected @@ -23,8 +23,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("foo") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _foo: TestQuery.Data.Foo? = null while (true) { @@ -49,8 +48,7 @@ public object TestQuery_ResponseAdapter { } private object Foo : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Foo { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Foo { val __typename = reader.readTypename() return when(__typename) { "FooBar", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_with_include_directive/kotlin/operationBased/inline_fragment_with_include_directive/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_with_include_directive/kotlin/operationBased/inline_fragment_with_include_directive/TestQuery.kt.expected index 8a3048680fd..68893363742 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_with_include_directive/kotlin/operationBased/inline_fragment_with_include_directive/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_with_include_directive/kotlin/operationBased/inline_fragment_with_include_directive/TestQuery.kt.expected @@ -34,8 +34,7 @@ public data class TestQuery( customScalarAdapters: CustomScalarAdapters, withDefaultValues: Boolean, ) { - TestQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, - withDefaultValues) + TestQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, withDefaultValues) } override fun adapter(): Adapter = TestQuery_ResponseAdapter.Data.obj() @@ -130,8 +129,7 @@ public data class TestQuery( * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery(${'$'}withDetails: Boolean!, ${'$'}skipHumanDetails: Boolean!) { hero { __typename id ... on Human @include(if: ${'$'}withDetails) @skip(if: ${'$'}skipHumanDetails) { name homePlanet } ... on Droid @include(if: ${'$'}withDetails) { name primaryFunction } ... on Character @include(if: ${'$'}withDetails) { name } } }" + get() = "query TestQuery(${'$'}withDetails: Boolean!, ${'$'}skipHumanDetails: Boolean!) { hero { __typename id ... on Human @include(if: ${'$'}withDetails) @skip(if: ${'$'}skipHumanDetails) { name homePlanet } ... on Droid @include(if: ${'$'}withDetails) { name primaryFunction } ... on Character @include(if: ${'$'}withDetails) { name } } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_with_include_directive/kotlin/operationBased/inline_fragment_with_include_directive/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_with_include_directive/kotlin/operationBased/inline_fragment_with_include_directive/adapter/TestQuery_ResponseAdapter.kt.expected index 58f93bd6b0c..73a167d9ddd 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_with_include_directive/kotlin/operationBased/inline_fragment_with_include_directive/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_with_include_directive/kotlin/operationBased/inline_fragment_with_include_directive/adapter/TestQuery_ResponseAdapter.kt.expected @@ -27,8 +27,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _hero: TestQuery.Data.Hero? = null while (true) { @@ -55,8 +54,7 @@ public object TestQuery_ResponseAdapter { private object Hero : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "id") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero { var __typename: String? = null var _id: String? = null @@ -75,22 +73,19 @@ public object TestQuery_ResponseAdapter { var _onHuman: TestQuery.Data.Hero.OnHuman? = null if (and(possibleTypes("Human"),and(variable("withDetails"),not(variable("skipHumanDetails")))).evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onHuman = com.example.inline_fragment_with_include_directive.adapter.TestQuery_ResponseAdapter.Data.Hero.OnHuman.fromJson(reader, - customScalarAdapters) + _onHuman = com.example.inline_fragment_with_include_directive.adapter.TestQuery_ResponseAdapter.Data.Hero.OnHuman.fromJson(reader, customScalarAdapters) } var _onDroid: TestQuery.Data.Hero.OnDroid? = null if (and(possibleTypes("Droid"),variable("withDetails")).evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onDroid = com.example.inline_fragment_with_include_directive.adapter.TestQuery_ResponseAdapter.Data.Hero.OnDroid.fromJson(reader, - customScalarAdapters) + _onDroid = com.example.inline_fragment_with_include_directive.adapter.TestQuery_ResponseAdapter.Data.Hero.OnDroid.fromJson(reader, customScalarAdapters) } var _onCharacter: TestQuery.Data.Hero.OnCharacter? = null if (variable("withDetails").evaluate(customScalarAdapters.falseVariables, null, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onCharacter = com.example.inline_fragment_with_include_directive.adapter.TestQuery_ResponseAdapter.Data.Hero.OnCharacter.fromJson(reader, - customScalarAdapters) + _onCharacter = com.example.inline_fragment_with_include_directive.adapter.TestQuery_ResponseAdapter.Data.Hero.OnCharacter.fromJson(reader, customScalarAdapters) } return TestQuery.Data.Hero( @@ -114,26 +109,22 @@ public object TestQuery_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.id) if (value.onHuman != null) { - com.example.inline_fragment_with_include_directive.adapter.TestQuery_ResponseAdapter.Data.Hero.OnHuman.toJson(writer, - customScalarAdapters, value.onHuman) + com.example.inline_fragment_with_include_directive.adapter.TestQuery_ResponseAdapter.Data.Hero.OnHuman.toJson(writer, customScalarAdapters, value.onHuman) } if (value.onDroid != null) { - com.example.inline_fragment_with_include_directive.adapter.TestQuery_ResponseAdapter.Data.Hero.OnDroid.toJson(writer, - customScalarAdapters, value.onDroid) + com.example.inline_fragment_with_include_directive.adapter.TestQuery_ResponseAdapter.Data.Hero.OnDroid.toJson(writer, customScalarAdapters, value.onDroid) } if (value.onCharacter != null) { - com.example.inline_fragment_with_include_directive.adapter.TestQuery_ResponseAdapter.Data.Hero.OnCharacter.toJson(writer, - customScalarAdapters, value.onCharacter) + com.example.inline_fragment_with_include_directive.adapter.TestQuery_ResponseAdapter.Data.Hero.OnCharacter.toJson(writer, customScalarAdapters, value.onCharacter) } } private object OnHuman : Adapter { public val RESPONSE_NAMES: List = listOf("name", "homePlanet") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero.OnHuman { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero.OnHuman { var _name: String? = null var _homePlanet: String? = null @@ -167,8 +158,7 @@ public object TestQuery_ResponseAdapter { private object OnDroid : Adapter { public val RESPONSE_NAMES: List = listOf("name", "primaryFunction") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero.OnDroid { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero.OnDroid { var _name: String? = null var _primaryFunction: String? = null @@ -202,8 +192,7 @@ public object TestQuery_ResponseAdapter { private object OnCharacter : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero.OnCharacter { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero.OnCharacter { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_with_include_directive/kotlin/operationBased/inline_fragment_with_include_directive/selections/TestQuerySelections.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_with_include_directive/kotlin/operationBased/inline_fragment_with_include_directive/selections/TestQuerySelections.kt.expected index 436db4194cc..97067eee91d 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_with_include_directive/kotlin/operationBased/inline_fragment_with_include_directive/selections/TestQuerySelections.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragment_with_include_directive/kotlin/operationBased/inline_fragment_with_include_directive/selections/TestQuerySelections.kt.expected @@ -57,8 +57,7 @@ public object TestQuerySelections { CompiledFragment.Builder( typeCondition = "Human", possibleTypes = listOf("Human") - ).condition(listOf(CompiledCondition("withDetails", false), - CompiledCondition("skipHumanDetails", true))) + ).condition(listOf(CompiledCondition("withDetails", false), CompiledCondition("skipHumanDetails", true))) .selections(__onHuman) .build(), CompiledFragment.Builder( diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragments_with_friends/kotlin/operationBased/inline_fragments_with_friends/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragments_with_friends/kotlin/operationBased/inline_fragments_with_friends/TestQuery.kt.expected index 7ecf3cc1b57..c001e72870d 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragments_with_friends/kotlin/operationBased/inline_fragments_with_friends/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragments_with_friends/kotlin/operationBased/inline_fragments_with_friends/TestQuery.kt.expected @@ -144,8 +144,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { hero { __typename name ... on Human { height friends { appearsIn } } ... on Droid { primaryFunction friends { id } } } }" + get() = "query TestQuery { hero { __typename name ... on Human { height friends { appearsIn } } ... on Droid { primaryFunction friends { id } } } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragments_with_friends/kotlin/operationBased/inline_fragments_with_friends/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragments_with_friends/kotlin/operationBased/inline_fragments_with_friends/adapter/TestQuery_ResponseAdapter.kt.expected index a55438002f8..71fbba256e0 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragments_with_friends/kotlin/operationBased/inline_fragments_with_friends/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragments_with_friends/kotlin/operationBased/inline_fragments_with_friends/adapter/TestQuery_ResponseAdapter.kt.expected @@ -29,8 +29,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _hero: TestQuery.Data.Hero? = null while (true) { @@ -57,8 +56,7 @@ public object TestQuery_ResponseAdapter { private object Hero : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero { var __typename: String? = null var _name: String? = null @@ -77,15 +75,13 @@ public object TestQuery_ResponseAdapter { var _onHuman: TestQuery.Data.Hero.OnHuman? = null if (possibleTypes("Human").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onHuman = com.example.inline_fragments_with_friends.adapter.TestQuery_ResponseAdapter.Data.Hero.OnHuman.fromJson(reader, - customScalarAdapters) + _onHuman = com.example.inline_fragments_with_friends.adapter.TestQuery_ResponseAdapter.Data.Hero.OnHuman.fromJson(reader, customScalarAdapters) } var _onDroid: TestQuery.Data.Hero.OnDroid? = null if (possibleTypes("Droid").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onDroid = com.example.inline_fragments_with_friends.adapter.TestQuery_ResponseAdapter.Data.Hero.OnDroid.fromJson(reader, - customScalarAdapters) + _onDroid = com.example.inline_fragments_with_friends.adapter.TestQuery_ResponseAdapter.Data.Hero.OnDroid.fromJson(reader, customScalarAdapters) } return TestQuery.Data.Hero( @@ -108,21 +104,18 @@ public object TestQuery_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.name) if (value.onHuman != null) { - com.example.inline_fragments_with_friends.adapter.TestQuery_ResponseAdapter.Data.Hero.OnHuman.toJson(writer, - customScalarAdapters, value.onHuman) + com.example.inline_fragments_with_friends.adapter.TestQuery_ResponseAdapter.Data.Hero.OnHuman.toJson(writer, customScalarAdapters, value.onHuman) } if (value.onDroid != null) { - com.example.inline_fragments_with_friends.adapter.TestQuery_ResponseAdapter.Data.Hero.OnDroid.toJson(writer, - customScalarAdapters, value.onDroid) + com.example.inline_fragments_with_friends.adapter.TestQuery_ResponseAdapter.Data.Hero.OnDroid.toJson(writer, customScalarAdapters, value.onDroid) } } private object OnHuman : Adapter { public val RESPONSE_NAMES: List = listOf("height", "friends") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero.OnHuman { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero.OnHuman { var _height: Double? = null var _friends: List? = null @@ -149,15 +142,13 @@ public object TestQuery_ResponseAdapter { NullableDoubleAdapter.toJson(writer, customScalarAdapters, value.height) writer.name("friends") - Friend.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, - value.friends) + Friend.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, value.friends) } private object Friend : Adapter { public val RESPONSE_NAMES: List = listOf("appearsIn") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero.OnHuman.Friend { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero.OnHuman.Friend { var _appearsIn: List? = null while (true) { @@ -178,8 +169,7 @@ public object TestQuery_ResponseAdapter { `value`: TestQuery.Data.Hero.OnHuman.Friend, ) { writer.name("appearsIn") - Episode_ResponseAdapter.nullable().list().toJson(writer, customScalarAdapters, - value.appearsIn) + Episode_ResponseAdapter.nullable().list().toJson(writer, customScalarAdapters, value.appearsIn) } } } @@ -187,8 +177,7 @@ public object TestQuery_ResponseAdapter { private object OnDroid : Adapter { public val RESPONSE_NAMES: List = listOf("primaryFunction", "friends") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero.OnDroid { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero.OnDroid { var _primaryFunction: String? = null var _friends: List? = null @@ -215,15 +204,13 @@ public object TestQuery_ResponseAdapter { NullableStringAdapter.toJson(writer, customScalarAdapters, value.primaryFunction) writer.name("friends") - Friend.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, - value.friends) + Friend.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, value.friends) } private object Friend : Adapter { public val RESPONSE_NAMES: List = listOf("id") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero.OnDroid.Friend { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero.OnDroid.Friend { var _id: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragments_with_friends/kotlin/operationBased/inline_fragments_with_friends/type/Episode.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragments_with_friends/kotlin/operationBased/inline_fragments_with_friends/type/Episode.kt.expected index c273ada7f7e..e47a3bc871c 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragments_with_friends/kotlin/operationBased/inline_fragments_with_friends/type/Episode.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragments_with_friends/kotlin/operationBased/inline_fragments_with_friends/type/Episode.kt.expected @@ -47,8 +47,8 @@ public enum class Episode( ; public companion object { - public val type: EnumType = EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", - "DEPRECATED", "new")) + public val type: EnumType = + EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", "DEPRECATED", "new")) /** * All [Episode] known at compile time @@ -73,10 +73,8 @@ public enum class Episode( /** * Returns the [Episode] that represents the specified [rawValue]. - * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your - * schema instead of calling this function directly. + * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your schema instead of calling this function directly. */ - public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: - UNKNOWN__ + public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: UNKNOWN__ } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragments_with_friends/kotlin/responseBased/inline_fragments_with_friends/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragments_with_friends/kotlin/responseBased/inline_fragments_with_friends/TestQuery.kt.expected index aa627de4fbe..708dc6aa4fa 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragments_with_friends/kotlin/responseBased/inline_fragments_with_friends/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragments_with_friends/kotlin/responseBased/inline_fragments_with_friends/TestQuery.kt.expected @@ -164,8 +164,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { hero { __typename name ... on Human { height friends { appearsIn } } ... on Droid { primaryFunction friends { id } } } }" + get() = "query TestQuery { hero { __typename name ... on Human { height friends { appearsIn } } ... on Droid { primaryFunction friends { id } } } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragments_with_friends/kotlin/responseBased/inline_fragments_with_friends/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragments_with_friends/kotlin/responseBased/inline_fragments_with_friends/adapter/TestQuery_ResponseAdapter.kt.expected index d343fbbc1e3..e88073b39b8 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragments_with_friends/kotlin/responseBased/inline_fragments_with_friends/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragments_with_friends/kotlin/responseBased/inline_fragments_with_friends/adapter/TestQuery_ResponseAdapter.kt.expected @@ -29,8 +29,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _hero: TestQuery.Data.Hero? = null while (true) { @@ -55,8 +54,7 @@ public object TestQuery_ResponseAdapter { } private object Hero : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero { val __typename = reader.readTypename() return when(__typename) { "Human", @@ -127,15 +125,13 @@ public object TestQuery_ResponseAdapter { NullableDoubleAdapter.toJson(writer, customScalarAdapters, value.height) writer.name("friends") - Friend.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, - value.friends) + Friend.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, value.friends) } private object Friend : Adapter { public val RESPONSE_NAMES: List = listOf("appearsIn") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.HumanHero.Friend { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.HumanHero.Friend { var _appearsIn: List? = null while (true) { @@ -156,15 +152,14 @@ public object TestQuery_ResponseAdapter { `value`: TestQuery.Data.HumanHero.Friend, ) { writer.name("appearsIn") - Episode_ResponseAdapter.nullable().list().toJson(writer, customScalarAdapters, - value.appearsIn) + Episode_ResponseAdapter.nullable().list().toJson(writer, customScalarAdapters, value.appearsIn) } } } public object DroidHero { - public val RESPONSE_NAMES: List = listOf("__typename", "name", "primaryFunction", - "friends") + public val RESPONSE_NAMES: List = + listOf("__typename", "name", "primaryFunction", "friends") public fun fromJson( reader: JsonReader, @@ -209,15 +204,13 @@ public object TestQuery_ResponseAdapter { NullableStringAdapter.toJson(writer, customScalarAdapters, value.primaryFunction) writer.name("friends") - Friend.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, - value.friends) + Friend.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, value.friends) } private object Friend : Adapter { public val RESPONSE_NAMES: List = listOf("id") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.DroidHero.Friend { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.DroidHero.Friend { var _id: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragments_with_friends/kotlin/responseBased/inline_fragments_with_friends/type/Episode.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragments_with_friends/kotlin/responseBased/inline_fragments_with_friends/type/Episode.kt.expected index c273ada7f7e..e47a3bc871c 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragments_with_friends/kotlin/responseBased/inline_fragments_with_friends/type/Episode.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/inline_fragments_with_friends/kotlin/responseBased/inline_fragments_with_friends/type/Episode.kt.expected @@ -47,8 +47,8 @@ public enum class Episode( ; public companion object { - public val type: EnumType = EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", - "DEPRECATED", "new")) + public val type: EnumType = + EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", "DEPRECATED", "new")) /** * All [Episode] known at compile time @@ -73,10 +73,8 @@ public enum class Episode( /** * Returns the [Episode] that represents the specified [rawValue]. - * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your - * schema instead of calling this function directly. + * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your schema instead of calling this function directly. */ - public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: - UNKNOWN__ + public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: UNKNOWN__ } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/input_object_oneof/kotlin/responseBased/input_object_oneof/FindUserQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/input_object_oneof/kotlin/responseBased/input_object_oneof/FindUserQuery.kt.expected index d007cc8cd0c..5f9e475420b 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/input_object_oneof/kotlin/responseBased/input_object_oneof/FindUserQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/input_object_oneof/kotlin/responseBased/input_object_oneof/FindUserQuery.kt.expected @@ -34,8 +34,7 @@ public data class FindUserQuery( customScalarAdapters: CustomScalarAdapters, withDefaultValues: Boolean, ) { - FindUserQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, - withDefaultValues) + FindUserQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, withDefaultValues) } override fun adapter(): Adapter = FindUserQuery_ResponseAdapter.Data.obj() @@ -73,8 +72,7 @@ public data class FindUserQuery( * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query FindUserQuery(${'$'}findUserInput: FindUserInput!) { findUser(findUserInput: ${'$'}findUserInput) { id } }" + get() = "query FindUserQuery(${'$'}findUserInput: FindUserInput!) { findUser(findUserInput: ${'$'}findUserInput) { id } }" public const val OPERATION_NAME: String = "FindUserQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/input_object_oneof/kotlin/responseBased/input_object_oneof/adapter/FindUserQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/input_object_oneof/kotlin/responseBased/input_object_oneof/adapter/FindUserQuery_ResponseAdapter.kt.expected index f52113aa775..b9d74daea07 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/input_object_oneof/kotlin/responseBased/input_object_oneof/adapter/FindUserQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/input_object_oneof/kotlin/responseBased/input_object_oneof/adapter/FindUserQuery_ResponseAdapter.kt.expected @@ -21,8 +21,7 @@ public object FindUserQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("findUser") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - FindUserQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): FindUserQuery.Data { var _findUser: FindUserQuery.Data.FindUser? = null while (true) { @@ -49,8 +48,7 @@ public object FindUserQuery_ResponseAdapter { private object FindUser : Adapter { public val RESPONSE_NAMES: List = listOf("id") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - FindUserQuery.Data.FindUser { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): FindUserQuery.Data.FindUser { var _id: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/input_object_oneof/kotlin/responseBased/input_object_oneof/type/adapter/FindUserByFriendInput_InputAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/input_object_oneof/kotlin/responseBased/input_object_oneof/type/adapter/FindUserByFriendInput_InputAdapter.kt.expected index 84f372dd6ec..30a6e9fefcd 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/input_object_oneof/kotlin/responseBased/input_object_oneof/type/adapter/FindUserByFriendInput_InputAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/input_object_oneof/kotlin/responseBased/input_object_oneof/type/adapter/FindUserByFriendInput_InputAdapter.kt.expected @@ -14,8 +14,7 @@ import com.example.input_object_oneof.type.FindUserByFriendInput import kotlin.IllegalStateException public object FindUserByFriendInput_InputAdapter : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - FindUserByFriendInput = throw IllegalStateException("Input type used in output position") + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): FindUserByFriendInput = throw IllegalStateException("Input type used in output position") override fun toJson( writer: JsonWriter, diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/input_object_oneof/kotlin/responseBased/input_object_oneof/type/adapter/FindUserBySocialNetworkInput_InputAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/input_object_oneof/kotlin/responseBased/input_object_oneof/type/adapter/FindUserBySocialNetworkInput_InputAdapter.kt.expected index 22320d67846..1148c9b690f 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/input_object_oneof/kotlin/responseBased/input_object_oneof/type/adapter/FindUserBySocialNetworkInput_InputAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/input_object_oneof/kotlin/responseBased/input_object_oneof/type/adapter/FindUserBySocialNetworkInput_InputAdapter.kt.expected @@ -16,9 +16,7 @@ import com.example.input_object_oneof.type.FindUserBySocialNetworkInput import kotlin.IllegalStateException public object FindUserBySocialNetworkInput_InputAdapter : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - FindUserBySocialNetworkInput = throw - IllegalStateException("Input type used in output position") + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): FindUserBySocialNetworkInput = throw IllegalStateException("Input type used in output position") override fun toJson( writer: JsonWriter, diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/input_object_oneof/kotlin/responseBased/input_object_oneof/type/adapter/FindUserInput_InputAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/input_object_oneof/kotlin/responseBased/input_object_oneof/type/adapter/FindUserInput_InputAdapter.kt.expected index 41869029e45..a02d4931505 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/input_object_oneof/kotlin/responseBased/input_object_oneof/type/adapter/FindUserInput_InputAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/input_object_oneof/kotlin/responseBased/input_object_oneof/type/adapter/FindUserInput_InputAdapter.kt.expected @@ -18,8 +18,7 @@ import com.example.input_object_oneof.type.FindUserInput import kotlin.IllegalStateException public object FindUserInput_InputAdapter : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - FindUserInput = throw IllegalStateException("Input type used in output position") + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): FindUserInput = throw IllegalStateException("Input type used in output position") override fun toJson( writer: JsonWriter, @@ -36,13 +35,11 @@ public object FindUserInput_InputAdapter : Adapter { } if (value.identity is Optional.Present) { writer.name("identity") - FindUserBySocialNetworkInput_InputAdapter.obj().nullable().present().toJson(writer, - customScalarAdapters, value.identity) + FindUserBySocialNetworkInput_InputAdapter.obj().nullable().present().toJson(writer, customScalarAdapters, value.identity) } if (value.friends is Optional.Present) { writer.name("friends") - FindUserByFriendInput_InputAdapter.obj().nullable().present().toJson(writer, - customScalarAdapters, value.friends) + FindUserByFriendInput_InputAdapter.obj().nullable().present().toJson(writer, customScalarAdapters, value.friends) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/input_object_type/kotlin/responseBased/input_object_type/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/input_object_type/kotlin/responseBased/input_object_type/TestQuery.kt.expected index 795a4101b32..abd7acf3326 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/input_object_type/kotlin/responseBased/input_object_type/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/input_object_type/kotlin/responseBased/input_object_type/TestQuery.kt.expected @@ -37,8 +37,7 @@ public data class TestQuery( customScalarAdapters: CustomScalarAdapters, withDefaultValues: Boolean, ) { - TestQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, - withDefaultValues) + TestQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, withDefaultValues) } override fun adapter(): Adapter = TestQuery_ResponseAdapter.Data.obj() @@ -105,8 +104,7 @@ public data class TestQuery( * ``` */ public val OPERATION_DOCUMENT: String - get() = - "mutation TestQuery(${'$'}ep: Episode!, ${'$'}review: ReviewInput!) { createReview(episode: ${'$'}ep, review: ${'$'}review) { stars commentary } }" + get() = "mutation TestQuery(${'$'}ep: Episode!, ${'$'}review: ReviewInput!) { createReview(episode: ${'$'}ep, review: ${'$'}review) { stars commentary } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/input_object_type/kotlin/responseBased/input_object_type/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/input_object_type/kotlin/responseBased/input_object_type/adapter/TestQuery_ResponseAdapter.kt.expected index e31a128f4fe..c8a0689bc1a 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/input_object_type/kotlin/responseBased/input_object_type/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/input_object_type/kotlin/responseBased/input_object_type/adapter/TestQuery_ResponseAdapter.kt.expected @@ -22,8 +22,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("createReview") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _createReview: TestQuery.Data.CreateReview? = null while (true) { @@ -50,8 +49,7 @@ public object TestQuery_ResponseAdapter { private object CreateReview : Adapter { public val RESPONSE_NAMES: List = listOf("stars", "commentary") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.CreateReview { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.CreateReview { var _stars: Int? = null var _commentary: String? = null @@ -78,8 +76,7 @@ public object TestQuery_ResponseAdapter { IntAdapter.toJson(writer, customScalarAdapters, value.stars) writer.name("commentary") - com.example.MyStringAdapter().nullable().toJson(writer, customScalarAdapters, - value.commentary) + com.example.MyStringAdapter().nullable().toJson(writer, customScalarAdapters, value.commentary) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/input_object_type/kotlin/responseBased/input_object_type/type/ColorInput.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/input_object_type/kotlin/responseBased/input_object_type/type/ColorInput.kt.expected index 5aaefef7810..efbc6db0182 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/input_object_type/kotlin/responseBased/input_object_type/type/ColorInput.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/input_object_type/kotlin/responseBased/input_object_type/type/ColorInput.kt.expected @@ -11,6 +11,12 @@ import kotlin.Int /** * The input object sent when passing in a color + * + * @param red A description with a dollar sign: $10 + * @param green Green color + * @param blue Blue color + * @param enumWithDefaultValue for test purpose only + * @param reviewRefInput Circle ref to review input */ public data class ColorInput( /** diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/input_object_type/kotlin/responseBased/input_object_type/type/Episode.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/input_object_type/kotlin/responseBased/input_object_type/type/Episode.kt.expected index 9a5ec39c852..9e290865b6c 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/input_object_type/kotlin/responseBased/input_object_type/type/Episode.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/input_object_type/kotlin/responseBased/input_object_type/type/Episode.kt.expected @@ -47,8 +47,8 @@ public enum class Episode( ; public companion object { - public val type: EnumType = EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", - "DEPRECATED", "new")) + public val type: EnumType = + EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", "DEPRECATED", "new")) /** * All [Episode] known at compile time @@ -73,10 +73,8 @@ public enum class Episode( /** * Returns the [Episode] that represents the specified [rawValue]. - * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your - * schema instead of calling this function directly. + * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your schema instead of calling this function directly. */ - public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: - UNKNOWN__ + public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: UNKNOWN__ } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/input_object_type/kotlin/responseBased/input_object_type/type/ReviewInput.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/input_object_type/kotlin/responseBased/input_object_type/type/ReviewInput.kt.expected index 1aad385b89e..de4af18fac2 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/input_object_type/kotlin/responseBased/input_object_type/type/ReviewInput.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/input_object_type/kotlin/responseBased/input_object_type/type/ReviewInput.kt.expected @@ -14,6 +14,30 @@ import kotlin.collections.List /** * The input object sent when someone is creating a new review + * + * @param stars 0-5 stars + * @param nullableIntFieldWithDefaultValue for test purpose only + * @param commentary Comment about the movie, optional + * @param favoriteColor Favorite color, optional + * @param enumWithDefaultValue for test purpose only + * @param nonNullableEnumWithDefaultValue for test purpose only + * @param nullableEnum for test purpose only + * @param listOfCustomScalar for test purpose only + * @param customScalar for test purpose only + * @param listOfEnums for test purpose only + * @param listOfInt for test purpose only + * @param listOfString for test purpose only + * @param listOfStringNonOptional for test purpose only + * @param listOfInputTypes for test purpose only + * @param booleanWithDefaultValue for test purpose only + * @param booleanNonOptional for test purpose only + * @param listOfListOfString for test purpose only + * @param listOfListOfEnum for test purpose only + * @param listOfListOfCustom for test purpose only + * @param listOfListOfObject for test purpose only + * @param CapitalizedField for test purpose only + * @param CapitalizedInt for test purpose only + * @param in for test purpose only */ public data class ReviewInput( /** diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/input_object_type/kotlin/responseBased/input_object_type/type/adapter/ColorInput_InputAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/input_object_type/kotlin/responseBased/input_object_type/type/adapter/ColorInput_InputAdapter.kt.expected index eb3ea9e6047..1cc5314044b 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/input_object_type/kotlin/responseBased/input_object_type/type/adapter/ColorInput_InputAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/input_object_type/kotlin/responseBased/input_object_type/type/adapter/ColorInput_InputAdapter.kt.expected @@ -20,8 +20,7 @@ import com.example.input_object_type.type.ColorInput import kotlin.IllegalStateException public object ColorInput_InputAdapter : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): ColorInput - = throw IllegalStateException("Input type used in output position") + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): ColorInput = throw IllegalStateException("Input type used in output position") override fun toJson( writer: JsonWriter, @@ -42,13 +41,11 @@ public object ColorInput_InputAdapter : Adapter { } if (value.enumWithDefaultValue is Optional.Present) { writer.name("enumWithDefaultValue") - Episode_ResponseAdapter.nullable().present().toJson(writer, customScalarAdapters, - value.enumWithDefaultValue) + Episode_ResponseAdapter.nullable().present().toJson(writer, customScalarAdapters, value.enumWithDefaultValue) } if (value.reviewRefInput is Optional.Present) { writer.name("reviewRefInput") - ReviewRefInput_InputAdapter.obj().nullable().present().toJson(writer, customScalarAdapters, - value.reviewRefInput) + ReviewRefInput_InputAdapter.obj().nullable().present().toJson(writer, customScalarAdapters, value.reviewRefInput) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/input_object_type/kotlin/responseBased/input_object_type/type/adapter/ReviewInput_InputAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/input_object_type/kotlin/responseBased/input_object_type/type/adapter/ReviewInput_InputAdapter.kt.expected index d9264a65420..e97866cf9c4 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/input_object_type/kotlin/responseBased/input_object_type/type/adapter/ReviewInput_InputAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/input_object_type/kotlin/responseBased/input_object_type/type/adapter/ReviewInput_InputAdapter.kt.expected @@ -23,8 +23,7 @@ import com.example.input_object_type.type.Date as TypeDate import java.util.Date as UtilDate public object ReviewInput_InputAdapter : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): ReviewInput - = throw IllegalStateException("Input type used in output position") + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): ReviewInput = throw IllegalStateException("Input type used in output position") override fun toJson( writer: JsonWriter, @@ -35,98 +34,79 @@ public object ReviewInput_InputAdapter : Adapter { IntAdapter.toJson(writer, customScalarAdapters, value.stars) if (value.nullableIntFieldWithDefaultValue is Optional.Present) { writer.name("nullableIntFieldWithDefaultValue") - NullableIntAdapter.present().toJson(writer, customScalarAdapters, - value.nullableIntFieldWithDefaultValue) + NullableIntAdapter.present().toJson(writer, customScalarAdapters, value.nullableIntFieldWithDefaultValue) } if (value.commentary is Optional.Present) { writer.name("commentary") - com.example.MyStringAdapter().nullable().present().toJson(writer, customScalarAdapters, - value.commentary) + com.example.MyStringAdapter().nullable().present().toJson(writer, customScalarAdapters, value.commentary) } writer.name("favoriteColor") ColorInput_InputAdapter.obj().toJson(writer, customScalarAdapters, value.favoriteColor) if (value.enumWithDefaultValue is Optional.Present) { writer.name("enumWithDefaultValue") - Episode_ResponseAdapter.nullable().present().toJson(writer, customScalarAdapters, - value.enumWithDefaultValue) + Episode_ResponseAdapter.nullable().present().toJson(writer, customScalarAdapters, value.enumWithDefaultValue) } if (value.nonNullableEnumWithDefaultValue is Optional.Present) { writer.name("nonNullableEnumWithDefaultValue") - Episode_ResponseAdapter.present().toJson(writer, customScalarAdapters, - value.nonNullableEnumWithDefaultValue) + Episode_ResponseAdapter.present().toJson(writer, customScalarAdapters, value.nonNullableEnumWithDefaultValue) } if (value.nullableEnum is Optional.Present) { writer.name("nullableEnum") - Episode_ResponseAdapter.nullable().present().toJson(writer, customScalarAdapters, - value.nullableEnum) + Episode_ResponseAdapter.nullable().present().toJson(writer, customScalarAdapters, value.nullableEnum) } if (value.listOfCustomScalar is Optional.Present) { writer.name("listOfCustomScalar") - customScalarAdapters.responseAdapterFor(TypeDate.type).nullable().list().nullable().present().toJson(writer, - customScalarAdapters, value.listOfCustomScalar) + customScalarAdapters.responseAdapterFor(TypeDate.type).nullable().list().nullable().present().toJson(writer, customScalarAdapters, value.listOfCustomScalar) } if (value.customScalar is Optional.Present) { writer.name("customScalar") - customScalarAdapters.responseAdapterFor(TypeDate.type).nullable().present().toJson(writer, - customScalarAdapters, value.customScalar) + customScalarAdapters.responseAdapterFor(TypeDate.type).nullable().present().toJson(writer, customScalarAdapters, value.customScalar) } if (value.listOfEnums is Optional.Present) { writer.name("listOfEnums") - Episode_ResponseAdapter.nullable().list().nullable().present().toJson(writer, - customScalarAdapters, value.listOfEnums) + Episode_ResponseAdapter.nullable().list().nullable().present().toJson(writer, customScalarAdapters, value.listOfEnums) } if (value.listOfInt is Optional.Present) { writer.name("listOfInt") - NullableIntAdapter.list().nullable().present().toJson(writer, customScalarAdapters, - value.listOfInt) + NullableIntAdapter.list().nullable().present().toJson(writer, customScalarAdapters, value.listOfInt) } if (value.listOfString is Optional.Present) { writer.name("listOfString") - com.example.MyStringAdapter().nullable().list().nullable().present().toJson(writer, - customScalarAdapters, value.listOfString) + com.example.MyStringAdapter().nullable().list().nullable().present().toJson(writer, customScalarAdapters, value.listOfString) } writer.name("listOfStringNonOptional") - com.example.MyStringAdapter().nullable().list().toJson(writer, customScalarAdapters, - value.listOfStringNonOptional) + com.example.MyStringAdapter().nullable().list().toJson(writer, customScalarAdapters, value.listOfStringNonOptional) if (value.listOfInputTypes is Optional.Present) { writer.name("listOfInputTypes") - ColorInput_InputAdapter.obj().nullable().list().nullable().present().toJson(writer, - customScalarAdapters, value.listOfInputTypes) + ColorInput_InputAdapter.obj().nullable().list().nullable().present().toJson(writer, customScalarAdapters, value.listOfInputTypes) } if (value.booleanWithDefaultValue is Optional.Present) { writer.name("booleanWithDefaultValue") - NullableBooleanAdapter.present().toJson(writer, customScalarAdapters, - value.booleanWithDefaultValue) + NullableBooleanAdapter.present().toJson(writer, customScalarAdapters, value.booleanWithDefaultValue) } if (value.booleanNonOptional is Optional.Present) { writer.name("booleanNonOptional") - NullableBooleanAdapter.present().toJson(writer, customScalarAdapters, - value.booleanNonOptional) + NullableBooleanAdapter.present().toJson(writer, customScalarAdapters, value.booleanNonOptional) } if (value.listOfListOfString is Optional.Present) { writer.name("listOfListOfString") - com.example.MyStringAdapter().list().list().nullable().present().toJson(writer, - customScalarAdapters, value.listOfListOfString) + com.example.MyStringAdapter().list().list().nullable().present().toJson(writer, customScalarAdapters, value.listOfListOfString) } if (value.listOfListOfEnum is Optional.Present) { writer.name("listOfListOfEnum") - Episode_ResponseAdapter.list().list().nullable().present().toJson(writer, - customScalarAdapters, value.listOfListOfEnum) + Episode_ResponseAdapter.list().list().nullable().present().toJson(writer, customScalarAdapters, value.listOfListOfEnum) } if (value.listOfListOfCustom is Optional.Present) { writer.name("listOfListOfCustom") - customScalarAdapters.responseAdapterFor(TypeDate.type).list().list().nullable().present().toJson(writer, - customScalarAdapters, value.listOfListOfCustom) + customScalarAdapters.responseAdapterFor(TypeDate.type).list().list().nullable().present().toJson(writer, customScalarAdapters, value.listOfListOfCustom) } if (value.listOfListOfObject is Optional.Present) { writer.name("listOfListOfObject") - ColorInput_InputAdapter.obj().list().list().nullable().present().toJson(writer, - customScalarAdapters, value.listOfListOfObject) + ColorInput_InputAdapter.obj().list().list().nullable().present().toJson(writer, customScalarAdapters, value.listOfListOfObject) } if (value.CapitalizedField is Optional.Present) { writer.name("CapitalizedField") - com.example.MyStringAdapter().nullable().present().toJson(writer, customScalarAdapters, - value.CapitalizedField) + com.example.MyStringAdapter().nullable().present().toJson(writer, customScalarAdapters, value.CapitalizedField) } if (value.CapitalizedInt is Optional.Present) { writer.name("CapitalizedInt") @@ -134,8 +114,7 @@ public object ReviewInput_InputAdapter : Adapter { } if (value.`in` is Optional.Present) { writer.name("in") - com.example.MyStringAdapter().nullable().present().toJson(writer, customScalarAdapters, - value.`in`) + com.example.MyStringAdapter().nullable().present().toJson(writer, customScalarAdapters, value.`in`) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/input_object_type/kotlin/responseBased/input_object_type/type/adapter/ReviewRefInput_InputAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/input_object_type/kotlin/responseBased/input_object_type/type/adapter/ReviewRefInput_InputAdapter.kt.expected index 24cb4d36daf..1c6bf57a6f4 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/input_object_type/kotlin/responseBased/input_object_type/type/adapter/ReviewRefInput_InputAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/input_object_type/kotlin/responseBased/input_object_type/type/adapter/ReviewRefInput_InputAdapter.kt.expected @@ -17,8 +17,7 @@ import com.example.input_object_type.type.ReviewRefInput import kotlin.IllegalStateException public object ReviewRefInput_InputAdapter : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - ReviewRefInput = throw IllegalStateException("Input type used in output position") + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): ReviewRefInput = throw IllegalStateException("Input type used in output position") override fun toJson( writer: JsonWriter, @@ -27,8 +26,7 @@ public object ReviewRefInput_InputAdapter : Adapter { ) { if (value.reviewInput is Optional.Present) { writer.name("reviewInput") - ReviewInput_InputAdapter.obj().nullable().present().toJson(writer, customScalarAdapters, - value.reviewInput) + ReviewInput_InputAdapter.obj().nullable().present().toJson(writer, customScalarAdapters, value.reviewInput) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/input_object_variable_and_argument/kotlin/responseBased/input_object_variable_and_argument/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/input_object_variable_and_argument/kotlin/responseBased/input_object_variable_and_argument/TestQuery.kt.expected index cb2d321c0c8..459269e4cbe 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/input_object_variable_and_argument/kotlin/responseBased/input_object_variable_and_argument/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/input_object_variable_and_argument/kotlin/responseBased/input_object_variable_and_argument/TestQuery.kt.expected @@ -39,8 +39,7 @@ public data class TestQuery( customScalarAdapters: CustomScalarAdapters, withDefaultValues: Boolean, ) { - TestQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, - withDefaultValues) + TestQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, withDefaultValues) } override fun adapter(): Adapter = TestQuery_ResponseAdapter.Data.obj() @@ -97,8 +96,7 @@ public data class TestQuery( * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery(${'$'}episode: Episode, ${'$'}stars: Int!, ${'$'}greenValue: Float!) { heroWithReview(episode: ${'$'}episode, review: { stars: ${'$'}stars favoriteColor: { red: 0 green: ${'$'}greenValue blue: 0 } booleanNonOptional: false listOfStringNonOptional: [] } , listOfInts: [${'$'}stars,${'$'}stars]) { name height(unit: FOOT) } }" + get() = "query TestQuery(${'$'}episode: Episode, ${'$'}stars: Int!, ${'$'}greenValue: Float!) { heroWithReview(episode: ${'$'}episode, review: { stars: ${'$'}stars favoriteColor: { red: 0 green: ${'$'}greenValue blue: 0 } booleanNonOptional: false listOfStringNonOptional: [] } , listOfInts: [${'$'}stars,${'$'}stars]) { name height(unit: FOOT) } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/input_object_variable_and_argument/kotlin/responseBased/input_object_variable_and_argument/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/input_object_variable_and_argument/kotlin/responseBased/input_object_variable_and_argument/adapter/TestQuery_ResponseAdapter.kt.expected index 8c0073265c6..8feb3b6d953 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/input_object_variable_and_argument/kotlin/responseBased/input_object_variable_and_argument/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/input_object_variable_and_argument/kotlin/responseBased/input_object_variable_and_argument/adapter/TestQuery_ResponseAdapter.kt.expected @@ -23,8 +23,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("heroWithReview") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _heroWithReview: TestQuery.Data.HeroWithReview? = null while (true) { @@ -51,8 +50,7 @@ public object TestQuery_ResponseAdapter { private object HeroWithReview : Adapter { public val RESPONSE_NAMES: List = listOf("name", "height") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.HeroWithReview { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.HeroWithReview { var _name: String? = null var _height: Double? = null diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/input_object_variable_and_argument/kotlin/responseBased/input_object_variable_and_argument/adapter/TestQuery_VariablesAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/input_object_variable_and_argument/kotlin/responseBased/input_object_variable_and_argument/adapter/TestQuery_VariablesAdapter.kt.expected index 3a60aa2bea4..dd373dcd27e 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/input_object_variable_and_argument/kotlin/responseBased/input_object_variable_and_argument/adapter/TestQuery_VariablesAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/input_object_variable_and_argument/kotlin/responseBased/input_object_variable_and_argument/adapter/TestQuery_VariablesAdapter.kt.expected @@ -30,8 +30,7 @@ public object TestQuery_VariablesAdapter { ) { if (value.episode is Optional.Present) { writer.name("episode") - Episode_ResponseAdapter.nullable().present().toJson(writer, customScalarAdapters, - value.episode) + Episode_ResponseAdapter.nullable().present().toJson(writer, customScalarAdapters, value.episode) } writer.name("stars") IntAdapter.toJson(writer, customScalarAdapters, value.stars) diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/input_object_variable_and_argument/kotlin/responseBased/input_object_variable_and_argument/type/Episode.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/input_object_variable_and_argument/kotlin/responseBased/input_object_variable_and_argument/type/Episode.kt.expected index 7741f19b62b..7cf5ed9b496 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/input_object_variable_and_argument/kotlin/responseBased/input_object_variable_and_argument/type/Episode.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/input_object_variable_and_argument/kotlin/responseBased/input_object_variable_and_argument/type/Episode.kt.expected @@ -47,8 +47,8 @@ public enum class Episode( ; public companion object { - public val type: EnumType = EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", - "DEPRECATED", "new")) + public val type: EnumType = + EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", "DEPRECATED", "new")) /** * All [Episode] known at compile time @@ -73,10 +73,8 @@ public enum class Episode( /** * Returns the [Episode] that represents the specified [rawValue]. - * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your - * schema instead of calling this function directly. + * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your schema instead of calling this function directly. */ - public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: - UNKNOWN__ + public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: UNKNOWN__ } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/input_object_variable_and_argument_with_generated_methods/kotlin/responseBased/input_object_variable_and_argument_with_generated_methods/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/input_object_variable_and_argument_with_generated_methods/kotlin/responseBased/input_object_variable_and_argument_with_generated_methods/TestQuery.kt.expected index d76a5b5e12f..03fcf69fd94 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/input_object_variable_and_argument_with_generated_methods/kotlin/responseBased/input_object_variable_and_argument_with_generated_methods/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/input_object_variable_and_argument_with_generated_methods/kotlin/responseBased/input_object_variable_and_argument_with_generated_methods/TestQuery.kt.expected @@ -55,8 +55,7 @@ public class TestQuery( return false } - override fun toString(): String = - """TestQuery(episode=$episode, stars=$stars, greenValue=$greenValue)""" + override fun toString(): String = """TestQuery(episode=$episode, stars=$stars, greenValue=$greenValue)""" public fun copy( episode: Optional = this.episode, @@ -75,8 +74,7 @@ public class TestQuery( customScalarAdapters: CustomScalarAdapters, withDefaultValues: Boolean, ) { - TestQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, - withDefaultValues) + TestQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, withDefaultValues) } override fun adapter(): Adapter = TestQuery_ResponseAdapter.Data.obj() @@ -114,8 +112,7 @@ public class TestQuery( override fun toString(): String = """Data(heroWithReview=$heroWithReview)""" - public fun copy(heroWithReview: HeroWithReview? = this.heroWithReview): Data = - Data(heroWithReview,) + public fun copy(heroWithReview: HeroWithReview? = this.heroWithReview): Data = Data(heroWithReview,) public class HeroWithReview( /** @@ -152,8 +149,7 @@ public class TestQuery( override fun toString(): String = """HeroWithReview(name=$name, height=$height)""" - public fun copy(name: String = this.name, height: Double? = this.height): HeroWithReview = - HeroWithReview(name,height,) + public fun copy(name: String = this.name, height: Double? = this.height): HeroWithReview = HeroWithReview(name,height,) } } @@ -186,8 +182,7 @@ public class TestQuery( * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery(${'$'}episode: Episode, ${'$'}stars: Int!, ${'$'}greenValue: Float!) { heroWithReview(episode: ${'$'}episode, review: { stars: ${'$'}stars favoriteColor: { red: 0 green: ${'$'}greenValue blue: 0 } booleanNonOptional: false listOfStringNonOptional: [] } , listOfInts: [${'$'}stars,${'$'}stars]) { name height(unit: FOOT) } }" + get() = "query TestQuery(${'$'}episode: Episode, ${'$'}stars: Int!, ${'$'}greenValue: Float!) { heroWithReview(episode: ${'$'}episode, review: { stars: ${'$'}stars favoriteColor: { red: 0 green: ${'$'}greenValue blue: 0 } booleanNonOptional: false listOfStringNonOptional: [] } , listOfInts: [${'$'}stars,${'$'}stars]) { name height(unit: FOOT) } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/input_object_variable_and_argument_with_generated_methods/kotlin/responseBased/input_object_variable_and_argument_with_generated_methods/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/input_object_variable_and_argument_with_generated_methods/kotlin/responseBased/input_object_variable_and_argument_with_generated_methods/adapter/TestQuery_ResponseAdapter.kt.expected index 4b7d50ffa52..970187b1ad9 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/input_object_variable_and_argument_with_generated_methods/kotlin/responseBased/input_object_variable_and_argument_with_generated_methods/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/input_object_variable_and_argument_with_generated_methods/kotlin/responseBased/input_object_variable_and_argument_with_generated_methods/adapter/TestQuery_ResponseAdapter.kt.expected @@ -23,8 +23,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("heroWithReview") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _heroWithReview: TestQuery.Data.HeroWithReview? = null while (true) { @@ -51,8 +50,7 @@ public object TestQuery_ResponseAdapter { private object HeroWithReview : Adapter { public val RESPONSE_NAMES: List = listOf("name", "height") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.HeroWithReview { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.HeroWithReview { var _name: String? = null var _height: Double? = null diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/input_object_variable_and_argument_with_generated_methods/kotlin/responseBased/input_object_variable_and_argument_with_generated_methods/adapter/TestQuery_VariablesAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/input_object_variable_and_argument_with_generated_methods/kotlin/responseBased/input_object_variable_and_argument_with_generated_methods/adapter/TestQuery_VariablesAdapter.kt.expected index e9b40dfb3ce..ee797eb6187 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/input_object_variable_and_argument_with_generated_methods/kotlin/responseBased/input_object_variable_and_argument_with_generated_methods/adapter/TestQuery_VariablesAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/input_object_variable_and_argument_with_generated_methods/kotlin/responseBased/input_object_variable_and_argument_with_generated_methods/adapter/TestQuery_VariablesAdapter.kt.expected @@ -30,8 +30,7 @@ public object TestQuery_VariablesAdapter { ) { if (value.episode is Optional.Present) { writer.name("episode") - Episode_ResponseAdapter.nullable().present().toJson(writer, customScalarAdapters, - value.episode) + Episode_ResponseAdapter.nullable().present().toJson(writer, customScalarAdapters, value.episode) } writer.name("stars") IntAdapter.toJson(writer, customScalarAdapters, value.stars) diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/input_object_variable_and_argument_with_generated_methods/kotlin/responseBased/input_object_variable_and_argument_with_generated_methods/type/Episode.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/input_object_variable_and_argument_with_generated_methods/kotlin/responseBased/input_object_variable_and_argument_with_generated_methods/type/Episode.kt.expected index 95e87dd6e8f..d01376506fe 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/input_object_variable_and_argument_with_generated_methods/kotlin/responseBased/input_object_variable_and_argument_with_generated_methods/type/Episode.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/input_object_variable_and_argument_with_generated_methods/kotlin/responseBased/input_object_variable_and_argument_with_generated_methods/type/Episode.kt.expected @@ -47,8 +47,8 @@ public enum class Episode( ; public companion object { - public val type: EnumType = EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", - "DEPRECATED", "new")) + public val type: EnumType = + EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", "DEPRECATED", "new")) /** * All [Episode] known at compile time @@ -73,10 +73,8 @@ public enum class Episode( /** * Returns the [Episode] that represents the specified [rawValue]. - * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your - * schema instead of calling this function directly. + * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your schema instead of calling this function directly. */ - public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: - UNKNOWN__ + public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: UNKNOWN__ } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/interface_always_nested/kotlin/operationBased/interface_always_nested/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/interface_always_nested/kotlin/operationBased/interface_always_nested/TestQuery.kt.expected index 5dc5698c2f2..83861046579 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/interface_always_nested/kotlin/operationBased/interface_always_nested/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/interface_always_nested/kotlin/operationBased/interface_always_nested/TestQuery.kt.expected @@ -98,8 +98,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { root { __typename ... on A { __typename fieldA1 ... on B { fieldB1 } } } }" + get() = "query TestQuery { root { __typename ... on A { __typename fieldA1 ... on B { fieldB1 } } } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/interface_always_nested/kotlin/operationBased/interface_always_nested/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/interface_always_nested/kotlin/operationBased/interface_always_nested/adapter/TestQuery_ResponseAdapter.kt.expected index 50fb8dfa4ef..b0bdabf19c6 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/interface_always_nested/kotlin/operationBased/interface_always_nested/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/interface_always_nested/kotlin/operationBased/interface_always_nested/adapter/TestQuery_ResponseAdapter.kt.expected @@ -23,8 +23,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("root") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _root: TestQuery.Data.Root? = null while (true) { @@ -51,8 +50,7 @@ public object TestQuery_ResponseAdapter { private object Root : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Root { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Root { var __typename: String? = null while (true) { @@ -69,8 +67,7 @@ public object TestQuery_ResponseAdapter { var _onA: TestQuery.Data.Root.OnA? = null if (possibleTypes("ABC","AC").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onA = com.example.interface_always_nested.adapter.TestQuery_ResponseAdapter.Data.Root.OnA.fromJson(reader, - customScalarAdapters) + _onA = com.example.interface_always_nested.adapter.TestQuery_ResponseAdapter.Data.Root.OnA.fromJson(reader, customScalarAdapters) } return TestQuery.Data.Root( @@ -88,16 +85,14 @@ public object TestQuery_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.__typename) if (value.onA != null) { - com.example.interface_always_nested.adapter.TestQuery_ResponseAdapter.Data.Root.OnA.toJson(writer, - customScalarAdapters, value.onA) + com.example.interface_always_nested.adapter.TestQuery_ResponseAdapter.Data.Root.OnA.toJson(writer, customScalarAdapters, value.onA) } } private object OnA : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "fieldA1") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Root.OnA { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Root.OnA { var __typename: String? = null var _fieldA1: String? = null @@ -116,8 +111,7 @@ public object TestQuery_ResponseAdapter { var _onB: TestQuery.Data.Root.OnA.OnB? = null if (possibleTypes("ABC","BC").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onB = com.example.interface_always_nested.adapter.TestQuery_ResponseAdapter.Data.Root.OnA.OnB.fromJson(reader, - customScalarAdapters) + _onB = com.example.interface_always_nested.adapter.TestQuery_ResponseAdapter.Data.Root.OnA.OnB.fromJson(reader, customScalarAdapters) } return TestQuery.Data.Root.OnA( @@ -139,16 +133,14 @@ public object TestQuery_ResponseAdapter { NullableStringAdapter.toJson(writer, customScalarAdapters, value.fieldA1) if (value.onB != null) { - com.example.interface_always_nested.adapter.TestQuery_ResponseAdapter.Data.Root.OnA.OnB.toJson(writer, - customScalarAdapters, value.onB) + com.example.interface_always_nested.adapter.TestQuery_ResponseAdapter.Data.Root.OnA.OnB.toJson(writer, customScalarAdapters, value.onB) } } private object OnB : Adapter { public val RESPONSE_NAMES: List = listOf("fieldB1") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Root.OnA.OnB { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Root.OnA.OnB { var _fieldB1: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/interface_always_nested/kotlin/responseBased/interface_always_nested/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/interface_always_nested/kotlin/responseBased/interface_always_nested/TestQuery.kt.expected index a84a99ba94a..414be17ce2a 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/interface_always_nested/kotlin/responseBased/interface_always_nested/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/interface_always_nested/kotlin/responseBased/interface_always_nested/TestQuery.kt.expected @@ -111,8 +111,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { root { __typename ... on A { __typename fieldA1 ... on B { fieldB1 } } } }" + get() = "query TestQuery { root { __typename ... on A { __typename fieldA1 ... on B { fieldB1 } } } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/interface_always_nested/kotlin/responseBased/interface_always_nested/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/interface_always_nested/kotlin/responseBased/interface_always_nested/adapter/TestQuery_ResponseAdapter.kt.expected index 541864a176c..48aa97f3c53 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/interface_always_nested/kotlin/responseBased/interface_always_nested/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/interface_always_nested/kotlin/responseBased/interface_always_nested/adapter/TestQuery_ResponseAdapter.kt.expected @@ -24,8 +24,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("root") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _root: TestQuery.Data.Root? = null while (true) { @@ -50,8 +49,7 @@ public object TestQuery_ResponseAdapter { } private object Root : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Root { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Root { val __typename = reader.readTypename() return when(__typename) { "ABC", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/interface_on_interface/kotlin/operationBased/interface_on_interface/GetHuman.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/interface_on_interface/kotlin/operationBased/interface_on_interface/GetHuman.kt.expected index 08a3b8e8a4e..171abffe494 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/interface_on_interface/kotlin/operationBased/interface_on_interface/GetHuman.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/interface_on_interface/kotlin/operationBased/interface_on_interface/GetHuman.kt.expected @@ -98,8 +98,7 @@ public class GetHuman() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query GetHuman { human { id name height } node { __typename ... on Human { height } } }" + get() = "query GetHuman { human { id name height } node { __typename ... on Human { height } } }" public const val OPERATION_NAME: String = "GetHuman" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/interface_on_interface/kotlin/operationBased/interface_on_interface/adapter/GetHuman_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/interface_on_interface/kotlin/operationBased/interface_on_interface/adapter/GetHuman_ResponseAdapter.kt.expected index 3ffd18405d6..8723a25a53d 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/interface_on_interface/kotlin/operationBased/interface_on_interface/adapter/GetHuman_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/interface_on_interface/kotlin/operationBased/interface_on_interface/adapter/GetHuman_ResponseAdapter.kt.expected @@ -24,8 +24,7 @@ public object GetHuman_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("human", "node") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - GetHuman.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): GetHuman.Data { var _human: GetHuman.Data.Human? = null var _node: GetHuman.Data.Node? = null @@ -58,8 +57,7 @@ public object GetHuman_ResponseAdapter { private object Human : Adapter { public val RESPONSE_NAMES: List = listOf("id", "name", "height") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - GetHuman.Data.Human { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): GetHuman.Data.Human { var _id: String? = null var _name: String? = null var _height: Double? = null @@ -99,8 +97,7 @@ public object GetHuman_ResponseAdapter { private object Node : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - GetHuman.Data.Node { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): GetHuman.Data.Node { var __typename: String? = null while (true) { @@ -117,8 +114,7 @@ public object GetHuman_ResponseAdapter { var _onHuman: GetHuman.Data.Node.OnHuman? = null if (possibleTypes("Human").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onHuman = com.example.interface_on_interface.adapter.GetHuman_ResponseAdapter.Data.Node.OnHuman.fromJson(reader, - customScalarAdapters) + _onHuman = com.example.interface_on_interface.adapter.GetHuman_ResponseAdapter.Data.Node.OnHuman.fromJson(reader, customScalarAdapters) } return GetHuman.Data.Node( @@ -136,16 +132,14 @@ public object GetHuman_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.__typename) if (value.onHuman != null) { - com.example.interface_on_interface.adapter.GetHuman_ResponseAdapter.Data.Node.OnHuman.toJson(writer, - customScalarAdapters, value.onHuman) + com.example.interface_on_interface.adapter.GetHuman_ResponseAdapter.Data.Node.OnHuman.toJson(writer, customScalarAdapters, value.onHuman) } } private object OnHuman : Adapter { public val RESPONSE_NAMES: List = listOf("height") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - GetHuman.Data.Node.OnHuman { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): GetHuman.Data.Node.OnHuman { var _height: Double? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/interface_on_interface/kotlin/responseBased/interface_on_interface/GetHuman.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/interface_on_interface/kotlin/responseBased/interface_on_interface/GetHuman.kt.expected index 62ca976b3c7..0796b64542f 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/interface_on_interface/kotlin/responseBased/interface_on_interface/GetHuman.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/interface_on_interface/kotlin/responseBased/interface_on_interface/GetHuman.kt.expected @@ -105,8 +105,7 @@ public class GetHuman() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query GetHuman { human { id name height } node { __typename ... on Human { height } } }" + get() = "query GetHuman { human { id name height } node { __typename ... on Human { height } } }" public const val OPERATION_NAME: String = "GetHuman" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/interface_on_interface/kotlin/responseBased/interface_on_interface/adapter/GetHuman_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/interface_on_interface/kotlin/responseBased/interface_on_interface/adapter/GetHuman_ResponseAdapter.kt.expected index 4bfe639b158..a29c4b6d936 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/interface_on_interface/kotlin/responseBased/interface_on_interface/adapter/GetHuman_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/interface_on_interface/kotlin/responseBased/interface_on_interface/adapter/GetHuman_ResponseAdapter.kt.expected @@ -24,8 +24,7 @@ public object GetHuman_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("human", "node") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - GetHuman.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): GetHuman.Data { var _human: GetHuman.Data.Human? = null var _node: GetHuman.Data.Node? = null @@ -58,8 +57,7 @@ public object GetHuman_ResponseAdapter { private object Human : Adapter { public val RESPONSE_NAMES: List = listOf("id", "name", "height") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - GetHuman.Data.Human { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): GetHuman.Data.Human { var _id: String? = null var _name: String? = null var _height: Double? = null @@ -97,8 +95,7 @@ public object GetHuman_ResponseAdapter { } private object Node : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - GetHuman.Data.Node { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): GetHuman.Data.Node { val __typename = reader.readTypename() return when(__typename) { "Human", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/introspection_query/kotlin/responseBased/introspection_query/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/introspection_query/kotlin/responseBased/introspection_query/TestQuery.kt.expected index 62779e28968..7e0c477dd02 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/introspection_query/kotlin/responseBased/introspection_query/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/introspection_query/kotlin/responseBased/introspection_query/TestQuery.kt.expected @@ -100,8 +100,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { __schema { queryType { name } types { name } } __type(name: \"Vehicle\") { name kind } }" + get() = "query TestQuery { __schema { queryType { name } types { name } } __type(name: \"Vehicle\") { name kind } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/introspection_query/kotlin/responseBased/introspection_query/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/introspection_query/kotlin/responseBased/introspection_query/adapter/TestQuery_ResponseAdapter.kt.expected index 996e36f3332..d9a75e259ca 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/introspection_query/kotlin/responseBased/introspection_query/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/introspection_query/kotlin/responseBased/introspection_query/adapter/TestQuery_ResponseAdapter.kt.expected @@ -23,8 +23,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("__schema", "__type") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var ___schema: TestQuery.Data.__Schema? = null var ___type: TestQuery.Data.__Type? = null @@ -57,8 +56,7 @@ public object TestQuery_ResponseAdapter { private object __Schema : Adapter { public val RESPONSE_NAMES: List = listOf("queryType", "types") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.__Schema { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.__Schema { var _queryType: TestQuery.Data.__Schema.QueryType? = null var _types: List? = null @@ -91,8 +89,7 @@ public object TestQuery_ResponseAdapter { private object QueryType : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.__Schema.QueryType { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.__Schema.QueryType { var _name: String? = null while (true) { @@ -120,8 +117,7 @@ public object TestQuery_ResponseAdapter { private object Type : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.__Schema.Type { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.__Schema.Type { var _name: String? = null while (true) { @@ -150,8 +146,7 @@ public object TestQuery_ResponseAdapter { private object __Type : Adapter { public val RESPONSE_NAMES: List = listOf("name", "kind") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.__Type { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.__Type { var _name: String? = null var _kind: __TypeKind? = null diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/introspection_query/kotlin/responseBased/introspection_query/type/__TypeKind.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/introspection_query/kotlin/responseBased/introspection_query/type/__TypeKind.kt.expected index 4644450c478..828da673079 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/introspection_query/kotlin/responseBased/introspection_query/type/__TypeKind.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/introspection_query/kotlin/responseBased/introspection_query/type/__TypeKind.kt.expected @@ -29,8 +29,8 @@ public enum class __TypeKind( ; public companion object { - public val type: EnumType = EnumType("__TypeKind", listOf("SCALAR", "OBJECT", "INTERFACE", - "UNION", "ENUM", "INPUT_OBJECT", "LIST", "NON_NULL")) + public val type: EnumType = + EnumType("__TypeKind", listOf("SCALAR", "OBJECT", "INTERFACE", "UNION", "ENUM", "INPUT_OBJECT", "LIST", "NON_NULL")) /** * All [__TypeKind] known at compile time @@ -57,10 +57,8 @@ public enum class __TypeKind( /** * Returns the [__TypeKind] that represents the specified [rawValue]. - * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your - * schema instead of calling this function directly. + * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your schema instead of calling this function directly. */ - public fun safeValueOf(rawValue: String): __TypeKind = values().find { it.rawValue == rawValue } - ?: UNKNOWN__ + public fun safeValueOf(rawValue: String): __TypeKind = values().find { it.rawValue == rawValue } ?: UNKNOWN__ } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/introspection_query/kotlin/responseBased/introspection_query/type/adapter/__TypeKind_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/introspection_query/kotlin/responseBased/introspection_query/type/adapter/__TypeKind_ResponseAdapter.kt.expected index 9c36d88c386..569d1542994 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/introspection_query/kotlin/responseBased/introspection_query/type/adapter/__TypeKind_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/introspection_query/kotlin/responseBased/introspection_query/type/adapter/__TypeKind_ResponseAdapter.kt.expected @@ -12,8 +12,7 @@ import com.apollographql.apollo.api.json.JsonWriter import com.example.introspection_query.type.__TypeKind public object __TypeKind_ResponseAdapter : Adapter<__TypeKind> { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - __TypeKind { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): __TypeKind { val rawValue = reader.nextString()!! return __TypeKind.safeValueOf(rawValue) } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/java8annotation/kotlin/responseBased/java8annotation/LoginBarber.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/java8annotation/kotlin/responseBased/java8annotation/LoginBarber.kt.expected index 40478f5ae2a..0984a6a6e40 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/java8annotation/kotlin/responseBased/java8annotation/LoginBarber.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/java8annotation/kotlin/responseBased/java8annotation/LoginBarber.kt.expected @@ -34,8 +34,7 @@ public data class LoginBarber( customScalarAdapters: CustomScalarAdapters, withDefaultValues: Boolean, ) { - LoginBarber_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, - withDefaultValues) + LoginBarber_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, withDefaultValues) } override fun adapter(): Adapter = LoginBarber_ResponseAdapter.Data.obj() diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/java8annotation/kotlin/responseBased/java8annotation/adapter/LoginBarber_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/java8annotation/kotlin/responseBased/java8annotation/adapter/LoginBarber_ResponseAdapter.kt.expected index 3d8559f21df..7da9ae4105c 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/java8annotation/kotlin/responseBased/java8annotation/adapter/LoginBarber_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/java8annotation/kotlin/responseBased/java8annotation/adapter/LoginBarber_ResponseAdapter.kt.expected @@ -20,8 +20,7 @@ public object LoginBarber_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("login") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - LoginBarber.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): LoginBarber.Data { var _login: LoginBarber.Data.Login? = null while (true) { @@ -48,8 +47,7 @@ public object LoginBarber_ResponseAdapter { private object Login : Adapter { public val RESPONSE_NAMES: List = listOf("response") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - LoginBarber.Data.Login { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): LoginBarber.Data.Login { var _response: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/java8annotation/kotlin/responseBased/java8annotation/type/adapter/Login_InputAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/java8annotation/kotlin/responseBased/java8annotation/type/adapter/Login_InputAdapter.kt.expected index 7a5295d33e4..75861a325f0 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/java8annotation/kotlin/responseBased/java8annotation/type/adapter/Login_InputAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/java8annotation/kotlin/responseBased/java8annotation/type/adapter/Login_InputAdapter.kt.expected @@ -14,8 +14,7 @@ import com.example.java8annotation.type.Login import kotlin.IllegalStateException public object Login_InputAdapter : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): Login = - throw IllegalStateException("Input type used in output position") + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): Login = throw IllegalStateException("Input type used in output position") override fun toJson( writer: JsonWriter, diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/java_android_annotations/kotlin/responseBased/java_android_annotations/MyQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/java_android_annotations/kotlin/responseBased/java_android_annotations/MyQuery.kt.expected index 47c1cacbbf2..ebcfcccccbc 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/java_android_annotations/kotlin/responseBased/java_android_annotations/MyQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/java_android_annotations/kotlin/responseBased/java_android_annotations/MyQuery.kt.expected @@ -42,8 +42,7 @@ public data class MyQuery( customScalarAdapters: CustomScalarAdapters, withDefaultValues: Boolean, ) { - MyQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, - withDefaultValues) + MyQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, withDefaultValues) } override fun adapter(): Adapter = MyQuery_ResponseAdapter.Data.obj() @@ -64,8 +63,7 @@ public data class MyQuery( public val nullableListOfNullableString: List?, public val nullableListOfNonNullableString: List?, ) : Query.Data { - public fun nullableListOfNullableStringFilterNotNull(): List? = - nullableListOfNullableString?.filterNotNull() + public fun nullableListOfNullableStringFilterNotNull(): List? = nullableListOfNullableString?.filterNotNull() public data class NullableMyType( public val nullableInt: Int?, @@ -87,18 +85,12 @@ public data class MyQuery( * The un-minimized version is: * * ``` - * query MyQuery($nullableInt: Int, $nonNullableInt: Int!, $nonNullableIntWithDefault: Int! = 4 - * , $nullableInput: MyInput, $nonNullableInput: MyInput!, $nonNullableInputWithDefault: MyInput! = - * { + * query MyQuery($nullableInt: Int, $nonNullableInt: Int!, $nonNullableIntWithDefault: Int! = 4 , $nullableInput: MyInput, $nonNullableInput: MyInput!, $nonNullableInputWithDefault: MyInput! = { * nonNullableInt: 4 * } * ) { - * nullableInt(nullableInt: $nullableInt, nonNullableInt: $nonNullableInt, - * nonNullableIntWithDefault: $nonNullableIntWithDefault, nullableInput: $nullableInput, - * nonNullableInput: $nonNullableInput, nonNullableInputWithDefault: $nonNullableInputWithDefault) - * nonNullableInt(nullableInt: $nullableInt, nonNullableInt: $nonNullableInt, - * nonNullableIntWithDefault: $nonNullableIntWithDefault, nullableInput: $nullableInput, - * nonNullableInput: $nonNullableInput, nonNullableInputWithDefault: $nonNullableInputWithDefault) + * nullableInt(nullableInt: $nullableInt, nonNullableInt: $nonNullableInt, nonNullableIntWithDefault: $nonNullableIntWithDefault, nullableInput: $nullableInput, nonNullableInput: $nonNullableInput, nonNullableInputWithDefault: $nonNullableInputWithDefault) + * nonNullableInt(nullableInt: $nullableInt, nonNullableInt: $nonNullableInt, nonNullableIntWithDefault: $nonNullableIntWithDefault, nullableInput: $nullableInput, nonNullableInput: $nonNullableInput, nonNullableInputWithDefault: $nonNullableInputWithDefault) * nullableMyType { * nullableInt * nonNullableInt @@ -113,8 +105,7 @@ public data class MyQuery( * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query MyQuery(${'$'}nullableInt: Int, ${'$'}nonNullableInt: Int!, ${'$'}nonNullableIntWithDefault: Int! = 4 , ${'$'}nullableInput: MyInput, ${'$'}nonNullableInput: MyInput!, ${'$'}nonNullableInputWithDefault: MyInput! = { nonNullableInt: 4 } ) { nullableInt(nullableInt: ${'$'}nullableInt, nonNullableInt: ${'$'}nonNullableInt, nonNullableIntWithDefault: ${'$'}nonNullableIntWithDefault, nullableInput: ${'$'}nullableInput, nonNullableInput: ${'$'}nonNullableInput, nonNullableInputWithDefault: ${'$'}nonNullableInputWithDefault) nonNullableInt(nullableInt: ${'$'}nullableInt, nonNullableInt: ${'$'}nonNullableInt, nonNullableIntWithDefault: ${'$'}nonNullableIntWithDefault, nullableInput: ${'$'}nullableInput, nonNullableInput: ${'$'}nonNullableInput, nonNullableInputWithDefault: ${'$'}nonNullableInputWithDefault) nullableMyType { nullableInt nonNullableInt } nonNullableMyType { nullableInt nonNullableInt } nullableListOfNullableString nullableListOfNonNullableString }" + get() = "query MyQuery(${'$'}nullableInt: Int, ${'$'}nonNullableInt: Int!, ${'$'}nonNullableIntWithDefault: Int! = 4 , ${'$'}nullableInput: MyInput, ${'$'}nonNullableInput: MyInput!, ${'$'}nonNullableInputWithDefault: MyInput! = { nonNullableInt: 4 } ) { nullableInt(nullableInt: ${'$'}nullableInt, nonNullableInt: ${'$'}nonNullableInt, nonNullableIntWithDefault: ${'$'}nonNullableIntWithDefault, nullableInput: ${'$'}nullableInput, nonNullableInput: ${'$'}nonNullableInput, nonNullableInputWithDefault: ${'$'}nonNullableInputWithDefault) nonNullableInt(nullableInt: ${'$'}nullableInt, nonNullableInt: ${'$'}nonNullableInt, nonNullableIntWithDefault: ${'$'}nonNullableIntWithDefault, nullableInput: ${'$'}nullableInput, nonNullableInput: ${'$'}nonNullableInput, nonNullableInputWithDefault: ${'$'}nonNullableInputWithDefault) nullableMyType { nullableInt nonNullableInt } nonNullableMyType { nullableInt nonNullableInt } nullableListOfNullableString nullableListOfNonNullableString }" public const val OPERATION_NAME: String = "MyQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/java_android_annotations/kotlin/responseBased/java_android_annotations/adapter/MyQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/java_android_annotations/kotlin/responseBased/java_android_annotations/adapter/MyQuery_ResponseAdapter.kt.expected index 35350821af3..4b4eb5d14db 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/java_android_annotations/kotlin/responseBased/java_android_annotations/adapter/MyQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/java_android_annotations/kotlin/responseBased/java_android_annotations/adapter/MyQuery_ResponseAdapter.kt.expected @@ -24,12 +24,10 @@ import kotlin.collections.List public object MyQuery_ResponseAdapter { public object Data : Adapter { - public val RESPONSE_NAMES: List = listOf("nullableInt", "nonNullableInt", - "nullableMyType", "nonNullableMyType", "nullableListOfNullableString", - "nullableListOfNonNullableString") + public val RESPONSE_NAMES: List = + listOf("nullableInt", "nonNullableInt", "nullableMyType", "nonNullableMyType", "nullableListOfNullableString", "nullableListOfNonNullableString") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - MyQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): MyQuery.Data { var _nullableInt: Int? = null var _nonNullableInt: Int? = null var _nullableMyType: MyQuery.Data.NullableMyType? = null @@ -77,19 +75,16 @@ public object MyQuery_ResponseAdapter { NonNullableMyType.obj().toJson(writer, customScalarAdapters, value.nonNullableMyType) writer.name("nullableListOfNullableString") - NullableStringAdapter.list().nullable().toJson(writer, customScalarAdapters, - value.nullableListOfNullableString) + NullableStringAdapter.list().nullable().toJson(writer, customScalarAdapters, value.nullableListOfNullableString) writer.name("nullableListOfNonNullableString") - StringAdapter.list().nullable().toJson(writer, customScalarAdapters, - value.nullableListOfNonNullableString) + StringAdapter.list().nullable().toJson(writer, customScalarAdapters, value.nullableListOfNonNullableString) } private object NullableMyType : Adapter { public val RESPONSE_NAMES: List = listOf("nullableInt", "nonNullableInt") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - MyQuery.Data.NullableMyType { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): MyQuery.Data.NullableMyType { var _nullableInt: Int? = null var _nonNullableInt: Int? = null @@ -123,8 +118,7 @@ public object MyQuery_ResponseAdapter { private object NonNullableMyType : Adapter { public val RESPONSE_NAMES: List = listOf("nullableInt", "nonNullableInt") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - MyQuery.Data.NonNullableMyType { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): MyQuery.Data.NonNullableMyType { var _nullableInt: Int? = null var _nonNullableInt: Int? = null diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/java_android_annotations/kotlin/responseBased/java_android_annotations/adapter/MyQuery_VariablesAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/java_android_annotations/kotlin/responseBased/java_android_annotations/adapter/MyQuery_VariablesAdapter.kt.expected index f455e6fc777..329612ac517 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/java_android_annotations/kotlin/responseBased/java_android_annotations/adapter/MyQuery_VariablesAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/java_android_annotations/kotlin/responseBased/java_android_annotations/adapter/MyQuery_VariablesAdapter.kt.expected @@ -46,15 +46,13 @@ public object MyQuery_VariablesAdapter { } if (value.nullableInput is Optional.Present) { writer.name("nullableInput") - MyInput_InputAdapter.obj().nullable().present().toJson(writer, customScalarAdapters, - value.nullableInput) + MyInput_InputAdapter.obj().nullable().present().toJson(writer, customScalarAdapters, value.nullableInput) } writer.name("nonNullableInput") MyInput_InputAdapter.obj().toJson(writer, customScalarAdapters, value.nonNullableInput) if (value.nonNullableInputWithDefault is Optional.Present) { writer.name("nonNullableInputWithDefault") - MyInput_InputAdapter.obj().present().toJson(writer, customScalarAdapters, - value.nonNullableInputWithDefault) + MyInput_InputAdapter.obj().present().toJson(writer, customScalarAdapters, value.nonNullableInputWithDefault) } else if (withDefaultValues) { writer.name("nonNullableInputWithDefault") diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/java_android_annotations/kotlin/responseBased/java_android_annotations/type/adapter/MyInput_InputAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/java_android_annotations/kotlin/responseBased/java_android_annotations/type/adapter/MyInput_InputAdapter.kt.expected index 91aed668801..56fa51922c5 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/java_android_annotations/kotlin/responseBased/java_android_annotations/type/adapter/MyInput_InputAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/java_android_annotations/kotlin/responseBased/java_android_annotations/type/adapter/MyInput_InputAdapter.kt.expected @@ -17,8 +17,7 @@ import com.example.java_android_annotations.type.MyInput import kotlin.IllegalStateException public object MyInput_InputAdapter : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): MyInput = - throw IllegalStateException("Input type used in output position") + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): MyInput = throw IllegalStateException("Input type used in output position") override fun toJson( writer: JsonWriter, diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/java_apollo_optionals/kotlin/responseBased/java_apollo_optionals/MyQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/java_apollo_optionals/kotlin/responseBased/java_apollo_optionals/MyQuery.kt.expected index 1c9c7bf2d12..21594ce730d 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/java_apollo_optionals/kotlin/responseBased/java_apollo_optionals/MyQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/java_apollo_optionals/kotlin/responseBased/java_apollo_optionals/MyQuery.kt.expected @@ -42,8 +42,7 @@ public data class MyQuery( customScalarAdapters: CustomScalarAdapters, withDefaultValues: Boolean, ) { - MyQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, - withDefaultValues) + MyQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, withDefaultValues) } override fun adapter(): Adapter = MyQuery_ResponseAdapter.Data.obj() @@ -64,8 +63,7 @@ public data class MyQuery( public val nullableListOfNullableString: List?, public val nullableListOfNonNullableString: List?, ) : Query.Data { - public fun nullableListOfNullableStringFilterNotNull(): List? = - nullableListOfNullableString?.filterNotNull() + public fun nullableListOfNullableStringFilterNotNull(): List? = nullableListOfNullableString?.filterNotNull() public data class NullableMyType( public val nullableInt: Int?, @@ -87,18 +85,12 @@ public data class MyQuery( * The un-minimized version is: * * ``` - * query MyQuery($nullableInt: Int, $nonNullableInt: Int!, $nonNullableIntWithDefault: Int! = 4 - * , $nullableInput: MyInput, $nonNullableInput: MyInput!, $nonNullableInputWithDefault: MyInput! = - * { + * query MyQuery($nullableInt: Int, $nonNullableInt: Int!, $nonNullableIntWithDefault: Int! = 4 , $nullableInput: MyInput, $nonNullableInput: MyInput!, $nonNullableInputWithDefault: MyInput! = { * nonNullableInt: 4 * } * ) { - * nullableInt(nullableInt: $nullableInt, nonNullableInt: $nonNullableInt, - * nonNullableIntWithDefault: $nonNullableIntWithDefault, nullableInput: $nullableInput, - * nonNullableInput: $nonNullableInput, nonNullableInputWithDefault: $nonNullableInputWithDefault) - * nonNullableInt(nullableInt: $nullableInt, nonNullableInt: $nonNullableInt, - * nonNullableIntWithDefault: $nonNullableIntWithDefault, nullableInput: $nullableInput, - * nonNullableInput: $nonNullableInput, nonNullableInputWithDefault: $nonNullableInputWithDefault) + * nullableInt(nullableInt: $nullableInt, nonNullableInt: $nonNullableInt, nonNullableIntWithDefault: $nonNullableIntWithDefault, nullableInput: $nullableInput, nonNullableInput: $nonNullableInput, nonNullableInputWithDefault: $nonNullableInputWithDefault) + * nonNullableInt(nullableInt: $nullableInt, nonNullableInt: $nonNullableInt, nonNullableIntWithDefault: $nonNullableIntWithDefault, nullableInput: $nullableInput, nonNullableInput: $nonNullableInput, nonNullableInputWithDefault: $nonNullableInputWithDefault) * nullableMyType { * nullableInt * nonNullableInt @@ -113,8 +105,7 @@ public data class MyQuery( * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query MyQuery(${'$'}nullableInt: Int, ${'$'}nonNullableInt: Int!, ${'$'}nonNullableIntWithDefault: Int! = 4 , ${'$'}nullableInput: MyInput, ${'$'}nonNullableInput: MyInput!, ${'$'}nonNullableInputWithDefault: MyInput! = { nonNullableInt: 4 } ) { nullableInt(nullableInt: ${'$'}nullableInt, nonNullableInt: ${'$'}nonNullableInt, nonNullableIntWithDefault: ${'$'}nonNullableIntWithDefault, nullableInput: ${'$'}nullableInput, nonNullableInput: ${'$'}nonNullableInput, nonNullableInputWithDefault: ${'$'}nonNullableInputWithDefault) nonNullableInt(nullableInt: ${'$'}nullableInt, nonNullableInt: ${'$'}nonNullableInt, nonNullableIntWithDefault: ${'$'}nonNullableIntWithDefault, nullableInput: ${'$'}nullableInput, nonNullableInput: ${'$'}nonNullableInput, nonNullableInputWithDefault: ${'$'}nonNullableInputWithDefault) nullableMyType { nullableInt nonNullableInt } nonNullableMyType { nullableInt nonNullableInt } nullableListOfNullableString nullableListOfNonNullableString }" + get() = "query MyQuery(${'$'}nullableInt: Int, ${'$'}nonNullableInt: Int!, ${'$'}nonNullableIntWithDefault: Int! = 4 , ${'$'}nullableInput: MyInput, ${'$'}nonNullableInput: MyInput!, ${'$'}nonNullableInputWithDefault: MyInput! = { nonNullableInt: 4 } ) { nullableInt(nullableInt: ${'$'}nullableInt, nonNullableInt: ${'$'}nonNullableInt, nonNullableIntWithDefault: ${'$'}nonNullableIntWithDefault, nullableInput: ${'$'}nullableInput, nonNullableInput: ${'$'}nonNullableInput, nonNullableInputWithDefault: ${'$'}nonNullableInputWithDefault) nonNullableInt(nullableInt: ${'$'}nullableInt, nonNullableInt: ${'$'}nonNullableInt, nonNullableIntWithDefault: ${'$'}nonNullableIntWithDefault, nullableInput: ${'$'}nullableInput, nonNullableInput: ${'$'}nonNullableInput, nonNullableInputWithDefault: ${'$'}nonNullableInputWithDefault) nullableMyType { nullableInt nonNullableInt } nonNullableMyType { nullableInt nonNullableInt } nullableListOfNullableString nullableListOfNonNullableString }" public const val OPERATION_NAME: String = "MyQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/java_apollo_optionals/kotlin/responseBased/java_apollo_optionals/adapter/MyQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/java_apollo_optionals/kotlin/responseBased/java_apollo_optionals/adapter/MyQuery_ResponseAdapter.kt.expected index 88247b9e87c..4c150b81d95 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/java_apollo_optionals/kotlin/responseBased/java_apollo_optionals/adapter/MyQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/java_apollo_optionals/kotlin/responseBased/java_apollo_optionals/adapter/MyQuery_ResponseAdapter.kt.expected @@ -24,12 +24,10 @@ import kotlin.collections.List public object MyQuery_ResponseAdapter { public object Data : Adapter { - public val RESPONSE_NAMES: List = listOf("nullableInt", "nonNullableInt", - "nullableMyType", "nonNullableMyType", "nullableListOfNullableString", - "nullableListOfNonNullableString") + public val RESPONSE_NAMES: List = + listOf("nullableInt", "nonNullableInt", "nullableMyType", "nonNullableMyType", "nullableListOfNullableString", "nullableListOfNonNullableString") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - MyQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): MyQuery.Data { var _nullableInt: Int? = null var _nonNullableInt: Int? = null var _nullableMyType: MyQuery.Data.NullableMyType? = null @@ -77,19 +75,16 @@ public object MyQuery_ResponseAdapter { NonNullableMyType.obj().toJson(writer, customScalarAdapters, value.nonNullableMyType) writer.name("nullableListOfNullableString") - NullableStringAdapter.list().nullable().toJson(writer, customScalarAdapters, - value.nullableListOfNullableString) + NullableStringAdapter.list().nullable().toJson(writer, customScalarAdapters, value.nullableListOfNullableString) writer.name("nullableListOfNonNullableString") - StringAdapter.list().nullable().toJson(writer, customScalarAdapters, - value.nullableListOfNonNullableString) + StringAdapter.list().nullable().toJson(writer, customScalarAdapters, value.nullableListOfNonNullableString) } private object NullableMyType : Adapter { public val RESPONSE_NAMES: List = listOf("nullableInt", "nonNullableInt") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - MyQuery.Data.NullableMyType { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): MyQuery.Data.NullableMyType { var _nullableInt: Int? = null var _nonNullableInt: Int? = null @@ -123,8 +118,7 @@ public object MyQuery_ResponseAdapter { private object NonNullableMyType : Adapter { public val RESPONSE_NAMES: List = listOf("nullableInt", "nonNullableInt") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - MyQuery.Data.NonNullableMyType { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): MyQuery.Data.NonNullableMyType { var _nullableInt: Int? = null var _nonNullableInt: Int? = null diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/java_apollo_optionals/kotlin/responseBased/java_apollo_optionals/adapter/MyQuery_VariablesAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/java_apollo_optionals/kotlin/responseBased/java_apollo_optionals/adapter/MyQuery_VariablesAdapter.kt.expected index 78e7e1893b4..f0146455e17 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/java_apollo_optionals/kotlin/responseBased/java_apollo_optionals/adapter/MyQuery_VariablesAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/java_apollo_optionals/kotlin/responseBased/java_apollo_optionals/adapter/MyQuery_VariablesAdapter.kt.expected @@ -46,15 +46,13 @@ public object MyQuery_VariablesAdapter { } if (value.nullableInput is Optional.Present) { writer.name("nullableInput") - MyInput_InputAdapter.obj().nullable().present().toJson(writer, customScalarAdapters, - value.nullableInput) + MyInput_InputAdapter.obj().nullable().present().toJson(writer, customScalarAdapters, value.nullableInput) } writer.name("nonNullableInput") MyInput_InputAdapter.obj().toJson(writer, customScalarAdapters, value.nonNullableInput) if (value.nonNullableInputWithDefault is Optional.Present) { writer.name("nonNullableInputWithDefault") - MyInput_InputAdapter.obj().present().toJson(writer, customScalarAdapters, - value.nonNullableInputWithDefault) + MyInput_InputAdapter.obj().present().toJson(writer, customScalarAdapters, value.nonNullableInputWithDefault) } else if (withDefaultValues) { writer.name("nonNullableInputWithDefault") diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/java_apollo_optionals/kotlin/responseBased/java_apollo_optionals/type/adapter/MyInput_InputAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/java_apollo_optionals/kotlin/responseBased/java_apollo_optionals/type/adapter/MyInput_InputAdapter.kt.expected index ac73eb52b04..ffe0c231a6d 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/java_apollo_optionals/kotlin/responseBased/java_apollo_optionals/type/adapter/MyInput_InputAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/java_apollo_optionals/kotlin/responseBased/java_apollo_optionals/type/adapter/MyInput_InputAdapter.kt.expected @@ -17,8 +17,7 @@ import com.example.java_apollo_optionals.type.MyInput import kotlin.IllegalStateException public object MyInput_InputAdapter : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): MyInput = - throw IllegalStateException("Input type used in output position") + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): MyInput = throw IllegalStateException("Input type used in output position") override fun toJson( writer: JsonWriter, diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/java_guava_optionals/kotlin/responseBased/java_guava_optionals/MyQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/java_guava_optionals/kotlin/responseBased/java_guava_optionals/MyQuery.kt.expected index a7c78268285..b74b05ab132 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/java_guava_optionals/kotlin/responseBased/java_guava_optionals/MyQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/java_guava_optionals/kotlin/responseBased/java_guava_optionals/MyQuery.kt.expected @@ -42,8 +42,7 @@ public data class MyQuery( customScalarAdapters: CustomScalarAdapters, withDefaultValues: Boolean, ) { - MyQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, - withDefaultValues) + MyQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, withDefaultValues) } override fun adapter(): Adapter = MyQuery_ResponseAdapter.Data.obj() @@ -64,8 +63,7 @@ public data class MyQuery( public val nullableListOfNullableString: List?, public val nullableListOfNonNullableString: List?, ) : Query.Data { - public fun nullableListOfNullableStringFilterNotNull(): List? = - nullableListOfNullableString?.filterNotNull() + public fun nullableListOfNullableStringFilterNotNull(): List? = nullableListOfNullableString?.filterNotNull() public data class NullableMyType( public val nullableInt: Int?, @@ -87,18 +85,12 @@ public data class MyQuery( * The un-minimized version is: * * ``` - * query MyQuery($nullableInt: Int, $nonNullableInt: Int!, $nonNullableIntWithDefault: Int! = 4 - * , $nullableInput: MyInput, $nonNullableInput: MyInput!, $nonNullableInputWithDefault: MyInput! = - * { + * query MyQuery($nullableInt: Int, $nonNullableInt: Int!, $nonNullableIntWithDefault: Int! = 4 , $nullableInput: MyInput, $nonNullableInput: MyInput!, $nonNullableInputWithDefault: MyInput! = { * nonNullableInt: 4 * } * ) { - * nullableInt(nullableInt: $nullableInt, nonNullableInt: $nonNullableInt, - * nonNullableIntWithDefault: $nonNullableIntWithDefault, nullableInput: $nullableInput, - * nonNullableInput: $nonNullableInput, nonNullableInputWithDefault: $nonNullableInputWithDefault) - * nonNullableInt(nullableInt: $nullableInt, nonNullableInt: $nonNullableInt, - * nonNullableIntWithDefault: $nonNullableIntWithDefault, nullableInput: $nullableInput, - * nonNullableInput: $nonNullableInput, nonNullableInputWithDefault: $nonNullableInputWithDefault) + * nullableInt(nullableInt: $nullableInt, nonNullableInt: $nonNullableInt, nonNullableIntWithDefault: $nonNullableIntWithDefault, nullableInput: $nullableInput, nonNullableInput: $nonNullableInput, nonNullableInputWithDefault: $nonNullableInputWithDefault) + * nonNullableInt(nullableInt: $nullableInt, nonNullableInt: $nonNullableInt, nonNullableIntWithDefault: $nonNullableIntWithDefault, nullableInput: $nullableInput, nonNullableInput: $nonNullableInput, nonNullableInputWithDefault: $nonNullableInputWithDefault) * nullableMyType { * nullableInt * nonNullableInt @@ -113,8 +105,7 @@ public data class MyQuery( * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query MyQuery(${'$'}nullableInt: Int, ${'$'}nonNullableInt: Int!, ${'$'}nonNullableIntWithDefault: Int! = 4 , ${'$'}nullableInput: MyInput, ${'$'}nonNullableInput: MyInput!, ${'$'}nonNullableInputWithDefault: MyInput! = { nonNullableInt: 4 } ) { nullableInt(nullableInt: ${'$'}nullableInt, nonNullableInt: ${'$'}nonNullableInt, nonNullableIntWithDefault: ${'$'}nonNullableIntWithDefault, nullableInput: ${'$'}nullableInput, nonNullableInput: ${'$'}nonNullableInput, nonNullableInputWithDefault: ${'$'}nonNullableInputWithDefault) nonNullableInt(nullableInt: ${'$'}nullableInt, nonNullableInt: ${'$'}nonNullableInt, nonNullableIntWithDefault: ${'$'}nonNullableIntWithDefault, nullableInput: ${'$'}nullableInput, nonNullableInput: ${'$'}nonNullableInput, nonNullableInputWithDefault: ${'$'}nonNullableInputWithDefault) nullableMyType { nullableInt nonNullableInt } nonNullableMyType { nullableInt nonNullableInt } nullableListOfNullableString nullableListOfNonNullableString }" + get() = "query MyQuery(${'$'}nullableInt: Int, ${'$'}nonNullableInt: Int!, ${'$'}nonNullableIntWithDefault: Int! = 4 , ${'$'}nullableInput: MyInput, ${'$'}nonNullableInput: MyInput!, ${'$'}nonNullableInputWithDefault: MyInput! = { nonNullableInt: 4 } ) { nullableInt(nullableInt: ${'$'}nullableInt, nonNullableInt: ${'$'}nonNullableInt, nonNullableIntWithDefault: ${'$'}nonNullableIntWithDefault, nullableInput: ${'$'}nullableInput, nonNullableInput: ${'$'}nonNullableInput, nonNullableInputWithDefault: ${'$'}nonNullableInputWithDefault) nonNullableInt(nullableInt: ${'$'}nullableInt, nonNullableInt: ${'$'}nonNullableInt, nonNullableIntWithDefault: ${'$'}nonNullableIntWithDefault, nullableInput: ${'$'}nullableInput, nonNullableInput: ${'$'}nonNullableInput, nonNullableInputWithDefault: ${'$'}nonNullableInputWithDefault) nullableMyType { nullableInt nonNullableInt } nonNullableMyType { nullableInt nonNullableInt } nullableListOfNullableString nullableListOfNonNullableString }" public const val OPERATION_NAME: String = "MyQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/java_guava_optionals/kotlin/responseBased/java_guava_optionals/adapter/MyQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/java_guava_optionals/kotlin/responseBased/java_guava_optionals/adapter/MyQuery_ResponseAdapter.kt.expected index 0598e0888fb..27c7d548395 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/java_guava_optionals/kotlin/responseBased/java_guava_optionals/adapter/MyQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/java_guava_optionals/kotlin/responseBased/java_guava_optionals/adapter/MyQuery_ResponseAdapter.kt.expected @@ -24,12 +24,10 @@ import kotlin.collections.List public object MyQuery_ResponseAdapter { public object Data : Adapter { - public val RESPONSE_NAMES: List = listOf("nullableInt", "nonNullableInt", - "nullableMyType", "nonNullableMyType", "nullableListOfNullableString", - "nullableListOfNonNullableString") + public val RESPONSE_NAMES: List = + listOf("nullableInt", "nonNullableInt", "nullableMyType", "nonNullableMyType", "nullableListOfNullableString", "nullableListOfNonNullableString") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - MyQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): MyQuery.Data { var _nullableInt: Int? = null var _nonNullableInt: Int? = null var _nullableMyType: MyQuery.Data.NullableMyType? = null @@ -77,19 +75,16 @@ public object MyQuery_ResponseAdapter { NonNullableMyType.obj().toJson(writer, customScalarAdapters, value.nonNullableMyType) writer.name("nullableListOfNullableString") - NullableStringAdapter.list().nullable().toJson(writer, customScalarAdapters, - value.nullableListOfNullableString) + NullableStringAdapter.list().nullable().toJson(writer, customScalarAdapters, value.nullableListOfNullableString) writer.name("nullableListOfNonNullableString") - StringAdapter.list().nullable().toJson(writer, customScalarAdapters, - value.nullableListOfNonNullableString) + StringAdapter.list().nullable().toJson(writer, customScalarAdapters, value.nullableListOfNonNullableString) } private object NullableMyType : Adapter { public val RESPONSE_NAMES: List = listOf("nullableInt", "nonNullableInt") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - MyQuery.Data.NullableMyType { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): MyQuery.Data.NullableMyType { var _nullableInt: Int? = null var _nonNullableInt: Int? = null @@ -123,8 +118,7 @@ public object MyQuery_ResponseAdapter { private object NonNullableMyType : Adapter { public val RESPONSE_NAMES: List = listOf("nullableInt", "nonNullableInt") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - MyQuery.Data.NonNullableMyType { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): MyQuery.Data.NonNullableMyType { var _nullableInt: Int? = null var _nonNullableInt: Int? = null diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/java_guava_optionals/kotlin/responseBased/java_guava_optionals/adapter/MyQuery_VariablesAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/java_guava_optionals/kotlin/responseBased/java_guava_optionals/adapter/MyQuery_VariablesAdapter.kt.expected index c963b896b91..af031afb416 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/java_guava_optionals/kotlin/responseBased/java_guava_optionals/adapter/MyQuery_VariablesAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/java_guava_optionals/kotlin/responseBased/java_guava_optionals/adapter/MyQuery_VariablesAdapter.kt.expected @@ -46,15 +46,13 @@ public object MyQuery_VariablesAdapter { } if (value.nullableInput is Optional.Present) { writer.name("nullableInput") - MyInput_InputAdapter.obj().nullable().present().toJson(writer, customScalarAdapters, - value.nullableInput) + MyInput_InputAdapter.obj().nullable().present().toJson(writer, customScalarAdapters, value.nullableInput) } writer.name("nonNullableInput") MyInput_InputAdapter.obj().toJson(writer, customScalarAdapters, value.nonNullableInput) if (value.nonNullableInputWithDefault is Optional.Present) { writer.name("nonNullableInputWithDefault") - MyInput_InputAdapter.obj().present().toJson(writer, customScalarAdapters, - value.nonNullableInputWithDefault) + MyInput_InputAdapter.obj().present().toJson(writer, customScalarAdapters, value.nonNullableInputWithDefault) } else if (withDefaultValues) { writer.name("nonNullableInputWithDefault") diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/java_guava_optionals/kotlin/responseBased/java_guava_optionals/type/adapter/MyInput_InputAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/java_guava_optionals/kotlin/responseBased/java_guava_optionals/type/adapter/MyInput_InputAdapter.kt.expected index 91b419e993a..e1052ee6617 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/java_guava_optionals/kotlin/responseBased/java_guava_optionals/type/adapter/MyInput_InputAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/java_guava_optionals/kotlin/responseBased/java_guava_optionals/type/adapter/MyInput_InputAdapter.kt.expected @@ -17,8 +17,7 @@ import com.example.java_guava_optionals.type.MyInput import kotlin.IllegalStateException public object MyInput_InputAdapter : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): MyInput = - throw IllegalStateException("Input type used in output position") + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): MyInput = throw IllegalStateException("Input type used in output position") override fun toJson( writer: JsonWriter, diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/java_hashcode/kotlin/responseBased/java_hashcode/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/java_hashcode/kotlin/responseBased/java_hashcode/adapter/TestQuery_ResponseAdapter.kt.expected index b571d0ed84d..d561836dec5 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/java_hashcode/kotlin/responseBased/java_hashcode/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/java_hashcode/kotlin/responseBased/java_hashcode/adapter/TestQuery_ResponseAdapter.kt.expected @@ -19,8 +19,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("h") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _h: Int? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/java_java_optionals/kotlin/responseBased/java_java_optionals/MyQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/java_java_optionals/kotlin/responseBased/java_java_optionals/MyQuery.kt.expected index c9136d57a55..d51c695f323 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/java_java_optionals/kotlin/responseBased/java_java_optionals/MyQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/java_java_optionals/kotlin/responseBased/java_java_optionals/MyQuery.kt.expected @@ -42,8 +42,7 @@ public data class MyQuery( customScalarAdapters: CustomScalarAdapters, withDefaultValues: Boolean, ) { - MyQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, - withDefaultValues) + MyQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, withDefaultValues) } override fun adapter(): Adapter = MyQuery_ResponseAdapter.Data.obj() @@ -64,8 +63,7 @@ public data class MyQuery( public val nullableListOfNullableString: List?, public val nullableListOfNonNullableString: List?, ) : Query.Data { - public fun nullableListOfNullableStringFilterNotNull(): List? = - nullableListOfNullableString?.filterNotNull() + public fun nullableListOfNullableStringFilterNotNull(): List? = nullableListOfNullableString?.filterNotNull() public data class NullableMyType( public val nullableInt: Int?, @@ -87,18 +85,12 @@ public data class MyQuery( * The un-minimized version is: * * ``` - * query MyQuery($nullableInt: Int, $nonNullableInt: Int!, $nonNullableIntWithDefault: Int! = 4 - * , $nullableInput: MyInput, $nonNullableInput: MyInput!, $nonNullableInputWithDefault: MyInput! = - * { + * query MyQuery($nullableInt: Int, $nonNullableInt: Int!, $nonNullableIntWithDefault: Int! = 4 , $nullableInput: MyInput, $nonNullableInput: MyInput!, $nonNullableInputWithDefault: MyInput! = { * nonNullableInt: 4 * } * ) { - * nullableInt(nullableInt: $nullableInt, nonNullableInt: $nonNullableInt, - * nonNullableIntWithDefault: $nonNullableIntWithDefault, nullableInput: $nullableInput, - * nonNullableInput: $nonNullableInput, nonNullableInputWithDefault: $nonNullableInputWithDefault) - * nonNullableInt(nullableInt: $nullableInt, nonNullableInt: $nonNullableInt, - * nonNullableIntWithDefault: $nonNullableIntWithDefault, nullableInput: $nullableInput, - * nonNullableInput: $nonNullableInput, nonNullableInputWithDefault: $nonNullableInputWithDefault) + * nullableInt(nullableInt: $nullableInt, nonNullableInt: $nonNullableInt, nonNullableIntWithDefault: $nonNullableIntWithDefault, nullableInput: $nullableInput, nonNullableInput: $nonNullableInput, nonNullableInputWithDefault: $nonNullableInputWithDefault) + * nonNullableInt(nullableInt: $nullableInt, nonNullableInt: $nonNullableInt, nonNullableIntWithDefault: $nonNullableIntWithDefault, nullableInput: $nullableInput, nonNullableInput: $nonNullableInput, nonNullableInputWithDefault: $nonNullableInputWithDefault) * nullableMyType { * nullableInt * nonNullableInt @@ -113,8 +105,7 @@ public data class MyQuery( * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query MyQuery(${'$'}nullableInt: Int, ${'$'}nonNullableInt: Int!, ${'$'}nonNullableIntWithDefault: Int! = 4 , ${'$'}nullableInput: MyInput, ${'$'}nonNullableInput: MyInput!, ${'$'}nonNullableInputWithDefault: MyInput! = { nonNullableInt: 4 } ) { nullableInt(nullableInt: ${'$'}nullableInt, nonNullableInt: ${'$'}nonNullableInt, nonNullableIntWithDefault: ${'$'}nonNullableIntWithDefault, nullableInput: ${'$'}nullableInput, nonNullableInput: ${'$'}nonNullableInput, nonNullableInputWithDefault: ${'$'}nonNullableInputWithDefault) nonNullableInt(nullableInt: ${'$'}nullableInt, nonNullableInt: ${'$'}nonNullableInt, nonNullableIntWithDefault: ${'$'}nonNullableIntWithDefault, nullableInput: ${'$'}nullableInput, nonNullableInput: ${'$'}nonNullableInput, nonNullableInputWithDefault: ${'$'}nonNullableInputWithDefault) nullableMyType { nullableInt nonNullableInt } nonNullableMyType { nullableInt nonNullableInt } nullableListOfNullableString nullableListOfNonNullableString }" + get() = "query MyQuery(${'$'}nullableInt: Int, ${'$'}nonNullableInt: Int!, ${'$'}nonNullableIntWithDefault: Int! = 4 , ${'$'}nullableInput: MyInput, ${'$'}nonNullableInput: MyInput!, ${'$'}nonNullableInputWithDefault: MyInput! = { nonNullableInt: 4 } ) { nullableInt(nullableInt: ${'$'}nullableInt, nonNullableInt: ${'$'}nonNullableInt, nonNullableIntWithDefault: ${'$'}nonNullableIntWithDefault, nullableInput: ${'$'}nullableInput, nonNullableInput: ${'$'}nonNullableInput, nonNullableInputWithDefault: ${'$'}nonNullableInputWithDefault) nonNullableInt(nullableInt: ${'$'}nullableInt, nonNullableInt: ${'$'}nonNullableInt, nonNullableIntWithDefault: ${'$'}nonNullableIntWithDefault, nullableInput: ${'$'}nullableInput, nonNullableInput: ${'$'}nonNullableInput, nonNullableInputWithDefault: ${'$'}nonNullableInputWithDefault) nullableMyType { nullableInt nonNullableInt } nonNullableMyType { nullableInt nonNullableInt } nullableListOfNullableString nullableListOfNonNullableString }" public const val OPERATION_NAME: String = "MyQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/java_java_optionals/kotlin/responseBased/java_java_optionals/adapter/MyQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/java_java_optionals/kotlin/responseBased/java_java_optionals/adapter/MyQuery_ResponseAdapter.kt.expected index 8c606c3d2b3..997c9151c88 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/java_java_optionals/kotlin/responseBased/java_java_optionals/adapter/MyQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/java_java_optionals/kotlin/responseBased/java_java_optionals/adapter/MyQuery_ResponseAdapter.kt.expected @@ -24,12 +24,10 @@ import kotlin.collections.List public object MyQuery_ResponseAdapter { public object Data : Adapter { - public val RESPONSE_NAMES: List = listOf("nullableInt", "nonNullableInt", - "nullableMyType", "nonNullableMyType", "nullableListOfNullableString", - "nullableListOfNonNullableString") + public val RESPONSE_NAMES: List = + listOf("nullableInt", "nonNullableInt", "nullableMyType", "nonNullableMyType", "nullableListOfNullableString", "nullableListOfNonNullableString") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - MyQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): MyQuery.Data { var _nullableInt: Int? = null var _nonNullableInt: Int? = null var _nullableMyType: MyQuery.Data.NullableMyType? = null @@ -77,19 +75,16 @@ public object MyQuery_ResponseAdapter { NonNullableMyType.obj().toJson(writer, customScalarAdapters, value.nonNullableMyType) writer.name("nullableListOfNullableString") - NullableStringAdapter.list().nullable().toJson(writer, customScalarAdapters, - value.nullableListOfNullableString) + NullableStringAdapter.list().nullable().toJson(writer, customScalarAdapters, value.nullableListOfNullableString) writer.name("nullableListOfNonNullableString") - StringAdapter.list().nullable().toJson(writer, customScalarAdapters, - value.nullableListOfNonNullableString) + StringAdapter.list().nullable().toJson(writer, customScalarAdapters, value.nullableListOfNonNullableString) } private object NullableMyType : Adapter { public val RESPONSE_NAMES: List = listOf("nullableInt", "nonNullableInt") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - MyQuery.Data.NullableMyType { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): MyQuery.Data.NullableMyType { var _nullableInt: Int? = null var _nonNullableInt: Int? = null @@ -123,8 +118,7 @@ public object MyQuery_ResponseAdapter { private object NonNullableMyType : Adapter { public val RESPONSE_NAMES: List = listOf("nullableInt", "nonNullableInt") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - MyQuery.Data.NonNullableMyType { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): MyQuery.Data.NonNullableMyType { var _nullableInt: Int? = null var _nonNullableInt: Int? = null diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/java_java_optionals/kotlin/responseBased/java_java_optionals/adapter/MyQuery_VariablesAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/java_java_optionals/kotlin/responseBased/java_java_optionals/adapter/MyQuery_VariablesAdapter.kt.expected index f7b3ac7e490..ab11395e3f4 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/java_java_optionals/kotlin/responseBased/java_java_optionals/adapter/MyQuery_VariablesAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/java_java_optionals/kotlin/responseBased/java_java_optionals/adapter/MyQuery_VariablesAdapter.kt.expected @@ -46,15 +46,13 @@ public object MyQuery_VariablesAdapter { } if (value.nullableInput is Optional.Present) { writer.name("nullableInput") - MyInput_InputAdapter.obj().nullable().present().toJson(writer, customScalarAdapters, - value.nullableInput) + MyInput_InputAdapter.obj().nullable().present().toJson(writer, customScalarAdapters, value.nullableInput) } writer.name("nonNullableInput") MyInput_InputAdapter.obj().toJson(writer, customScalarAdapters, value.nonNullableInput) if (value.nonNullableInputWithDefault is Optional.Present) { writer.name("nonNullableInputWithDefault") - MyInput_InputAdapter.obj().present().toJson(writer, customScalarAdapters, - value.nonNullableInputWithDefault) + MyInput_InputAdapter.obj().present().toJson(writer, customScalarAdapters, value.nonNullableInputWithDefault) } else if (withDefaultValues) { writer.name("nonNullableInputWithDefault") diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/java_java_optionals/kotlin/responseBased/java_java_optionals/type/adapter/MyInput_InputAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/java_java_optionals/kotlin/responseBased/java_java_optionals/type/adapter/MyInput_InputAdapter.kt.expected index e9992b2abbd..f93605bb9c3 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/java_java_optionals/kotlin/responseBased/java_java_optionals/type/adapter/MyInput_InputAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/java_java_optionals/kotlin/responseBased/java_java_optionals/type/adapter/MyInput_InputAdapter.kt.expected @@ -17,8 +17,7 @@ import com.example.java_java_optionals.type.MyInput import kotlin.IllegalStateException public object MyInput_InputAdapter : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): MyInput = - throw IllegalStateException("Input type used in output position") + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): MyInput = throw IllegalStateException("Input type used in output position") override fun toJson( writer: JsonWriter, diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/java_jetbrains_annotations/kotlin/responseBased/java_jetbrains_annotations/MyQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/java_jetbrains_annotations/kotlin/responseBased/java_jetbrains_annotations/MyQuery.kt.expected index dd4ee3f0973..e11eb3d191e 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/java_jetbrains_annotations/kotlin/responseBased/java_jetbrains_annotations/MyQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/java_jetbrains_annotations/kotlin/responseBased/java_jetbrains_annotations/MyQuery.kt.expected @@ -42,8 +42,7 @@ public data class MyQuery( customScalarAdapters: CustomScalarAdapters, withDefaultValues: Boolean, ) { - MyQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, - withDefaultValues) + MyQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, withDefaultValues) } override fun adapter(): Adapter = MyQuery_ResponseAdapter.Data.obj() @@ -64,8 +63,7 @@ public data class MyQuery( public val nullableListOfNullableString: List?, public val nullableListOfNonNullableString: List?, ) : Query.Data { - public fun nullableListOfNullableStringFilterNotNull(): List? = - nullableListOfNullableString?.filterNotNull() + public fun nullableListOfNullableStringFilterNotNull(): List? = nullableListOfNullableString?.filterNotNull() public data class NullableMyType( public val nullableInt: Int?, @@ -87,18 +85,12 @@ public data class MyQuery( * The un-minimized version is: * * ``` - * query MyQuery($nullableInt: Int, $nonNullableInt: Int!, $nonNullableIntWithDefault: Int! = 4 - * , $nullableInput: MyInput, $nonNullableInput: MyInput!, $nonNullableInputWithDefault: MyInput! = - * { + * query MyQuery($nullableInt: Int, $nonNullableInt: Int!, $nonNullableIntWithDefault: Int! = 4 , $nullableInput: MyInput, $nonNullableInput: MyInput!, $nonNullableInputWithDefault: MyInput! = { * nonNullableInt: 4 * } * ) { - * nullableInt(nullableInt: $nullableInt, nonNullableInt: $nonNullableInt, - * nonNullableIntWithDefault: $nonNullableIntWithDefault, nullableInput: $nullableInput, - * nonNullableInput: $nonNullableInput, nonNullableInputWithDefault: $nonNullableInputWithDefault) - * nonNullableInt(nullableInt: $nullableInt, nonNullableInt: $nonNullableInt, - * nonNullableIntWithDefault: $nonNullableIntWithDefault, nullableInput: $nullableInput, - * nonNullableInput: $nonNullableInput, nonNullableInputWithDefault: $nonNullableInputWithDefault) + * nullableInt(nullableInt: $nullableInt, nonNullableInt: $nonNullableInt, nonNullableIntWithDefault: $nonNullableIntWithDefault, nullableInput: $nullableInput, nonNullableInput: $nonNullableInput, nonNullableInputWithDefault: $nonNullableInputWithDefault) + * nonNullableInt(nullableInt: $nullableInt, nonNullableInt: $nonNullableInt, nonNullableIntWithDefault: $nonNullableIntWithDefault, nullableInput: $nullableInput, nonNullableInput: $nonNullableInput, nonNullableInputWithDefault: $nonNullableInputWithDefault) * nullableMyType { * nullableInt * nonNullableInt @@ -113,8 +105,7 @@ public data class MyQuery( * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query MyQuery(${'$'}nullableInt: Int, ${'$'}nonNullableInt: Int!, ${'$'}nonNullableIntWithDefault: Int! = 4 , ${'$'}nullableInput: MyInput, ${'$'}nonNullableInput: MyInput!, ${'$'}nonNullableInputWithDefault: MyInput! = { nonNullableInt: 4 } ) { nullableInt(nullableInt: ${'$'}nullableInt, nonNullableInt: ${'$'}nonNullableInt, nonNullableIntWithDefault: ${'$'}nonNullableIntWithDefault, nullableInput: ${'$'}nullableInput, nonNullableInput: ${'$'}nonNullableInput, nonNullableInputWithDefault: ${'$'}nonNullableInputWithDefault) nonNullableInt(nullableInt: ${'$'}nullableInt, nonNullableInt: ${'$'}nonNullableInt, nonNullableIntWithDefault: ${'$'}nonNullableIntWithDefault, nullableInput: ${'$'}nullableInput, nonNullableInput: ${'$'}nonNullableInput, nonNullableInputWithDefault: ${'$'}nonNullableInputWithDefault) nullableMyType { nullableInt nonNullableInt } nonNullableMyType { nullableInt nonNullableInt } nullableListOfNullableString nullableListOfNonNullableString }" + get() = "query MyQuery(${'$'}nullableInt: Int, ${'$'}nonNullableInt: Int!, ${'$'}nonNullableIntWithDefault: Int! = 4 , ${'$'}nullableInput: MyInput, ${'$'}nonNullableInput: MyInput!, ${'$'}nonNullableInputWithDefault: MyInput! = { nonNullableInt: 4 } ) { nullableInt(nullableInt: ${'$'}nullableInt, nonNullableInt: ${'$'}nonNullableInt, nonNullableIntWithDefault: ${'$'}nonNullableIntWithDefault, nullableInput: ${'$'}nullableInput, nonNullableInput: ${'$'}nonNullableInput, nonNullableInputWithDefault: ${'$'}nonNullableInputWithDefault) nonNullableInt(nullableInt: ${'$'}nullableInt, nonNullableInt: ${'$'}nonNullableInt, nonNullableIntWithDefault: ${'$'}nonNullableIntWithDefault, nullableInput: ${'$'}nullableInput, nonNullableInput: ${'$'}nonNullableInput, nonNullableInputWithDefault: ${'$'}nonNullableInputWithDefault) nullableMyType { nullableInt nonNullableInt } nonNullableMyType { nullableInt nonNullableInt } nullableListOfNullableString nullableListOfNonNullableString }" public const val OPERATION_NAME: String = "MyQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/java_jetbrains_annotations/kotlin/responseBased/java_jetbrains_annotations/adapter/MyQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/java_jetbrains_annotations/kotlin/responseBased/java_jetbrains_annotations/adapter/MyQuery_ResponseAdapter.kt.expected index 0886818a6c1..17e62b1f4fa 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/java_jetbrains_annotations/kotlin/responseBased/java_jetbrains_annotations/adapter/MyQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/java_jetbrains_annotations/kotlin/responseBased/java_jetbrains_annotations/adapter/MyQuery_ResponseAdapter.kt.expected @@ -24,12 +24,10 @@ import kotlin.collections.List public object MyQuery_ResponseAdapter { public object Data : Adapter { - public val RESPONSE_NAMES: List = listOf("nullableInt", "nonNullableInt", - "nullableMyType", "nonNullableMyType", "nullableListOfNullableString", - "nullableListOfNonNullableString") + public val RESPONSE_NAMES: List = + listOf("nullableInt", "nonNullableInt", "nullableMyType", "nonNullableMyType", "nullableListOfNullableString", "nullableListOfNonNullableString") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - MyQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): MyQuery.Data { var _nullableInt: Int? = null var _nonNullableInt: Int? = null var _nullableMyType: MyQuery.Data.NullableMyType? = null @@ -77,19 +75,16 @@ public object MyQuery_ResponseAdapter { NonNullableMyType.obj().toJson(writer, customScalarAdapters, value.nonNullableMyType) writer.name("nullableListOfNullableString") - NullableStringAdapter.list().nullable().toJson(writer, customScalarAdapters, - value.nullableListOfNullableString) + NullableStringAdapter.list().nullable().toJson(writer, customScalarAdapters, value.nullableListOfNullableString) writer.name("nullableListOfNonNullableString") - StringAdapter.list().nullable().toJson(writer, customScalarAdapters, - value.nullableListOfNonNullableString) + StringAdapter.list().nullable().toJson(writer, customScalarAdapters, value.nullableListOfNonNullableString) } private object NullableMyType : Adapter { public val RESPONSE_NAMES: List = listOf("nullableInt", "nonNullableInt") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - MyQuery.Data.NullableMyType { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): MyQuery.Data.NullableMyType { var _nullableInt: Int? = null var _nonNullableInt: Int? = null @@ -123,8 +118,7 @@ public object MyQuery_ResponseAdapter { private object NonNullableMyType : Adapter { public val RESPONSE_NAMES: List = listOf("nullableInt", "nonNullableInt") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - MyQuery.Data.NonNullableMyType { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): MyQuery.Data.NonNullableMyType { var _nullableInt: Int? = null var _nonNullableInt: Int? = null diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/java_jetbrains_annotations/kotlin/responseBased/java_jetbrains_annotations/adapter/MyQuery_VariablesAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/java_jetbrains_annotations/kotlin/responseBased/java_jetbrains_annotations/adapter/MyQuery_VariablesAdapter.kt.expected index 3c04e9ffa82..95f90097a3b 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/java_jetbrains_annotations/kotlin/responseBased/java_jetbrains_annotations/adapter/MyQuery_VariablesAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/java_jetbrains_annotations/kotlin/responseBased/java_jetbrains_annotations/adapter/MyQuery_VariablesAdapter.kt.expected @@ -46,15 +46,13 @@ public object MyQuery_VariablesAdapter { } if (value.nullableInput is Optional.Present) { writer.name("nullableInput") - MyInput_InputAdapter.obj().nullable().present().toJson(writer, customScalarAdapters, - value.nullableInput) + MyInput_InputAdapter.obj().nullable().present().toJson(writer, customScalarAdapters, value.nullableInput) } writer.name("nonNullableInput") MyInput_InputAdapter.obj().toJson(writer, customScalarAdapters, value.nonNullableInput) if (value.nonNullableInputWithDefault is Optional.Present) { writer.name("nonNullableInputWithDefault") - MyInput_InputAdapter.obj().present().toJson(writer, customScalarAdapters, - value.nonNullableInputWithDefault) + MyInput_InputAdapter.obj().present().toJson(writer, customScalarAdapters, value.nonNullableInputWithDefault) } else if (withDefaultValues) { writer.name("nonNullableInputWithDefault") diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/java_jetbrains_annotations/kotlin/responseBased/java_jetbrains_annotations/type/adapter/MyInput_InputAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/java_jetbrains_annotations/kotlin/responseBased/java_jetbrains_annotations/type/adapter/MyInput_InputAdapter.kt.expected index 35e7d640dc2..aca8dd36a9c 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/java_jetbrains_annotations/kotlin/responseBased/java_jetbrains_annotations/type/adapter/MyInput_InputAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/java_jetbrains_annotations/kotlin/responseBased/java_jetbrains_annotations/type/adapter/MyInput_InputAdapter.kt.expected @@ -17,8 +17,7 @@ import com.example.java_jetbrains_annotations.type.MyInput import kotlin.IllegalStateException public object MyInput_InputAdapter : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): MyInput = - throw IllegalStateException("Input type used in output position") + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): MyInput = throw IllegalStateException("Input type used in output position") override fun toJson( writer: JsonWriter, diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/java_jsr305_annotations/kotlin/responseBased/java_jsr305_annotations/MyQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/java_jsr305_annotations/kotlin/responseBased/java_jsr305_annotations/MyQuery.kt.expected index fdde9ae287d..6e6dcff0c71 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/java_jsr305_annotations/kotlin/responseBased/java_jsr305_annotations/MyQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/java_jsr305_annotations/kotlin/responseBased/java_jsr305_annotations/MyQuery.kt.expected @@ -42,8 +42,7 @@ public data class MyQuery( customScalarAdapters: CustomScalarAdapters, withDefaultValues: Boolean, ) { - MyQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, - withDefaultValues) + MyQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, withDefaultValues) } override fun adapter(): Adapter = MyQuery_ResponseAdapter.Data.obj() @@ -64,8 +63,7 @@ public data class MyQuery( public val nullableListOfNullableString: List?, public val nullableListOfNonNullableString: List?, ) : Query.Data { - public fun nullableListOfNullableStringFilterNotNull(): List? = - nullableListOfNullableString?.filterNotNull() + public fun nullableListOfNullableStringFilterNotNull(): List? = nullableListOfNullableString?.filterNotNull() public data class NullableMyType( public val nullableInt: Int?, @@ -87,18 +85,12 @@ public data class MyQuery( * The un-minimized version is: * * ``` - * query MyQuery($nullableInt: Int, $nonNullableInt: Int!, $nonNullableIntWithDefault: Int! = 4 - * , $nullableInput: MyInput, $nonNullableInput: MyInput!, $nonNullableInputWithDefault: MyInput! = - * { + * query MyQuery($nullableInt: Int, $nonNullableInt: Int!, $nonNullableIntWithDefault: Int! = 4 , $nullableInput: MyInput, $nonNullableInput: MyInput!, $nonNullableInputWithDefault: MyInput! = { * nonNullableInt: 4 * } * ) { - * nullableInt(nullableInt: $nullableInt, nonNullableInt: $nonNullableInt, - * nonNullableIntWithDefault: $nonNullableIntWithDefault, nullableInput: $nullableInput, - * nonNullableInput: $nonNullableInput, nonNullableInputWithDefault: $nonNullableInputWithDefault) - * nonNullableInt(nullableInt: $nullableInt, nonNullableInt: $nonNullableInt, - * nonNullableIntWithDefault: $nonNullableIntWithDefault, nullableInput: $nullableInput, - * nonNullableInput: $nonNullableInput, nonNullableInputWithDefault: $nonNullableInputWithDefault) + * nullableInt(nullableInt: $nullableInt, nonNullableInt: $nonNullableInt, nonNullableIntWithDefault: $nonNullableIntWithDefault, nullableInput: $nullableInput, nonNullableInput: $nonNullableInput, nonNullableInputWithDefault: $nonNullableInputWithDefault) + * nonNullableInt(nullableInt: $nullableInt, nonNullableInt: $nonNullableInt, nonNullableIntWithDefault: $nonNullableIntWithDefault, nullableInput: $nullableInput, nonNullableInput: $nonNullableInput, nonNullableInputWithDefault: $nonNullableInputWithDefault) * nullableMyType { * nullableInt * nonNullableInt @@ -113,8 +105,7 @@ public data class MyQuery( * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query MyQuery(${'$'}nullableInt: Int, ${'$'}nonNullableInt: Int!, ${'$'}nonNullableIntWithDefault: Int! = 4 , ${'$'}nullableInput: MyInput, ${'$'}nonNullableInput: MyInput!, ${'$'}nonNullableInputWithDefault: MyInput! = { nonNullableInt: 4 } ) { nullableInt(nullableInt: ${'$'}nullableInt, nonNullableInt: ${'$'}nonNullableInt, nonNullableIntWithDefault: ${'$'}nonNullableIntWithDefault, nullableInput: ${'$'}nullableInput, nonNullableInput: ${'$'}nonNullableInput, nonNullableInputWithDefault: ${'$'}nonNullableInputWithDefault) nonNullableInt(nullableInt: ${'$'}nullableInt, nonNullableInt: ${'$'}nonNullableInt, nonNullableIntWithDefault: ${'$'}nonNullableIntWithDefault, nullableInput: ${'$'}nullableInput, nonNullableInput: ${'$'}nonNullableInput, nonNullableInputWithDefault: ${'$'}nonNullableInputWithDefault) nullableMyType { nullableInt nonNullableInt } nonNullableMyType { nullableInt nonNullableInt } nullableListOfNullableString nullableListOfNonNullableString }" + get() = "query MyQuery(${'$'}nullableInt: Int, ${'$'}nonNullableInt: Int!, ${'$'}nonNullableIntWithDefault: Int! = 4 , ${'$'}nullableInput: MyInput, ${'$'}nonNullableInput: MyInput!, ${'$'}nonNullableInputWithDefault: MyInput! = { nonNullableInt: 4 } ) { nullableInt(nullableInt: ${'$'}nullableInt, nonNullableInt: ${'$'}nonNullableInt, nonNullableIntWithDefault: ${'$'}nonNullableIntWithDefault, nullableInput: ${'$'}nullableInput, nonNullableInput: ${'$'}nonNullableInput, nonNullableInputWithDefault: ${'$'}nonNullableInputWithDefault) nonNullableInt(nullableInt: ${'$'}nullableInt, nonNullableInt: ${'$'}nonNullableInt, nonNullableIntWithDefault: ${'$'}nonNullableIntWithDefault, nullableInput: ${'$'}nullableInput, nonNullableInput: ${'$'}nonNullableInput, nonNullableInputWithDefault: ${'$'}nonNullableInputWithDefault) nullableMyType { nullableInt nonNullableInt } nonNullableMyType { nullableInt nonNullableInt } nullableListOfNullableString nullableListOfNonNullableString }" public const val OPERATION_NAME: String = "MyQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/java_jsr305_annotations/kotlin/responseBased/java_jsr305_annotations/adapter/MyQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/java_jsr305_annotations/kotlin/responseBased/java_jsr305_annotations/adapter/MyQuery_ResponseAdapter.kt.expected index 2e679ded460..11da60638d8 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/java_jsr305_annotations/kotlin/responseBased/java_jsr305_annotations/adapter/MyQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/java_jsr305_annotations/kotlin/responseBased/java_jsr305_annotations/adapter/MyQuery_ResponseAdapter.kt.expected @@ -24,12 +24,10 @@ import kotlin.collections.List public object MyQuery_ResponseAdapter { public object Data : Adapter { - public val RESPONSE_NAMES: List = listOf("nullableInt", "nonNullableInt", - "nullableMyType", "nonNullableMyType", "nullableListOfNullableString", - "nullableListOfNonNullableString") + public val RESPONSE_NAMES: List = + listOf("nullableInt", "nonNullableInt", "nullableMyType", "nonNullableMyType", "nullableListOfNullableString", "nullableListOfNonNullableString") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - MyQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): MyQuery.Data { var _nullableInt: Int? = null var _nonNullableInt: Int? = null var _nullableMyType: MyQuery.Data.NullableMyType? = null @@ -77,19 +75,16 @@ public object MyQuery_ResponseAdapter { NonNullableMyType.obj().toJson(writer, customScalarAdapters, value.nonNullableMyType) writer.name("nullableListOfNullableString") - NullableStringAdapter.list().nullable().toJson(writer, customScalarAdapters, - value.nullableListOfNullableString) + NullableStringAdapter.list().nullable().toJson(writer, customScalarAdapters, value.nullableListOfNullableString) writer.name("nullableListOfNonNullableString") - StringAdapter.list().nullable().toJson(writer, customScalarAdapters, - value.nullableListOfNonNullableString) + StringAdapter.list().nullable().toJson(writer, customScalarAdapters, value.nullableListOfNonNullableString) } private object NullableMyType : Adapter { public val RESPONSE_NAMES: List = listOf("nullableInt", "nonNullableInt") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - MyQuery.Data.NullableMyType { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): MyQuery.Data.NullableMyType { var _nullableInt: Int? = null var _nonNullableInt: Int? = null @@ -123,8 +118,7 @@ public object MyQuery_ResponseAdapter { private object NonNullableMyType : Adapter { public val RESPONSE_NAMES: List = listOf("nullableInt", "nonNullableInt") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - MyQuery.Data.NonNullableMyType { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): MyQuery.Data.NonNullableMyType { var _nullableInt: Int? = null var _nonNullableInt: Int? = null diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/java_jsr305_annotations/kotlin/responseBased/java_jsr305_annotations/adapter/MyQuery_VariablesAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/java_jsr305_annotations/kotlin/responseBased/java_jsr305_annotations/adapter/MyQuery_VariablesAdapter.kt.expected index 32809d48a53..14accc95a95 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/java_jsr305_annotations/kotlin/responseBased/java_jsr305_annotations/adapter/MyQuery_VariablesAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/java_jsr305_annotations/kotlin/responseBased/java_jsr305_annotations/adapter/MyQuery_VariablesAdapter.kt.expected @@ -46,15 +46,13 @@ public object MyQuery_VariablesAdapter { } if (value.nullableInput is Optional.Present) { writer.name("nullableInput") - MyInput_InputAdapter.obj().nullable().present().toJson(writer, customScalarAdapters, - value.nullableInput) + MyInput_InputAdapter.obj().nullable().present().toJson(writer, customScalarAdapters, value.nullableInput) } writer.name("nonNullableInput") MyInput_InputAdapter.obj().toJson(writer, customScalarAdapters, value.nonNullableInput) if (value.nonNullableInputWithDefault is Optional.Present) { writer.name("nonNullableInputWithDefault") - MyInput_InputAdapter.obj().present().toJson(writer, customScalarAdapters, - value.nonNullableInputWithDefault) + MyInput_InputAdapter.obj().present().toJson(writer, customScalarAdapters, value.nonNullableInputWithDefault) } else if (withDefaultValues) { writer.name("nonNullableInputWithDefault") diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/java_jsr305_annotations/kotlin/responseBased/java_jsr305_annotations/type/adapter/MyInput_InputAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/java_jsr305_annotations/kotlin/responseBased/java_jsr305_annotations/type/adapter/MyInput_InputAdapter.kt.expected index 806da63de66..7b2ff7600e3 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/java_jsr305_annotations/kotlin/responseBased/java_jsr305_annotations/type/adapter/MyInput_InputAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/java_jsr305_annotations/kotlin/responseBased/java_jsr305_annotations/type/adapter/MyInput_InputAdapter.kt.expected @@ -17,8 +17,7 @@ import com.example.java_jsr305_annotations.type.MyInput import kotlin.IllegalStateException public object MyInput_InputAdapter : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): MyInput = - throw IllegalStateException("Input type used in output position") + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): MyInput = throw IllegalStateException("Input type used in output position") override fun toJson( writer: JsonWriter, diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/java_primitive_types/kotlin/responseBased/java_primitive_types/JavaPrimitiveQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/java_primitive_types/kotlin/responseBased/java_primitive_types/JavaPrimitiveQuery.kt.expected index 8bb674aca12..3ab1fcf98cf 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/java_primitive_types/kotlin/responseBased/java_primitive_types/JavaPrimitiveQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/java_primitive_types/kotlin/responseBased/java_primitive_types/JavaPrimitiveQuery.kt.expected @@ -41,8 +41,7 @@ public data class JavaPrimitiveQuery( customScalarAdapters: CustomScalarAdapters, withDefaultValues: Boolean, ) { - JavaPrimitiveQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, - withDefaultValues) + JavaPrimitiveQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, withDefaultValues) } override fun adapter(): Adapter = JavaPrimitiveQuery_ResponseAdapter.Data.obj() @@ -81,18 +80,12 @@ public data class JavaPrimitiveQuery( * The un-minimized version is: * * ``` - * query JavaPrimitiveQuery($nullableInt: Int, $nonNullableInt: Int!, - * $nonNullableIntWithDefault: Int! = 4 , $nullableInput: MyInput, $nonNullableInput: MyInput!, - * $nonNullableInputWithDefault: MyInput! = { + * query JavaPrimitiveQuery($nullableInt: Int, $nonNullableInt: Int!, $nonNullableIntWithDefault: Int! = 4 , $nullableInput: MyInput, $nonNullableInput: MyInput!, $nonNullableInputWithDefault: MyInput! = { * nonNullableInt: 4 * } * ) { - * nullableInt(nullableInt: $nullableInt, nonNullableInt: $nonNullableInt, - * nonNullableIntWithDefault: $nonNullableIntWithDefault, nullableInput: $nullableInput, - * nonNullableInput: $nonNullableInput, nonNullableInputWithDefault: $nonNullableInputWithDefault) - * nonNullableInt(nullableInt: $nullableInt, nonNullableInt: $nonNullableInt, - * nonNullableIntWithDefault: $nonNullableIntWithDefault, nullableInput: $nullableInput, - * nonNullableInput: $nonNullableInput, nonNullableInputWithDefault: $nonNullableInputWithDefault) + * nullableInt(nullableInt: $nullableInt, nonNullableInt: $nonNullableInt, nonNullableIntWithDefault: $nonNullableIntWithDefault, nullableInput: $nullableInput, nonNullableInput: $nonNullableInput, nonNullableInputWithDefault: $nonNullableInputWithDefault) + * nonNullableInt(nullableInt: $nullableInt, nonNullableInt: $nonNullableInt, nonNullableIntWithDefault: $nonNullableIntWithDefault, nullableInput: $nullableInput, nonNullableInput: $nonNullableInput, nonNullableInputWithDefault: $nonNullableInputWithDefault) * nullableMyType { * nullableInt * nonNullableInt @@ -105,8 +98,7 @@ public data class JavaPrimitiveQuery( * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query JavaPrimitiveQuery(${'$'}nullableInt: Int, ${'$'}nonNullableInt: Int!, ${'$'}nonNullableIntWithDefault: Int! = 4 , ${'$'}nullableInput: MyInput, ${'$'}nonNullableInput: MyInput!, ${'$'}nonNullableInputWithDefault: MyInput! = { nonNullableInt: 4 } ) { nullableInt(nullableInt: ${'$'}nullableInt, nonNullableInt: ${'$'}nonNullableInt, nonNullableIntWithDefault: ${'$'}nonNullableIntWithDefault, nullableInput: ${'$'}nullableInput, nonNullableInput: ${'$'}nonNullableInput, nonNullableInputWithDefault: ${'$'}nonNullableInputWithDefault) nonNullableInt(nullableInt: ${'$'}nullableInt, nonNullableInt: ${'$'}nonNullableInt, nonNullableIntWithDefault: ${'$'}nonNullableIntWithDefault, nullableInput: ${'$'}nullableInput, nonNullableInput: ${'$'}nonNullableInput, nonNullableInputWithDefault: ${'$'}nonNullableInputWithDefault) nullableMyType { nullableInt nonNullableInt } nonNullableMyType { nullableInt nonNullableInt } }" + get() = "query JavaPrimitiveQuery(${'$'}nullableInt: Int, ${'$'}nonNullableInt: Int!, ${'$'}nonNullableIntWithDefault: Int! = 4 , ${'$'}nullableInput: MyInput, ${'$'}nonNullableInput: MyInput!, ${'$'}nonNullableInputWithDefault: MyInput! = { nonNullableInt: 4 } ) { nullableInt(nullableInt: ${'$'}nullableInt, nonNullableInt: ${'$'}nonNullableInt, nonNullableIntWithDefault: ${'$'}nonNullableIntWithDefault, nullableInput: ${'$'}nullableInput, nonNullableInput: ${'$'}nonNullableInput, nonNullableInputWithDefault: ${'$'}nonNullableInputWithDefault) nonNullableInt(nullableInt: ${'$'}nullableInt, nonNullableInt: ${'$'}nonNullableInt, nonNullableIntWithDefault: ${'$'}nonNullableIntWithDefault, nullableInput: ${'$'}nullableInput, nonNullableInput: ${'$'}nonNullableInput, nonNullableInputWithDefault: ${'$'}nonNullableInputWithDefault) nullableMyType { nullableInt nonNullableInt } nonNullableMyType { nullableInt nonNullableInt } }" public const val OPERATION_NAME: String = "JavaPrimitiveQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/java_primitive_types/kotlin/responseBased/java_primitive_types/adapter/JavaPrimitiveQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/java_primitive_types/kotlin/responseBased/java_primitive_types/adapter/JavaPrimitiveQuery_ResponseAdapter.kt.expected index e35b489ac39..8e664a03457 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/java_primitive_types/kotlin/responseBased/java_primitive_types/adapter/JavaPrimitiveQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/java_primitive_types/kotlin/responseBased/java_primitive_types/adapter/JavaPrimitiveQuery_ResponseAdapter.kt.expected @@ -21,11 +21,10 @@ import kotlin.collections.List public object JavaPrimitiveQuery_ResponseAdapter { public object Data : Adapter { - public val RESPONSE_NAMES: List = listOf("nullableInt", "nonNullableInt", - "nullableMyType", "nonNullableMyType") + public val RESPONSE_NAMES: List = + listOf("nullableInt", "nonNullableInt", "nullableMyType", "nonNullableMyType") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - JavaPrimitiveQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): JavaPrimitiveQuery.Data { var _nullableInt: Int? = null var _nonNullableInt: Int? = null var _nullableMyType: JavaPrimitiveQuery.Data.NullableMyType? = null @@ -70,8 +69,7 @@ public object JavaPrimitiveQuery_ResponseAdapter { private object NullableMyType : Adapter { public val RESPONSE_NAMES: List = listOf("nullableInt", "nonNullableInt") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - JavaPrimitiveQuery.Data.NullableMyType { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): JavaPrimitiveQuery.Data.NullableMyType { var _nullableInt: Int? = null var _nonNullableInt: Int? = null @@ -105,8 +103,7 @@ public object JavaPrimitiveQuery_ResponseAdapter { private object NonNullableMyType : Adapter { public val RESPONSE_NAMES: List = listOf("nullableInt", "nonNullableInt") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - JavaPrimitiveQuery.Data.NonNullableMyType { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): JavaPrimitiveQuery.Data.NonNullableMyType { var _nullableInt: Int? = null var _nonNullableInt: Int? = null diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/java_primitive_types/kotlin/responseBased/java_primitive_types/adapter/JavaPrimitiveQuery_VariablesAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/java_primitive_types/kotlin/responseBased/java_primitive_types/adapter/JavaPrimitiveQuery_VariablesAdapter.kt.expected index db44bef6e96..649d942c8a0 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/java_primitive_types/kotlin/responseBased/java_primitive_types/adapter/JavaPrimitiveQuery_VariablesAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/java_primitive_types/kotlin/responseBased/java_primitive_types/adapter/JavaPrimitiveQuery_VariablesAdapter.kt.expected @@ -46,15 +46,13 @@ public object JavaPrimitiveQuery_VariablesAdapter { } if (value.nullableInput is Optional.Present) { writer.name("nullableInput") - MyInput_InputAdapter.obj().nullable().present().toJson(writer, customScalarAdapters, - value.nullableInput) + MyInput_InputAdapter.obj().nullable().present().toJson(writer, customScalarAdapters, value.nullableInput) } writer.name("nonNullableInput") MyInput_InputAdapter.obj().toJson(writer, customScalarAdapters, value.nonNullableInput) if (value.nonNullableInputWithDefault is Optional.Present) { writer.name("nonNullableInputWithDefault") - MyInput_InputAdapter.obj().present().toJson(writer, customScalarAdapters, - value.nonNullableInputWithDefault) + MyInput_InputAdapter.obj().present().toJson(writer, customScalarAdapters, value.nonNullableInputWithDefault) } else if (withDefaultValues) { writer.name("nonNullableInputWithDefault") diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/java_primitive_types/kotlin/responseBased/java_primitive_types/type/adapter/MyInput_InputAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/java_primitive_types/kotlin/responseBased/java_primitive_types/type/adapter/MyInput_InputAdapter.kt.expected index cd589a68bd1..b4cf3c342e6 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/java_primitive_types/kotlin/responseBased/java_primitive_types/type/adapter/MyInput_InputAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/java_primitive_types/kotlin/responseBased/java_primitive_types/type/adapter/MyInput_InputAdapter.kt.expected @@ -17,8 +17,7 @@ import com.example.java_primitive_types.type.MyInput import kotlin.IllegalStateException public object MyInput_InputAdapter : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): MyInput = - throw IllegalStateException("Input type used in output position") + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): MyInput = throw IllegalStateException("Input type used in output position") override fun toJson( writer: JsonWriter, diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/list_field_clash/kotlin/responseBased/list_field_clash/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/list_field_clash/kotlin/responseBased/list_field_clash/TestQuery.kt.expected index e787b8a7f4d..5f586da7f72 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/list_field_clash/kotlin/responseBased/list_field_clash/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/list_field_clash/kotlin/responseBased/list_field_clash/TestQuery.kt.expected @@ -54,8 +54,7 @@ public class TestQuery() : Query { public val amenityCategories: List?, public val category: com.example.list_field_clash.type.AmenityCategory?, ) : Query.Data { - public fun amenityCategoriesFilterNotNull(): List? = - amenityCategories?.filterNotNull() + public fun amenityCategoriesFilterNotNull(): List? = amenityCategories?.filterNotNull() public data class AmenityCategory( public val text: String?, diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/list_field_clash/kotlin/responseBased/list_field_clash/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/list_field_clash/kotlin/responseBased/list_field_clash/adapter/TestQuery_ResponseAdapter.kt.expected index b63f7b2c387..dd1e9ba43fc 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/list_field_clash/kotlin/responseBased/list_field_clash/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/list_field_clash/kotlin/responseBased/list_field_clash/adapter/TestQuery_ResponseAdapter.kt.expected @@ -22,8 +22,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("amenityCategories", "category") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _amenityCategories: List? = null var _category: com.example.list_field_clash.type.AmenityCategory? = null @@ -47,19 +46,16 @@ public object TestQuery_ResponseAdapter { `value`: TestQuery.Data, ) { writer.name("amenityCategories") - AmenityCategory.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, - value.amenityCategories) + AmenityCategory.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, value.amenityCategories) writer.name("category") - AmenityCategory_ResponseAdapter.nullable().toJson(writer, customScalarAdapters, - value.category) + AmenityCategory_ResponseAdapter.nullable().toJson(writer, customScalarAdapters, value.category) } private object AmenityCategory : Adapter { public val RESPONSE_NAMES: List = listOf("text") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.AmenityCategory { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.AmenityCategory { var _text: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/list_field_clash/kotlin/responseBased/list_field_clash/type/AmenityCategory.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/list_field_clash/kotlin/responseBased/list_field_clash/type/AmenityCategory.kt.expected index a233bc6ed40..a2031129c60 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/list_field_clash/kotlin/responseBased/list_field_clash/type/AmenityCategory.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/list_field_clash/kotlin/responseBased/list_field_clash/type/AmenityCategory.kt.expected @@ -44,10 +44,8 @@ public enum class AmenityCategory( /** * Returns the [AmenityCategory] that represents the specified [rawValue]. - * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your - * schema instead of calling this function directly. + * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your schema instead of calling this function directly. */ - public fun safeValueOf(rawValue: String): AmenityCategory = - values().find { it.rawValue == rawValue } ?: UNKNOWN__ + public fun safeValueOf(rawValue: String): AmenityCategory = values().find { it.rawValue == rawValue } ?: UNKNOWN__ } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/list_field_clash/kotlin/responseBased/list_field_clash/type/adapter/AmenityCategory_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/list_field_clash/kotlin/responseBased/list_field_clash/type/adapter/AmenityCategory_ResponseAdapter.kt.expected index 5922909745a..1e646a54e08 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/list_field_clash/kotlin/responseBased/list_field_clash/type/adapter/AmenityCategory_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/list_field_clash/kotlin/responseBased/list_field_clash/type/adapter/AmenityCategory_ResponseAdapter.kt.expected @@ -12,8 +12,7 @@ import com.apollographql.apollo.api.json.JsonWriter import com.example.list_field_clash.type.AmenityCategory public object AmenityCategory_ResponseAdapter : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - AmenityCategory { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): AmenityCategory { val rawValue = reader.nextString()!! return AmenityCategory.safeValueOf(rawValue) } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/measurements b/libraries/apollo-compiler/src/test/graphql/com/example/measurements index 39fcae9d18e..d35d3415d7f 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/measurements +++ b/libraries/apollo-compiler/src/test/graphql/com/example/measurements @@ -2,251 +2,251 @@ // If you updated the codegen and test fixtures, you should commit this file too. Test: Total LOC: -aggregate-all 203712 -aggregate-kotlin-responseBased 65746 -aggregate-kotlin-operationBased 42225 +aggregate-all 202583 +aggregate-kotlin-responseBased 65280 +aggregate-kotlin-operationBased 41281 aggregate-kotlin-compat 0 -aggregate-java-operationBased 95741 +aggregate-java-operationBased 96022 java-operationBased-fragments_with_defer_and_include_directives 5540 -kotlin-operationBased-fragments_with_defer_and_include_directives 3464 +kotlin-operationBased-fragments_with_defer_and_include_directives 3363 java-operationBased-data_builders 2996 -java-operationBased-mutation_create_review 2437 -kotlin-responseBased-fragment_with_inline_fragment 2419 -kotlin-responseBased-data_builders 2341 +java-operationBased-mutation_create_review 2449 +kotlin-responseBased-fragment_with_inline_fragment 2418 +kotlin-responseBased-data_builders 2313 java-operationBased-fragment_with_inline_fragment 2227 -kotlin-operationBased-data_builders 1990 +kotlin-operationBased-data_builders 1941 java-operationBased-nested_named_fragments 1890 java-operationBased-union_inline_fragments 1647 java-operationBased-fragment_spread_with_include_directive 1642 -kotlin-responseBased-nested_named_fragments 1635 -java-operationBased-input_object_type 1627 +java-operationBased-input_object_type 1639 java-operationBased-unique_type_name 1619 java-operationBased-inline_fragment_intersection 1618 java-operationBased-mutation_create_review_semantic_naming 1611 +kotlin-responseBased-nested_named_fragments 1610 java-operationBased-root_query_fragment_with_nested_fragments 1587 java-operationBased-simple_fragment 1490 java-operationBased-named_fragment_delegate 1478 -kotlin-responseBased-mutation_create_review 1466 +kotlin-responseBased-mutation_create_review 1451 java-operationBased-named_fragment_with_variables 1390 -kotlin-responseBased-named_fragment_delegate 1365 -kotlin-responseBased-unique_type_name 1355 +kotlin-responseBased-named_fragment_delegate 1355 java-operationBased-nested_conditional_inline 1325 -kotlin-responseBased-input_object_type 1301 -kotlin-operationBased-fragment_with_inline_fragment 1294 +kotlin-responseBased-unique_type_name 1322 +kotlin-responseBased-input_object_type 1312 java-operationBased-fragment_used_twice 1285 -kotlin-responseBased-root_query_fragment_with_nested_fragments 1279 +kotlin-responseBased-root_query_fragment_with_nested_fragments 1276 java-operationBased-multiple_fragments 1274 java-operationBased-nested_field_with_multiple_fieldsets 1266 -kotlin-operationBased-nested_named_fragments 1261 -kotlin-responseBased-inline_fragment_intersection 1248 +kotlin-operationBased-fragment_with_inline_fragment 1261 +kotlin-responseBased-inline_fragment_intersection 1241 java-operationBased-two_heroes_with_friends 1236 +kotlin-operationBased-nested_named_fragments 1229 java-operationBased-inline_fragment_merge_fields 1224 java-operationBased-java_guava_optionals 1195 java-operationBased-java_java_optionals 1195 -kotlin-responseBased-simple_fragment 1189 +kotlin-responseBased-simple_fragment 1174 java-operationBased-fragments_with_type_condition 1168 -kotlin-operationBased-inline_fragment_intersection 1157 java-operationBased-named_fragment_inside_inline_fragment 1157 -kotlin-operationBased-union_inline_fragments 1150 -kotlin-responseBased-union_inline_fragments 1150 -kotlin-responseBased-fragment_used_twice 1149 +kotlin-responseBased-fragment_used_twice 1151 java-operationBased-java_jetbrains_annotations 1149 java-operationBased-target_name 1149 java-operationBased-java_android_annotations 1146 java-operationBased-java_jsr305_annotations 1146 +kotlin-responseBased-union_inline_fragments 1134 +kotlin-operationBased-inline_fragment_intersection 1133 java-operationBased-java_apollo_optionals 1129 -kotlin-operationBased-fragment_spread_with_include_directive 1111 -kotlin-operationBased-unique_type_name 1110 +kotlin-operationBased-union_inline_fragments 1115 java-operationBased-root_query_inline_fragment 1103 kotlin-responseBased-fragments_with_type_condition 1096 -kotlin-responseBased-nested_conditional_inline 1088 +kotlin-operationBased-fragment_spread_with_include_directive 1082 +kotlin-operationBased-unique_type_name 1078 +kotlin-responseBased-nested_conditional_inline 1073 java-operationBased-java_primitive_types 1072 -kotlin-responseBased-multiple_fragments 1066 -kotlin-responseBased-named_fragment_with_variables 1061 -kotlin-operationBased-root_query_fragment_with_nested_fragments 1057 +kotlin-responseBased-multiple_fragments 1069 java-operationBased-simple_fragment_with_inline_fragments 1056 -kotlin-responseBased-simple_fragment_with_inline_fragments 1048 +kotlin-responseBased-named_fragment_with_variables 1054 java-operationBased-fragment_spread_with_nested_fields 1044 +kotlin-responseBased-simple_fragment_with_inline_fragments 1042 java-operationBased-inline_fragments_with_friends 1037 -kotlin-operationBased-simple_fragment 1037 java-operationBased-operationbased2_ex8 1032 -kotlin-operationBased-named_fragment_delegate 1007 +kotlin-operationBased-root_query_fragment_with_nested_fragments 1027 +kotlin-operationBased-simple_fragment 1007 +kotlin-operationBased-named_fragment_delegate 986 java-operationBased-decapitalized_fields 983 java-operationBased-simple_union 960 java-operationBased-fragments_same_type_condition 958 -kotlin-responseBased-operationbased2_ex8 957 -kotlin-operationBased-nested_conditional_inline 951 +kotlin-responseBased-operationbased2_ex8 952 java-operationBased-deprecated_merged_field 940 java-operationBased-input_object_oneof 938 +kotlin-responseBased-mutation_create_review_semantic_naming 932 java-operationBased-used_arguments 931 -kotlin-responseBased-mutation_create_review_semantic_naming 929 +kotlin-operationBased-nested_conditional_inline 928 java-operationBased-not_all_combinations_are_needed 928 java-operationBased-hero_details 922 java-operationBased-simple_inline_fragment 914 -kotlin-operationBased-named_fragment_with_variables 912 java-operationBased-fieldset_with_multiple_super 910 java-operationBased-inline_fragment_with_include_directive 908 java-operationBased-introspection_query 896 +kotlin-operationBased-named_fragment_with_variables 891 +java-operationBased-custom_scalar_type 889 java-operationBased-union_fragment 888 -kotlin-operationBased-fragment_used_twice 885 java-operationBased-inline_fragment_inside_inline_fragment 878 java-operationBased-test_inline 876 -kotlin-responseBased-fragment_spread_with_nested_fields 873 -kotlin-operationBased-multiple_fragments 842 -kotlin-responseBased-nested_field_with_multiple_fieldsets 842 +kotlin-operationBased-fragment_used_twice 867 +kotlin-responseBased-fragment_spread_with_nested_fields 864 +kotlin-responseBased-nested_field_with_multiple_fieldsets 837 java-operationBased-named_fragment_without_implementation 835 -kotlin-operationBased-fragments_with_type_condition 827 -kotlin-responseBased-target_name 820 -kotlin-operationBased-nested_field_with_multiple_fieldsets 812 -kotlin-responseBased-two_heroes_with_friends 806 -kotlin-operationBased-named_fragment_inside_inline_fragment 803 +kotlin-operationBased-multiple_fragments 829 +kotlin-operationBased-fragments_with_type_condition 809 +kotlin-responseBased-target_name 807 java-operationBased-hero_details_semantic_naming 798 -kotlin-operationBased-inline_fragment_merge_fields 797 -kotlin-operationBased-root_query_inline_fragment 796 +kotlin-responseBased-two_heroes_with_friends 796 java-operationBased-fragment_with_multiple_fieldsets 794 -kotlin-responseBased-inline_fragments_with_friends 793 java-operationBased-operationbased2_ex7 793 -kotlin-operationBased-target_name 792 -kotlin-responseBased-named_fragment_inside_inline_fragment 784 -kotlin-responseBased-deprecated_merged_field 782 +kotlin-operationBased-nested_field_with_multiple_fieldsets 789 +kotlin-operationBased-named_fragment_inside_inline_fragment 784 +kotlin-responseBased-inline_fragments_with_friends 783 +kotlin-operationBased-inline_fragment_merge_fields 782 +kotlin-responseBased-deprecated_merged_field 781 +kotlin-operationBased-root_query_inline_fragment 780 +kotlin-responseBased-named_fragment_inside_inline_fragment 778 java-operationBased-suppressed_warnings 778 -kotlin-responseBased-root_query_inline_fragment 772 +kotlin-operationBased-target_name 777 java-operationBased-path_vs_flat_accessors 771 java-operationBased-reserved_keywords 767 -kotlin-responseBased-simple_union 763 +kotlin-responseBased-root_query_inline_fragment 764 +kotlin-responseBased-simple_union 762 java-operationBased-typename_always_first 749 -kotlin-operationBased-inline_fragments_with_friends 742 -kotlin-responseBased-fragments_same_type_condition 732 +kotlin-responseBased-fragments_same_type_condition 731 java-operationBased-interface_on_interface 731 +kotlin-operationBased-inline_fragments_with_friends 726 java-operationBased-input_object_variable_and_argument 717 java-operationBased-input_object_variable_and_argument_with_generated_methods 717 -kotlin-operationBased-simple_fragment_with_inline_fragments 710 java-operationBased-root_query_fragment 707 -kotlin-operationBased-fragment_spread_with_nested_fields 701 -kotlin-responseBased-input_object_variable_and_argument_with_generated_methods 696 +kotlin-operationBased-simple_fragment_with_inline_fragments 690 +kotlin-responseBased-input_object_variable_and_argument_with_generated_methods 686 +kotlin-operationBased-fragment_spread_with_nested_fields 685 java-operationBased-monomorphic 684 -kotlin-operationBased-operationbased2_ex8 681 java-operationBased-interface_always_nested 678 -kotlin-responseBased-used_arguments 676 -kotlin-responseBased-union_fragment 674 -kotlin-responseBased-java_android_annotations 672 -kotlin-responseBased-java_apollo_optionals 672 -kotlin-responseBased-java_guava_optionals 672 -kotlin-responseBased-java_java_optionals 672 -kotlin-responseBased-java_jetbrains_annotations 672 -kotlin-responseBased-java_jsr305_annotations 672 +kotlin-responseBased-used_arguments 673 +kotlin-responseBased-union_fragment 671 +kotlin-operationBased-operationbased2_ex8 664 java-operationBased-capitalized_fields 661 -kotlin-operationBased-fragments_same_type_condition 661 -kotlin-operationBased-simple_union 659 java-operationBased-recursive_selection 656 kotlin-responseBased-fragment_with_multiple_fieldsets 655 -kotlin-responseBased-test_inline 655 -kotlin-responseBased-hero_details 650 -kotlin-responseBased-named_fragment_without_implementation 649 +kotlin-responseBased-java_android_annotations 654 +kotlin-responseBased-java_apollo_optionals 654 +kotlin-responseBased-java_guava_optionals 654 +kotlin-responseBased-java_java_optionals 654 +kotlin-responseBased-java_jetbrains_annotations 654 +kotlin-responseBased-java_jsr305_annotations 654 +kotlin-operationBased-simple_union 650 +kotlin-responseBased-custom_scalar_type 649 +kotlin-operationBased-fragments_same_type_condition 648 +kotlin-responseBased-named_fragment_without_implementation 648 java-operationBased-hero_with_review 647 -kotlin-operationBased-used_arguments 647 -kotlin-operationBased-union_fragment 646 -kotlin-operationBased-decapitalized_fields 643 -kotlin-operationBased-inline_fragment_inside_inline_fragment 643 -kotlin-operationBased-deprecated_merged_field 642 +kotlin-responseBased-test_inline 647 +kotlin-responseBased-hero_details 642 java-operationBased-deprecation 640 -kotlin-responseBased-inline_fragment_inside_inline_fragment 637 -kotlin-responseBased-java_primitive_types 634 +kotlin-operationBased-used_arguments 637 +kotlin-operationBased-union_fragment 636 java-operationBased-field_with_include_directive 633 -kotlin-operationBased-not_all_combinations_are_needed 633 -java-operationBased-custom_scalar_type 632 -kotlin-responseBased-inline_fragment_merge_fields 627 -kotlin-operationBased-inline_fragment_with_include_directive 625 +kotlin-responseBased-inline_fragment_inside_inline_fragment 632 +kotlin-operationBased-decapitalized_fields 631 +kotlin-operationBased-inline_fragment_inside_inline_fragment 630 +kotlin-operationBased-deprecated_merged_field 626 java-operationBased-hero_name_query_long_name 622 java-operationBased-hero_name 621 +kotlin-responseBased-inline_fragment_merge_fields 621 +kotlin-responseBased-java_primitive_types 620 +kotlin-operationBased-not_all_combinations_are_needed 620 java-operationBased-variable_default_value 619 -kotlin-operationBased-fieldset_with_multiple_super 618 -kotlin-responseBased-introspection_query 618 -kotlin-operationBased-simple_inline_fragment 616 -kotlin-operationBased-named_fragment_without_implementation 614 -kotlin-responseBased-operationbased2_ex7 614 +kotlin-operationBased-inline_fragment_with_include_directive 611 +kotlin-responseBased-introspection_query 609 java-operationBased-java8annotation 609 -kotlin-responseBased-simple_inline_fragment 609 -kotlin-responseBased-not_all_combinations_are_needed 608 -kotlin-responseBased-input_object_variable_and_argument 607 -kotlin-responseBased-decapitalized_fields 606 -kotlin-responseBased-fieldset_with_multiple_super 605 -kotlin-responseBased-reserved_keywords 598 +kotlin-responseBased-operationbased2_ex7 608 +kotlin-responseBased-not_all_combinations_are_needed 606 +kotlin-responseBased-simple_inline_fragment 606 +kotlin-operationBased-fieldset_with_multiple_super 603 +kotlin-responseBased-fieldset_with_multiple_super 603 +kotlin-operationBased-named_fragment_without_implementation 603 +kotlin-responseBased-decapitalized_fields 601 +kotlin-operationBased-simple_inline_fragment 601 +kotlin-responseBased-input_object_variable_and_argument 600 java-operationBased-inline_fragment_for_non_optional_field 597 +kotlin-responseBased-reserved_keywords 593 java-operationBased-optional 588 java-operationBased-enum_field 587 java-operationBased-two_heroes_unique 586 java-operationBased-inline_fragment_type_coercion 582 -kotlin-operationBased-test_inline 579 -kotlin-operationBased-reserved_keywords 571 java-operationBased-inline_fragment_simple 568 +kotlin-operationBased-test_inline 566 +kotlin-operationBased-reserved_keywords 563 java-operationBased-list_field_clash 557 -kotlin-responseBased-path_vs_flat_accessors 556 -kotlin-responseBased-hero_with_review 554 -kotlin-responseBased-hero_details_semantic_naming 546 -kotlin-responseBased-suppressed_warnings 545 -kotlin-operationBased-fragment_with_multiple_fieldsets 539 -kotlin-responseBased-interface_on_interface 539 -kotlin-responseBased-root_query_fragment 538 +kotlin-responseBased-path_vs_flat_accessors 554 +kotlin-responseBased-hero_with_review 548 +kotlin-responseBased-hero_details_semantic_naming 540 java-operationBased-starships 538 -kotlin-responseBased-input_object_oneof 537 -kotlin-responseBased-typename_always_first 537 -kotlin-operationBased-operationbased2_ex7 533 +kotlin-responseBased-suppressed_warnings 537 +kotlin-responseBased-interface_on_interface 535 +kotlin-responseBased-root_query_fragment 535 +kotlin-responseBased-typename_always_first 534 java-operationBased-arguments_hardcoded 531 -kotlin-operationBased-typename_always_first 526 -kotlin-operationBased-path_vs_flat_accessors 525 -kotlin-responseBased-enum_field 522 +kotlin-operationBased-fragment_with_multiple_fieldsets 528 +kotlin-responseBased-input_object_oneof 527 java-operationBased-antlr_tokens 521 +kotlin-operationBased-operationbased2_ex7 521 java-operationBased-subscriptions 520 -kotlin-responseBased-hero_name_query_long_name 517 -kotlin-operationBased-interface_on_interface 513 -kotlin-responseBased-hero_name 510 -kotlin-responseBased-interface_always_nested 500 -kotlin-responseBased-custom_scalar_type 495 -kotlin-responseBased-variable_default_value 491 -kotlin-operationBased-root_query_fragment 487 -kotlin-responseBased-deprecation 486 -kotlin-responseBased-inline_fragment_for_non_optional_field 475 +kotlin-operationBased-typename_always_first 517 +kotlin-responseBased-enum_field 516 +kotlin-operationBased-path_vs_flat_accessors 513 +kotlin-responseBased-hero_name 507 +kotlin-operationBased-interface_on_interface 506 +kotlin-responseBased-interface_always_nested 497 +kotlin-responseBased-hero_name_query_long_name 486 +kotlin-responseBased-variable_default_value 485 +kotlin-operationBased-root_query_fragment 480 +kotlin-responseBased-deprecation 479 java-operationBased-merged_include 473 -kotlin-operationBased-monomorphic 473 -kotlin-responseBased-monomorphic 473 java-operationBased-operation_id_generator 473 -kotlin-operationBased-interface_always_nested 472 -kotlin-responseBased-optional 463 -kotlin-operationBased-hero_name 453 -kotlin-operationBased-capitalized_fields 452 +kotlin-responseBased-inline_fragment_for_non_optional_field 470 +kotlin-responseBased-monomorphic 469 +kotlin-operationBased-monomorphic 464 +kotlin-operationBased-interface_always_nested 463 +kotlin-responseBased-optional 458 java-operationBased-nonnull 452 -kotlin-responseBased-field_with_include_directive 451 +kotlin-operationBased-hero_name 447 +kotlin-operationBased-capitalized_fields 446 java-operationBased-enums_as_sealed 446 -kotlin-responseBased-inline_fragment_type_coercion 446 java-operationBased-companion 444 +kotlin-responseBased-field_with_include_directive 444 +kotlin-responseBased-inline_fragment_type_coercion 444 java-operationBased-case_sensitive_enum 443 java-operationBased-object 439 -kotlin-responseBased-recursive_selection 437 -kotlin-operationBased-inline_fragment_for_non_optional_field 432 -kotlin-responseBased-inline_fragment_simple 431 -kotlin-responseBased-arguments_hardcoded 427 -kotlin-responseBased-list_field_clash 421 -kotlin-responseBased-two_heroes_unique 417 -kotlin-responseBased-capitalized_fields 414 -kotlin-operationBased-inline_fragment_type_coercion 411 -kotlin-operationBased-inline_fragment_simple 404 -kotlin-responseBased-starships 404 -kotlin-responseBased-java8annotation 401 -kotlin-responseBased-antlr_tokens 396 -kotlin-responseBased-subscriptions 389 -kotlin-responseBased-enums_as_sealed 375 -kotlin-responseBased-case_sensitive_enum 345 -kotlin-responseBased-operation_id_generator 344 -kotlin-responseBased-big_query 342 -kotlin-responseBased-merged_include 342 +kotlin-responseBased-recursive_selection 433 +kotlin-responseBased-inline_fragment_simple 429 +kotlin-operationBased-inline_fragment_for_non_optional_field 426 +kotlin-responseBased-arguments_hardcoded 423 +kotlin-responseBased-two_heroes_unique 414 +kotlin-responseBased-list_field_clash 413 +kotlin-responseBased-capitalized_fields 411 +kotlin-operationBased-inline_fragment_type_coercion 406 +kotlin-responseBased-starships 400 +kotlin-operationBased-inline_fragment_simple 399 +kotlin-responseBased-java8annotation 397 +kotlin-responseBased-antlr_tokens 391 +kotlin-responseBased-subscriptions 385 +kotlin-responseBased-enums_as_sealed 373 +kotlin-responseBased-case_sensitive_enum 342 +kotlin-responseBased-operation_id_generator 342 +kotlin-responseBased-merged_include 340 java-operationBased-java_hashcode 338 -kotlin-responseBased-nonnull 326 -kotlin-operationBased-companion 319 -kotlin-responseBased-object 317 -kotlin-responseBased-java_hashcode 255 -kotlin-responseBased-__schema 130 +kotlin-responseBased-big_query 337 +kotlin-responseBased-nonnull 324 +kotlin-operationBased-companion 317 +kotlin-responseBased-object 315 +kotlin-responseBased-java_hashcode 254 +kotlin-responseBased-__schema 127 java-operationBased-__schema 105 kotlin-responseBased-empty 93 java-operationBased-empty 77 \ No newline at end of file diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/merged_include/kotlin/responseBased/merged_include/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/merged_include/kotlin/responseBased/merged_include/adapter/TestQuery_ResponseAdapter.kt.expected index 3698bda4827..148830dd5b4 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/merged_include/kotlin/responseBased/merged_include/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/merged_include/kotlin/responseBased/merged_include/adapter/TestQuery_ResponseAdapter.kt.expected @@ -21,8 +21,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _hero: TestQuery.Data.Hero? = null while (true) { @@ -49,8 +48,7 @@ public object TestQuery_ResponseAdapter { private object Hero : Adapter { public val RESPONSE_NAMES: List = listOf("name", "id") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero { var _name: String? = null var _id: String? = null diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/monomorphic/kotlin/operationBased/monomorphic/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/monomorphic/kotlin/operationBased/monomorphic/TestQuery.kt.expected index e1b82e47a09..782ead885bb 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/monomorphic/kotlin/operationBased/monomorphic/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/monomorphic/kotlin/operationBased/monomorphic/TestQuery.kt.expected @@ -96,8 +96,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { cat { __typename ... on Node { __typename ... on Animal { species } } } }" + get() = "query TestQuery { cat { __typename ... on Node { __typename ... on Animal { species } } } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/monomorphic/kotlin/operationBased/monomorphic/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/monomorphic/kotlin/operationBased/monomorphic/adapter/TestQuery_ResponseAdapter.kt.expected index 5049c1906a0..4c8ba04b3bd 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/monomorphic/kotlin/operationBased/monomorphic/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/monomorphic/kotlin/operationBased/monomorphic/adapter/TestQuery_ResponseAdapter.kt.expected @@ -20,8 +20,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("cat") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _cat: TestQuery.Data.Cat? = null while (true) { @@ -48,8 +47,7 @@ public object TestQuery_ResponseAdapter { private object Cat : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Cat { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Cat { var __typename: String? = null while (true) { @@ -60,8 +58,7 @@ public object TestQuery_ResponseAdapter { } reader.rewind() - val _onNode = com.example.monomorphic.adapter.TestQuery_ResponseAdapter.Data.Cat.OnNode.fromJson(reader, - customScalarAdapters) + val _onNode = com.example.monomorphic.adapter.TestQuery_ResponseAdapter.Data.Cat.OnNode.fromJson(reader, customScalarAdapters) return TestQuery.Data.Cat( __typename = __typename ?: missingField(reader, "__typename"), @@ -77,15 +74,13 @@ public object TestQuery_ResponseAdapter { writer.name("__typename") StringAdapter.toJson(writer, customScalarAdapters, value.__typename) - com.example.monomorphic.adapter.TestQuery_ResponseAdapter.Data.Cat.OnNode.toJson(writer, - customScalarAdapters, value.onNode) + com.example.monomorphic.adapter.TestQuery_ResponseAdapter.Data.Cat.OnNode.toJson(writer, customScalarAdapters, value.onNode) } private object OnNode : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Cat.OnNode { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Cat.OnNode { var __typename: String? = null while (true) { @@ -96,8 +91,7 @@ public object TestQuery_ResponseAdapter { } reader.rewind() - val _onAnimal = com.example.monomorphic.adapter.TestQuery_ResponseAdapter.Data.Cat.OnNode.OnAnimal.fromJson(reader, - customScalarAdapters) + val _onAnimal = com.example.monomorphic.adapter.TestQuery_ResponseAdapter.Data.Cat.OnNode.OnAnimal.fromJson(reader, customScalarAdapters) return TestQuery.Data.Cat.OnNode( __typename = __typename ?: missingField(reader, "__typename"), @@ -113,15 +107,13 @@ public object TestQuery_ResponseAdapter { writer.name("__typename") StringAdapter.toJson(writer, customScalarAdapters, value.__typename) - com.example.monomorphic.adapter.TestQuery_ResponseAdapter.Data.Cat.OnNode.OnAnimal.toJson(writer, - customScalarAdapters, value.onAnimal) + com.example.monomorphic.adapter.TestQuery_ResponseAdapter.Data.Cat.OnNode.OnAnimal.toJson(writer, customScalarAdapters, value.onAnimal) } private object OnAnimal : Adapter { public val RESPONSE_NAMES: List = listOf("species") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Cat.OnNode.OnAnimal { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Cat.OnNode.OnAnimal { var _species: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/monomorphic/kotlin/responseBased/monomorphic/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/monomorphic/kotlin/responseBased/monomorphic/TestQuery.kt.expected index 076d0b6d8da..12b09b19482 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/monomorphic/kotlin/responseBased/monomorphic/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/monomorphic/kotlin/responseBased/monomorphic/TestQuery.kt.expected @@ -102,8 +102,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { cat { __typename ... on Node { __typename ... on Animal { species } } } }" + get() = "query TestQuery { cat { __typename ... on Node { __typename ... on Animal { species } } } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/monomorphic/kotlin/responseBased/monomorphic/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/monomorphic/kotlin/responseBased/monomorphic/adapter/TestQuery_ResponseAdapter.kt.expected index 0d48c652b2a..d1180063407 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/monomorphic/kotlin/responseBased/monomorphic/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/monomorphic/kotlin/responseBased/monomorphic/adapter/TestQuery_ResponseAdapter.kt.expected @@ -22,8 +22,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("cat") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _cat: TestQuery.Data.Cat? = null while (true) { @@ -48,8 +47,7 @@ public object TestQuery_ResponseAdapter { } private object Cat : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Cat { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Cat { val __typename = reader.readTypename() return when(__typename) { "Cat", @@ -65,8 +63,7 @@ public object TestQuery_ResponseAdapter { `value`: TestQuery.Data.Cat, ) { when(value) { - is TestQuery.Data.AnimalNodeCat -> AnimalNodeCat.toJson(writer, customScalarAdapters, - value) + is TestQuery.Data.AnimalNodeCat -> AnimalNodeCat.toJson(writer, customScalarAdapters, value) is TestQuery.Data.OtherCat -> OtherCat.toJson(writer, customScalarAdapters, value) } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/operationBased/multiple_fragments/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/operationBased/multiple_fragments/TestQuery.kt.expected index 170b15d2f12..dad7323bc50 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/operationBased/multiple_fragments/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/operationBased/multiple_fragments/TestQuery.kt.expected @@ -96,8 +96,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { a { __typename ...aFragment } } fragment fragment1 on ANode { field1 } fragment fragment2 on ANode { field2 } fragment aFragment on A { node { __typename ...fragment1 ...fragment2 } }" + get() = "query TestQuery { a { __typename ...aFragment } } fragment fragment1 on ANode { field1 } fragment fragment2 on ANode { field2 } fragment aFragment on A { node { __typename ...fragment1 ...fragment2 } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/operationBased/multiple_fragments/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/operationBased/multiple_fragments/adapter/TestQuery_ResponseAdapter.kt.expected index 3f3611c1b46..7a411e4dc27 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/operationBased/multiple_fragments/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/operationBased/multiple_fragments/adapter/TestQuery_ResponseAdapter.kt.expected @@ -21,8 +21,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("a") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _a: TestQuery.Data.A? = null while (true) { @@ -49,8 +48,7 @@ public object TestQuery_ResponseAdapter { private object A : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.A { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.A { var __typename: String? = null while (true) { @@ -61,8 +59,7 @@ public object TestQuery_ResponseAdapter { } reader.rewind() - val _aFragment = com.example.multiple_fragments.fragment.AFragmentImpl_ResponseAdapter.AFragment.fromJson(reader, - customScalarAdapters) + val _aFragment = com.example.multiple_fragments.fragment.AFragmentImpl_ResponseAdapter.AFragment.fromJson(reader, customScalarAdapters) return TestQuery.Data.A( __typename = __typename ?: missingField(reader, "__typename"), @@ -78,8 +75,7 @@ public object TestQuery_ResponseAdapter { writer.name("__typename") StringAdapter.toJson(writer, customScalarAdapters, value.__typename) - com.example.multiple_fragments.fragment.AFragmentImpl_ResponseAdapter.AFragment.toJson(writer, - customScalarAdapters, value.aFragment) + com.example.multiple_fragments.fragment.AFragmentImpl_ResponseAdapter.AFragment.toJson(writer, customScalarAdapters, value.aFragment) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/operationBased/multiple_fragments/fragment/AFragmentImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/operationBased/multiple_fragments/fragment/AFragmentImpl_ResponseAdapter.kt.expected index 53e607a5257..5f44808b047 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/operationBased/multiple_fragments/fragment/AFragmentImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/operationBased/multiple_fragments/fragment/AFragmentImpl_ResponseAdapter.kt.expected @@ -21,8 +21,7 @@ public object AFragmentImpl_ResponseAdapter { public object AFragment : Adapter { public val RESPONSE_NAMES: List = listOf("node") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.multiple_fragments.fragment.AFragment { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.multiple_fragments.fragment.AFragment { var _node: com.example.multiple_fragments.fragment.AFragment.Node? = null while (true) { @@ -49,8 +48,7 @@ public object AFragmentImpl_ResponseAdapter { private object Node : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.multiple_fragments.fragment.AFragment.Node { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.multiple_fragments.fragment.AFragment.Node { var __typename: String? = null while (true) { @@ -67,15 +65,13 @@ public object AFragmentImpl_ResponseAdapter { var _fragment1: Fragment1? = null if (possibleTypes("ANode").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _fragment1 = com.example.multiple_fragments.fragment.Fragment1Impl_ResponseAdapter.Fragment1.fromJson(reader, - customScalarAdapters) + _fragment1 = com.example.multiple_fragments.fragment.Fragment1Impl_ResponseAdapter.Fragment1.fromJson(reader, customScalarAdapters) } var _fragment2: Fragment2? = null if (possibleTypes("ANode").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _fragment2 = com.example.multiple_fragments.fragment.Fragment2Impl_ResponseAdapter.Fragment2.fromJson(reader, - customScalarAdapters) + _fragment2 = com.example.multiple_fragments.fragment.Fragment2Impl_ResponseAdapter.Fragment2.fromJson(reader, customScalarAdapters) } return com.example.multiple_fragments.fragment.AFragment.Node( @@ -94,13 +90,11 @@ public object AFragmentImpl_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.__typename) if (value.fragment1 != null) { - com.example.multiple_fragments.fragment.Fragment1Impl_ResponseAdapter.Fragment1.toJson(writer, - customScalarAdapters, value.fragment1) + com.example.multiple_fragments.fragment.Fragment1Impl_ResponseAdapter.Fragment1.toJson(writer, customScalarAdapters, value.fragment1) } if (value.fragment2 != null) { - com.example.multiple_fragments.fragment.Fragment2Impl_ResponseAdapter.Fragment2.toJson(writer, - customScalarAdapters, value.fragment2) + com.example.multiple_fragments.fragment.Fragment2Impl_ResponseAdapter.Fragment2.toJson(writer, customScalarAdapters, value.fragment2) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/operationBased/multiple_fragments/fragment/Fragment1Impl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/operationBased/multiple_fragments/fragment/Fragment1Impl_ResponseAdapter.kt.expected index 302a0f781ef..7952c9d9475 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/operationBased/multiple_fragments/fragment/Fragment1Impl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/operationBased/multiple_fragments/fragment/Fragment1Impl_ResponseAdapter.kt.expected @@ -17,8 +17,7 @@ public object Fragment1Impl_ResponseAdapter { public object Fragment1 : Adapter { public val RESPONSE_NAMES: List = listOf("field1") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.multiple_fragments.fragment.Fragment1 { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.multiple_fragments.fragment.Fragment1 { var _field1: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/operationBased/multiple_fragments/fragment/Fragment2Impl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/operationBased/multiple_fragments/fragment/Fragment2Impl_ResponseAdapter.kt.expected index 4a3957ebb0f..d69535d5e8e 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/operationBased/multiple_fragments/fragment/Fragment2Impl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/operationBased/multiple_fragments/fragment/Fragment2Impl_ResponseAdapter.kt.expected @@ -17,8 +17,7 @@ public object Fragment2Impl_ResponseAdapter { public object Fragment2 : Adapter { public val RESPONSE_NAMES: List = listOf("field2") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.multiple_fragments.fragment.Fragment2 { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.multiple_fragments.fragment.Fragment2 { var _field2: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/responseBased/multiple_fragments/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/responseBased/multiple_fragments/TestQuery.kt.expected index 0855356b018..1571eaead1e 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/responseBased/multiple_fragments/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/responseBased/multiple_fragments/TestQuery.kt.expected @@ -79,11 +79,15 @@ public class TestQuery() : Query { override val __typename: String, override val field1: String?, override val field2: String?, - ) : Node, Fragment1, Fragment2, AFragment.ANodeNode + ) : Node, + Fragment1, + Fragment2, + AFragment.ANodeNode public data class OtherNode( override val __typename: String, - ) : Node, AFragment.Node + ) : Node, + AFragment.Node public companion object { @Suppress("USELESS_CAST") @@ -126,8 +130,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { a { __typename ...aFragment } } fragment fragment1 on ANode { field1 } fragment fragment2 on ANode { field2 } fragment aFragment on A { node { __typename ...fragment1 ...fragment2 } }" + get() = "query TestQuery { a { __typename ...aFragment } } fragment fragment1 on ANode { field1 } fragment fragment2 on ANode { field2 } fragment aFragment on A { node { __typename ...fragment1 ...fragment2 } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/responseBased/multiple_fragments/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/responseBased/multiple_fragments/adapter/TestQuery_ResponseAdapter.kt.expected index b2bf81a6f5d..84481b49487 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/responseBased/multiple_fragments/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/responseBased/multiple_fragments/adapter/TestQuery_ResponseAdapter.kt.expected @@ -24,8 +24,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("a") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _a: TestQuery.Data.A? = null while (true) { @@ -52,8 +51,7 @@ public object TestQuery_ResponseAdapter { private object A : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "node") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.A { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.A { var __typename: String? = null var _node: TestQuery.Data.A.Node? = null @@ -84,8 +82,7 @@ public object TestQuery_ResponseAdapter { } private object Node : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.A.Node { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.A.Node { val __typename = reader.readTypename() return when(__typename) { "ANode", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/responseBased/multiple_fragments/fragment/AFragmentImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/responseBased/multiple_fragments/fragment/AFragmentImpl.kt.expected index 5163048e649..66354585a6a 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/responseBased/multiple_fragments/fragment/AFragmentImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/responseBased/multiple_fragments/fragment/AFragmentImpl.kt.expected @@ -43,7 +43,8 @@ public class AFragmentImpl() : Fragment { public data class Data( override val node: Node?, - ) : AFragment, Fragment.Data { + ) : AFragment, + Fragment.Data { public sealed interface Node : AFragment.Node { override val __typename: String @@ -63,10 +64,14 @@ public class AFragmentImpl() : Fragment { override val __typename: String, override val field1: String?, override val field2: String?, - ) : Node, Fragment1, Fragment2, AFragment.ANodeNode + ) : Node, + Fragment1, + Fragment2, + AFragment.ANodeNode public data class OtherNode( override val __typename: String, - ) : Node, AFragment.Node + ) : Node, + AFragment.Node } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/responseBased/multiple_fragments/fragment/AFragmentImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/responseBased/multiple_fragments/fragment/AFragmentImpl_ResponseAdapter.kt.expected index 919ee10fc2a..0b6830cbd77 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/responseBased/multiple_fragments/fragment/AFragmentImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/responseBased/multiple_fragments/fragment/AFragmentImpl_ResponseAdapter.kt.expected @@ -23,8 +23,7 @@ public object AFragmentImpl_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("node") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - AFragmentImpl.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): AFragmentImpl.Data { var _node: AFragmentImpl.Data.Node? = null while (true) { @@ -49,8 +48,7 @@ public object AFragmentImpl_ResponseAdapter { } private object Node : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - AFragmentImpl.Data.Node { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): AFragmentImpl.Data.Node { val __typename = reader.readTypename() return when(__typename) { "ANode", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/responseBased/multiple_fragments/fragment/Fragment1Impl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/responseBased/multiple_fragments/fragment/Fragment1Impl.kt.expected index cfe6a3ccd23..04f834df3de 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/responseBased/multiple_fragments/fragment/Fragment1Impl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/responseBased/multiple_fragments/fragment/Fragment1Impl.kt.expected @@ -42,5 +42,6 @@ public class Fragment1Impl() : Fragment { public data class Data( override val field1: String?, - ) : Fragment1, Fragment.Data + ) : Fragment1, + Fragment.Data } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/responseBased/multiple_fragments/fragment/Fragment1Impl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/responseBased/multiple_fragments/fragment/Fragment1Impl_ResponseAdapter.kt.expected index 266b2b3664d..012cb0c8def 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/responseBased/multiple_fragments/fragment/Fragment1Impl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/responseBased/multiple_fragments/fragment/Fragment1Impl_ResponseAdapter.kt.expected @@ -17,8 +17,7 @@ public object Fragment1Impl_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("field1") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - Fragment1Impl.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): Fragment1Impl.Data { var _field1: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/responseBased/multiple_fragments/fragment/Fragment2Impl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/responseBased/multiple_fragments/fragment/Fragment2Impl.kt.expected index 478badf088e..440854d0f09 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/responseBased/multiple_fragments/fragment/Fragment2Impl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/responseBased/multiple_fragments/fragment/Fragment2Impl.kt.expected @@ -42,5 +42,6 @@ public class Fragment2Impl() : Fragment { public data class Data( override val field2: String?, - ) : Fragment2, Fragment.Data + ) : Fragment2, + Fragment.Data } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/responseBased/multiple_fragments/fragment/Fragment2Impl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/responseBased/multiple_fragments/fragment/Fragment2Impl_ResponseAdapter.kt.expected index 918a56f73f3..84a8b6c1cc1 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/responseBased/multiple_fragments/fragment/Fragment2Impl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/multiple_fragments/kotlin/responseBased/multiple_fragments/fragment/Fragment2Impl_ResponseAdapter.kt.expected @@ -17,8 +17,7 @@ public object Fragment2Impl_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("field2") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - Fragment2Impl.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): Fragment2Impl.Data { var _field2: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/CreateReviewForEpisode.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/CreateReviewForEpisode.kt.expected index 874d82c6bc9..c05f45da1a6 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/CreateReviewForEpisode.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/CreateReviewForEpisode.kt.expected @@ -46,8 +46,7 @@ internal data class CreateReviewForEpisode( customScalarAdapters: CustomScalarAdapters, withDefaultValues: Boolean, ) { - CreateReviewForEpisode_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, - withDefaultValues) + CreateReviewForEpisode_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, withDefaultValues) } override fun adapter(): Adapter = CreateReviewForEpisode_ResponseAdapter.Data.obj() @@ -122,13 +121,11 @@ internal data class CreateReviewForEpisode( * ``` */ public val OPERATION_DOCUMENT: String - get() = - "mutation CreateReviewForEpisode(${'$'}ep: Episode!, ${'$'}review: ReviewInput!) { createReview(episode: ${'$'}ep, review: ${'$'}review) { stars commentary listOfListOfString listOfListOfEnum listOfListOfCustom listOfListOfObject { name } } }" + get() = "mutation CreateReviewForEpisode(${'$'}ep: Episode!, ${'$'}review: ReviewInput!) { createReview(episode: ${'$'}ep, review: ${'$'}review) { stars commentary listOfListOfString listOfListOfEnum listOfListOfCustom listOfListOfObject { name } } }" public const val OPERATION_NAME: String = "CreateReviewForEpisode" - public fun Data(resolver: FakeResolver = DefaultFakeResolver(__Schema.all), - block: MutationBuilder.() -> Unit = {}): Data = buildData( + public fun Data(resolver: FakeResolver = DefaultFakeResolver(__Schema.all), block: MutationBuilder.() -> Unit = {}): Data = buildData( CompiledMutation, block, CreateReviewForEpisode_ResponseAdapter.Data, diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/adapter/CreateReviewForEpisode_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/adapter/CreateReviewForEpisode_ResponseAdapter.kt.expected index 838bd36485b..b81d3312fce 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/adapter/CreateReviewForEpisode_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/adapter/CreateReviewForEpisode_ResponseAdapter.kt.expected @@ -27,8 +27,7 @@ internal object CreateReviewForEpisode_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("createReview") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - CreateReviewForEpisode.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): CreateReviewForEpisode.Data { var _createReview: CreateReviewForEpisode.Data.CreateReview? = null while (true) { @@ -53,11 +52,10 @@ internal object CreateReviewForEpisode_ResponseAdapter { } private object CreateReview : Adapter { - public val RESPONSE_NAMES: List = listOf("stars", "commentary", "listOfListOfString", - "listOfListOfEnum", "listOfListOfCustom", "listOfListOfObject") + public val RESPONSE_NAMES: List = + listOf("stars", "commentary", "listOfListOfString", "listOfListOfEnum", "listOfListOfCustom", "listOfListOfObject") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - CreateReviewForEpisode.Data.CreateReview { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): CreateReviewForEpisode.Data.CreateReview { var _stars: Int? = null var _commentary: String? = null var _listOfListOfString: List>? = null @@ -96,32 +94,25 @@ internal object CreateReviewForEpisode_ResponseAdapter { IntAdapter.toJson(writer, customScalarAdapters, value.stars) writer.name("commentary") - com.example.MyStringAdapter().nullable().toJson(writer, customScalarAdapters, - value.commentary) + com.example.MyStringAdapter().nullable().toJson(writer, customScalarAdapters, value.commentary) writer.name("listOfListOfString") - com.example.MyStringAdapter().list().list().nullable().toJson(writer, customScalarAdapters, - value.listOfListOfString) + com.example.MyStringAdapter().list().list().nullable().toJson(writer, customScalarAdapters, value.listOfListOfString) writer.name("listOfListOfEnum") - Episode_ResponseAdapter.list().list().nullable().toJson(writer, customScalarAdapters, - value.listOfListOfEnum) + Episode_ResponseAdapter.list().list().nullable().toJson(writer, customScalarAdapters, value.listOfListOfEnum) writer.name("listOfListOfCustom") - customScalarAdapters.responseAdapterFor(TypeDate.type).list().list().nullable().toJson(writer, - customScalarAdapters, value.listOfListOfCustom) + customScalarAdapters.responseAdapterFor(TypeDate.type).list().list().nullable().toJson(writer, customScalarAdapters, value.listOfListOfCustom) writer.name("listOfListOfObject") - ListOfListOfObject.obj().list().list().nullable().toJson(writer, customScalarAdapters, - value.listOfListOfObject) + ListOfListOfObject.obj().list().list().nullable().toJson(writer, customScalarAdapters, value.listOfListOfObject) } - private object ListOfListOfObject : - Adapter { + private object ListOfListOfObject : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - CreateReviewForEpisode.Data.CreateReview.ListOfListOfObject { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): CreateReviewForEpisode.Data.CreateReview.ListOfListOfObject { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/schema/__Schema.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/schema/__Schema.kt.expected index 23978fbc487..73eeb592d0f 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/schema/__Schema.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/schema/__Schema.kt.expected @@ -14,16 +14,7 @@ import kotlin.collections.List */ internal object __Schema { public val all: List = listOf( - com.example.mutation_create_review.type.Character.type, - com.example.mutation_create_review.type.Droid.type, - com.example.mutation_create_review.type.Episode.type, - com.example.mutation_create_review.type.Human.type, - com.example.mutation_create_review.type.Mutation.type, - com.example.mutation_create_review.type.Review.type, - com.example.mutation_create_review.type.SearchResult.type, - com.example.mutation_create_review.type.Starship.type) + com.example.mutation_create_review.type.Character.type, com.example.mutation_create_review.type.Droid.type, com.example.mutation_create_review.type.Episode.type, com.example.mutation_create_review.type.Human.type, com.example.mutation_create_review.type.Mutation.type, com.example.mutation_create_review.type.Review.type, com.example.mutation_create_review.type.SearchResult.type, com.example.mutation_create_review.type.Starship.type) - - public fun possibleTypes(type: CompiledNamedType): List = - com.apollographql.apollo.api.possibleTypes(all, type) + public fun possibleTypes(type: CompiledNamedType): List = com.apollographql.apollo.api.possibleTypes(all, type) } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/Character.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/Character.kt.expected index 32a7abe4a4d..c6ab5dea505 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/Character.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/Character.kt.expected @@ -23,8 +23,7 @@ internal class Character { public companion object : BuilderFactory { public val type: InterfaceType = InterfaceType.Builder(name = "Character").build() - override fun newBuilder(customScalarAdapters: CustomScalarAdapters): OtherCharacterBuilder = - OtherCharacterBuilder(customScalarAdapters) + override fun newBuilder(customScalarAdapters: CustomScalarAdapters): OtherCharacterBuilder = OtherCharacterBuilder(customScalarAdapters) } } @@ -40,8 +39,7 @@ internal class OtherCharacterBuilder( internal class OtherCharacterMap( __fields: Map, -) : CharacterMap, Map by __fields +) : CharacterMap, + Map by __fields -internal fun BuilderScope.buildOtherCharacter(typename: String, - block: OtherCharacterBuilder.() -> Unit): OtherCharacterMap = - OtherCharacterBuilder(customScalarAdapters).apply(block).apply { __typename = typename }.build() +internal fun BuilderScope.buildOtherCharacter(typename: String, block: OtherCharacterBuilder.() -> Unit): OtherCharacterMap = OtherCharacterBuilder(customScalarAdapters).apply(block).apply { __typename = typename }.build() diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/ColorInput.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/ColorInput.kt.expected index 2151fb7a804..124c4013e36 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/ColorInput.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/ColorInput.kt.expected @@ -11,6 +11,12 @@ import kotlin.Int /** * The input object sent when passing in a color + * + * @param red A description with a dollar sign: $10 + * @param green Green color + * @param blue Blue color + * @param enumWithDefaultValue for test purpose only + * @param reviewRefInput Circle ref to review input */ internal data class ColorInput( /** diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/Droid.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/Droid.kt.expected index 5628b16961b..c2645ec8e47 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/Droid.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/Droid.kt.expected @@ -24,8 +24,7 @@ internal class Droid { public val type: ObjectType = ObjectType.Builder(name = "Droid").interfaces(listOf(Character.type)).build() - override fun newBuilder(customScalarAdapters: CustomScalarAdapters): DroidBuilder = - DroidBuilder(customScalarAdapters) + override fun newBuilder(customScalarAdapters: CustomScalarAdapters): DroidBuilder = DroidBuilder(customScalarAdapters) } } @@ -42,7 +41,8 @@ internal class DroidBuilder( internal class DroidMap( __fields: Map, -) : CharacterMap, SearchResultMap, Map by __fields +) : CharacterMap, + SearchResultMap, + Map by __fields -internal fun BuilderScope.buildDroid(block: DroidBuilder.() -> Unit): DroidMap = - DroidBuilder(customScalarAdapters).apply(block).build() +internal fun BuilderScope.buildDroid(block: DroidBuilder.() -> Unit): DroidMap = DroidBuilder(customScalarAdapters).apply(block).build() diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/Episode.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/Episode.kt.expected index 5c2d8788270..36ace1accc8 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/Episode.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/Episode.kt.expected @@ -47,8 +47,8 @@ internal enum class Episode( ; public companion object { - public val type: EnumType = EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", - "DEPRECATED", "new")) + public val type: EnumType = + EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", "DEPRECATED", "new")) /** * All [Episode] known at compile time @@ -73,10 +73,8 @@ internal enum class Episode( /** * Returns the [Episode] that represents the specified [rawValue]. - * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your - * schema instead of calling this function directly. + * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your schema instead of calling this function directly. */ - public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: - UNKNOWN__ + public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: UNKNOWN__ } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/Human.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/Human.kt.expected index ec8e441b251..0e5110ef1ad 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/Human.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/Human.kt.expected @@ -24,8 +24,7 @@ internal class Human { public val type: ObjectType = ObjectType.Builder(name = "Human").interfaces(listOf(Character.type)).build() - override fun newBuilder(customScalarAdapters: CustomScalarAdapters): HumanBuilder = - HumanBuilder(customScalarAdapters) + override fun newBuilder(customScalarAdapters: CustomScalarAdapters): HumanBuilder = HumanBuilder(customScalarAdapters) } } @@ -42,7 +41,8 @@ internal class HumanBuilder( internal class HumanMap( __fields: Map, -) : CharacterMap, SearchResultMap, Map by __fields +) : CharacterMap, + SearchResultMap, + Map by __fields -internal fun BuilderScope.buildHuman(block: HumanBuilder.() -> Unit): HumanMap = - HumanBuilder(customScalarAdapters).apply(block).build() +internal fun BuilderScope.buildHuman(block: HumanBuilder.() -> Unit): HumanMap = HumanBuilder(customScalarAdapters).apply(block).build() diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/Mutation.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/Mutation.kt.expected index 2ec52bf6825..2259e19f7d4 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/Mutation.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/Mutation.kt.expected @@ -29,8 +29,7 @@ internal class Mutation { public val type: ObjectType = ObjectType.Builder(name = "Mutation").build() - override fun newBuilder(customScalarAdapters: CustomScalarAdapters): MutationBuilder = - MutationBuilder(customScalarAdapters) + override fun newBuilder(customScalarAdapters: CustomScalarAdapters): MutationBuilder = MutationBuilder(customScalarAdapters) } } @@ -49,5 +48,4 @@ internal class MutationMap( __fields: Map, ) : Map by __fields -internal fun BuilderScope.buildMutation(block: MutationBuilder.() -> Unit): MutationMap = - MutationBuilder(customScalarAdapters).apply(block).build() +internal fun BuilderScope.buildMutation(block: MutationBuilder.() -> Unit): MutationMap = MutationBuilder(customScalarAdapters).apply(block).build() diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/Review.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/Review.kt.expected index b54d6475dbb..9da63768454 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/Review.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/Review.kt.expected @@ -28,8 +28,7 @@ internal class Review { public companion object : BuilderFactory { public val type: ObjectType = ObjectType.Builder(name = "Review").build() - override fun newBuilder(customScalarAdapters: CustomScalarAdapters): ReviewBuilder = - ReviewBuilder(customScalarAdapters) + override fun newBuilder(customScalarAdapters: CustomScalarAdapters): ReviewBuilder = ReviewBuilder(customScalarAdapters) } } @@ -61,5 +60,4 @@ internal class ReviewMap( __fields: Map, ) : Map by __fields -internal fun BuilderScope.buildReview(block: ReviewBuilder.() -> Unit): ReviewMap = - ReviewBuilder(customScalarAdapters).apply(block).build() +internal fun BuilderScope.buildReview(block: ReviewBuilder.() -> Unit): ReviewMap = ReviewBuilder(customScalarAdapters).apply(block).build() diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/ReviewInput.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/ReviewInput.kt.expected index 5752d97b66f..40b0346cdf9 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/ReviewInput.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/ReviewInput.kt.expected @@ -14,6 +14,30 @@ import kotlin.collections.List /** * The input object sent when someone is creating a new review + * + * @param stars 0-5 stars + * @param nullableIntFieldWithDefaultValue for test purpose only + * @param commentary Comment about the movie, optional + * @param favoriteColor Favorite color, optional + * @param enumWithDefaultValue for test purpose only + * @param nonNullableEnumWithDefaultValue for test purpose only + * @param nullableEnum for test purpose only + * @param listOfCustomScalar for test purpose only + * @param customScalar for test purpose only + * @param listOfEnums for test purpose only + * @param listOfInt for test purpose only + * @param listOfString for test purpose only + * @param listOfStringNonOptional for test purpose only + * @param listOfInputTypes for test purpose only + * @param booleanWithDefaultValue for test purpose only + * @param booleanNonOptional for test purpose only + * @param listOfListOfString for test purpose only + * @param listOfListOfEnum for test purpose only + * @param listOfListOfCustom for test purpose only + * @param listOfListOfObject for test purpose only + * @param CapitalizedField for test purpose only + * @param CapitalizedInt for test purpose only + * @param in for test purpose only */ internal data class ReviewInput( /** diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/SearchResult.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/SearchResult.kt.expected index 803cadcd75b..2e82b1aa5dc 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/SearchResult.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/SearchResult.kt.expected @@ -19,8 +19,7 @@ internal class SearchResult { public companion object : BuilderFactory { public val type: UnionType = UnionType("SearchResult", Human.type, Droid.type, Starship.type) - override fun newBuilder(customScalarAdapters: CustomScalarAdapters): OtherSearchResultBuilder = - OtherSearchResultBuilder(customScalarAdapters) + override fun newBuilder(customScalarAdapters: CustomScalarAdapters): OtherSearchResultBuilder = OtherSearchResultBuilder(customScalarAdapters) } } @@ -34,8 +33,7 @@ internal class OtherSearchResultBuilder( internal class OtherSearchResultMap( __fields: Map, -) : SearchResultMap, Map by __fields +) : SearchResultMap, + Map by __fields -internal fun BuilderScope.buildOtherSearchResult(typename: String, - block: OtherSearchResultBuilder.() -> Unit): OtherSearchResultMap = - OtherSearchResultBuilder(customScalarAdapters).apply(block).apply { __typename = typename }.build() +internal fun BuilderScope.buildOtherSearchResult(typename: String, block: OtherSearchResultBuilder.() -> Unit): OtherSearchResultMap = OtherSearchResultBuilder(customScalarAdapters).apply(block).apply { __typename = typename }.build() diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/Starship.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/Starship.kt.expected index 7a28d780d17..e0dbacee78f 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/Starship.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/Starship.kt.expected @@ -19,8 +19,7 @@ internal class Starship { public companion object : BuilderFactory { public val type: ObjectType = ObjectType.Builder(name = "Starship").build() - override fun newBuilder(customScalarAdapters: CustomScalarAdapters): StarshipBuilder = - StarshipBuilder(customScalarAdapters) + override fun newBuilder(customScalarAdapters: CustomScalarAdapters): StarshipBuilder = StarshipBuilder(customScalarAdapters) } } @@ -35,7 +34,7 @@ internal class StarshipBuilder( internal class StarshipMap( __fields: Map, -) : SearchResultMap, Map by __fields +) : SearchResultMap, + Map by __fields -internal fun BuilderScope.buildStarship(block: StarshipBuilder.() -> Unit): StarshipMap = - StarshipBuilder(customScalarAdapters).apply(block).build() +internal fun BuilderScope.buildStarship(block: StarshipBuilder.() -> Unit): StarshipMap = StarshipBuilder(customScalarAdapters).apply(block).build() diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/__CustomScalarAdapters.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/__CustomScalarAdapters.kt.expected index 87abe6cc1e6..e9ec6667bbe 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/__CustomScalarAdapters.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/__CustomScalarAdapters.kt.expected @@ -14,4 +14,3 @@ internal val __CustomScalarAdapters: CustomScalarAdapters = CustomScalarAdapters .add(URL.type, com.example.UrlAdapter) .add(GraphQLString.type, com.example.MyStringAdapter()) .build() - diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/adapter/ColorInput_InputAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/adapter/ColorInput_InputAdapter.kt.expected index 338c3d9c68f..f5ac549a7dc 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/adapter/ColorInput_InputAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/adapter/ColorInput_InputAdapter.kt.expected @@ -20,8 +20,7 @@ import com.example.mutation_create_review.type.ColorInput import kotlin.IllegalStateException internal object ColorInput_InputAdapter : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): ColorInput - = throw IllegalStateException("Input type used in output position") + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): ColorInput = throw IllegalStateException("Input type used in output position") override fun toJson( writer: JsonWriter, @@ -42,13 +41,11 @@ internal object ColorInput_InputAdapter : Adapter { } if (value.enumWithDefaultValue is Optional.Present) { writer.name("enumWithDefaultValue") - Episode_ResponseAdapter.nullable().present().toJson(writer, customScalarAdapters, - value.enumWithDefaultValue) + Episode_ResponseAdapter.nullable().present().toJson(writer, customScalarAdapters, value.enumWithDefaultValue) } if (value.reviewRefInput is Optional.Present) { writer.name("reviewRefInput") - ReviewRefInput_InputAdapter.obj().nullable().present().toJson(writer, customScalarAdapters, - value.reviewRefInput) + ReviewRefInput_InputAdapter.obj().nullable().present().toJson(writer, customScalarAdapters, value.reviewRefInput) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/adapter/ReviewInput_InputAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/adapter/ReviewInput_InputAdapter.kt.expected index 5c804594310..52b9e5748d2 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/adapter/ReviewInput_InputAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/adapter/ReviewInput_InputAdapter.kt.expected @@ -23,8 +23,7 @@ import com.example.mutation_create_review.type.Date as TypeDate import java.util.Date as UtilDate internal object ReviewInput_InputAdapter : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): ReviewInput - = throw IllegalStateException("Input type used in output position") + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): ReviewInput = throw IllegalStateException("Input type used in output position") override fun toJson( writer: JsonWriter, @@ -35,98 +34,79 @@ internal object ReviewInput_InputAdapter : Adapter { IntAdapter.toJson(writer, customScalarAdapters, value.stars) if (value.nullableIntFieldWithDefaultValue is Optional.Present) { writer.name("nullableIntFieldWithDefaultValue") - NullableIntAdapter.present().toJson(writer, customScalarAdapters, - value.nullableIntFieldWithDefaultValue) + NullableIntAdapter.present().toJson(writer, customScalarAdapters, value.nullableIntFieldWithDefaultValue) } if (value.commentary is Optional.Present) { writer.name("commentary") - com.example.MyStringAdapter().nullable().present().toJson(writer, customScalarAdapters, - value.commentary) + com.example.MyStringAdapter().nullable().present().toJson(writer, customScalarAdapters, value.commentary) } writer.name("favoriteColor") ColorInput_InputAdapter.obj().toJson(writer, customScalarAdapters, value.favoriteColor) if (value.enumWithDefaultValue is Optional.Present) { writer.name("enumWithDefaultValue") - Episode_ResponseAdapter.nullable().present().toJson(writer, customScalarAdapters, - value.enumWithDefaultValue) + Episode_ResponseAdapter.nullable().present().toJson(writer, customScalarAdapters, value.enumWithDefaultValue) } if (value.nonNullableEnumWithDefaultValue is Optional.Present) { writer.name("nonNullableEnumWithDefaultValue") - Episode_ResponseAdapter.present().toJson(writer, customScalarAdapters, - value.nonNullableEnumWithDefaultValue) + Episode_ResponseAdapter.present().toJson(writer, customScalarAdapters, value.nonNullableEnumWithDefaultValue) } if (value.nullableEnum is Optional.Present) { writer.name("nullableEnum") - Episode_ResponseAdapter.nullable().present().toJson(writer, customScalarAdapters, - value.nullableEnum) + Episode_ResponseAdapter.nullable().present().toJson(writer, customScalarAdapters, value.nullableEnum) } if (value.listOfCustomScalar is Optional.Present) { writer.name("listOfCustomScalar") - customScalarAdapters.responseAdapterFor(TypeDate.type).nullable().list().nullable().present().toJson(writer, - customScalarAdapters, value.listOfCustomScalar) + customScalarAdapters.responseAdapterFor(TypeDate.type).nullable().list().nullable().present().toJson(writer, customScalarAdapters, value.listOfCustomScalar) } if (value.customScalar is Optional.Present) { writer.name("customScalar") - customScalarAdapters.responseAdapterFor(TypeDate.type).nullable().present().toJson(writer, - customScalarAdapters, value.customScalar) + customScalarAdapters.responseAdapterFor(TypeDate.type).nullable().present().toJson(writer, customScalarAdapters, value.customScalar) } if (value.listOfEnums is Optional.Present) { writer.name("listOfEnums") - Episode_ResponseAdapter.nullable().list().nullable().present().toJson(writer, - customScalarAdapters, value.listOfEnums) + Episode_ResponseAdapter.nullable().list().nullable().present().toJson(writer, customScalarAdapters, value.listOfEnums) } if (value.listOfInt is Optional.Present) { writer.name("listOfInt") - NullableIntAdapter.list().nullable().present().toJson(writer, customScalarAdapters, - value.listOfInt) + NullableIntAdapter.list().nullable().present().toJson(writer, customScalarAdapters, value.listOfInt) } if (value.listOfString is Optional.Present) { writer.name("listOfString") - com.example.MyStringAdapter().nullable().list().nullable().present().toJson(writer, - customScalarAdapters, value.listOfString) + com.example.MyStringAdapter().nullable().list().nullable().present().toJson(writer, customScalarAdapters, value.listOfString) } writer.name("listOfStringNonOptional") - com.example.MyStringAdapter().nullable().list().toJson(writer, customScalarAdapters, - value.listOfStringNonOptional) + com.example.MyStringAdapter().nullable().list().toJson(writer, customScalarAdapters, value.listOfStringNonOptional) if (value.listOfInputTypes is Optional.Present) { writer.name("listOfInputTypes") - ColorInput_InputAdapter.obj().nullable().list().nullable().present().toJson(writer, - customScalarAdapters, value.listOfInputTypes) + ColorInput_InputAdapter.obj().nullable().list().nullable().present().toJson(writer, customScalarAdapters, value.listOfInputTypes) } if (value.booleanWithDefaultValue is Optional.Present) { writer.name("booleanWithDefaultValue") - NullableBooleanAdapter.present().toJson(writer, customScalarAdapters, - value.booleanWithDefaultValue) + NullableBooleanAdapter.present().toJson(writer, customScalarAdapters, value.booleanWithDefaultValue) } if (value.booleanNonOptional is Optional.Present) { writer.name("booleanNonOptional") - NullableBooleanAdapter.present().toJson(writer, customScalarAdapters, - value.booleanNonOptional) + NullableBooleanAdapter.present().toJson(writer, customScalarAdapters, value.booleanNonOptional) } if (value.listOfListOfString is Optional.Present) { writer.name("listOfListOfString") - com.example.MyStringAdapter().list().list().nullable().present().toJson(writer, - customScalarAdapters, value.listOfListOfString) + com.example.MyStringAdapter().list().list().nullable().present().toJson(writer, customScalarAdapters, value.listOfListOfString) } if (value.listOfListOfEnum is Optional.Present) { writer.name("listOfListOfEnum") - Episode_ResponseAdapter.list().list().nullable().present().toJson(writer, - customScalarAdapters, value.listOfListOfEnum) + Episode_ResponseAdapter.list().list().nullable().present().toJson(writer, customScalarAdapters, value.listOfListOfEnum) } if (value.listOfListOfCustom is Optional.Present) { writer.name("listOfListOfCustom") - customScalarAdapters.responseAdapterFor(TypeDate.type).list().list().nullable().present().toJson(writer, - customScalarAdapters, value.listOfListOfCustom) + customScalarAdapters.responseAdapterFor(TypeDate.type).list().list().nullable().present().toJson(writer, customScalarAdapters, value.listOfListOfCustom) } if (value.listOfListOfObject is Optional.Present) { writer.name("listOfListOfObject") - ColorInput_InputAdapter.obj().list().list().nullable().present().toJson(writer, - customScalarAdapters, value.listOfListOfObject) + ColorInput_InputAdapter.obj().list().list().nullable().present().toJson(writer, customScalarAdapters, value.listOfListOfObject) } if (value.CapitalizedField is Optional.Present) { writer.name("CapitalizedField") - com.example.MyStringAdapter().nullable().present().toJson(writer, customScalarAdapters, - value.CapitalizedField) + com.example.MyStringAdapter().nullable().present().toJson(writer, customScalarAdapters, value.CapitalizedField) } if (value.CapitalizedInt is Optional.Present) { writer.name("CapitalizedInt") @@ -134,8 +114,7 @@ internal object ReviewInput_InputAdapter : Adapter { } if (value.`in` is Optional.Present) { writer.name("in") - com.example.MyStringAdapter().nullable().present().toJson(writer, customScalarAdapters, - value.`in`) + com.example.MyStringAdapter().nullable().present().toJson(writer, customScalarAdapters, value.`in`) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/adapter/ReviewRefInput_InputAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/adapter/ReviewRefInput_InputAdapter.kt.expected index af1b6135acc..fe21b8c6f76 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/adapter/ReviewRefInput_InputAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review/kotlin/responseBased/mutation_create_review/type/adapter/ReviewRefInput_InputAdapter.kt.expected @@ -17,8 +17,7 @@ import com.example.mutation_create_review.type.ReviewRefInput import kotlin.IllegalStateException internal object ReviewRefInput_InputAdapter : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - ReviewRefInput = throw IllegalStateException("Input type used in output position") + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): ReviewRefInput = throw IllegalStateException("Input type used in output position") override fun toJson( writer: JsonWriter, @@ -27,8 +26,7 @@ internal object ReviewRefInput_InputAdapter : Adapter { ) { if (value.reviewInput is Optional.Present) { writer.name("reviewInput") - ReviewInput_InputAdapter.obj().nullable().present().toJson(writer, customScalarAdapters, - value.reviewInput) + ReviewInput_InputAdapter.obj().nullable().present().toJson(writer, customScalarAdapters, value.reviewInput) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review_semantic_naming/kotlin/responseBased/mutation_create_review_semantic_naming/CreateReviewForEpisodeMutation.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review_semantic_naming/kotlin/responseBased/mutation_create_review_semantic_naming/CreateReviewForEpisodeMutation.kt.expected index 38bbdcfc21b..4cd77796651 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review_semantic_naming/kotlin/responseBased/mutation_create_review_semantic_naming/CreateReviewForEpisodeMutation.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review_semantic_naming/kotlin/responseBased/mutation_create_review_semantic_naming/CreateReviewForEpisodeMutation.kt.expected @@ -37,8 +37,7 @@ public data class CreateReviewForEpisodeMutation( customScalarAdapters: CustomScalarAdapters, withDefaultValues: Boolean, ) { - CreateReviewForEpisodeMutation_VariablesAdapter.serializeVariables(writer, this, - customScalarAdapters, withDefaultValues) + CreateReviewForEpisodeMutation_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, withDefaultValues) } override fun adapter(): Adapter = CreateReviewForEpisodeMutation_ResponseAdapter.Data.obj() @@ -84,8 +83,7 @@ public data class CreateReviewForEpisodeMutation( * ``` */ public val OPERATION_DOCUMENT: String - get() = - "mutation CreateReviewForEpisode(${'$'}ep: Episode!, ${'$'}review: ReviewInput!) { createReview(episode: ${'$'}ep, review: ${'$'}review) { stars commentary } }" + get() = "mutation CreateReviewForEpisode(${'$'}ep: Episode!, ${'$'}review: ReviewInput!) { createReview(episode: ${'$'}ep, review: ${'$'}review) { stars commentary } }" public const val OPERATION_NAME: String = "CreateReviewForEpisode" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review_semantic_naming/kotlin/responseBased/mutation_create_review_semantic_naming/adapter/CreateReviewForEpisodeMutation_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review_semantic_naming/kotlin/responseBased/mutation_create_review_semantic_naming/adapter/CreateReviewForEpisodeMutation_ResponseAdapter.kt.expected index f907c98a1a0..4a4950fb586 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review_semantic_naming/kotlin/responseBased/mutation_create_review_semantic_naming/adapter/CreateReviewForEpisodeMutation_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review_semantic_naming/kotlin/responseBased/mutation_create_review_semantic_naming/adapter/CreateReviewForEpisodeMutation_ResponseAdapter.kt.expected @@ -23,8 +23,7 @@ public object CreateReviewForEpisodeMutation_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("createReview") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - CreateReviewForEpisodeMutation.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): CreateReviewForEpisodeMutation.Data { var _createReview: CreateReviewForEpisodeMutation.Data.CreateReview? = null while (true) { @@ -51,8 +50,7 @@ public object CreateReviewForEpisodeMutation_ResponseAdapter { private object CreateReview : Adapter { public val RESPONSE_NAMES: List = listOf("stars", "commentary") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - CreateReviewForEpisodeMutation.Data.CreateReview { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): CreateReviewForEpisodeMutation.Data.CreateReview { var _stars: Int? = null var _commentary: String? = null diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review_semantic_naming/kotlin/responseBased/mutation_create_review_semantic_naming/type/ColorInput.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review_semantic_naming/kotlin/responseBased/mutation_create_review_semantic_naming/type/ColorInput.kt.expected index 83473b9d2d7..07865512d4e 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review_semantic_naming/kotlin/responseBased/mutation_create_review_semantic_naming/type/ColorInput.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review_semantic_naming/kotlin/responseBased/mutation_create_review_semantic_naming/type/ColorInput.kt.expected @@ -11,6 +11,12 @@ import kotlin.Int /** * The input object sent when passing in a color + * + * @param red A description with a dollar sign: $10 + * @param green Green color + * @param blue Blue color + * @param enumWithDefaultValue for test purpose only + * @param reviewRefInput Circle ref to review input */ public data class ColorInput( /** diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review_semantic_naming/kotlin/responseBased/mutation_create_review_semantic_naming/type/Episode.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review_semantic_naming/kotlin/responseBased/mutation_create_review_semantic_naming/type/Episode.kt.expected index 80e64c6803d..78e4f4dce7e 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review_semantic_naming/kotlin/responseBased/mutation_create_review_semantic_naming/type/Episode.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review_semantic_naming/kotlin/responseBased/mutation_create_review_semantic_naming/type/Episode.kt.expected @@ -47,8 +47,8 @@ public enum class Episode( ; public companion object { - public val type: EnumType = EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", - "DEPRECATED", "new")) + public val type: EnumType = + EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", "DEPRECATED", "new")) /** * All [Episode] known at compile time @@ -73,10 +73,8 @@ public enum class Episode( /** * Returns the [Episode] that represents the specified [rawValue]. - * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your - * schema instead of calling this function directly. + * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your schema instead of calling this function directly. */ - public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: - UNKNOWN__ + public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: UNKNOWN__ } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review_semantic_naming/kotlin/responseBased/mutation_create_review_semantic_naming/type/ReviewInput.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review_semantic_naming/kotlin/responseBased/mutation_create_review_semantic_naming/type/ReviewInput.kt.expected index 29ed2a27a36..e8ec9ad045f 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review_semantic_naming/kotlin/responseBased/mutation_create_review_semantic_naming/type/ReviewInput.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review_semantic_naming/kotlin/responseBased/mutation_create_review_semantic_naming/type/ReviewInput.kt.expected @@ -14,6 +14,30 @@ import kotlin.collections.List /** * The input object sent when someone is creating a new review + * + * @param stars 0-5 stars + * @param nullableIntFieldWithDefaultValue for test purpose only + * @param commentary Comment about the movie, optional + * @param favoriteColor Favorite color, optional + * @param enumWithDefaultValue for test purpose only + * @param nonNullableEnumWithDefaultValue for test purpose only + * @param nullableEnum for test purpose only + * @param listOfCustomScalar for test purpose only + * @param customScalar for test purpose only + * @param listOfEnums for test purpose only + * @param listOfInt for test purpose only + * @param listOfString for test purpose only + * @param listOfStringNonOptional for test purpose only + * @param listOfInputTypes for test purpose only + * @param booleanWithDefaultValue for test purpose only + * @param booleanNonOptional for test purpose only + * @param listOfListOfString for test purpose only + * @param listOfListOfEnum for test purpose only + * @param listOfListOfCustom for test purpose only + * @param listOfListOfObject for test purpose only + * @param CapitalizedField for test purpose only + * @param CapitalizedInt for test purpose only + * @param in for test purpose only */ public data class ReviewInput( /** diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review_semantic_naming/kotlin/responseBased/mutation_create_review_semantic_naming/type/adapter/ColorInput_InputAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review_semantic_naming/kotlin/responseBased/mutation_create_review_semantic_naming/type/adapter/ColorInput_InputAdapter.kt.expected index edfa5d77a6e..7ea4fe42f4d 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review_semantic_naming/kotlin/responseBased/mutation_create_review_semantic_naming/type/adapter/ColorInput_InputAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review_semantic_naming/kotlin/responseBased/mutation_create_review_semantic_naming/type/adapter/ColorInput_InputAdapter.kt.expected @@ -20,8 +20,7 @@ import com.example.mutation_create_review_semantic_naming.type.ColorInput import kotlin.IllegalStateException public object ColorInput_InputAdapter : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): ColorInput - = throw IllegalStateException("Input type used in output position") + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): ColorInput = throw IllegalStateException("Input type used in output position") override fun toJson( writer: JsonWriter, @@ -42,13 +41,11 @@ public object ColorInput_InputAdapter : Adapter { } if (value.enumWithDefaultValue is Optional.Present) { writer.name("enumWithDefaultValue") - Episode_ResponseAdapter.nullable().present().toJson(writer, customScalarAdapters, - value.enumWithDefaultValue) + Episode_ResponseAdapter.nullable().present().toJson(writer, customScalarAdapters, value.enumWithDefaultValue) } if (value.reviewRefInput is Optional.Present) { writer.name("reviewRefInput") - ReviewRefInput_InputAdapter.obj().nullable().present().toJson(writer, customScalarAdapters, - value.reviewRefInput) + ReviewRefInput_InputAdapter.obj().nullable().present().toJson(writer, customScalarAdapters, value.reviewRefInput) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review_semantic_naming/kotlin/responseBased/mutation_create_review_semantic_naming/type/adapter/ReviewInput_InputAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review_semantic_naming/kotlin/responseBased/mutation_create_review_semantic_naming/type/adapter/ReviewInput_InputAdapter.kt.expected index 540021d0f37..c0b503c9d30 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review_semantic_naming/kotlin/responseBased/mutation_create_review_semantic_naming/type/adapter/ReviewInput_InputAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review_semantic_naming/kotlin/responseBased/mutation_create_review_semantic_naming/type/adapter/ReviewInput_InputAdapter.kt.expected @@ -25,8 +25,7 @@ import com.example.mutation_create_review_semantic_naming.type.ReviewInput import kotlin.IllegalStateException public object ReviewInput_InputAdapter : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): ReviewInput - = throw IllegalStateException("Input type used in output position") + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): ReviewInput = throw IllegalStateException("Input type used in output position") override fun toJson( writer: JsonWriter, @@ -37,8 +36,7 @@ public object ReviewInput_InputAdapter : Adapter { IntAdapter.toJson(writer, customScalarAdapters, value.stars) if (value.nullableIntFieldWithDefaultValue is Optional.Present) { writer.name("nullableIntFieldWithDefaultValue") - NullableIntAdapter.present().toJson(writer, customScalarAdapters, - value.nullableIntFieldWithDefaultValue) + NullableIntAdapter.present().toJson(writer, customScalarAdapters, value.nullableIntFieldWithDefaultValue) } if (value.commentary is Optional.Present) { writer.name("commentary") @@ -48,23 +46,19 @@ public object ReviewInput_InputAdapter : Adapter { ColorInput_InputAdapter.obj().toJson(writer, customScalarAdapters, value.favoriteColor) if (value.enumWithDefaultValue is Optional.Present) { writer.name("enumWithDefaultValue") - Episode_ResponseAdapter.nullable().present().toJson(writer, customScalarAdapters, - value.enumWithDefaultValue) + Episode_ResponseAdapter.nullable().present().toJson(writer, customScalarAdapters, value.enumWithDefaultValue) } if (value.nonNullableEnumWithDefaultValue is Optional.Present) { writer.name("nonNullableEnumWithDefaultValue") - Episode_ResponseAdapter.present().toJson(writer, customScalarAdapters, - value.nonNullableEnumWithDefaultValue) + Episode_ResponseAdapter.present().toJson(writer, customScalarAdapters, value.nonNullableEnumWithDefaultValue) } if (value.nullableEnum is Optional.Present) { writer.name("nullableEnum") - Episode_ResponseAdapter.nullable().present().toJson(writer, customScalarAdapters, - value.nullableEnum) + Episode_ResponseAdapter.nullable().present().toJson(writer, customScalarAdapters, value.nullableEnum) } if (value.listOfCustomScalar is Optional.Present) { writer.name("listOfCustomScalar") - NullableAnyAdapter.list().nullable().present().toJson(writer, customScalarAdapters, - value.listOfCustomScalar) + NullableAnyAdapter.list().nullable().present().toJson(writer, customScalarAdapters, value.listOfCustomScalar) } if (value.customScalar is Optional.Present) { writer.name("customScalar") @@ -72,55 +66,45 @@ public object ReviewInput_InputAdapter : Adapter { } if (value.listOfEnums is Optional.Present) { writer.name("listOfEnums") - Episode_ResponseAdapter.nullable().list().nullable().present().toJson(writer, - customScalarAdapters, value.listOfEnums) + Episode_ResponseAdapter.nullable().list().nullable().present().toJson(writer, customScalarAdapters, value.listOfEnums) } if (value.listOfInt is Optional.Present) { writer.name("listOfInt") - NullableIntAdapter.list().nullable().present().toJson(writer, customScalarAdapters, - value.listOfInt) + NullableIntAdapter.list().nullable().present().toJson(writer, customScalarAdapters, value.listOfInt) } if (value.listOfString is Optional.Present) { writer.name("listOfString") - NullableStringAdapter.list().nullable().present().toJson(writer, customScalarAdapters, - value.listOfString) + NullableStringAdapter.list().nullable().present().toJson(writer, customScalarAdapters, value.listOfString) } writer.name("listOfStringNonOptional") NullableStringAdapter.list().toJson(writer, customScalarAdapters, value.listOfStringNonOptional) if (value.listOfInputTypes is Optional.Present) { writer.name("listOfInputTypes") - ColorInput_InputAdapter.obj().nullable().list().nullable().present().toJson(writer, - customScalarAdapters, value.listOfInputTypes) + ColorInput_InputAdapter.obj().nullable().list().nullable().present().toJson(writer, customScalarAdapters, value.listOfInputTypes) } if (value.booleanWithDefaultValue is Optional.Present) { writer.name("booleanWithDefaultValue") - NullableBooleanAdapter.present().toJson(writer, customScalarAdapters, - value.booleanWithDefaultValue) + NullableBooleanAdapter.present().toJson(writer, customScalarAdapters, value.booleanWithDefaultValue) } if (value.booleanNonOptional is Optional.Present) { writer.name("booleanNonOptional") - NullableBooleanAdapter.present().toJson(writer, customScalarAdapters, - value.booleanNonOptional) + NullableBooleanAdapter.present().toJson(writer, customScalarAdapters, value.booleanNonOptional) } if (value.listOfListOfString is Optional.Present) { writer.name("listOfListOfString") - StringAdapter.list().list().nullable().present().toJson(writer, customScalarAdapters, - value.listOfListOfString) + StringAdapter.list().list().nullable().present().toJson(writer, customScalarAdapters, value.listOfListOfString) } if (value.listOfListOfEnum is Optional.Present) { writer.name("listOfListOfEnum") - Episode_ResponseAdapter.list().list().nullable().present().toJson(writer, - customScalarAdapters, value.listOfListOfEnum) + Episode_ResponseAdapter.list().list().nullable().present().toJson(writer, customScalarAdapters, value.listOfListOfEnum) } if (value.listOfListOfCustom is Optional.Present) { writer.name("listOfListOfCustom") - AnyAdapter.list().list().nullable().present().toJson(writer, customScalarAdapters, - value.listOfListOfCustom) + AnyAdapter.list().list().nullable().present().toJson(writer, customScalarAdapters, value.listOfListOfCustom) } if (value.listOfListOfObject is Optional.Present) { writer.name("listOfListOfObject") - ColorInput_InputAdapter.obj().list().list().nullable().present().toJson(writer, - customScalarAdapters, value.listOfListOfObject) + ColorInput_InputAdapter.obj().list().list().nullable().present().toJson(writer, customScalarAdapters, value.listOfListOfObject) } if (value.CapitalizedField is Optional.Present) { writer.name("CapitalizedField") diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review_semantic_naming/kotlin/responseBased/mutation_create_review_semantic_naming/type/adapter/ReviewRefInput_InputAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review_semantic_naming/kotlin/responseBased/mutation_create_review_semantic_naming/type/adapter/ReviewRefInput_InputAdapter.kt.expected index 8a6be084e77..4196aa12a73 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review_semantic_naming/kotlin/responseBased/mutation_create_review_semantic_naming/type/adapter/ReviewRefInput_InputAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/mutation_create_review_semantic_naming/kotlin/responseBased/mutation_create_review_semantic_naming/type/adapter/ReviewRefInput_InputAdapter.kt.expected @@ -17,8 +17,7 @@ import com.example.mutation_create_review_semantic_naming.type.ReviewRefInput import kotlin.IllegalStateException public object ReviewRefInput_InputAdapter : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - ReviewRefInput = throw IllegalStateException("Input type used in output position") + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): ReviewRefInput = throw IllegalStateException("Input type used in output position") override fun toJson( writer: JsonWriter, @@ -27,8 +26,7 @@ public object ReviewRefInput_InputAdapter : Adapter { ) { if (value.reviewInput is Optional.Present) { writer.name("reviewInput") - ReviewInput_InputAdapter.obj().nullable().present().toJson(writer, customScalarAdapters, - value.reviewInput) + ReviewInput_InputAdapter.obj().nullable().present().toJson(writer, customScalarAdapters, value.reviewInput) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/operationBased/named_fragment_delegate/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/operationBased/named_fragment_delegate/TestQuery.kt.expected index 8046d5900cb..9ea8a51e91d 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/operationBased/named_fragment_delegate/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/operationBased/named_fragment_delegate/TestQuery.kt.expected @@ -106,8 +106,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { hero { __typename ...DroidDetails ...HumanDetails } } fragment DroidDetails on Droid { name primaryFunction friends { name } } fragment HumanDetails on Human { name profileLink friendsConnection { edges { node { name } } } }" + get() = "query TestQuery { hero { __typename ...DroidDetails ...HumanDetails } } fragment DroidDetails on Droid { name primaryFunction friends { name } } fragment HumanDetails on Human { name profileLink friendsConnection { edges { node { name } } } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/operationBased/named_fragment_delegate/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/operationBased/named_fragment_delegate/adapter/TestQuery_ResponseAdapter.kt.expected index 57884cb2e68..b09deddc4f6 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/operationBased/named_fragment_delegate/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/operationBased/named_fragment_delegate/adapter/TestQuery_ResponseAdapter.kt.expected @@ -24,8 +24,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _hero: TestQuery.Data.Hero? = null while (true) { @@ -52,8 +51,7 @@ public object TestQuery_ResponseAdapter { private object Hero : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero { var __typename: String? = null while (true) { @@ -70,15 +68,13 @@ public object TestQuery_ResponseAdapter { var _droidDetails: DroidDetails? = null if (possibleTypes("Droid").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _droidDetails = com.example.named_fragment_delegate.fragment.DroidDetailsImpl_ResponseAdapter.DroidDetails.fromJson(reader, - customScalarAdapters) + _droidDetails = com.example.named_fragment_delegate.fragment.DroidDetailsImpl_ResponseAdapter.DroidDetails.fromJson(reader, customScalarAdapters) } var _humanDetails: HumanDetails? = null if (possibleTypes("Human").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _humanDetails = com.example.named_fragment_delegate.fragment.HumanDetailsImpl_ResponseAdapter.HumanDetails.fromJson(reader, - customScalarAdapters) + _humanDetails = com.example.named_fragment_delegate.fragment.HumanDetailsImpl_ResponseAdapter.HumanDetails.fromJson(reader, customScalarAdapters) } return TestQuery.Data.Hero( @@ -97,13 +93,11 @@ public object TestQuery_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.__typename) if (value.droidDetails != null) { - com.example.named_fragment_delegate.fragment.DroidDetailsImpl_ResponseAdapter.DroidDetails.toJson(writer, - customScalarAdapters, value.droidDetails) + com.example.named_fragment_delegate.fragment.DroidDetailsImpl_ResponseAdapter.DroidDetails.toJson(writer, customScalarAdapters, value.droidDetails) } if (value.humanDetails != null) { - com.example.named_fragment_delegate.fragment.HumanDetailsImpl_ResponseAdapter.HumanDetails.toJson(writer, - customScalarAdapters, value.humanDetails) + com.example.named_fragment_delegate.fragment.HumanDetailsImpl_ResponseAdapter.HumanDetails.toJson(writer, customScalarAdapters, value.humanDetails) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/operationBased/named_fragment_delegate/fragment/DroidDetailsImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/operationBased/named_fragment_delegate/fragment/DroidDetailsImpl.kt.expected index cb431620bb3..cb79e0e0481 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/operationBased/named_fragment_delegate/fragment/DroidDetailsImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/operationBased/named_fragment_delegate/fragment/DroidDetailsImpl.kt.expected @@ -30,8 +30,7 @@ public class DroidDetailsImpl() : Fragment { // This fragment doesn't have any variable } - override fun adapter(): Adapter = - DroidDetailsImpl_ResponseAdapter.DroidDetails.obj() + override fun adapter(): Adapter = DroidDetailsImpl_ResponseAdapter.DroidDetails.obj() override fun rootField(): CompiledField = CompiledField.Builder( name = "data", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/operationBased/named_fragment_delegate/fragment/DroidDetailsImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/operationBased/named_fragment_delegate/fragment/DroidDetailsImpl_ResponseAdapter.kt.expected index 8b2becff786..2c17a9765eb 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/operationBased/named_fragment_delegate/fragment/DroidDetailsImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/operationBased/named_fragment_delegate/fragment/DroidDetailsImpl_ResponseAdapter.kt.expected @@ -22,8 +22,7 @@ public object DroidDetailsImpl_ResponseAdapter { public object DroidDetails : Adapter { public val RESPONSE_NAMES: List = listOf("name", "primaryFunction", "friends") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.named_fragment_delegate.fragment.DroidDetails { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.named_fragment_delegate.fragment.DroidDetails { var _name: String? = null var _primaryFunction: String? = null var _friends: List? = null @@ -59,12 +58,10 @@ public object DroidDetailsImpl_ResponseAdapter { Friend.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, value.friends) } - private object Friend : - Adapter { + private object Friend : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.named_fragment_delegate.fragment.DroidDetails.Friend { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.named_fragment_delegate.fragment.DroidDetails.Friend { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/operationBased/named_fragment_delegate/fragment/HumanDetailsImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/operationBased/named_fragment_delegate/fragment/HumanDetailsImpl.kt.expected index a7f106baa55..00303098270 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/operationBased/named_fragment_delegate/fragment/HumanDetailsImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/operationBased/named_fragment_delegate/fragment/HumanDetailsImpl.kt.expected @@ -30,8 +30,7 @@ public class HumanDetailsImpl() : Fragment { // This fragment doesn't have any variable } - override fun adapter(): Adapter = - HumanDetailsImpl_ResponseAdapter.HumanDetails.obj() + override fun adapter(): Adapter = HumanDetailsImpl_ResponseAdapter.HumanDetails.obj() override fun rootField(): CompiledField = CompiledField.Builder( name = "data", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/operationBased/named_fragment_delegate/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/operationBased/named_fragment_delegate/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected index 91a9ca9fcdb..720c77ae64e 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/operationBased/named_fragment_delegate/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/operationBased/named_fragment_delegate/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected @@ -23,8 +23,7 @@ public object HumanDetailsImpl_ResponseAdapter { public object HumanDetails : Adapter { public val RESPONSE_NAMES: List = listOf("name", "profileLink", "friendsConnection") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.named_fragment_delegate.fragment.HumanDetails { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.named_fragment_delegate.fragment.HumanDetails { var _name: String? = null var _profileLink: Any? = null var _friendsConnection: com.example.named_fragment_delegate.fragment.HumanDetails.FriendsConnection? = null @@ -60,12 +59,10 @@ public object HumanDetailsImpl_ResponseAdapter { FriendsConnection.obj().toJson(writer, customScalarAdapters, value.friendsConnection) } - private object FriendsConnection : - Adapter { + private object FriendsConnection : Adapter { public val RESPONSE_NAMES: List = listOf("edges") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.named_fragment_delegate.fragment.HumanDetails.FriendsConnection { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.named_fragment_delegate.fragment.HumanDetails.FriendsConnection { var _edges: List? = null while (true) { @@ -89,13 +86,10 @@ public object HumanDetailsImpl_ResponseAdapter { Edge.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, value.edges) } - private object Edge : - Adapter - { + private object Edge : Adapter { public val RESPONSE_NAMES: List = listOf("node") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.named_fragment_delegate.fragment.HumanDetails.FriendsConnection.Edge { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.named_fragment_delegate.fragment.HumanDetails.FriendsConnection.Edge { var _node: com.example.named_fragment_delegate.fragment.HumanDetails.FriendsConnection.Edge.Node? = null while (true) { @@ -119,13 +113,10 @@ public object HumanDetailsImpl_ResponseAdapter { Node.obj().nullable().toJson(writer, customScalarAdapters, value.node) } - private object Node : - Adapter - { + private object Node : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.named_fragment_delegate.fragment.HumanDetails.FriendsConnection.Edge.Node { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.named_fragment_delegate.fragment.HumanDetails.FriendsConnection.Edge.Node { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/responseBased/named_fragment_delegate/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/responseBased/named_fragment_delegate/TestQuery.kt.expected index 03ae6178957..5bd741270cd 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/responseBased/named_fragment_delegate/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/responseBased/named_fragment_delegate/TestQuery.kt.expected @@ -88,7 +88,8 @@ public class TestQuery() : Query { * This droid's friends, or an empty list if they have none */ override val friends: List?, - ) : Hero, DroidDetails { + ) : Hero, + DroidDetails { public fun friendsFilterNotNull(): List? = friends?.filterNotNull() public data class Friend( @@ -113,7 +114,8 @@ public class TestQuery() : Query { * The friends of the human exposed as a connection with edges */ override val friendsConnection: FriendsConnection, - ) : Hero, HumanDetails { + ) : Hero, + HumanDetails { public data class FriendsConnection( /** * The edges for each of the character's friends. @@ -182,8 +184,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { hero { __typename ...DroidDetails ...HumanDetails } } fragment DroidDetails on Droid { name primaryFunction friends { name } } fragment HumanDetails on Human { name profileLink friendsConnection { edges { node { name } } } }" + get() = "query TestQuery { hero { __typename ...DroidDetails ...HumanDetails } } fragment DroidDetails on Droid { name primaryFunction friends { name } } fragment HumanDetails on Human { name profileLink friendsConnection { edges { node { name } } } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/responseBased/named_fragment_delegate/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/responseBased/named_fragment_delegate/adapter/TestQuery_ResponseAdapter.kt.expected index a1e128361d5..7561cb78533 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/responseBased/named_fragment_delegate/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/responseBased/named_fragment_delegate/adapter/TestQuery_ResponseAdapter.kt.expected @@ -27,8 +27,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _hero: TestQuery.Data.Hero? = null while (true) { @@ -53,8 +52,7 @@ public object TestQuery_ResponseAdapter { } private object Hero : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero { val __typename = reader.readTypename() return when(__typename) { "Droid", @@ -80,8 +78,8 @@ public object TestQuery_ResponseAdapter { } public object DroidHero { - public val RESPONSE_NAMES: List = listOf("__typename", "name", "primaryFunction", - "friends") + public val RESPONSE_NAMES: List = + listOf("__typename", "name", "primaryFunction", "friends") public fun fromJson( reader: JsonReader, @@ -126,15 +124,13 @@ public object TestQuery_ResponseAdapter { NullableStringAdapter.toJson(writer, customScalarAdapters, value.primaryFunction) writer.name("friends") - Friend.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, - value.friends) + Friend.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, value.friends) } private object Friend : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.DroidHero.Friend { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.DroidHero.Friend { var _name: String? = null while (true) { @@ -161,8 +157,8 @@ public object TestQuery_ResponseAdapter { } public object HumanHero { - public val RESPONSE_NAMES: List = listOf("__typename", "name", "profileLink", - "friendsConnection") + public val RESPONSE_NAMES: List = + listOf("__typename", "name", "profileLink", "friendsConnection") public fun fromJson( reader: JsonReader, @@ -213,8 +209,7 @@ public object TestQuery_ResponseAdapter { private object FriendsConnection : Adapter { public val RESPONSE_NAMES: List = listOf("edges") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.HumanHero.FriendsConnection { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.HumanHero.FriendsConnection { var _edges: List? = null while (true) { @@ -241,8 +236,7 @@ public object TestQuery_ResponseAdapter { private object Edge : Adapter { public val RESPONSE_NAMES: List = listOf("node") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.HumanHero.FriendsConnection.Edge { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.HumanHero.FriendsConnection.Edge { var _node: TestQuery.Data.HumanHero.FriendsConnection.Edge.Node? = null while (true) { @@ -269,8 +263,7 @@ public object TestQuery_ResponseAdapter { private object Node : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.HumanHero.FriendsConnection.Edge.Node { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.HumanHero.FriendsConnection.Edge.Node { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/responseBased/named_fragment_delegate/fragment/DroidDetailsImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/responseBased/named_fragment_delegate/fragment/DroidDetailsImpl.kt.expected index 7d6e88b37e4..7825936c07b 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/responseBased/named_fragment_delegate/fragment/DroidDetailsImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/responseBased/named_fragment_delegate/fragment/DroidDetailsImpl.kt.expected @@ -54,7 +54,8 @@ public class DroidDetailsImpl() : Fragment { * This droid's friends, or an empty list if they have none */ override val friends: List?, - ) : DroidDetails, Fragment.Data { + ) : DroidDetails, + Fragment.Data { public fun friendsFilterNotNull(): List? = friends?.filterNotNull() public data class Friend( diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/responseBased/named_fragment_delegate/fragment/DroidDetailsImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/responseBased/named_fragment_delegate/fragment/DroidDetailsImpl_ResponseAdapter.kt.expected index 36685e80400..c58e5367852 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/responseBased/named_fragment_delegate/fragment/DroidDetailsImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/responseBased/named_fragment_delegate/fragment/DroidDetailsImpl_ResponseAdapter.kt.expected @@ -22,8 +22,7 @@ public object DroidDetailsImpl_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("name", "primaryFunction", "friends") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - DroidDetailsImpl.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): DroidDetailsImpl.Data { var _name: String? = null var _primaryFunction: String? = null var _friends: List? = null @@ -62,8 +61,7 @@ public object DroidDetailsImpl_ResponseAdapter { private object Friend : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - DroidDetailsImpl.Data.Friend { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): DroidDetailsImpl.Data.Friend { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/responseBased/named_fragment_delegate/fragment/HumanDetailsImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/responseBased/named_fragment_delegate/fragment/HumanDetailsImpl.kt.expected index aa413e96976..976c1d77dad 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/responseBased/named_fragment_delegate/fragment/HumanDetailsImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/responseBased/named_fragment_delegate/fragment/HumanDetailsImpl.kt.expected @@ -54,7 +54,8 @@ public class HumanDetailsImpl() : Fragment { * The friends of the human exposed as a connection with edges */ override val friendsConnection: FriendsConnection, - ) : HumanDetails, Fragment.Data { + ) : HumanDetails, + Fragment.Data { public data class FriendsConnection( /** * The edges for each of the character's friends. diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/responseBased/named_fragment_delegate/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/responseBased/named_fragment_delegate/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected index 55882c60d1f..2608b85ed29 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/responseBased/named_fragment_delegate/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_delegate/kotlin/responseBased/named_fragment_delegate/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected @@ -23,8 +23,7 @@ public object HumanDetailsImpl_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("name", "profileLink", "friendsConnection") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - HumanDetailsImpl.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): HumanDetailsImpl.Data { var _name: String? = null var _profileLink: Any? = null var _friendsConnection: HumanDetailsImpl.Data.FriendsConnection? = null @@ -63,8 +62,7 @@ public object HumanDetailsImpl_ResponseAdapter { private object FriendsConnection : Adapter { public val RESPONSE_NAMES: List = listOf("edges") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - HumanDetailsImpl.Data.FriendsConnection { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): HumanDetailsImpl.Data.FriendsConnection { var _edges: List? = null while (true) { @@ -91,8 +89,7 @@ public object HumanDetailsImpl_ResponseAdapter { private object Edge : Adapter { public val RESPONSE_NAMES: List = listOf("node") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - HumanDetailsImpl.Data.FriendsConnection.Edge { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): HumanDetailsImpl.Data.FriendsConnection.Edge { var _node: HumanDetailsImpl.Data.FriendsConnection.Edge.Node? = null while (true) { @@ -119,8 +116,7 @@ public object HumanDetailsImpl_ResponseAdapter { private object Node : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - HumanDetailsImpl.Data.FriendsConnection.Edge.Node { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): HumanDetailsImpl.Data.FriendsConnection.Edge.Node { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/operationBased/named_fragment_inside_inline_fragment/GetHero.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/operationBased/named_fragment_inside_inline_fragment/GetHero.kt.expected index c576ad87a30..93fa42c333e 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/operationBased/named_fragment_inside_inline_fragment/GetHero.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/operationBased/named_fragment_inside_inline_fragment/GetHero.kt.expected @@ -105,8 +105,7 @@ public class GetHero() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query GetHero { hero { __typename ... on Character { __typename ...characterName ...characterAppearsIn } } } fragment characterName on Character { name } fragment characterAppearsIn on Character { appearsIn }" + get() = "query GetHero { hero { __typename ... on Character { __typename ...characterName ...characterAppearsIn } } } fragment characterName on Character { name } fragment characterAppearsIn on Character { appearsIn }" public const val OPERATION_NAME: String = "GetHero" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/operationBased/named_fragment_inside_inline_fragment/adapter/GetHero_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/operationBased/named_fragment_inside_inline_fragment/adapter/GetHero_ResponseAdapter.kt.expected index 2387bebc2c8..18a132a403a 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/operationBased/named_fragment_inside_inline_fragment/adapter/GetHero_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/operationBased/named_fragment_inside_inline_fragment/adapter/GetHero_ResponseAdapter.kt.expected @@ -21,8 +21,7 @@ public object GetHero_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - GetHero.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): GetHero.Data { var _hero: GetHero.Data.Hero? = null while (true) { @@ -49,8 +48,7 @@ public object GetHero_ResponseAdapter { private object Hero : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - GetHero.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): GetHero.Data.Hero { var __typename: String? = null while (true) { @@ -61,8 +59,7 @@ public object GetHero_ResponseAdapter { } reader.rewind() - val _onCharacter = com.example.named_fragment_inside_inline_fragment.adapter.GetHero_ResponseAdapter.Data.Hero.OnCharacter.fromJson(reader, - customScalarAdapters) + val _onCharacter = com.example.named_fragment_inside_inline_fragment.adapter.GetHero_ResponseAdapter.Data.Hero.OnCharacter.fromJson(reader, customScalarAdapters) return GetHero.Data.Hero( __typename = __typename ?: missingField(reader, "__typename"), @@ -78,15 +75,13 @@ public object GetHero_ResponseAdapter { writer.name("__typename") StringAdapter.toJson(writer, customScalarAdapters, value.__typename) - com.example.named_fragment_inside_inline_fragment.adapter.GetHero_ResponseAdapter.Data.Hero.OnCharacter.toJson(writer, - customScalarAdapters, value.onCharacter) + com.example.named_fragment_inside_inline_fragment.adapter.GetHero_ResponseAdapter.Data.Hero.OnCharacter.toJson(writer, customScalarAdapters, value.onCharacter) } private object OnCharacter : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - GetHero.Data.Hero.OnCharacter { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): GetHero.Data.Hero.OnCharacter { var __typename: String? = null while (true) { @@ -97,12 +92,10 @@ public object GetHero_ResponseAdapter { } reader.rewind() - val _characterName = com.example.named_fragment_inside_inline_fragment.fragment.CharacterNameImpl_ResponseAdapter.CharacterName.fromJson(reader, - customScalarAdapters) + val _characterName = com.example.named_fragment_inside_inline_fragment.fragment.CharacterNameImpl_ResponseAdapter.CharacterName.fromJson(reader, customScalarAdapters) reader.rewind() - val _characterAppearsIn = com.example.named_fragment_inside_inline_fragment.fragment.CharacterAppearsInImpl_ResponseAdapter.CharacterAppearsIn.fromJson(reader, - customScalarAdapters) + val _characterAppearsIn = com.example.named_fragment_inside_inline_fragment.fragment.CharacterAppearsInImpl_ResponseAdapter.CharacterAppearsIn.fromJson(reader, customScalarAdapters) return GetHero.Data.Hero.OnCharacter( __typename = __typename ?: missingField(reader, "__typename"), @@ -119,11 +112,9 @@ public object GetHero_ResponseAdapter { writer.name("__typename") StringAdapter.toJson(writer, customScalarAdapters, value.__typename) - com.example.named_fragment_inside_inline_fragment.fragment.CharacterNameImpl_ResponseAdapter.CharacterName.toJson(writer, - customScalarAdapters, value.characterName) + com.example.named_fragment_inside_inline_fragment.fragment.CharacterNameImpl_ResponseAdapter.CharacterName.toJson(writer, customScalarAdapters, value.characterName) - com.example.named_fragment_inside_inline_fragment.fragment.CharacterAppearsInImpl_ResponseAdapter.CharacterAppearsIn.toJson(writer, - customScalarAdapters, value.characterAppearsIn) + com.example.named_fragment_inside_inline_fragment.fragment.CharacterAppearsInImpl_ResponseAdapter.CharacterAppearsIn.toJson(writer, customScalarAdapters, value.characterAppearsIn) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/operationBased/named_fragment_inside_inline_fragment/fragment/CharacterAppearsInImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/operationBased/named_fragment_inside_inline_fragment/fragment/CharacterAppearsInImpl.kt.expected index 3df0529ea01..45c8582a19d 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/operationBased/named_fragment_inside_inline_fragment/fragment/CharacterAppearsInImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/operationBased/named_fragment_inside_inline_fragment/fragment/CharacterAppearsInImpl.kt.expected @@ -30,8 +30,7 @@ public class CharacterAppearsInImpl() : Fragment { // This fragment doesn't have any variable } - override fun adapter(): Adapter = - CharacterAppearsInImpl_ResponseAdapter.CharacterAppearsIn.obj() + override fun adapter(): Adapter = CharacterAppearsInImpl_ResponseAdapter.CharacterAppearsIn.obj() override fun rootField(): CompiledField = CompiledField.Builder( name = "data", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/operationBased/named_fragment_inside_inline_fragment/fragment/CharacterAppearsInImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/operationBased/named_fragment_inside_inline_fragment/fragment/CharacterAppearsInImpl_ResponseAdapter.kt.expected index fcb2cd689f9..780cff5ac8b 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/operationBased/named_fragment_inside_inline_fragment/fragment/CharacterAppearsInImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/operationBased/named_fragment_inside_inline_fragment/fragment/CharacterAppearsInImpl_ResponseAdapter.kt.expected @@ -18,12 +18,10 @@ import kotlin.String import kotlin.collections.List public object CharacterAppearsInImpl_ResponseAdapter { - public object CharacterAppearsIn : - Adapter { + public object CharacterAppearsIn : Adapter { public val RESPONSE_NAMES: List = listOf("appearsIn") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.named_fragment_inside_inline_fragment.fragment.CharacterAppearsIn { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.named_fragment_inside_inline_fragment.fragment.CharacterAppearsIn { var _appearsIn: List? = null while (true) { @@ -44,8 +42,7 @@ public object CharacterAppearsInImpl_ResponseAdapter { `value`: com.example.named_fragment_inside_inline_fragment.fragment.CharacterAppearsIn, ) { writer.name("appearsIn") - Episode_ResponseAdapter.nullable().list().toJson(writer, customScalarAdapters, - value.appearsIn) + Episode_ResponseAdapter.nullable().list().toJson(writer, customScalarAdapters, value.appearsIn) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/operationBased/named_fragment_inside_inline_fragment/fragment/CharacterNameImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/operationBased/named_fragment_inside_inline_fragment/fragment/CharacterNameImpl.kt.expected index 06b90f96d98..c85baa981ca 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/operationBased/named_fragment_inside_inline_fragment/fragment/CharacterNameImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/operationBased/named_fragment_inside_inline_fragment/fragment/CharacterNameImpl.kt.expected @@ -30,8 +30,7 @@ public class CharacterNameImpl() : Fragment { // This fragment doesn't have any variable } - override fun adapter(): Adapter = - CharacterNameImpl_ResponseAdapter.CharacterName.obj() + override fun adapter(): Adapter = CharacterNameImpl_ResponseAdapter.CharacterName.obj() override fun rootField(): CompiledField = CompiledField.Builder( name = "data", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/operationBased/named_fragment_inside_inline_fragment/fragment/CharacterNameImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/operationBased/named_fragment_inside_inline_fragment/fragment/CharacterNameImpl_ResponseAdapter.kt.expected index 509db4766f9..6680163ee26 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/operationBased/named_fragment_inside_inline_fragment/fragment/CharacterNameImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/operationBased/named_fragment_inside_inline_fragment/fragment/CharacterNameImpl_ResponseAdapter.kt.expected @@ -15,12 +15,10 @@ import kotlin.String import kotlin.collections.List public object CharacterNameImpl_ResponseAdapter { - public object CharacterName : - Adapter { + public object CharacterName : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.named_fragment_inside_inline_fragment.fragment.CharacterName { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.named_fragment_inside_inline_fragment.fragment.CharacterName { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/operationBased/named_fragment_inside_inline_fragment/type/Episode.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/operationBased/named_fragment_inside_inline_fragment/type/Episode.kt.expected index 9a72d2bf3dd..5e5bc61d72e 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/operationBased/named_fragment_inside_inline_fragment/type/Episode.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/operationBased/named_fragment_inside_inline_fragment/type/Episode.kt.expected @@ -47,8 +47,8 @@ public enum class Episode( ; public companion object { - public val type: EnumType = EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", - "DEPRECATED", "new")) + public val type: EnumType = + EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", "DEPRECATED", "new")) /** * All [Episode] known at compile time @@ -73,10 +73,8 @@ public enum class Episode( /** * Returns the [Episode] that represents the specified [rawValue]. - * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your - * schema instead of calling this function directly. + * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your schema instead of calling this function directly. */ - public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: - UNKNOWN__ + public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: UNKNOWN__ } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/responseBased/named_fragment_inside_inline_fragment/GetHero.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/responseBased/named_fragment_inside_inline_fragment/GetHero.kt.expected index 37dfcc7d4df..80f3531a904 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/responseBased/named_fragment_inside_inline_fragment/GetHero.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/responseBased/named_fragment_inside_inline_fragment/GetHero.kt.expected @@ -67,7 +67,8 @@ public class GetHero() : Query { * The movies this character appears in */ override val appearsIn: List, - ) : CharacterName, CharacterAppearsIn { + ) : CharacterName, + CharacterAppearsIn { public fun appearsInFilterNotNull(): List = appearsIn.filterNotNull() public companion object { @@ -110,8 +111,7 @@ public class GetHero() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query GetHero { hero { __typename ... on Character { __typename ...characterName ...characterAppearsIn } } } fragment characterName on Character { name } fragment characterAppearsIn on Character { appearsIn }" + get() = "query GetHero { hero { __typename ... on Character { __typename ...characterName ...characterAppearsIn } } } fragment characterName on Character { name } fragment characterAppearsIn on Character { appearsIn }" public const val OPERATION_NAME: String = "GetHero" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/responseBased/named_fragment_inside_inline_fragment/adapter/GetHero_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/responseBased/named_fragment_inside_inline_fragment/adapter/GetHero_ResponseAdapter.kt.expected index 121b283e0a7..d6bbed34ae6 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/responseBased/named_fragment_inside_inline_fragment/adapter/GetHero_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/responseBased/named_fragment_inside_inline_fragment/adapter/GetHero_ResponseAdapter.kt.expected @@ -24,8 +24,7 @@ public object GetHero_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - GetHero.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): GetHero.Data { var _hero: GetHero.Data.Hero? = null while (true) { @@ -52,8 +51,7 @@ public object GetHero_ResponseAdapter { private object Hero : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "name", "appearsIn") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - GetHero.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): GetHero.Data.Hero { var __typename: String? = null var _name: String? = null var _appearsIn: List? = null @@ -86,8 +84,7 @@ public object GetHero_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.name) writer.name("appearsIn") - Episode_ResponseAdapter.nullable().list().toJson(writer, customScalarAdapters, - value.appearsIn) + Episode_ResponseAdapter.nullable().list().toJson(writer, customScalarAdapters, value.appearsIn) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/responseBased/named_fragment_inside_inline_fragment/fragment/CharacterAppearsInImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/responseBased/named_fragment_inside_inline_fragment/fragment/CharacterAppearsInImpl.kt.expected index 72ef1d23f14..08fa9f5ed5a 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/responseBased/named_fragment_inside_inline_fragment/fragment/CharacterAppearsInImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/responseBased/named_fragment_inside_inline_fragment/fragment/CharacterAppearsInImpl.kt.expected @@ -46,7 +46,8 @@ public class CharacterAppearsInImpl() : Fragment { * The movies this character appears in */ override val appearsIn: List, - ) : CharacterAppearsIn, Fragment.Data { + ) : CharacterAppearsIn, + Fragment.Data { public fun appearsInFilterNotNull(): List = appearsIn.filterNotNull() } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/responseBased/named_fragment_inside_inline_fragment/fragment/CharacterAppearsInImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/responseBased/named_fragment_inside_inline_fragment/fragment/CharacterAppearsInImpl_ResponseAdapter.kt.expected index 8063c9ae219..e104316d8bd 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/responseBased/named_fragment_inside_inline_fragment/fragment/CharacterAppearsInImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/responseBased/named_fragment_inside_inline_fragment/fragment/CharacterAppearsInImpl_ResponseAdapter.kt.expected @@ -21,8 +21,7 @@ public object CharacterAppearsInImpl_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("appearsIn") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - CharacterAppearsInImpl.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): CharacterAppearsInImpl.Data { var _appearsIn: List? = null while (true) { @@ -43,8 +42,7 @@ public object CharacterAppearsInImpl_ResponseAdapter { `value`: CharacterAppearsInImpl.Data, ) { writer.name("appearsIn") - Episode_ResponseAdapter.nullable().list().toJson(writer, customScalarAdapters, - value.appearsIn) + Episode_ResponseAdapter.nullable().list().toJson(writer, customScalarAdapters, value.appearsIn) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/responseBased/named_fragment_inside_inline_fragment/fragment/CharacterNameImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/responseBased/named_fragment_inside_inline_fragment/fragment/CharacterNameImpl.kt.expected index 890a745b03a..b0ce84b839a 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/responseBased/named_fragment_inside_inline_fragment/fragment/CharacterNameImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/responseBased/named_fragment_inside_inline_fragment/fragment/CharacterNameImpl.kt.expected @@ -45,5 +45,6 @@ public class CharacterNameImpl() : Fragment { * The name of the character */ override val name: String, - ) : CharacterName, Fragment.Data + ) : CharacterName, + Fragment.Data } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/responseBased/named_fragment_inside_inline_fragment/fragment/CharacterNameImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/responseBased/named_fragment_inside_inline_fragment/fragment/CharacterNameImpl_ResponseAdapter.kt.expected index 54f93275eb8..e25b5e0d7ed 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/responseBased/named_fragment_inside_inline_fragment/fragment/CharacterNameImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/responseBased/named_fragment_inside_inline_fragment/fragment/CharacterNameImpl_ResponseAdapter.kt.expected @@ -18,8 +18,7 @@ public object CharacterNameImpl_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - CharacterNameImpl.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): CharacterNameImpl.Data { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/responseBased/named_fragment_inside_inline_fragment/type/Episode.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/responseBased/named_fragment_inside_inline_fragment/type/Episode.kt.expected index 9a72d2bf3dd..5e5bc61d72e 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/responseBased/named_fragment_inside_inline_fragment/type/Episode.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_inside_inline_fragment/kotlin/responseBased/named_fragment_inside_inline_fragment/type/Episode.kt.expected @@ -47,8 +47,8 @@ public enum class Episode( ; public companion object { - public val type: EnumType = EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", - "DEPRECATED", "new")) + public val type: EnumType = + EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", "DEPRECATED", "new")) /** * All [Episode] known at compile time @@ -73,10 +73,8 @@ public enum class Episode( /** * Returns the [Episode] that represents the specified [rawValue]. - * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your - * schema instead of calling this function directly. + * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your schema instead of calling this function directly. */ - public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: - UNKNOWN__ + public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: UNKNOWN__ } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/operationBased/named_fragment_with_variables/GetUser.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/operationBased/named_fragment_with_variables/GetUser.kt.expected index 7747769ff97..292e4de070b 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/operationBased/named_fragment_with_variables/GetUser.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/operationBased/named_fragment_with_variables/GetUser.kt.expected @@ -38,8 +38,7 @@ public data class GetUser( customScalarAdapters: CustomScalarAdapters, withDefaultValues: Boolean, ) { - GetUser_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, - withDefaultValues) + GetUser_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, withDefaultValues) } override fun adapter(): Adapter = GetUser_ResponseAdapter.Data.obj(true) @@ -92,8 +91,7 @@ public data class GetUser( * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query GetUser(${'$'}organizationId: String!, ${'$'}query: UserQuery!, ${'$'}size: Int!) { __typename ...QueryFragment } fragment UserFragment on User { firstName lastName avatar(size: ${'$'}size) } fragment QueryFragment on Query { organization(id: ${'$'}organizationId) { id user(query: ${'$'}query) { __typename ...UserFragment } } }" + get() = "query GetUser(${'$'}organizationId: String!, ${'$'}query: UserQuery!, ${'$'}size: Int!) { __typename ...QueryFragment } fragment UserFragment on User { firstName lastName avatar(size: ${'$'}size) } fragment QueryFragment on Query { organization(id: ${'$'}organizationId) { id user(query: ${'$'}query) { __typename ...UserFragment } } }" public const val OPERATION_NAME: String = "GetUser" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/operationBased/named_fragment_with_variables/adapter/GetUser_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/operationBased/named_fragment_with_variables/adapter/GetUser_ResponseAdapter.kt.expected index 5b69e6f2f65..4a5101891a5 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/operationBased/named_fragment_with_variables/adapter/GetUser_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/operationBased/named_fragment_with_variables/adapter/GetUser_ResponseAdapter.kt.expected @@ -19,8 +19,7 @@ public object GetUser_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - GetUser.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): GetUser.Data { var __typename: String? = null while (true) { @@ -31,8 +30,7 @@ public object GetUser_ResponseAdapter { } reader.rewind() - val _queryFragment = com.example.named_fragment_with_variables.fragment.QueryFragmentImpl_ResponseAdapter.QueryFragment.fromJson(reader, - customScalarAdapters) + val _queryFragment = com.example.named_fragment_with_variables.fragment.QueryFragmentImpl_ResponseAdapter.QueryFragment.fromJson(reader, customScalarAdapters) return GetUser.Data( __typename = __typename ?: missingField(reader, "__typename"), @@ -48,8 +46,7 @@ public object GetUser_ResponseAdapter { writer.name("__typename") StringAdapter.toJson(writer, customScalarAdapters, value.__typename) - com.example.named_fragment_with_variables.fragment.QueryFragmentImpl_ResponseAdapter.QueryFragment.toJson(writer, - customScalarAdapters, value.queryFragment) + com.example.named_fragment_with_variables.fragment.QueryFragmentImpl_ResponseAdapter.QueryFragment.toJson(writer, customScalarAdapters, value.queryFragment) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/operationBased/named_fragment_with_variables/fragment/QueryFragmentImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/operationBased/named_fragment_with_variables/fragment/QueryFragmentImpl.kt.expected index f6b774db058..b94918583f9 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/operationBased/named_fragment_with_variables/fragment/QueryFragmentImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/operationBased/named_fragment_with_variables/fragment/QueryFragmentImpl.kt.expected @@ -29,12 +29,10 @@ public data class QueryFragmentImpl( customScalarAdapters: CustomScalarAdapters, withDefaultValues: Boolean, ) { - QueryFragmentImpl_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, - withDefaultValues) + QueryFragmentImpl_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, withDefaultValues) } - override fun adapter(): Adapter = - QueryFragmentImpl_ResponseAdapter.QueryFragment.obj() + override fun adapter(): Adapter = QueryFragmentImpl_ResponseAdapter.QueryFragment.obj() override fun rootField(): CompiledField = CompiledField.Builder( name = "data", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/operationBased/named_fragment_with_variables/fragment/QueryFragmentImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/operationBased/named_fragment_with_variables/fragment/QueryFragmentImpl_ResponseAdapter.kt.expected index 56a414e3e6f..16c2235621f 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/operationBased/named_fragment_with_variables/fragment/QueryFragmentImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/operationBased/named_fragment_with_variables/fragment/QueryFragmentImpl_ResponseAdapter.kt.expected @@ -18,12 +18,10 @@ import kotlin.String import kotlin.collections.List public object QueryFragmentImpl_ResponseAdapter { - public object QueryFragment : - Adapter { + public object QueryFragment : Adapter { public val RESPONSE_NAMES: List = listOf("organization") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.named_fragment_with_variables.fragment.QueryFragment { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.named_fragment_with_variables.fragment.QueryFragment { var _organization: com.example.named_fragment_with_variables.fragment.QueryFragment.Organization? = null while (true) { @@ -47,12 +45,10 @@ public object QueryFragmentImpl_ResponseAdapter { Organization.obj().nullable().toJson(writer, customScalarAdapters, value.organization) } - private object Organization : - Adapter { + private object Organization : Adapter { public val RESPONSE_NAMES: List = listOf("id", "user") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.named_fragment_with_variables.fragment.QueryFragment.Organization { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.named_fragment_with_variables.fragment.QueryFragment.Organization { var _id: String? = null var _user: List? = null @@ -82,13 +78,10 @@ public object QueryFragmentImpl_ResponseAdapter { User.obj(true).list().toJson(writer, customScalarAdapters, value.user) } - private object User : - Adapter - { + private object User : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.named_fragment_with_variables.fragment.QueryFragment.Organization.User { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.named_fragment_with_variables.fragment.QueryFragment.Organization.User { var __typename: String? = null while (true) { @@ -99,8 +92,7 @@ public object QueryFragmentImpl_ResponseAdapter { } reader.rewind() - val _userFragment = com.example.named_fragment_with_variables.fragment.UserFragmentImpl_ResponseAdapter.UserFragment.fromJson(reader, - customScalarAdapters) + val _userFragment = com.example.named_fragment_with_variables.fragment.UserFragmentImpl_ResponseAdapter.UserFragment.fromJson(reader, customScalarAdapters) return com.example.named_fragment_with_variables.fragment.QueryFragment.Organization.User( __typename = __typename ?: missingField(reader, "__typename"), @@ -116,8 +108,7 @@ public object QueryFragmentImpl_ResponseAdapter { writer.name("__typename") StringAdapter.toJson(writer, customScalarAdapters, value.__typename) - com.example.named_fragment_with_variables.fragment.UserFragmentImpl_ResponseAdapter.UserFragment.toJson(writer, - customScalarAdapters, value.userFragment) + com.example.named_fragment_with_variables.fragment.UserFragmentImpl_ResponseAdapter.UserFragment.toJson(writer, customScalarAdapters, value.userFragment) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/operationBased/named_fragment_with_variables/fragment/UserFragmentImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/operationBased/named_fragment_with_variables/fragment/UserFragmentImpl.kt.expected index f9ac9b7ef6a..5a51b769d37 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/operationBased/named_fragment_with_variables/fragment/UserFragmentImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/operationBased/named_fragment_with_variables/fragment/UserFragmentImpl.kt.expected @@ -25,12 +25,10 @@ public data class UserFragmentImpl( customScalarAdapters: CustomScalarAdapters, withDefaultValues: Boolean, ) { - UserFragmentImpl_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, - withDefaultValues) + UserFragmentImpl_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, withDefaultValues) } - override fun adapter(): Adapter = - UserFragmentImpl_ResponseAdapter.UserFragment.obj() + override fun adapter(): Adapter = UserFragmentImpl_ResponseAdapter.UserFragment.obj() override fun rootField(): CompiledField = CompiledField.Builder( name = "data", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/operationBased/named_fragment_with_variables/fragment/UserFragmentImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/operationBased/named_fragment_with_variables/fragment/UserFragmentImpl_ResponseAdapter.kt.expected index aab4160dc50..7414e494b5c 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/operationBased/named_fragment_with_variables/fragment/UserFragmentImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/operationBased/named_fragment_with_variables/fragment/UserFragmentImpl_ResponseAdapter.kt.expected @@ -15,12 +15,10 @@ import kotlin.String import kotlin.collections.List public object UserFragmentImpl_ResponseAdapter { - public object UserFragment : - Adapter { + public object UserFragment : Adapter { public val RESPONSE_NAMES: List = listOf("firstName", "lastName", "avatar") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.named_fragment_with_variables.fragment.UserFragment { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.named_fragment_with_variables.fragment.UserFragment { var _firstName: String? = null var _lastName: String? = null var _avatar: String? = null diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/operationBased/named_fragment_with_variables/type/adapter/UserQuery_InputAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/operationBased/named_fragment_with_variables/type/adapter/UserQuery_InputAdapter.kt.expected index 2596a61676a..476b3ed703b 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/operationBased/named_fragment_with_variables/type/adapter/UserQuery_InputAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/operationBased/named_fragment_with_variables/type/adapter/UserQuery_InputAdapter.kt.expected @@ -17,8 +17,7 @@ import com.example.named_fragment_with_variables.type.UserQuery import kotlin.IllegalStateException public object UserQuery_InputAdapter : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): UserQuery = - throw IllegalStateException("Input type used in output position") + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): UserQuery = throw IllegalStateException("Input type used in output position") override fun toJson( writer: JsonWriter, diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/responseBased/named_fragment_with_variables/GetUser.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/responseBased/named_fragment_with_variables/GetUser.kt.expected index 75ca6e17525..3856eb47d20 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/responseBased/named_fragment_with_variables/GetUser.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/responseBased/named_fragment_with_variables/GetUser.kt.expected @@ -41,8 +41,7 @@ public data class GetUser( customScalarAdapters: CustomScalarAdapters, withDefaultValues: Boolean, ) { - GetUser_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, - withDefaultValues) + GetUser_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, withDefaultValues) } override fun adapter(): Adapter = GetUser_ResponseAdapter.Data.obj() @@ -58,7 +57,8 @@ public data class GetUser( public data class Data( public val __typename: String, override val organization: Organization?, - ) : QueryFragment, Query.Data { + ) : QueryFragment, + Query.Data { public data class Organization( override val id: String, override val user: List, @@ -68,7 +68,8 @@ public data class GetUser( override val firstName: String, override val lastName: String, override val avatar: String, - ) : UserFragment, QueryFragment.Organization.User { + ) : UserFragment, + QueryFragment.Organization.User { public companion object { @Suppress("USELESS_CAST") public fun User.userFragment(): UserFragment? = this as? UserFragment @@ -114,8 +115,7 @@ public data class GetUser( * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query GetUser(${'$'}organizationId: String!, ${'$'}query: UserQuery!, ${'$'}size: Int!) { __typename ...QueryFragment } fragment UserFragment on User { firstName lastName avatar(size: ${'$'}size) } fragment QueryFragment on Query { organization(id: ${'$'}organizationId) { id user(query: ${'$'}query) { __typename ...UserFragment } } }" + get() = "query GetUser(${'$'}organizationId: String!, ${'$'}query: UserQuery!, ${'$'}size: Int!) { __typename ...QueryFragment } fragment UserFragment on User { firstName lastName avatar(size: ${'$'}size) } fragment QueryFragment on Query { organization(id: ${'$'}organizationId) { id user(query: ${'$'}query) { __typename ...UserFragment } } }" public const val OPERATION_NAME: String = "GetUser" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/responseBased/named_fragment_with_variables/adapter/GetUser_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/responseBased/named_fragment_with_variables/adapter/GetUser_ResponseAdapter.kt.expected index e1ff84e66fb..c69b8859993 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/responseBased/named_fragment_with_variables/adapter/GetUser_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/responseBased/named_fragment_with_variables/adapter/GetUser_ResponseAdapter.kt.expected @@ -22,8 +22,7 @@ public object GetUser_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "organization") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - GetUser.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): GetUser.Data { var __typename: String? = null var _organization: GetUser.Data.Organization? = null @@ -56,8 +55,7 @@ public object GetUser_ResponseAdapter { private object Organization : Adapter { public val RESPONSE_NAMES: List = listOf("id", "user") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - GetUser.Data.Organization { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): GetUser.Data.Organization { var _id: String? = null var _user: List? = null @@ -88,11 +86,10 @@ public object GetUser_ResponseAdapter { } private object User : Adapter { - public val RESPONSE_NAMES: List = listOf("__typename", "firstName", "lastName", - "avatar") + public val RESPONSE_NAMES: List = + listOf("__typename", "firstName", "lastName", "avatar") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - GetUser.Data.Organization.User { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): GetUser.Data.Organization.User { var __typename: String? = null var _firstName: String? = null var _lastName: String? = null diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/responseBased/named_fragment_with_variables/fragment/QueryFragmentImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/responseBased/named_fragment_with_variables/fragment/QueryFragmentImpl.kt.expected index 13a4949b211..33347bc1170 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/responseBased/named_fragment_with_variables/fragment/QueryFragmentImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/responseBased/named_fragment_with_variables/fragment/QueryFragmentImpl.kt.expected @@ -31,8 +31,7 @@ public data class QueryFragmentImpl( customScalarAdapters: CustomScalarAdapters, withDefaultValues: Boolean, ) { - QueryFragmentImpl_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, - withDefaultValues) + QueryFragmentImpl_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, withDefaultValues) } override fun adapter(): Adapter = QueryFragmentImpl_ResponseAdapter.Data.obj() @@ -46,7 +45,8 @@ public data class QueryFragmentImpl( public data class Data( override val organization: Organization?, - ) : QueryFragment, Fragment.Data { + ) : QueryFragment, + Fragment.Data { public data class Organization( override val id: String, override val user: List, @@ -56,7 +56,8 @@ public data class QueryFragmentImpl( override val firstName: String, override val lastName: String, override val avatar: String, - ) : UserFragment, QueryFragment.Organization.User { + ) : UserFragment, + QueryFragment.Organization.User { public companion object { @Suppress("USELESS_CAST") public fun User.userFragment(): UserFragment? = this as? UserFragment diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/responseBased/named_fragment_with_variables/fragment/QueryFragmentImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/responseBased/named_fragment_with_variables/fragment/QueryFragmentImpl_ResponseAdapter.kt.expected index 55d03bab1c4..b51b662f61b 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/responseBased/named_fragment_with_variables/fragment/QueryFragmentImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/responseBased/named_fragment_with_variables/fragment/QueryFragmentImpl_ResponseAdapter.kt.expected @@ -21,8 +21,7 @@ public object QueryFragmentImpl_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("organization") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - QueryFragmentImpl.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): QueryFragmentImpl.Data { var _organization: QueryFragmentImpl.Data.Organization? = null while (true) { @@ -49,8 +48,7 @@ public object QueryFragmentImpl_ResponseAdapter { private object Organization : Adapter { public val RESPONSE_NAMES: List = listOf("id", "user") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - QueryFragmentImpl.Data.Organization { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): QueryFragmentImpl.Data.Organization { var _id: String? = null var _user: List? = null @@ -81,11 +79,10 @@ public object QueryFragmentImpl_ResponseAdapter { } private object User : Adapter { - public val RESPONSE_NAMES: List = listOf("__typename", "firstName", "lastName", - "avatar") + public val RESPONSE_NAMES: List = + listOf("__typename", "firstName", "lastName", "avatar") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - QueryFragmentImpl.Data.Organization.User { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): QueryFragmentImpl.Data.Organization.User { var __typename: String? = null var _firstName: String? = null var _lastName: String? = null diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/responseBased/named_fragment_with_variables/fragment/UserFragmentImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/responseBased/named_fragment_with_variables/fragment/UserFragmentImpl.kt.expected index 592a3909c87..b7f4b244a13 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/responseBased/named_fragment_with_variables/fragment/UserFragmentImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/responseBased/named_fragment_with_variables/fragment/UserFragmentImpl.kt.expected @@ -26,8 +26,7 @@ public data class UserFragmentImpl( customScalarAdapters: CustomScalarAdapters, withDefaultValues: Boolean, ) { - UserFragmentImpl_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, - withDefaultValues) + UserFragmentImpl_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, withDefaultValues) } override fun adapter(): Adapter = UserFragmentImpl_ResponseAdapter.Data.obj() @@ -43,5 +42,6 @@ public data class UserFragmentImpl( override val firstName: String, override val lastName: String, override val avatar: String, - ) : UserFragment, Fragment.Data + ) : UserFragment, + Fragment.Data } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/responseBased/named_fragment_with_variables/fragment/UserFragmentImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/responseBased/named_fragment_with_variables/fragment/UserFragmentImpl_ResponseAdapter.kt.expected index d58fd95833f..2b5712702f6 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/responseBased/named_fragment_with_variables/fragment/UserFragmentImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/responseBased/named_fragment_with_variables/fragment/UserFragmentImpl_ResponseAdapter.kt.expected @@ -18,8 +18,7 @@ public object UserFragmentImpl_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("firstName", "lastName", "avatar") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - UserFragmentImpl.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): UserFragmentImpl.Data { var _firstName: String? = null var _lastName: String? = null var _avatar: String? = null diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/responseBased/named_fragment_with_variables/type/adapter/UserQuery_InputAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/responseBased/named_fragment_with_variables/type/adapter/UserQuery_InputAdapter.kt.expected index 2596a61676a..476b3ed703b 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/responseBased/named_fragment_with_variables/type/adapter/UserQuery_InputAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_with_variables/kotlin/responseBased/named_fragment_with_variables/type/adapter/UserQuery_InputAdapter.kt.expected @@ -17,8 +17,7 @@ import com.example.named_fragment_with_variables.type.UserQuery import kotlin.IllegalStateException public object UserQuery_InputAdapter : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): UserQuery = - throw IllegalStateException("Input type used in output position") + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): UserQuery = throw IllegalStateException("Input type used in output position") override fun toJson( writer: JsonWriter, diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_without_implementation/kotlin/operationBased/named_fragment_without_implementation/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_without_implementation/kotlin/operationBased/named_fragment_without_implementation/TestQuery.kt.expected index b226b8e845e..84085edcdc1 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_without_implementation/kotlin/operationBased/named_fragment_without_implementation/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_without_implementation/kotlin/operationBased/named_fragment_without_implementation/TestQuery.kt.expected @@ -99,8 +99,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { hero { __typename name ...HumanDetails ...DroidDetails } } fragment HumanDetails on Human { height } fragment DroidDetails on Droid { primaryFunction }" + get() = "query TestQuery { hero { __typename name ...HumanDetails ...DroidDetails } } fragment HumanDetails on Human { height } fragment DroidDetails on Droid { primaryFunction }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_without_implementation/kotlin/operationBased/named_fragment_without_implementation/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_without_implementation/kotlin/operationBased/named_fragment_without_implementation/adapter/TestQuery_ResponseAdapter.kt.expected index e463e23002e..803a2637aa7 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_without_implementation/kotlin/operationBased/named_fragment_without_implementation/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_without_implementation/kotlin/operationBased/named_fragment_without_implementation/adapter/TestQuery_ResponseAdapter.kt.expected @@ -25,8 +25,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _hero: TestQuery.Data.Hero? = null while (true) { @@ -53,8 +52,7 @@ public object TestQuery_ResponseAdapter { private object Hero : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero { var __typename: String? = null var _name: String? = null @@ -73,15 +71,13 @@ public object TestQuery_ResponseAdapter { var _humanDetails: HumanDetails? = null if (possibleTypes("Human").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _humanDetails = com.example.named_fragment_without_implementation.fragment.HumanDetailsImpl_ResponseAdapter.HumanDetails.fromJson(reader, - customScalarAdapters) + _humanDetails = com.example.named_fragment_without_implementation.fragment.HumanDetailsImpl_ResponseAdapter.HumanDetails.fromJson(reader, customScalarAdapters) } var _droidDetails: DroidDetails? = null if (possibleTypes("Droid").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _droidDetails = com.example.named_fragment_without_implementation.fragment.DroidDetailsImpl_ResponseAdapter.DroidDetails.fromJson(reader, - customScalarAdapters) + _droidDetails = com.example.named_fragment_without_implementation.fragment.DroidDetailsImpl_ResponseAdapter.DroidDetails.fromJson(reader, customScalarAdapters) } return TestQuery.Data.Hero( @@ -104,13 +100,11 @@ public object TestQuery_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.name) if (value.humanDetails != null) { - com.example.named_fragment_without_implementation.fragment.HumanDetailsImpl_ResponseAdapter.HumanDetails.toJson(writer, - customScalarAdapters, value.humanDetails) + com.example.named_fragment_without_implementation.fragment.HumanDetailsImpl_ResponseAdapter.HumanDetails.toJson(writer, customScalarAdapters, value.humanDetails) } if (value.droidDetails != null) { - com.example.named_fragment_without_implementation.fragment.DroidDetailsImpl_ResponseAdapter.DroidDetails.toJson(writer, - customScalarAdapters, value.droidDetails) + com.example.named_fragment_without_implementation.fragment.DroidDetailsImpl_ResponseAdapter.DroidDetails.toJson(writer, customScalarAdapters, value.droidDetails) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_without_implementation/kotlin/operationBased/named_fragment_without_implementation/fragment/DroidDetailsImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_without_implementation/kotlin/operationBased/named_fragment_without_implementation/fragment/DroidDetailsImpl_ResponseAdapter.kt.expected index 43852ac23ea..07a2809964b 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_without_implementation/kotlin/operationBased/named_fragment_without_implementation/fragment/DroidDetailsImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_without_implementation/kotlin/operationBased/named_fragment_without_implementation/fragment/DroidDetailsImpl_ResponseAdapter.kt.expected @@ -14,12 +14,10 @@ import kotlin.String import kotlin.collections.List public object DroidDetailsImpl_ResponseAdapter { - public object DroidDetails : - Adapter { + public object DroidDetails : Adapter { public val RESPONSE_NAMES: List = listOf("primaryFunction") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.named_fragment_without_implementation.fragment.DroidDetails { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.named_fragment_without_implementation.fragment.DroidDetails { var _primaryFunction: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_without_implementation/kotlin/operationBased/named_fragment_without_implementation/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_without_implementation/kotlin/operationBased/named_fragment_without_implementation/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected index 3d12355f397..8f622e0c112 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_without_implementation/kotlin/operationBased/named_fragment_without_implementation/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_without_implementation/kotlin/operationBased/named_fragment_without_implementation/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected @@ -15,12 +15,10 @@ import kotlin.String import kotlin.collections.List public object HumanDetailsImpl_ResponseAdapter { - public object HumanDetails : - Adapter { + public object HumanDetails : Adapter { public val RESPONSE_NAMES: List = listOf("height") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.named_fragment_without_implementation.fragment.HumanDetails { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.named_fragment_without_implementation.fragment.HumanDetails { var _height: Double? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_without_implementation/kotlin/responseBased/named_fragment_without_implementation/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_without_implementation/kotlin/responseBased/named_fragment_without_implementation/TestQuery.kt.expected index 561dcdad9d0..af72fe27d0f 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_without_implementation/kotlin/responseBased/named_fragment_without_implementation/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_without_implementation/kotlin/responseBased/named_fragment_without_implementation/TestQuery.kt.expected @@ -89,7 +89,8 @@ public class TestQuery() : Query { * Height in the preferred unit, default is meters */ override val height: Double?, - ) : Hero, HumanDetails + ) : Hero, + HumanDetails public data class DroidHero( override val __typename: String, @@ -101,7 +102,8 @@ public class TestQuery() : Query { * This droid's primary function */ override val primaryFunction: String?, - ) : Hero, DroidDetails + ) : Hero, + DroidDetails public data class OtherHero( override val __typename: String, @@ -140,8 +142,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { hero { __typename name ...HumanDetails ...DroidDetails } } fragment HumanDetails on Human { height } fragment DroidDetails on Droid { primaryFunction }" + get() = "query TestQuery { hero { __typename name ...HumanDetails ...DroidDetails } } fragment HumanDetails on Human { height } fragment DroidDetails on Droid { primaryFunction }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_without_implementation/kotlin/responseBased/named_fragment_without_implementation/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_without_implementation/kotlin/responseBased/named_fragment_without_implementation/adapter/TestQuery_ResponseAdapter.kt.expected index 4b21408ac50..4a6de18f680 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_without_implementation/kotlin/responseBased/named_fragment_without_implementation/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/named_fragment_without_implementation/kotlin/responseBased/named_fragment_without_implementation/adapter/TestQuery_ResponseAdapter.kt.expected @@ -26,8 +26,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _hero: TestQuery.Data.Hero? = null while (true) { @@ -52,8 +51,7 @@ public object TestQuery_ResponseAdapter { } private object Hero : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero { val __typename = reader.readTypename() return when(__typename) { "Human", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/nested_conditional_inline/kotlin/operationBased/nested_conditional_inline/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/nested_conditional_inline/kotlin/operationBased/nested_conditional_inline/TestQuery.kt.expected index dd0be59e123..1185194bf7f 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/nested_conditional_inline/kotlin/operationBased/nested_conditional_inline/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/nested_conditional_inline/kotlin/operationBased/nested_conditional_inline/TestQuery.kt.expected @@ -37,8 +37,7 @@ public data class TestQuery( customScalarAdapters: CustomScalarAdapters, withDefaultValues: Boolean, ) { - TestQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, - withDefaultValues) + TestQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, withDefaultValues) } override fun adapter(): Adapter = TestQuery_ResponseAdapter.Data.obj() @@ -163,8 +162,7 @@ public data class TestQuery( * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery(${'$'}episode: Episode) { hero(episode: ${'$'}episode) { __typename name ... on Human { friends { __typename name ... on Human { height(unit: FOOT) } } } ... on Droid { friends { __typename name ... on Human { height(unit: METER) } } } } }" + get() = "query TestQuery(${'$'}episode: Episode) { hero(episode: ${'$'}episode) { __typename name ... on Human { friends { __typename name ... on Human { height(unit: FOOT) } } } ... on Droid { friends { __typename name ... on Human { height(unit: METER) } } } } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/nested_conditional_inline/kotlin/operationBased/nested_conditional_inline/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/nested_conditional_inline/kotlin/operationBased/nested_conditional_inline/adapter/TestQuery_ResponseAdapter.kt.expected index eb1620ac79e..5a3d0dcc74f 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/nested_conditional_inline/kotlin/operationBased/nested_conditional_inline/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/nested_conditional_inline/kotlin/operationBased/nested_conditional_inline/adapter/TestQuery_ResponseAdapter.kt.expected @@ -26,8 +26,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _hero: TestQuery.Data.Hero? = null while (true) { @@ -54,8 +53,7 @@ public object TestQuery_ResponseAdapter { private object Hero : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero { var __typename: String? = null var _name: String? = null @@ -74,15 +72,13 @@ public object TestQuery_ResponseAdapter { var _onHuman: TestQuery.Data.Hero.OnHuman? = null if (possibleTypes("Human").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onHuman = com.example.nested_conditional_inline.adapter.TestQuery_ResponseAdapter.Data.Hero.OnHuman.fromJson(reader, - customScalarAdapters) + _onHuman = com.example.nested_conditional_inline.adapter.TestQuery_ResponseAdapter.Data.Hero.OnHuman.fromJson(reader, customScalarAdapters) } var _onDroid: TestQuery.Data.Hero.OnDroid? = null if (possibleTypes("Droid").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onDroid = com.example.nested_conditional_inline.adapter.TestQuery_ResponseAdapter.Data.Hero.OnDroid.fromJson(reader, - customScalarAdapters) + _onDroid = com.example.nested_conditional_inline.adapter.TestQuery_ResponseAdapter.Data.Hero.OnDroid.fromJson(reader, customScalarAdapters) } return TestQuery.Data.Hero( @@ -105,21 +101,18 @@ public object TestQuery_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.name) if (value.onHuman != null) { - com.example.nested_conditional_inline.adapter.TestQuery_ResponseAdapter.Data.Hero.OnHuman.toJson(writer, - customScalarAdapters, value.onHuman) + com.example.nested_conditional_inline.adapter.TestQuery_ResponseAdapter.Data.Hero.OnHuman.toJson(writer, customScalarAdapters, value.onHuman) } if (value.onDroid != null) { - com.example.nested_conditional_inline.adapter.TestQuery_ResponseAdapter.Data.Hero.OnDroid.toJson(writer, - customScalarAdapters, value.onDroid) + com.example.nested_conditional_inline.adapter.TestQuery_ResponseAdapter.Data.Hero.OnDroid.toJson(writer, customScalarAdapters, value.onDroid) } } private object OnHuman : Adapter { public val RESPONSE_NAMES: List = listOf("friends") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero.OnHuman { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero.OnHuman { var _friends: List? = null while (true) { @@ -140,15 +133,13 @@ public object TestQuery_ResponseAdapter { `value`: TestQuery.Data.Hero.OnHuman, ) { writer.name("friends") - Friend.obj(true).nullable().list().nullable().toJson(writer, customScalarAdapters, - value.friends) + Friend.obj(true).nullable().list().nullable().toJson(writer, customScalarAdapters, value.friends) } private object Friend : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero.OnHuman.Friend { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero.OnHuman.Friend { var __typename: String? = null var _name: String? = null @@ -167,8 +158,7 @@ public object TestQuery_ResponseAdapter { var _onHuman: TestQuery.Data.Hero.OnHuman.Friend.OnHuman? = null if (possibleTypes("Human").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onHuman = com.example.nested_conditional_inline.adapter.TestQuery_ResponseAdapter.Data.Hero.OnHuman.Friend.OnHuman.fromJson(reader, - customScalarAdapters) + _onHuman = com.example.nested_conditional_inline.adapter.TestQuery_ResponseAdapter.Data.Hero.OnHuman.Friend.OnHuman.fromJson(reader, customScalarAdapters) } return TestQuery.Data.Hero.OnHuman.Friend( @@ -190,16 +180,14 @@ public object TestQuery_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.name) if (value.onHuman != null) { - com.example.nested_conditional_inline.adapter.TestQuery_ResponseAdapter.Data.Hero.OnHuman.Friend.OnHuman.toJson(writer, - customScalarAdapters, value.onHuman) + com.example.nested_conditional_inline.adapter.TestQuery_ResponseAdapter.Data.Hero.OnHuman.Friend.OnHuman.toJson(writer, customScalarAdapters, value.onHuman) } } private object OnHuman : Adapter { public val RESPONSE_NAMES: List = listOf("height") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero.OnHuman.Friend.OnHuman { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero.OnHuman.Friend.OnHuman { var _height: Double? = null while (true) { @@ -229,8 +217,7 @@ public object TestQuery_ResponseAdapter { private object OnDroid : Adapter { public val RESPONSE_NAMES: List = listOf("friends") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero.OnDroid { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero.OnDroid { var _friends: List? = null while (true) { @@ -251,15 +238,13 @@ public object TestQuery_ResponseAdapter { `value`: TestQuery.Data.Hero.OnDroid, ) { writer.name("friends") - Friend.obj(true).nullable().list().nullable().toJson(writer, customScalarAdapters, - value.friends) + Friend.obj(true).nullable().list().nullable().toJson(writer, customScalarAdapters, value.friends) } private object Friend : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero.OnDroid.Friend { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero.OnDroid.Friend { var __typename: String? = null var _name: String? = null @@ -278,8 +263,7 @@ public object TestQuery_ResponseAdapter { var _onHuman: TestQuery.Data.Hero.OnDroid.Friend.OnHuman? = null if (possibleTypes("Human").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onHuman = com.example.nested_conditional_inline.adapter.TestQuery_ResponseAdapter.Data.Hero.OnDroid.Friend.OnHuman.fromJson(reader, - customScalarAdapters) + _onHuman = com.example.nested_conditional_inline.adapter.TestQuery_ResponseAdapter.Data.Hero.OnDroid.Friend.OnHuman.fromJson(reader, customScalarAdapters) } return TestQuery.Data.Hero.OnDroid.Friend( @@ -301,16 +285,14 @@ public object TestQuery_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.name) if (value.onHuman != null) { - com.example.nested_conditional_inline.adapter.TestQuery_ResponseAdapter.Data.Hero.OnDroid.Friend.OnHuman.toJson(writer, - customScalarAdapters, value.onHuman) + com.example.nested_conditional_inline.adapter.TestQuery_ResponseAdapter.Data.Hero.OnDroid.Friend.OnHuman.toJson(writer, customScalarAdapters, value.onHuman) } } private object OnHuman : Adapter { public val RESPONSE_NAMES: List = listOf("height") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero.OnDroid.Friend.OnHuman { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero.OnDroid.Friend.OnHuman { var _height: Double? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/nested_conditional_inline/kotlin/operationBased/nested_conditional_inline/adapter/TestQuery_VariablesAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/nested_conditional_inline/kotlin/operationBased/nested_conditional_inline/adapter/TestQuery_VariablesAdapter.kt.expected index d9acf2a1c8d..3a07e8dbd6d 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/nested_conditional_inline/kotlin/operationBased/nested_conditional_inline/adapter/TestQuery_VariablesAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/nested_conditional_inline/kotlin/operationBased/nested_conditional_inline/adapter/TestQuery_VariablesAdapter.kt.expected @@ -28,8 +28,7 @@ public object TestQuery_VariablesAdapter { ) { if (value.episode is Optional.Present) { writer.name("episode") - Episode_ResponseAdapter.nullable().present().toJson(writer, customScalarAdapters, - value.episode) + Episode_ResponseAdapter.nullable().present().toJson(writer, customScalarAdapters, value.episode) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/nested_conditional_inline/kotlin/operationBased/nested_conditional_inline/type/Episode.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/nested_conditional_inline/kotlin/operationBased/nested_conditional_inline/type/Episode.kt.expected index 10aa7dff5f2..b28da37d20b 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/nested_conditional_inline/kotlin/operationBased/nested_conditional_inline/type/Episode.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/nested_conditional_inline/kotlin/operationBased/nested_conditional_inline/type/Episode.kt.expected @@ -47,8 +47,8 @@ public enum class Episode( ; public companion object { - public val type: EnumType = EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", - "DEPRECATED", "new")) + public val type: EnumType = + EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", "DEPRECATED", "new")) /** * All [Episode] known at compile time @@ -73,10 +73,8 @@ public enum class Episode( /** * Returns the [Episode] that represents the specified [rawValue]. - * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your - * schema instead of calling this function directly. + * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your schema instead of calling this function directly. */ - public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: - UNKNOWN__ + public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: UNKNOWN__ } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/nested_conditional_inline/kotlin/responseBased/nested_conditional_inline/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/nested_conditional_inline/kotlin/responseBased/nested_conditional_inline/TestQuery.kt.expected index 72db9940a3b..6abe343985f 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/nested_conditional_inline/kotlin/responseBased/nested_conditional_inline/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/nested_conditional_inline/kotlin/responseBased/nested_conditional_inline/TestQuery.kt.expected @@ -38,8 +38,7 @@ public data class TestQuery( customScalarAdapters: CustomScalarAdapters, withDefaultValues: Boolean, ) { - TestQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, - withDefaultValues) + TestQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, withDefaultValues) } override fun adapter(): Adapter = TestQuery_ResponseAdapter.Data.obj() @@ -213,8 +212,7 @@ public data class TestQuery( * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery(${'$'}episode: Episode) { hero(episode: ${'$'}episode) { __typename name ... on Human { friends { __typename name ... on Human { height(unit: FOOT) } } } ... on Droid { friends { __typename name ... on Human { height(unit: METER) } } } } }" + get() = "query TestQuery(${'$'}episode: Episode) { hero(episode: ${'$'}episode) { __typename name ... on Human { friends { __typename name ... on Human { height(unit: FOOT) } } } ... on Droid { friends { __typename name ... on Human { height(unit: METER) } } } } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/nested_conditional_inline/kotlin/responseBased/nested_conditional_inline/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/nested_conditional_inline/kotlin/responseBased/nested_conditional_inline/adapter/TestQuery_ResponseAdapter.kt.expected index eaf95eb7fb9..8fb9acf04c3 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/nested_conditional_inline/kotlin/responseBased/nested_conditional_inline/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/nested_conditional_inline/kotlin/responseBased/nested_conditional_inline/adapter/TestQuery_ResponseAdapter.kt.expected @@ -26,8 +26,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _hero: TestQuery.Data.Hero? = null while (true) { @@ -52,8 +51,7 @@ public object TestQuery_ResponseAdapter { } private object Hero : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero { val __typename = reader.readTypename() return when(__typename) { "Human", @@ -118,13 +116,11 @@ public object TestQuery_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.name) writer.name("friends") - Friend.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, - value.friends) + Friend.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, value.friends) } private object Friend : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.HumanHero.Friend { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.HumanHero.Friend { val __typename = reader.readTypename() return when(__typename) { "Human", @@ -140,10 +136,8 @@ public object TestQuery_ResponseAdapter { `value`: TestQuery.Data.HumanHero.Friend, ) { when(value) { - is TestQuery.Data.HumanHero.HumanFriend -> HumanFriend.toJson(writer, - customScalarAdapters, value) - is TestQuery.Data.HumanHero.OtherFriend -> OtherFriend.toJson(writer, - customScalarAdapters, value) + is TestQuery.Data.HumanHero.HumanFriend -> HumanFriend.toJson(writer, customScalarAdapters, value) + is TestQuery.Data.HumanHero.OtherFriend -> OtherFriend.toJson(writer, customScalarAdapters, value) } } } @@ -271,13 +265,11 @@ public object TestQuery_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.name) writer.name("friends") - Friend.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, - value.friends) + Friend.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, value.friends) } private object Friend : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.DroidHero.Friend { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.DroidHero.Friend { val __typename = reader.readTypename() return when(__typename) { "Human", @@ -293,10 +285,8 @@ public object TestQuery_ResponseAdapter { `value`: TestQuery.Data.DroidHero.Friend, ) { when(value) { - is TestQuery.Data.DroidHero.HumanFriend -> HumanFriend.toJson(writer, - customScalarAdapters, value) - is TestQuery.Data.DroidHero.OtherFriend -> OtherFriend.toJson(writer, - customScalarAdapters, value) + is TestQuery.Data.DroidHero.HumanFriend -> HumanFriend.toJson(writer, customScalarAdapters, value) + is TestQuery.Data.DroidHero.OtherFriend -> OtherFriend.toJson(writer, customScalarAdapters, value) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/nested_conditional_inline/kotlin/responseBased/nested_conditional_inline/adapter/TestQuery_VariablesAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/nested_conditional_inline/kotlin/responseBased/nested_conditional_inline/adapter/TestQuery_VariablesAdapter.kt.expected index d9acf2a1c8d..3a07e8dbd6d 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/nested_conditional_inline/kotlin/responseBased/nested_conditional_inline/adapter/TestQuery_VariablesAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/nested_conditional_inline/kotlin/responseBased/nested_conditional_inline/adapter/TestQuery_VariablesAdapter.kt.expected @@ -28,8 +28,7 @@ public object TestQuery_VariablesAdapter { ) { if (value.episode is Optional.Present) { writer.name("episode") - Episode_ResponseAdapter.nullable().present().toJson(writer, customScalarAdapters, - value.episode) + Episode_ResponseAdapter.nullable().present().toJson(writer, customScalarAdapters, value.episode) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/nested_conditional_inline/kotlin/responseBased/nested_conditional_inline/type/Episode.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/nested_conditional_inline/kotlin/responseBased/nested_conditional_inline/type/Episode.kt.expected index 10aa7dff5f2..b28da37d20b 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/nested_conditional_inline/kotlin/responseBased/nested_conditional_inline/type/Episode.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/nested_conditional_inline/kotlin/responseBased/nested_conditional_inline/type/Episode.kt.expected @@ -47,8 +47,8 @@ public enum class Episode( ; public companion object { - public val type: EnumType = EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", - "DEPRECATED", "new")) + public val type: EnumType = + EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", "DEPRECATED", "new")) /** * All [Episode] known at compile time @@ -73,10 +73,8 @@ public enum class Episode( /** * Returns the [Episode] that represents the specified [rawValue]. - * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your - * schema instead of calling this function directly. + * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your schema instead of calling this function directly. */ - public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: - UNKNOWN__ + public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: UNKNOWN__ } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/nested_field_with_multiple_fieldsets/kotlin/operationBased/nested_field_with_multiple_fieldsets/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/nested_field_with_multiple_fieldsets/kotlin/operationBased/nested_field_with_multiple_fieldsets/TestQuery.kt.expected index f1bde9fa997..09d18e9baea 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/nested_field_with_multiple_fieldsets/kotlin/operationBased/nested_field_with_multiple_fieldsets/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/nested_field_with_multiple_fieldsets/kotlin/operationBased/nested_field_with_multiple_fieldsets/TestQuery.kt.expected @@ -152,8 +152,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { iface1 { __typename ... on Iface1 { iface2 { __typename ... on Iface2 { scalar1 } ... on Impl2 { scalar2 } } } ... on Impl1 { iface2 { __typename ... on Iface2 { scalar3 } ... on Impl2 { scalar4 } } } } }" + get() = "query TestQuery { iface1 { __typename ... on Iface1 { iface2 { __typename ... on Iface2 { scalar1 } ... on Impl2 { scalar2 } } } ... on Impl1 { iface2 { __typename ... on Iface2 { scalar3 } ... on Impl2 { scalar4 } } } } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/nested_field_with_multiple_fieldsets/kotlin/operationBased/nested_field_with_multiple_fieldsets/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/nested_field_with_multiple_fieldsets/kotlin/operationBased/nested_field_with_multiple_fieldsets/adapter/TestQuery_ResponseAdapter.kt.expected index 15fb96f504c..18b036833f7 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/nested_field_with_multiple_fieldsets/kotlin/operationBased/nested_field_with_multiple_fieldsets/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/nested_field_with_multiple_fieldsets/kotlin/operationBased/nested_field_with_multiple_fieldsets/adapter/TestQuery_ResponseAdapter.kt.expected @@ -23,8 +23,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("iface1") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _iface1: TestQuery.Data.Iface1? = null while (true) { @@ -51,8 +50,7 @@ public object TestQuery_ResponseAdapter { private object Iface1 : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Iface1 { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Iface1 { var __typename: String? = null while (true) { @@ -67,14 +65,12 @@ public object TestQuery_ResponseAdapter { } reader.rewind() - val _onIface1 = com.example.nested_field_with_multiple_fieldsets.adapter.TestQuery_ResponseAdapter.Data.Iface1.OnIface1.fromJson(reader, - customScalarAdapters) + val _onIface1 = com.example.nested_field_with_multiple_fieldsets.adapter.TestQuery_ResponseAdapter.Data.Iface1.OnIface1.fromJson(reader, customScalarAdapters) var _onImpl1: TestQuery.Data.Iface1.OnImpl1? = null if (possibleTypes("Impl1").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onImpl1 = com.example.nested_field_with_multiple_fieldsets.adapter.TestQuery_ResponseAdapter.Data.Iface1.OnImpl1.fromJson(reader, - customScalarAdapters) + _onImpl1 = com.example.nested_field_with_multiple_fieldsets.adapter.TestQuery_ResponseAdapter.Data.Iface1.OnImpl1.fromJson(reader, customScalarAdapters) } return TestQuery.Data.Iface1( @@ -92,20 +88,17 @@ public object TestQuery_ResponseAdapter { writer.name("__typename") StringAdapter.toJson(writer, customScalarAdapters, value.__typename) - com.example.nested_field_with_multiple_fieldsets.adapter.TestQuery_ResponseAdapter.Data.Iface1.OnIface1.toJson(writer, - customScalarAdapters, value.onIface1) + com.example.nested_field_with_multiple_fieldsets.adapter.TestQuery_ResponseAdapter.Data.Iface1.OnIface1.toJson(writer, customScalarAdapters, value.onIface1) if (value.onImpl1 != null) { - com.example.nested_field_with_multiple_fieldsets.adapter.TestQuery_ResponseAdapter.Data.Iface1.OnImpl1.toJson(writer, - customScalarAdapters, value.onImpl1) + com.example.nested_field_with_multiple_fieldsets.adapter.TestQuery_ResponseAdapter.Data.Iface1.OnImpl1.toJson(writer, customScalarAdapters, value.onImpl1) } } private object OnIface1 : Adapter { public val RESPONSE_NAMES: List = listOf("iface2") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Iface1.OnIface1 { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Iface1.OnIface1 { var _iface2: TestQuery.Data.Iface1.OnIface1.Iface2? = null while (true) { @@ -132,8 +125,7 @@ public object TestQuery_ResponseAdapter { private object Iface2 : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Iface1.OnIface1.Iface2 { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Iface1.OnIface1.Iface2 { var __typename: String? = null while (true) { @@ -148,14 +140,12 @@ public object TestQuery_ResponseAdapter { } reader.rewind() - val _onIface2 = com.example.nested_field_with_multiple_fieldsets.adapter.TestQuery_ResponseAdapter.Data.Iface1.OnIface1.Iface2.OnIface2.fromJson(reader, - customScalarAdapters) + val _onIface2 = com.example.nested_field_with_multiple_fieldsets.adapter.TestQuery_ResponseAdapter.Data.Iface1.OnIface1.Iface2.OnIface2.fromJson(reader, customScalarAdapters) var _onImpl2: TestQuery.Data.Iface1.OnIface1.Iface2.OnImpl2? = null if (possibleTypes("Impl2").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onImpl2 = com.example.nested_field_with_multiple_fieldsets.adapter.TestQuery_ResponseAdapter.Data.Iface1.OnIface1.Iface2.OnImpl2.fromJson(reader, - customScalarAdapters) + _onImpl2 = com.example.nested_field_with_multiple_fieldsets.adapter.TestQuery_ResponseAdapter.Data.Iface1.OnIface1.Iface2.OnImpl2.fromJson(reader, customScalarAdapters) } return TestQuery.Data.Iface1.OnIface1.Iface2( @@ -173,20 +163,17 @@ public object TestQuery_ResponseAdapter { writer.name("__typename") StringAdapter.toJson(writer, customScalarAdapters, value.__typename) - com.example.nested_field_with_multiple_fieldsets.adapter.TestQuery_ResponseAdapter.Data.Iface1.OnIface1.Iface2.OnIface2.toJson(writer, - customScalarAdapters, value.onIface2) + com.example.nested_field_with_multiple_fieldsets.adapter.TestQuery_ResponseAdapter.Data.Iface1.OnIface1.Iface2.OnIface2.toJson(writer, customScalarAdapters, value.onIface2) if (value.onImpl2 != null) { - com.example.nested_field_with_multiple_fieldsets.adapter.TestQuery_ResponseAdapter.Data.Iface1.OnIface1.Iface2.OnImpl2.toJson(writer, - customScalarAdapters, value.onImpl2) + com.example.nested_field_with_multiple_fieldsets.adapter.TestQuery_ResponseAdapter.Data.Iface1.OnIface1.Iface2.OnImpl2.toJson(writer, customScalarAdapters, value.onImpl2) } } private object OnIface2 : Adapter { public val RESPONSE_NAMES: List = listOf("scalar1") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Iface1.OnIface1.Iface2.OnIface2 { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Iface1.OnIface1.Iface2.OnIface2 { var _scalar1: String? = null while (true) { @@ -214,8 +201,7 @@ public object TestQuery_ResponseAdapter { private object OnImpl2 : Adapter { public val RESPONSE_NAMES: List = listOf("scalar2") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Iface1.OnIface1.Iface2.OnImpl2 { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Iface1.OnIface1.Iface2.OnImpl2 { var _scalar2: String? = null while (true) { @@ -245,8 +231,7 @@ public object TestQuery_ResponseAdapter { private object OnImpl1 : Adapter { public val RESPONSE_NAMES: List = listOf("iface2") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Iface1.OnImpl1 { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Iface1.OnImpl1 { var _iface2: TestQuery.Data.Iface1.OnImpl1.Iface2? = null while (true) { @@ -273,8 +258,7 @@ public object TestQuery_ResponseAdapter { private object Iface2 : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Iface1.OnImpl1.Iface2 { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Iface1.OnImpl1.Iface2 { var __typename: String? = null while (true) { @@ -289,14 +273,12 @@ public object TestQuery_ResponseAdapter { } reader.rewind() - val _onIface2 = com.example.nested_field_with_multiple_fieldsets.adapter.TestQuery_ResponseAdapter.Data.Iface1.OnImpl1.Iface2.OnIface2.fromJson(reader, - customScalarAdapters) + val _onIface2 = com.example.nested_field_with_multiple_fieldsets.adapter.TestQuery_ResponseAdapter.Data.Iface1.OnImpl1.Iface2.OnIface2.fromJson(reader, customScalarAdapters) var _onImpl2: TestQuery.Data.Iface1.OnImpl1.Iface2.OnImpl2? = null if (possibleTypes("Impl2").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onImpl2 = com.example.nested_field_with_multiple_fieldsets.adapter.TestQuery_ResponseAdapter.Data.Iface1.OnImpl1.Iface2.OnImpl2.fromJson(reader, - customScalarAdapters) + _onImpl2 = com.example.nested_field_with_multiple_fieldsets.adapter.TestQuery_ResponseAdapter.Data.Iface1.OnImpl1.Iface2.OnImpl2.fromJson(reader, customScalarAdapters) } return TestQuery.Data.Iface1.OnImpl1.Iface2( @@ -314,20 +296,17 @@ public object TestQuery_ResponseAdapter { writer.name("__typename") StringAdapter.toJson(writer, customScalarAdapters, value.__typename) - com.example.nested_field_with_multiple_fieldsets.adapter.TestQuery_ResponseAdapter.Data.Iface1.OnImpl1.Iface2.OnIface2.toJson(writer, - customScalarAdapters, value.onIface2) + com.example.nested_field_with_multiple_fieldsets.adapter.TestQuery_ResponseAdapter.Data.Iface1.OnImpl1.Iface2.OnIface2.toJson(writer, customScalarAdapters, value.onIface2) if (value.onImpl2 != null) { - com.example.nested_field_with_multiple_fieldsets.adapter.TestQuery_ResponseAdapter.Data.Iface1.OnImpl1.Iface2.OnImpl2.toJson(writer, - customScalarAdapters, value.onImpl2) + com.example.nested_field_with_multiple_fieldsets.adapter.TestQuery_ResponseAdapter.Data.Iface1.OnImpl1.Iface2.OnImpl2.toJson(writer, customScalarAdapters, value.onImpl2) } } private object OnIface2 : Adapter { public val RESPONSE_NAMES: List = listOf("scalar3") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Iface1.OnImpl1.Iface2.OnIface2 { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Iface1.OnImpl1.Iface2.OnIface2 { var _scalar3: String? = null while (true) { @@ -355,8 +334,7 @@ public object TestQuery_ResponseAdapter { private object OnImpl2 : Adapter { public val RESPONSE_NAMES: List = listOf("scalar4") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Iface1.OnImpl1.Iface2.OnImpl2 { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Iface1.OnImpl1.Iface2.OnImpl2 { var _scalar4: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/nested_field_with_multiple_fieldsets/kotlin/responseBased/nested_field_with_multiple_fieldsets/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/nested_field_with_multiple_fieldsets/kotlin/responseBased/nested_field_with_multiple_fieldsets/TestQuery.kt.expected index 4c05cac015c..ef55c1407cf 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/nested_field_with_multiple_fieldsets/kotlin/responseBased/nested_field_with_multiple_fieldsets/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/nested_field_with_multiple_fieldsets/kotlin/responseBased/nested_field_with_multiple_fieldsets/TestQuery.kt.expected @@ -106,13 +106,15 @@ public class TestQuery() : Query { override val scalar2: String?, override val scalar3: String?, public val scalar4: String?, - ) : Iface2, Iface1.Impl2Iface2 + ) : Iface2, + Iface1.Impl2Iface2 public data class OtherIface2( override val __typename: String, override val scalar1: String?, override val scalar3: String?, - ) : Iface2, Iface1.Iface2 + ) : Iface2, + Iface1.Iface2 } public data class OtherIface1( @@ -134,12 +136,14 @@ public class TestQuery() : Query { override val __typename: String, override val scalar1: String?, override val scalar2: String?, - ) : Iface2, Iface1.Impl2Iface2 + ) : Iface2, + Iface1.Impl2Iface2 public data class OtherIface2( override val __typename: String, override val scalar1: String?, - ) : Iface2, Iface1.Iface2 + ) : Iface2, + Iface1.Iface2 } } @@ -182,8 +186,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { iface1 { __typename ... on Iface1 { iface2 { __typename ... on Iface2 { scalar1 } ... on Impl2 { scalar2 } } } ... on Impl1 { iface2 { __typename ... on Iface2 { scalar3 } ... on Impl2 { scalar4 } } } } }" + get() = "query TestQuery { iface1 { __typename ... on Iface1 { iface2 { __typename ... on Iface2 { scalar1 } ... on Impl2 { scalar2 } } } ... on Impl1 { iface2 { __typename ... on Iface2 { scalar3 } ... on Impl2 { scalar4 } } } } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/nested_field_with_multiple_fieldsets/kotlin/responseBased/nested_field_with_multiple_fieldsets/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/nested_field_with_multiple_fieldsets/kotlin/responseBased/nested_field_with_multiple_fieldsets/adapter/TestQuery_ResponseAdapter.kt.expected index c7981078072..61083d19f2a 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/nested_field_with_multiple_fieldsets/kotlin/responseBased/nested_field_with_multiple_fieldsets/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/nested_field_with_multiple_fieldsets/kotlin/responseBased/nested_field_with_multiple_fieldsets/adapter/TestQuery_ResponseAdapter.kt.expected @@ -24,8 +24,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("iface1") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _iface1: TestQuery.Data.Iface1? = null while (true) { @@ -50,8 +49,7 @@ public object TestQuery_ResponseAdapter { } private object Iface1 : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Iface1 { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Iface1 { val __typename = reader.readTypename() return when(__typename) { "Impl1", @@ -111,8 +109,7 @@ public object TestQuery_ResponseAdapter { } private object Iface2 : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Impl1Iface1.Iface2 { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Impl1Iface1.Iface2 { val __typename = reader.readTypename() return when(__typename) { "Impl2", @@ -128,17 +125,15 @@ public object TestQuery_ResponseAdapter { `value`: TestQuery.Data.Impl1Iface1.Iface2, ) { when(value) { - is TestQuery.Data.Impl1Iface1.Impl2Iface2 -> Impl2Iface2.toJson(writer, - customScalarAdapters, value) - is TestQuery.Data.Impl1Iface1.OtherIface2 -> OtherIface2.toJson(writer, - customScalarAdapters, value) + is TestQuery.Data.Impl1Iface1.Impl2Iface2 -> Impl2Iface2.toJson(writer, customScalarAdapters, value) + is TestQuery.Data.Impl1Iface1.OtherIface2 -> OtherIface2.toJson(writer, customScalarAdapters, value) } } } public object Impl2Iface2 { - public val RESPONSE_NAMES: List = listOf("__typename", "scalar1", "scalar2", - "scalar3", "scalar4") + public val RESPONSE_NAMES: List = + listOf("__typename", "scalar1", "scalar2", "scalar3", "scalar4") public fun fromJson( reader: JsonReader, @@ -276,8 +271,7 @@ public object TestQuery_ResponseAdapter { } private object Iface2 : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.OtherIface1.Iface2 { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.OtherIface1.Iface2 { val __typename = reader.readTypename() return when(__typename) { "Impl2", @@ -293,10 +287,8 @@ public object TestQuery_ResponseAdapter { `value`: TestQuery.Data.OtherIface1.Iface2, ) { when(value) { - is TestQuery.Data.OtherIface1.Impl2Iface2 -> Impl2Iface2.toJson(writer, - customScalarAdapters, value) - is TestQuery.Data.OtherIface1.OtherIface2 -> OtherIface2.toJson(writer, - customScalarAdapters, value) + is TestQuery.Data.OtherIface1.Impl2Iface2 -> Impl2Iface2.toJson(writer, customScalarAdapters, value) + is TestQuery.Data.OtherIface1.OtherIface2 -> OtherIface2.toJson(writer, customScalarAdapters, value) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/operationBased/nested_named_fragments/AllStarships.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/operationBased/nested_named_fragments/AllStarships.kt.expected index b8688a22aa8..1a5ba13b75f 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/operationBased/nested_named_fragments/AllStarships.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/operationBased/nested_named_fragments/AllStarships.kt.expected @@ -126,8 +126,7 @@ public class AllStarships() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query AllStarships { allStarships(first: 7) { edges { node { __typename ...starshipFragment } } } } fragment planetFragment on Planet { name } fragment pilotFragment on Person { name homeworld { __typename ...planetFragment } } fragment starshipFragment on Starship { id name pilotConnection { edges { node { __typename ...pilotFragment } } } }" + get() = "query AllStarships { allStarships(first: 7) { edges { node { __typename ...starshipFragment } } } } fragment planetFragment on Planet { name } fragment pilotFragment on Person { name homeworld { __typename ...planetFragment } } fragment starshipFragment on Starship { id name pilotConnection { edges { node { __typename ...pilotFragment } } } }" public const val OPERATION_NAME: String = "AllStarships" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/operationBased/nested_named_fragments/adapter/AllStarships_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/operationBased/nested_named_fragments/adapter/AllStarships_ResponseAdapter.kt.expected index 839182fd3d1..c20c3733538 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/operationBased/nested_named_fragments/adapter/AllStarships_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/operationBased/nested_named_fragments/adapter/AllStarships_ResponseAdapter.kt.expected @@ -22,8 +22,7 @@ public object AllStarships_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("allStarships") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.nested_named_fragments.AllStarships.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.nested_named_fragments.AllStarships.Data { var _allStarships: com.example.nested_named_fragments.AllStarships.Data.AllStarships? = null while (true) { @@ -47,12 +46,10 @@ public object AllStarships_ResponseAdapter { AllStarships.obj().nullable().toJson(writer, customScalarAdapters, value.allStarships) } - private object AllStarships : - Adapter { + private object AllStarships : Adapter { public val RESPONSE_NAMES: List = listOf("edges") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.nested_named_fragments.AllStarships.Data.AllStarships { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.nested_named_fragments.AllStarships.Data.AllStarships { var _edges: List? = null while (true) { @@ -76,12 +73,10 @@ public object AllStarships_ResponseAdapter { Edge.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, value.edges) } - private object Edge : - Adapter { + private object Edge : Adapter { public val RESPONSE_NAMES: List = listOf("node") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.nested_named_fragments.AllStarships.Data.AllStarships.Edge { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.nested_named_fragments.AllStarships.Data.AllStarships.Edge { var _node: com.example.nested_named_fragments.AllStarships.Data.AllStarships.Edge.Node? = null while (true) { @@ -105,12 +100,10 @@ public object AllStarships_ResponseAdapter { Node.obj(true).nullable().toJson(writer, customScalarAdapters, value.node) } - private object Node : - Adapter { + private object Node : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.nested_named_fragments.AllStarships.Data.AllStarships.Edge.Node { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.nested_named_fragments.AllStarships.Data.AllStarships.Edge.Node { var __typename: String? = null while (true) { @@ -121,8 +114,7 @@ public object AllStarships_ResponseAdapter { } reader.rewind() - val _starshipFragment = com.example.nested_named_fragments.fragment.StarshipFragmentImpl_ResponseAdapter.StarshipFragment.fromJson(reader, - customScalarAdapters) + val _starshipFragment = com.example.nested_named_fragments.fragment.StarshipFragmentImpl_ResponseAdapter.StarshipFragment.fromJson(reader, customScalarAdapters) return com.example.nested_named_fragments.AllStarships.Data.AllStarships.Edge.Node( __typename = __typename ?: missingField(reader, "__typename"), @@ -138,8 +130,7 @@ public object AllStarships_ResponseAdapter { writer.name("__typename") StringAdapter.toJson(writer, customScalarAdapters, value.__typename) - com.example.nested_named_fragments.fragment.StarshipFragmentImpl_ResponseAdapter.StarshipFragment.toJson(writer, - customScalarAdapters, value.starshipFragment) + com.example.nested_named_fragments.fragment.StarshipFragmentImpl_ResponseAdapter.StarshipFragment.toJson(writer, customScalarAdapters, value.starshipFragment) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/operationBased/nested_named_fragments/fragment/PilotFragmentImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/operationBased/nested_named_fragments/fragment/PilotFragmentImpl.kt.expected index 34e00fa8019..ffcdae81b60 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/operationBased/nested_named_fragments/fragment/PilotFragmentImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/operationBased/nested_named_fragments/fragment/PilotFragmentImpl.kt.expected @@ -30,8 +30,7 @@ public class PilotFragmentImpl() : Fragment { // This fragment doesn't have any variable } - override fun adapter(): Adapter = - PilotFragmentImpl_ResponseAdapter.PilotFragment.obj() + override fun adapter(): Adapter = PilotFragmentImpl_ResponseAdapter.PilotFragment.obj() override fun rootField(): CompiledField = CompiledField.Builder( name = "data", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/operationBased/nested_named_fragments/fragment/PilotFragmentImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/operationBased/nested_named_fragments/fragment/PilotFragmentImpl_ResponseAdapter.kt.expected index 219f779d690..ae1d4a85734 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/operationBased/nested_named_fragments/fragment/PilotFragmentImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/operationBased/nested_named_fragments/fragment/PilotFragmentImpl_ResponseAdapter.kt.expected @@ -21,8 +21,7 @@ public object PilotFragmentImpl_ResponseAdapter { public object PilotFragment : Adapter { public val RESPONSE_NAMES: List = listOf("name", "homeworld") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.nested_named_fragments.fragment.PilotFragment { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.nested_named_fragments.fragment.PilotFragment { var _name: String? = null var _homeworld: com.example.nested_named_fragments.fragment.PilotFragment.Homeworld? = null @@ -52,12 +51,10 @@ public object PilotFragmentImpl_ResponseAdapter { Homeworld.obj(true).nullable().toJson(writer, customScalarAdapters, value.homeworld) } - private object Homeworld : - Adapter { + private object Homeworld : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.nested_named_fragments.fragment.PilotFragment.Homeworld { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.nested_named_fragments.fragment.PilotFragment.Homeworld { var __typename: String? = null while (true) { @@ -68,8 +65,7 @@ public object PilotFragmentImpl_ResponseAdapter { } reader.rewind() - val _planetFragment = com.example.nested_named_fragments.fragment.PlanetFragmentImpl_ResponseAdapter.PlanetFragment.fromJson(reader, - customScalarAdapters) + val _planetFragment = com.example.nested_named_fragments.fragment.PlanetFragmentImpl_ResponseAdapter.PlanetFragment.fromJson(reader, customScalarAdapters) return com.example.nested_named_fragments.fragment.PilotFragment.Homeworld( __typename = __typename ?: missingField(reader, "__typename"), @@ -85,8 +81,7 @@ public object PilotFragmentImpl_ResponseAdapter { writer.name("__typename") StringAdapter.toJson(writer, customScalarAdapters, value.__typename) - com.example.nested_named_fragments.fragment.PlanetFragmentImpl_ResponseAdapter.PlanetFragment.toJson(writer, - customScalarAdapters, value.planetFragment) + com.example.nested_named_fragments.fragment.PlanetFragmentImpl_ResponseAdapter.PlanetFragment.toJson(writer, customScalarAdapters, value.planetFragment) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/operationBased/nested_named_fragments/fragment/PlanetFragmentImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/operationBased/nested_named_fragments/fragment/PlanetFragmentImpl.kt.expected index a40a019a6af..e62607ddc93 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/operationBased/nested_named_fragments/fragment/PlanetFragmentImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/operationBased/nested_named_fragments/fragment/PlanetFragmentImpl.kt.expected @@ -30,8 +30,7 @@ public class PlanetFragmentImpl() : Fragment { // This fragment doesn't have any variable } - override fun adapter(): Adapter = - PlanetFragmentImpl_ResponseAdapter.PlanetFragment.obj() + override fun adapter(): Adapter = PlanetFragmentImpl_ResponseAdapter.PlanetFragment.obj() override fun rootField(): CompiledField = CompiledField.Builder( name = "data", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/operationBased/nested_named_fragments/fragment/PlanetFragmentImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/operationBased/nested_named_fragments/fragment/PlanetFragmentImpl_ResponseAdapter.kt.expected index 4254824d810..f07363cc7e3 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/operationBased/nested_named_fragments/fragment/PlanetFragmentImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/operationBased/nested_named_fragments/fragment/PlanetFragmentImpl_ResponseAdapter.kt.expected @@ -14,12 +14,10 @@ import kotlin.String import kotlin.collections.List public object PlanetFragmentImpl_ResponseAdapter { - public object PlanetFragment : Adapter - { + public object PlanetFragment : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.nested_named_fragments.fragment.PlanetFragment { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.nested_named_fragments.fragment.PlanetFragment { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/operationBased/nested_named_fragments/fragment/StarshipFragmentImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/operationBased/nested_named_fragments/fragment/StarshipFragmentImpl.kt.expected index 005fa0114ba..5bdbdc29476 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/operationBased/nested_named_fragments/fragment/StarshipFragmentImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/operationBased/nested_named_fragments/fragment/StarshipFragmentImpl.kt.expected @@ -30,8 +30,7 @@ public class StarshipFragmentImpl() : Fragment { // This fragment doesn't have any variable } - override fun adapter(): Adapter = - StarshipFragmentImpl_ResponseAdapter.StarshipFragment.obj() + override fun adapter(): Adapter = StarshipFragmentImpl_ResponseAdapter.StarshipFragment.obj() override fun rootField(): CompiledField = CompiledField.Builder( name = "data", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/operationBased/nested_named_fragments/fragment/StarshipFragmentImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/operationBased/nested_named_fragments/fragment/StarshipFragmentImpl_ResponseAdapter.kt.expected index b3ee90c10a4..439f8d127c6 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/operationBased/nested_named_fragments/fragment/StarshipFragmentImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/operationBased/nested_named_fragments/fragment/StarshipFragmentImpl_ResponseAdapter.kt.expected @@ -19,12 +19,10 @@ import kotlin.String import kotlin.collections.List public object StarshipFragmentImpl_ResponseAdapter { - public object StarshipFragment : - Adapter { + public object StarshipFragment : Adapter { public val RESPONSE_NAMES: List = listOf("id", "name", "pilotConnection") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.nested_named_fragments.fragment.StarshipFragment { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.nested_named_fragments.fragment.StarshipFragment { var _id: String? = null var _name: String? = null var _pilotConnection: com.example.nested_named_fragments.fragment.StarshipFragment.PilotConnection? = null @@ -60,12 +58,10 @@ public object StarshipFragmentImpl_ResponseAdapter { PilotConnection.obj().nullable().toJson(writer, customScalarAdapters, value.pilotConnection) } - private object PilotConnection : - Adapter { + private object PilotConnection : Adapter { public val RESPONSE_NAMES: List = listOf("edges") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.nested_named_fragments.fragment.StarshipFragment.PilotConnection { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.nested_named_fragments.fragment.StarshipFragment.PilotConnection { var _edges: List? = null while (true) { @@ -89,13 +85,10 @@ public object StarshipFragmentImpl_ResponseAdapter { Edge.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, value.edges) } - private object Edge : - Adapter - { + private object Edge : Adapter { public val RESPONSE_NAMES: List = listOf("node") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.nested_named_fragments.fragment.StarshipFragment.PilotConnection.Edge { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.nested_named_fragments.fragment.StarshipFragment.PilotConnection.Edge { var _node: com.example.nested_named_fragments.fragment.StarshipFragment.PilotConnection.Edge.Node? = null while (true) { @@ -119,13 +112,10 @@ public object StarshipFragmentImpl_ResponseAdapter { Node.obj(true).nullable().toJson(writer, customScalarAdapters, value.node) } - private object Node : - Adapter - { + private object Node : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.nested_named_fragments.fragment.StarshipFragment.PilotConnection.Edge.Node { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.nested_named_fragments.fragment.StarshipFragment.PilotConnection.Edge.Node { var __typename: String? = null while (true) { @@ -136,8 +126,7 @@ public object StarshipFragmentImpl_ResponseAdapter { } reader.rewind() - val _pilotFragment = com.example.nested_named_fragments.fragment.PilotFragmentImpl_ResponseAdapter.PilotFragment.fromJson(reader, - customScalarAdapters) + val _pilotFragment = com.example.nested_named_fragments.fragment.PilotFragmentImpl_ResponseAdapter.PilotFragment.fromJson(reader, customScalarAdapters) return com.example.nested_named_fragments.fragment.StarshipFragment.PilotConnection.Edge.Node( __typename = __typename ?: missingField(reader, "__typename"), @@ -153,8 +142,7 @@ public object StarshipFragmentImpl_ResponseAdapter { writer.name("__typename") StringAdapter.toJson(writer, customScalarAdapters, value.__typename) - com.example.nested_named_fragments.fragment.PilotFragmentImpl_ResponseAdapter.PilotFragment.toJson(writer, - customScalarAdapters, value.pilotFragment) + com.example.nested_named_fragments.fragment.PilotFragmentImpl_ResponseAdapter.PilotFragment.toJson(writer, customScalarAdapters, value.pilotFragment) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/responseBased/nested_named_fragments/AllStarships.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/responseBased/nested_named_fragments/AllStarships.kt.expected index dbac23534d9..aaf70c70f7e 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/responseBased/nested_named_fragments/AllStarships.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/responseBased/nested_named_fragments/AllStarships.kt.expected @@ -107,14 +107,16 @@ public class AllStarships() : Query { * A planet that this person was born on or inhabits. */ override val homeworld: Homeworld?, - ) : PilotFragment, StarshipFragment.PilotConnection.Edge.Node { + ) : PilotFragment, + StarshipFragment.PilotConnection.Edge.Node { public data class Homeworld( override val __typename: String, /** * The name of this planet. */ override val name: String?, - ) : PlanetFragment, PilotFragment.Homeworld, + ) : PlanetFragment, + PilotFragment.Homeworld, StarshipFragment.PilotConnection.Edge.Node.Homeworld { public companion object { @Suppress("USELESS_CAST") @@ -186,8 +188,7 @@ public class AllStarships() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query AllStarships { allStarships(first: 7) { edges { node { __typename ...starshipFragment } } } } fragment planetFragment on Planet { name } fragment pilotFragment on Person { name homeworld { __typename ...planetFragment } } fragment starshipFragment on Starship { id name pilotConnection { edges { node { __typename ...pilotFragment } } } }" + get() = "query AllStarships { allStarships(first: 7) { edges { node { __typename ...starshipFragment } } } } fragment planetFragment on Planet { name } fragment pilotFragment on Person { name homeworld { __typename ...planetFragment } } fragment starshipFragment on Starship { id name pilotConnection { edges { node { __typename ...pilotFragment } } } }" public const val OPERATION_NAME: String = "AllStarships" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/responseBased/nested_named_fragments/adapter/AllStarships_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/responseBased/nested_named_fragments/adapter/AllStarships_ResponseAdapter.kt.expected index 0d001b4fa5b..81471ffd065 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/responseBased/nested_named_fragments/adapter/AllStarships_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/responseBased/nested_named_fragments/adapter/AllStarships_ResponseAdapter.kt.expected @@ -23,8 +23,7 @@ public object AllStarships_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("allStarships") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.nested_named_fragments.AllStarships.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.nested_named_fragments.AllStarships.Data { var _allStarships: com.example.nested_named_fragments.AllStarships.Data.AllStarships? = null while (true) { @@ -48,12 +47,10 @@ public object AllStarships_ResponseAdapter { AllStarships.obj().nullable().toJson(writer, customScalarAdapters, value.allStarships) } - private object AllStarships : - Adapter { + private object AllStarships : Adapter { public val RESPONSE_NAMES: List = listOf("edges") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.nested_named_fragments.AllStarships.Data.AllStarships { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.nested_named_fragments.AllStarships.Data.AllStarships { var _edges: List? = null while (true) { @@ -77,12 +74,10 @@ public object AllStarships_ResponseAdapter { Edge.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, value.edges) } - private object Edge : - Adapter { + private object Edge : Adapter { public val RESPONSE_NAMES: List = listOf("node") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.nested_named_fragments.AllStarships.Data.AllStarships.Edge { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.nested_named_fragments.AllStarships.Data.AllStarships.Edge { var _node: com.example.nested_named_fragments.AllStarships.Data.AllStarships.Edge.Node? = null while (true) { @@ -106,13 +101,11 @@ public object AllStarships_ResponseAdapter { Node.obj().nullable().toJson(writer, customScalarAdapters, value.node) } - private object Node : - Adapter { - public val RESPONSE_NAMES: List = listOf("__typename", "id", "name", - "pilotConnection") + private object Node : Adapter { + public val RESPONSE_NAMES: List = + listOf("__typename", "id", "name", "pilotConnection") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.nested_named_fragments.AllStarships.Data.AllStarships.Edge.Node { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.nested_named_fragments.AllStarships.Data.AllStarships.Edge.Node { var __typename: String? = null var _id: String? = null var _name: String? = null @@ -151,17 +144,13 @@ public object AllStarships_ResponseAdapter { NullableStringAdapter.toJson(writer, customScalarAdapters, value.name) writer.name("pilotConnection") - PilotConnection.obj().nullable().toJson(writer, customScalarAdapters, - value.pilotConnection) + PilotConnection.obj().nullable().toJson(writer, customScalarAdapters, value.pilotConnection) } - private object PilotConnection : - Adapter - { + private object PilotConnection : Adapter { public val RESPONSE_NAMES: List = listOf("edges") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.nested_named_fragments.AllStarships.Data.AllStarships.Edge.Node.PilotConnection { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.nested_named_fragments.AllStarships.Data.AllStarships.Edge.Node.PilotConnection { var _edges: List? = null while (true) { @@ -182,17 +171,13 @@ public object AllStarships_ResponseAdapter { `value`: com.example.nested_named_fragments.AllStarships.Data.AllStarships.Edge.Node.PilotConnection, ) { writer.name("edges") - Edge.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, - value.edges) + Edge.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, value.edges) } - private object Edge : - Adapter - { + private object Edge : Adapter { public val RESPONSE_NAMES: List = listOf("node") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.nested_named_fragments.AllStarships.Data.AllStarships.Edge.Node.PilotConnection.Edge { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.nested_named_fragments.AllStarships.Data.AllStarships.Edge.Node.PilotConnection.Edge { var _node: com.example.nested_named_fragments.AllStarships.Data.AllStarships.Edge.Node.PilotConnection.Edge.Node? = null while (true) { @@ -216,14 +201,10 @@ public object AllStarships_ResponseAdapter { Node.obj().nullable().toJson(writer, customScalarAdapters, value.node) } - private object Node : - Adapter - { + private object Node : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "name", "homeworld") - override fun fromJson(reader: JsonReader, - customScalarAdapters: CustomScalarAdapters): - com.example.nested_named_fragments.AllStarships.Data.AllStarships.Edge.Node.PilotConnection.Edge.Node { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.nested_named_fragments.AllStarships.Data.AllStarships.Edge.Node.PilotConnection.Edge.Node { var __typename: String? = null var _name: String? = null var _homeworld: com.example.nested_named_fragments.AllStarships.Data.AllStarships.Edge.Node.PilotConnection.Edge.Node.Homeworld? = null @@ -259,14 +240,10 @@ public object AllStarships_ResponseAdapter { Homeworld.obj().nullable().toJson(writer, customScalarAdapters, value.homeworld) } - private object Homeworld : - Adapter - { + private object Homeworld : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "name") - override fun fromJson(reader: JsonReader, - customScalarAdapters: CustomScalarAdapters): - com.example.nested_named_fragments.AllStarships.Data.AllStarships.Edge.Node.PilotConnection.Edge.Node.Homeworld { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.nested_named_fragments.AllStarships.Data.AllStarships.Edge.Node.PilotConnection.Edge.Node.Homeworld { var __typename: String? = null var _name: String? = null diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/responseBased/nested_named_fragments/fragment/PilotFragmentImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/responseBased/nested_named_fragments/fragment/PilotFragmentImpl.kt.expected index 1c166401c7c..8c4358517f4 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/responseBased/nested_named_fragments/fragment/PilotFragmentImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/responseBased/nested_named_fragments/fragment/PilotFragmentImpl.kt.expected @@ -50,14 +50,16 @@ public class PilotFragmentImpl() : Fragment { * A planet that this person was born on or inhabits. */ override val homeworld: Homeworld?, - ) : PilotFragment, Fragment.Data { + ) : PilotFragment, + Fragment.Data { public data class Homeworld( override val __typename: String, /** * The name of this planet. */ override val name: String?, - ) : PlanetFragment, PilotFragment.Homeworld { + ) : PlanetFragment, + PilotFragment.Homeworld { public companion object { @Suppress("USELESS_CAST") public fun Homeworld.planetFragment(): PlanetFragment? = this as? PlanetFragment diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/responseBased/nested_named_fragments/fragment/PilotFragmentImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/responseBased/nested_named_fragments/fragment/PilotFragmentImpl_ResponseAdapter.kt.expected index 1fe85e7cff1..1f2c1c4f163 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/responseBased/nested_named_fragments/fragment/PilotFragmentImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/responseBased/nested_named_fragments/fragment/PilotFragmentImpl_ResponseAdapter.kt.expected @@ -21,8 +21,7 @@ public object PilotFragmentImpl_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("name", "homeworld") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - PilotFragmentImpl.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): PilotFragmentImpl.Data { var _name: String? = null var _homeworld: PilotFragmentImpl.Data.Homeworld? = null @@ -55,8 +54,7 @@ public object PilotFragmentImpl_ResponseAdapter { private object Homeworld : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - PilotFragmentImpl.Data.Homeworld { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): PilotFragmentImpl.Data.Homeworld { var __typename: String? = null var _name: String? = null diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/responseBased/nested_named_fragments/fragment/PlanetFragmentImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/responseBased/nested_named_fragments/fragment/PlanetFragmentImpl.kt.expected index 46a25eaaff5..8cd0b32a4c4 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/responseBased/nested_named_fragments/fragment/PlanetFragmentImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/responseBased/nested_named_fragments/fragment/PlanetFragmentImpl.kt.expected @@ -45,5 +45,6 @@ public class PlanetFragmentImpl() : Fragment { * The name of this planet. */ override val name: String?, - ) : PlanetFragment, Fragment.Data + ) : PlanetFragment, + Fragment.Data } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/responseBased/nested_named_fragments/fragment/PlanetFragmentImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/responseBased/nested_named_fragments/fragment/PlanetFragmentImpl_ResponseAdapter.kt.expected index 510b9e4f9c3..2eedb724704 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/responseBased/nested_named_fragments/fragment/PlanetFragmentImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/responseBased/nested_named_fragments/fragment/PlanetFragmentImpl_ResponseAdapter.kt.expected @@ -17,8 +17,7 @@ public object PlanetFragmentImpl_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - PlanetFragmentImpl.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): PlanetFragmentImpl.Data { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/responseBased/nested_named_fragments/fragment/StarshipFragmentImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/responseBased/nested_named_fragments/fragment/StarshipFragmentImpl.kt.expected index 745303f98e5..5011d789b8d 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/responseBased/nested_named_fragments/fragment/StarshipFragmentImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/responseBased/nested_named_fragments/fragment/StarshipFragmentImpl.kt.expected @@ -52,7 +52,8 @@ public class StarshipFragmentImpl() : Fragment { */ override val name: String?, override val pilotConnection: PilotConnection?, - ) : StarshipFragment, Fragment.Data { + ) : StarshipFragment, + Fragment.Data { public data class PilotConnection( /** * A list of edges. @@ -77,14 +78,16 @@ public class StarshipFragmentImpl() : Fragment { * A planet that this person was born on or inhabits. */ override val homeworld: Homeworld?, - ) : PilotFragment, StarshipFragment.PilotConnection.Edge.Node { + ) : PilotFragment, + StarshipFragment.PilotConnection.Edge.Node { public data class Homeworld( override val __typename: String, /** * The name of this planet. */ override val name: String?, - ) : PlanetFragment, PilotFragment.Homeworld, + ) : PlanetFragment, + PilotFragment.Homeworld, StarshipFragment.PilotConnection.Edge.Node.Homeworld { public companion object { @Suppress("USELESS_CAST") diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/responseBased/nested_named_fragments/fragment/StarshipFragmentImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/responseBased/nested_named_fragments/fragment/StarshipFragmentImpl_ResponseAdapter.kt.expected index 3ab63abb5a0..fccd6d85f96 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/responseBased/nested_named_fragments/fragment/StarshipFragmentImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/nested_named_fragments/kotlin/responseBased/nested_named_fragments/fragment/StarshipFragmentImpl_ResponseAdapter.kt.expected @@ -22,8 +22,7 @@ public object StarshipFragmentImpl_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("id", "name", "pilotConnection") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - StarshipFragmentImpl.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): StarshipFragmentImpl.Data { var _id: String? = null var _name: String? = null var _pilotConnection: StarshipFragmentImpl.Data.PilotConnection? = null @@ -62,8 +61,7 @@ public object StarshipFragmentImpl_ResponseAdapter { private object PilotConnection : Adapter { public val RESPONSE_NAMES: List = listOf("edges") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - StarshipFragmentImpl.Data.PilotConnection { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): StarshipFragmentImpl.Data.PilotConnection { var _edges: List? = null while (true) { @@ -90,8 +88,7 @@ public object StarshipFragmentImpl_ResponseAdapter { private object Edge : Adapter { public val RESPONSE_NAMES: List = listOf("node") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - StarshipFragmentImpl.Data.PilotConnection.Edge { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): StarshipFragmentImpl.Data.PilotConnection.Edge { var _node: StarshipFragmentImpl.Data.PilotConnection.Edge.Node? = null while (true) { @@ -118,8 +115,7 @@ public object StarshipFragmentImpl_ResponseAdapter { private object Node : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "name", "homeworld") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - StarshipFragmentImpl.Data.PilotConnection.Edge.Node { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): StarshipFragmentImpl.Data.PilotConnection.Edge.Node { var __typename: String? = null var _name: String? = null var _homeworld: StarshipFragmentImpl.Data.PilotConnection.Edge.Node.Homeworld? = null @@ -155,12 +151,10 @@ public object StarshipFragmentImpl_ResponseAdapter { Homeworld.obj().nullable().toJson(writer, customScalarAdapters, value.homeworld) } - private object Homeworld : - Adapter { + private object Homeworld : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - StarshipFragmentImpl.Data.PilotConnection.Edge.Node.Homeworld { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): StarshipFragmentImpl.Data.PilotConnection.Edge.Node.Homeworld { var __typename: String? = null var _name: String? = null diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/nonnull/kotlin/responseBased/nonnull/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/nonnull/kotlin/responseBased/nonnull/adapter/TestQuery_ResponseAdapter.kt.expected index e0c808cc001..84010b13267 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/nonnull/kotlin/responseBased/nonnull/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/nonnull/kotlin/responseBased/nonnull/adapter/TestQuery_ResponseAdapter.kt.expected @@ -20,8 +20,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _hero: TestQuery.Data.Hero? = null while (true) { @@ -48,8 +47,7 @@ public object TestQuery_ResponseAdapter { private object Hero : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/not_all_combinations_are_needed/kotlin/operationBased/not_all_combinations_are_needed/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/not_all_combinations_are_needed/kotlin/operationBased/not_all_combinations_are_needed/TestQuery.kt.expected index ee6a4ca8eab..fe703254cee 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/not_all_combinations_are_needed/kotlin/operationBased/not_all_combinations_are_needed/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/not_all_combinations_are_needed/kotlin/operationBased/not_all_combinations_are_needed/TestQuery.kt.expected @@ -108,8 +108,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { root { __typename ... on A { __typename fieldA1 ... on B { __typename ...bFragment } } } } fragment bFragment on B { fieldB1 }" + get() = "query TestQuery { root { __typename ... on A { __typename fieldA1 ... on B { __typename ...bFragment } } } } fragment bFragment on B { fieldB1 }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/not_all_combinations_are_needed/kotlin/operationBased/not_all_combinations_are_needed/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/not_all_combinations_are_needed/kotlin/operationBased/not_all_combinations_are_needed/adapter/TestQuery_ResponseAdapter.kt.expected index 6e26a423e1d..7fd52e536a5 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/not_all_combinations_are_needed/kotlin/operationBased/not_all_combinations_are_needed/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/not_all_combinations_are_needed/kotlin/operationBased/not_all_combinations_are_needed/adapter/TestQuery_ResponseAdapter.kt.expected @@ -24,8 +24,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("root") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _root: TestQuery.Data.Root? = null while (true) { @@ -52,8 +51,7 @@ public object TestQuery_ResponseAdapter { private object Root : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Root { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Root { var __typename: String? = null while (true) { @@ -70,8 +68,7 @@ public object TestQuery_ResponseAdapter { var _onA: TestQuery.Data.Root.OnA? = null if (possibleTypes("ABC").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onA = com.example.not_all_combinations_are_needed.adapter.TestQuery_ResponseAdapter.Data.Root.OnA.fromJson(reader, - customScalarAdapters) + _onA = com.example.not_all_combinations_are_needed.adapter.TestQuery_ResponseAdapter.Data.Root.OnA.fromJson(reader, customScalarAdapters) } return TestQuery.Data.Root( @@ -89,16 +86,14 @@ public object TestQuery_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.__typename) if (value.onA != null) { - com.example.not_all_combinations_are_needed.adapter.TestQuery_ResponseAdapter.Data.Root.OnA.toJson(writer, - customScalarAdapters, value.onA) + com.example.not_all_combinations_are_needed.adapter.TestQuery_ResponseAdapter.Data.Root.OnA.toJson(writer, customScalarAdapters, value.onA) } } private object OnA : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "fieldA1") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Root.OnA { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Root.OnA { var __typename: String? = null var _fieldA1: String? = null @@ -117,8 +112,7 @@ public object TestQuery_ResponseAdapter { var _onB: TestQuery.Data.Root.OnA.OnB? = null if (possibleTypes("ABC","SomeBC").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onB = com.example.not_all_combinations_are_needed.adapter.TestQuery_ResponseAdapter.Data.Root.OnA.OnB.fromJson(reader, - customScalarAdapters) + _onB = com.example.not_all_combinations_are_needed.adapter.TestQuery_ResponseAdapter.Data.Root.OnA.OnB.fromJson(reader, customScalarAdapters) } return TestQuery.Data.Root.OnA( @@ -140,16 +134,14 @@ public object TestQuery_ResponseAdapter { NullableStringAdapter.toJson(writer, customScalarAdapters, value.fieldA1) if (value.onB != null) { - com.example.not_all_combinations_are_needed.adapter.TestQuery_ResponseAdapter.Data.Root.OnA.OnB.toJson(writer, - customScalarAdapters, value.onB) + com.example.not_all_combinations_are_needed.adapter.TestQuery_ResponseAdapter.Data.Root.OnA.OnB.toJson(writer, customScalarAdapters, value.onB) } } private object OnB : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Root.OnA.OnB { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Root.OnA.OnB { var __typename: String? = null while (true) { @@ -160,8 +152,7 @@ public object TestQuery_ResponseAdapter { } reader.rewind() - val _bFragment = com.example.not_all_combinations_are_needed.fragment.BFragmentImpl_ResponseAdapter.BFragment.fromJson(reader, - customScalarAdapters) + val _bFragment = com.example.not_all_combinations_are_needed.fragment.BFragmentImpl_ResponseAdapter.BFragment.fromJson(reader, customScalarAdapters) return TestQuery.Data.Root.OnA.OnB( __typename = __typename ?: missingField(reader, "__typename"), @@ -177,8 +168,7 @@ public object TestQuery_ResponseAdapter { writer.name("__typename") StringAdapter.toJson(writer, customScalarAdapters, value.__typename) - com.example.not_all_combinations_are_needed.fragment.BFragmentImpl_ResponseAdapter.BFragment.toJson(writer, - customScalarAdapters, value.bFragment) + com.example.not_all_combinations_are_needed.fragment.BFragmentImpl_ResponseAdapter.BFragment.toJson(writer, customScalarAdapters, value.bFragment) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/not_all_combinations_are_needed/kotlin/operationBased/not_all_combinations_are_needed/fragment/BFragmentImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/not_all_combinations_are_needed/kotlin/operationBased/not_all_combinations_are_needed/fragment/BFragmentImpl_ResponseAdapter.kt.expected index 24678d59dce..6c7737c0ca1 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/not_all_combinations_are_needed/kotlin/operationBased/not_all_combinations_are_needed/fragment/BFragmentImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/not_all_combinations_are_needed/kotlin/operationBased/not_all_combinations_are_needed/fragment/BFragmentImpl_ResponseAdapter.kt.expected @@ -14,12 +14,10 @@ import kotlin.String import kotlin.collections.List public object BFragmentImpl_ResponseAdapter { - public object BFragment : Adapter - { + public object BFragment : Adapter { public val RESPONSE_NAMES: List = listOf("fieldB1") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.not_all_combinations_are_needed.fragment.BFragment { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.not_all_combinations_are_needed.fragment.BFragment { var _fieldB1: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/not_all_combinations_are_needed/kotlin/responseBased/not_all_combinations_are_needed/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/not_all_combinations_are_needed/kotlin/responseBased/not_all_combinations_are_needed/TestQuery.kt.expected index 72984f00b47..f36df067fa2 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/not_all_combinations_are_needed/kotlin/responseBased/not_all_combinations_are_needed/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/not_all_combinations_are_needed/kotlin/responseBased/not_all_combinations_are_needed/TestQuery.kt.expected @@ -79,7 +79,8 @@ public class TestQuery() : Query { override val __typename: String, override val fieldA1: String?, override val fieldB1: String?, - ) : ARoot, BFragment + ) : ARoot, + BFragment public data class OtherRoot( override val __typename: String, @@ -115,8 +116,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { root { __typename ... on A { __typename fieldA1 ... on B { __typename ...bFragment } } } } fragment bFragment on B { fieldB1 }" + get() = "query TestQuery { root { __typename ... on A { __typename fieldA1 ... on B { __typename ...bFragment } } } } fragment bFragment on B { fieldB1 }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/not_all_combinations_are_needed/kotlin/responseBased/not_all_combinations_are_needed/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/not_all_combinations_are_needed/kotlin/responseBased/not_all_combinations_are_needed/adapter/TestQuery_ResponseAdapter.kt.expected index 65c996ca2d1..a9d1cf184f4 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/not_all_combinations_are_needed/kotlin/responseBased/not_all_combinations_are_needed/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/not_all_combinations_are_needed/kotlin/responseBased/not_all_combinations_are_needed/adapter/TestQuery_ResponseAdapter.kt.expected @@ -24,8 +24,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("root") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _root: TestQuery.Data.Root? = null while (true) { @@ -50,8 +49,7 @@ public object TestQuery_ResponseAdapter { } private object Root : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Root { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Root { val __typename = reader.readTypename() return when(__typename) { "ABC", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/not_all_combinations_are_needed/kotlin/responseBased/not_all_combinations_are_needed/fragment/BFragmentImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/not_all_combinations_are_needed/kotlin/responseBased/not_all_combinations_are_needed/fragment/BFragmentImpl.kt.expected index a96cea4ed98..39b161968c2 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/not_all_combinations_are_needed/kotlin/responseBased/not_all_combinations_are_needed/fragment/BFragmentImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/not_all_combinations_are_needed/kotlin/responseBased/not_all_combinations_are_needed/fragment/BFragmentImpl.kt.expected @@ -42,5 +42,6 @@ public class BFragmentImpl() : Fragment { public data class Data( override val fieldB1: String?, - ) : BFragment, Fragment.Data + ) : BFragment, + Fragment.Data } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/not_all_combinations_are_needed/kotlin/responseBased/not_all_combinations_are_needed/fragment/BFragmentImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/not_all_combinations_are_needed/kotlin/responseBased/not_all_combinations_are_needed/fragment/BFragmentImpl_ResponseAdapter.kt.expected index 32a5e1c19a6..3a241684f98 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/not_all_combinations_are_needed/kotlin/responseBased/not_all_combinations_are_needed/fragment/BFragmentImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/not_all_combinations_are_needed/kotlin/responseBased/not_all_combinations_are_needed/fragment/BFragmentImpl_ResponseAdapter.kt.expected @@ -17,8 +17,7 @@ public object BFragmentImpl_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("fieldB1") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - BFragmentImpl.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): BFragmentImpl.Data { var _fieldB1: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/object/kotlin/responseBased/object/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/object/kotlin/responseBased/object/adapter/TestQuery_ResponseAdapter.kt.expected index 899702d49c5..a69578cffd2 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/object/kotlin/responseBased/object/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/object/kotlin/responseBased/object/adapter/TestQuery_ResponseAdapter.kt.expected @@ -21,8 +21,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("object") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _object: TestQuery.Data.Object? = null while (true) { @@ -49,8 +48,7 @@ public object TestQuery_ResponseAdapter { private object Object : Adapter { public val RESPONSE_NAMES: List = listOf("random") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Object { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Object { var _random: Int? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/operation_id_generator/kotlin/responseBased/operation_id_generator/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/operation_id_generator/kotlin/responseBased/operation_id_generator/adapter/TestQuery_ResponseAdapter.kt.expected index 81748ef090f..d34c2a4e5e8 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/operation_id_generator/kotlin/responseBased/operation_id_generator/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/operation_id_generator/kotlin/responseBased/operation_id_generator/adapter/TestQuery_ResponseAdapter.kt.expected @@ -21,8 +21,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _hero: TestQuery.Data.Hero? = null while (true) { @@ -49,8 +48,7 @@ public object TestQuery_ResponseAdapter { private object Hero : Adapter { public val RESPONSE_NAMES: List = listOf("id", "name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero { var _id: String? = null var _name: String? = null diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex7/kotlin/operationBased/operationbased2_ex7/TestOperation.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex7/kotlin/operationBased/operationbased2_ex7/TestOperation.kt.expected index 40c8d389cd7..153a272a7df 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex7/kotlin/operationBased/operationbased2_ex7/TestOperation.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex7/kotlin/operationBased/operationbased2_ex7/TestOperation.kt.expected @@ -109,8 +109,7 @@ public class TestOperation() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestOperation { animal { __typename ... on Animal { __typename species ... on WarmBlooded { temperature } ... on Pet { name } } } }" + get() = "query TestOperation { animal { __typename ... on Animal { __typename species ... on WarmBlooded { temperature } ... on Pet { name } } } }" public const val OPERATION_NAME: String = "TestOperation" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex7/kotlin/operationBased/operationbased2_ex7/adapter/TestOperation_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex7/kotlin/operationBased/operationbased2_ex7/adapter/TestOperation_ResponseAdapter.kt.expected index 03886656a43..ec8fb7eb590 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex7/kotlin/operationBased/operationbased2_ex7/adapter/TestOperation_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex7/kotlin/operationBased/operationbased2_ex7/adapter/TestOperation_ResponseAdapter.kt.expected @@ -25,8 +25,7 @@ public object TestOperation_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("animal") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestOperation.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestOperation.Data { var _animal: TestOperation.Data.Animal? = null while (true) { @@ -53,8 +52,7 @@ public object TestOperation_ResponseAdapter { private object Animal : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestOperation.Data.Animal { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestOperation.Data.Animal { var __typename: String? = null while (true) { @@ -65,8 +63,7 @@ public object TestOperation_ResponseAdapter { } reader.rewind() - val _onAnimal = com.example.operationbased2_ex7.adapter.TestOperation_ResponseAdapter.Data.Animal.OnAnimal.fromJson(reader, - customScalarAdapters) + val _onAnimal = com.example.operationbased2_ex7.adapter.TestOperation_ResponseAdapter.Data.Animal.OnAnimal.fromJson(reader, customScalarAdapters) return TestOperation.Data.Animal( __typename = __typename ?: missingField(reader, "__typename"), @@ -82,15 +79,13 @@ public object TestOperation_ResponseAdapter { writer.name("__typename") StringAdapter.toJson(writer, customScalarAdapters, value.__typename) - com.example.operationbased2_ex7.adapter.TestOperation_ResponseAdapter.Data.Animal.OnAnimal.toJson(writer, - customScalarAdapters, value.onAnimal) + com.example.operationbased2_ex7.adapter.TestOperation_ResponseAdapter.Data.Animal.OnAnimal.toJson(writer, customScalarAdapters, value.onAnimal) } private object OnAnimal : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "species") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestOperation.Data.Animal.OnAnimal { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestOperation.Data.Animal.OnAnimal { var __typename: String? = null var _species: String? = null @@ -109,15 +104,13 @@ public object TestOperation_ResponseAdapter { var _onWarmBlooded: TestOperation.Data.Animal.OnAnimal.OnWarmBlooded? = null if (possibleTypes("Lion","Cat","Panther").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onWarmBlooded = com.example.operationbased2_ex7.adapter.TestOperation_ResponseAdapter.Data.Animal.OnAnimal.OnWarmBlooded.fromJson(reader, - customScalarAdapters) + _onWarmBlooded = com.example.operationbased2_ex7.adapter.TestOperation_ResponseAdapter.Data.Animal.OnAnimal.OnWarmBlooded.fromJson(reader, customScalarAdapters) } var _onPet: TestOperation.Data.Animal.OnAnimal.OnPet? = null if (possibleTypes("Cat","Turtle").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onPet = com.example.operationbased2_ex7.adapter.TestOperation_ResponseAdapter.Data.Animal.OnAnimal.OnPet.fromJson(reader, - customScalarAdapters) + _onPet = com.example.operationbased2_ex7.adapter.TestOperation_ResponseAdapter.Data.Animal.OnAnimal.OnPet.fromJson(reader, customScalarAdapters) } return TestOperation.Data.Animal.OnAnimal( @@ -140,21 +133,18 @@ public object TestOperation_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.species) if (value.onWarmBlooded != null) { - com.example.operationbased2_ex7.adapter.TestOperation_ResponseAdapter.Data.Animal.OnAnimal.OnWarmBlooded.toJson(writer, - customScalarAdapters, value.onWarmBlooded) + com.example.operationbased2_ex7.adapter.TestOperation_ResponseAdapter.Data.Animal.OnAnimal.OnWarmBlooded.toJson(writer, customScalarAdapters, value.onWarmBlooded) } if (value.onPet != null) { - com.example.operationbased2_ex7.adapter.TestOperation_ResponseAdapter.Data.Animal.OnAnimal.OnPet.toJson(writer, - customScalarAdapters, value.onPet) + com.example.operationbased2_ex7.adapter.TestOperation_ResponseAdapter.Data.Animal.OnAnimal.OnPet.toJson(writer, customScalarAdapters, value.onPet) } } private object OnWarmBlooded : Adapter { public val RESPONSE_NAMES: List = listOf("temperature") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestOperation.Data.Animal.OnAnimal.OnWarmBlooded { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestOperation.Data.Animal.OnAnimal.OnWarmBlooded { var _temperature: Int? = null while (true) { @@ -182,8 +172,7 @@ public object TestOperation_ResponseAdapter { private object OnPet : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestOperation.Data.Animal.OnAnimal.OnPet { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestOperation.Data.Animal.OnAnimal.OnPet { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex7/kotlin/responseBased/operationbased2_ex7/TestOperation.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex7/kotlin/responseBased/operationbased2_ex7/TestOperation.kt.expected index 2795b2fc0d0..635e71b4440 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex7/kotlin/responseBased/operationbased2_ex7/TestOperation.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex7/kotlin/responseBased/operationbased2_ex7/TestOperation.kt.expected @@ -91,7 +91,8 @@ public class TestOperation() : Query { override val species: String, override val temperature: Int, override val name: String, - ) : WarmBloodedAnimal, PetAnimal + ) : WarmBloodedAnimal, + PetAnimal public data class OtherAnimal( override val __typename: String, @@ -138,8 +139,7 @@ public class TestOperation() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestOperation { animal { __typename ... on Animal { __typename species ... on WarmBlooded { temperature } ... on Pet { name } } } }" + get() = "query TestOperation { animal { __typename ... on Animal { __typename species ... on WarmBlooded { temperature } ... on Pet { name } } } }" public const val OPERATION_NAME: String = "TestOperation" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex7/kotlin/responseBased/operationbased2_ex7/adapter/TestOperation_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex7/kotlin/responseBased/operationbased2_ex7/adapter/TestOperation_ResponseAdapter.kt.expected index 4209e73eeb6..567df4137a1 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex7/kotlin/responseBased/operationbased2_ex7/adapter/TestOperation_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex7/kotlin/responseBased/operationbased2_ex7/adapter/TestOperation_ResponseAdapter.kt.expected @@ -25,8 +25,7 @@ public object TestOperation_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("animal") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestOperation.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestOperation.Data { var _animal: TestOperation.Data.Animal? = null while (true) { @@ -51,8 +50,7 @@ public object TestOperation_ResponseAdapter { } private object Animal : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestOperation.Data.Animal { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestOperation.Data.Animal { val __typename = reader.readTypename() return when(__typename) { "Cat", @@ -73,21 +71,17 @@ public object TestOperation_ResponseAdapter { `value`: TestOperation.Data.Animal, ) { when(value) { - is TestOperation.Data.PetWarmBloodedAnimal -> PetWarmBloodedAnimal.toJson(writer, - customScalarAdapters, value) - is TestOperation.Data.OtherWarmBloodedAnimal -> OtherWarmBloodedAnimal.toJson(writer, - customScalarAdapters, value) - is TestOperation.Data.OtherPetAnimal -> OtherPetAnimal.toJson(writer, - customScalarAdapters, value) - is TestOperation.Data.OtherAnimal -> OtherAnimal.toJson(writer, customScalarAdapters, - value) + is TestOperation.Data.PetWarmBloodedAnimal -> PetWarmBloodedAnimal.toJson(writer, customScalarAdapters, value) + is TestOperation.Data.OtherWarmBloodedAnimal -> OtherWarmBloodedAnimal.toJson(writer, customScalarAdapters, value) + is TestOperation.Data.OtherPetAnimal -> OtherPetAnimal.toJson(writer, customScalarAdapters, value) + is TestOperation.Data.OtherAnimal -> OtherAnimal.toJson(writer, customScalarAdapters, value) } } } public object PetWarmBloodedAnimal { - public val RESPONSE_NAMES: List = listOf("__typename", "species", "temperature", - "name") + public val RESPONSE_NAMES: List = + listOf("__typename", "species", "temperature", "name") public fun fromJson( reader: JsonReader, diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex8/kotlin/operationBased/operationbased2_ex8/TestOperation.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex8/kotlin/operationBased/operationbased2_ex8/TestOperation.kt.expected index 25695a9064b..b8716fcc250 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex8/kotlin/operationBased/operationbased2_ex8/TestOperation.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex8/kotlin/operationBased/operationbased2_ex8/TestOperation.kt.expected @@ -94,8 +94,7 @@ public class TestOperation() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestOperation { animal { __typename ...AnimalFragment } } fragment AnimalFragment on Animal { species parent { __typename species ... on Lion { temperature } ... on Cat { name } } }" + get() = "query TestOperation { animal { __typename ...AnimalFragment } } fragment AnimalFragment on Animal { species parent { __typename species ... on Lion { temperature } ... on Cat { name } } }" public const val OPERATION_NAME: String = "TestOperation" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex8/kotlin/operationBased/operationbased2_ex8/adapter/TestOperation_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex8/kotlin/operationBased/operationbased2_ex8/adapter/TestOperation_ResponseAdapter.kt.expected index eb3e2e54de5..492e4ba17ff 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex8/kotlin/operationBased/operationbased2_ex8/adapter/TestOperation_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex8/kotlin/operationBased/operationbased2_ex8/adapter/TestOperation_ResponseAdapter.kt.expected @@ -21,8 +21,7 @@ public object TestOperation_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("animal") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestOperation.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestOperation.Data { var _animal: TestOperation.Data.Animal? = null while (true) { @@ -49,8 +48,7 @@ public object TestOperation_ResponseAdapter { private object Animal : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestOperation.Data.Animal { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestOperation.Data.Animal { var __typename: String? = null while (true) { @@ -61,8 +59,7 @@ public object TestOperation_ResponseAdapter { } reader.rewind() - val _animalFragment = com.example.operationbased2_ex8.fragment.AnimalFragmentImpl_ResponseAdapter.AnimalFragment.fromJson(reader, - customScalarAdapters) + val _animalFragment = com.example.operationbased2_ex8.fragment.AnimalFragmentImpl_ResponseAdapter.AnimalFragment.fromJson(reader, customScalarAdapters) return TestOperation.Data.Animal( __typename = __typename ?: missingField(reader, "__typename"), @@ -78,8 +75,7 @@ public object TestOperation_ResponseAdapter { writer.name("__typename") StringAdapter.toJson(writer, customScalarAdapters, value.__typename) - com.example.operationbased2_ex8.fragment.AnimalFragmentImpl_ResponseAdapter.AnimalFragment.toJson(writer, - customScalarAdapters, value.animalFragment) + com.example.operationbased2_ex8.fragment.AnimalFragmentImpl_ResponseAdapter.AnimalFragment.toJson(writer, customScalarAdapters, value.animalFragment) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex8/kotlin/operationBased/operationbased2_ex8/fragment/AnimalFragmentImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex8/kotlin/operationBased/operationbased2_ex8/fragment/AnimalFragmentImpl.kt.expected index 6415febf5ab..744c89dc598 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex8/kotlin/operationBased/operationbased2_ex8/fragment/AnimalFragmentImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex8/kotlin/operationBased/operationbased2_ex8/fragment/AnimalFragmentImpl.kt.expected @@ -30,8 +30,7 @@ public class AnimalFragmentImpl() : Fragment { // This fragment doesn't have any variable } - override fun adapter(): Adapter = - AnimalFragmentImpl_ResponseAdapter.AnimalFragment.obj() + override fun adapter(): Adapter = AnimalFragmentImpl_ResponseAdapter.AnimalFragment.obj() override fun rootField(): CompiledField = CompiledField.Builder( name = "data", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex8/kotlin/operationBased/operationbased2_ex8/fragment/AnimalFragmentImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex8/kotlin/operationBased/operationbased2_ex8/fragment/AnimalFragmentImpl_ResponseAdapter.kt.expected index f65f7801eed..59346a0341c 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex8/kotlin/operationBased/operationbased2_ex8/fragment/AnimalFragmentImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex8/kotlin/operationBased/operationbased2_ex8/fragment/AnimalFragmentImpl_ResponseAdapter.kt.expected @@ -23,8 +23,7 @@ public object AnimalFragmentImpl_ResponseAdapter { public object AnimalFragment : Adapter { public val RESPONSE_NAMES: List = listOf("species", "parent") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.operationbased2_ex8.fragment.AnimalFragment { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.operationbased2_ex8.fragment.AnimalFragment { var _species: String? = null var _parent: com.example.operationbased2_ex8.fragment.AnimalFragment.Parent? = null @@ -54,12 +53,10 @@ public object AnimalFragmentImpl_ResponseAdapter { Parent.obj(true).toJson(writer, customScalarAdapters, value.parent) } - private object Parent : Adapter - { + private object Parent : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "species") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.operationbased2_ex8.fragment.AnimalFragment.Parent { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.operationbased2_ex8.fragment.AnimalFragment.Parent { var __typename: String? = null var _species: String? = null @@ -78,15 +75,13 @@ public object AnimalFragmentImpl_ResponseAdapter { var _onLion: com.example.operationbased2_ex8.fragment.AnimalFragment.Parent.OnLion? = null if (possibleTypes("Lion").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onLion = com.example.operationbased2_ex8.fragment.AnimalFragmentImpl_ResponseAdapter.AnimalFragment.Parent.OnLion.fromJson(reader, - customScalarAdapters) + _onLion = com.example.operationbased2_ex8.fragment.AnimalFragmentImpl_ResponseAdapter.AnimalFragment.Parent.OnLion.fromJson(reader, customScalarAdapters) } var _onCat: com.example.operationbased2_ex8.fragment.AnimalFragment.Parent.OnCat? = null if (possibleTypes("Cat").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onCat = com.example.operationbased2_ex8.fragment.AnimalFragmentImpl_ResponseAdapter.AnimalFragment.Parent.OnCat.fromJson(reader, - customScalarAdapters) + _onCat = com.example.operationbased2_ex8.fragment.AnimalFragmentImpl_ResponseAdapter.AnimalFragment.Parent.OnCat.fromJson(reader, customScalarAdapters) } return com.example.operationbased2_ex8.fragment.AnimalFragment.Parent( @@ -109,22 +104,18 @@ public object AnimalFragmentImpl_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.species) if (value.onLion != null) { - com.example.operationbased2_ex8.fragment.AnimalFragmentImpl_ResponseAdapter.AnimalFragment.Parent.OnLion.toJson(writer, - customScalarAdapters, value.onLion) + com.example.operationbased2_ex8.fragment.AnimalFragmentImpl_ResponseAdapter.AnimalFragment.Parent.OnLion.toJson(writer, customScalarAdapters, value.onLion) } if (value.onCat != null) { - com.example.operationbased2_ex8.fragment.AnimalFragmentImpl_ResponseAdapter.AnimalFragment.Parent.OnCat.toJson(writer, - customScalarAdapters, value.onCat) + com.example.operationbased2_ex8.fragment.AnimalFragmentImpl_ResponseAdapter.AnimalFragment.Parent.OnCat.toJson(writer, customScalarAdapters, value.onCat) } } - private object OnLion : - Adapter { + private object OnLion : Adapter { public val RESPONSE_NAMES: List = listOf("temperature") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.operationbased2_ex8.fragment.AnimalFragment.Parent.OnLion { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.operationbased2_ex8.fragment.AnimalFragment.Parent.OnLion { var _temperature: Int? = null while (true) { @@ -149,12 +140,10 @@ public object AnimalFragmentImpl_ResponseAdapter { } } - private object OnCat : - Adapter { + private object OnCat : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.operationbased2_ex8.fragment.AnimalFragment.Parent.OnCat { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.operationbased2_ex8.fragment.AnimalFragment.Parent.OnCat { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex8/kotlin/responseBased/operationbased2_ex8/TestOperation.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex8/kotlin/responseBased/operationbased2_ex8/TestOperation.kt.expected index 94ec377bfb6..9d4209a41b9 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex8/kotlin/responseBased/operationbased2_ex8/TestOperation.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex8/kotlin/responseBased/operationbased2_ex8/TestOperation.kt.expected @@ -77,18 +77,21 @@ public class TestOperation() : Query { override val __typename: String, override val species: String, override val temperature: Int, - ) : Parent, AnimalFragment.LionParent + ) : Parent, + AnimalFragment.LionParent public data class CatParent( override val __typename: String, override val species: String, override val name: String, - ) : Parent, AnimalFragment.CatParent + ) : Parent, + AnimalFragment.CatParent public data class OtherParent( override val __typename: String, override val species: String, - ) : Parent, AnimalFragment.Parent + ) : Parent, + AnimalFragment.Parent public companion object { @Suppress("USELESS_CAST") @@ -129,8 +132,7 @@ public class TestOperation() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestOperation { animal { __typename ...AnimalFragment } } fragment AnimalFragment on Animal { species parent { __typename species ... on Lion { temperature } ... on Cat { name } } }" + get() = "query TestOperation { animal { __typename ...AnimalFragment } } fragment AnimalFragment on Animal { species parent { __typename species ... on Lion { temperature } ... on Cat { name } } }" public const val OPERATION_NAME: String = "TestOperation" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex8/kotlin/responseBased/operationbased2_ex8/adapter/TestOperation_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex8/kotlin/responseBased/operationbased2_ex8/adapter/TestOperation_ResponseAdapter.kt.expected index d91940a6280..41497e10450 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex8/kotlin/responseBased/operationbased2_ex8/adapter/TestOperation_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex8/kotlin/responseBased/operationbased2_ex8/adapter/TestOperation_ResponseAdapter.kt.expected @@ -25,8 +25,7 @@ public object TestOperation_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("animal") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestOperation.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestOperation.Data { var _animal: TestOperation.Data.Animal? = null while (true) { @@ -53,8 +52,7 @@ public object TestOperation_ResponseAdapter { private object Animal : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "species", "parent") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestOperation.Data.Animal { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestOperation.Data.Animal { var __typename: String? = null var _species: String? = null var _parent: TestOperation.Data.Animal.Parent? = null @@ -91,8 +89,7 @@ public object TestOperation_ResponseAdapter { } private object Parent : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestOperation.Data.Animal.Parent { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestOperation.Data.Animal.Parent { val __typename = reader.readTypename() return when(__typename) { "Lion", @@ -110,12 +107,9 @@ public object TestOperation_ResponseAdapter { `value`: TestOperation.Data.Animal.Parent, ) { when(value) { - is TestOperation.Data.Animal.LionParent -> LionParent.toJson(writer, - customScalarAdapters, value) - is TestOperation.Data.Animal.CatParent -> CatParent.toJson(writer, customScalarAdapters, - value) - is TestOperation.Data.Animal.OtherParent -> OtherParent.toJson(writer, - customScalarAdapters, value) + is TestOperation.Data.Animal.LionParent -> LionParent.toJson(writer, customScalarAdapters, value) + is TestOperation.Data.Animal.CatParent -> CatParent.toJson(writer, customScalarAdapters, value) + is TestOperation.Data.Animal.OtherParent -> OtherParent.toJson(writer, customScalarAdapters, value) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex8/kotlin/responseBased/operationbased2_ex8/fragment/AnimalFragmentImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex8/kotlin/responseBased/operationbased2_ex8/fragment/AnimalFragmentImpl.kt.expected index f93c36ef138..29029425d41 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex8/kotlin/responseBased/operationbased2_ex8/fragment/AnimalFragmentImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex8/kotlin/responseBased/operationbased2_ex8/fragment/AnimalFragmentImpl.kt.expected @@ -44,7 +44,8 @@ public class AnimalFragmentImpl() : Fragment { public data class Data( override val species: String, override val parent: Parent, - ) : AnimalFragment, Fragment.Data { + ) : AnimalFragment, + Fragment.Data { public sealed interface Parent : AnimalFragment.Parent { override val __typename: String @@ -63,17 +64,20 @@ public class AnimalFragmentImpl() : Fragment { override val __typename: String, override val species: String, override val temperature: Int, - ) : Parent, AnimalFragment.LionParent + ) : Parent, + AnimalFragment.LionParent public data class CatParent( override val __typename: String, override val species: String, override val name: String, - ) : Parent, AnimalFragment.CatParent + ) : Parent, + AnimalFragment.CatParent public data class OtherParent( override val __typename: String, override val species: String, - ) : Parent, AnimalFragment.Parent + ) : Parent, + AnimalFragment.Parent } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex8/kotlin/responseBased/operationbased2_ex8/fragment/AnimalFragmentImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex8/kotlin/responseBased/operationbased2_ex8/fragment/AnimalFragmentImpl_ResponseAdapter.kt.expected index 546b5619648..37ecd4f5414 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex8/kotlin/responseBased/operationbased2_ex8/fragment/AnimalFragmentImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/operationbased2_ex8/kotlin/responseBased/operationbased2_ex8/fragment/AnimalFragmentImpl_ResponseAdapter.kt.expected @@ -23,8 +23,7 @@ public object AnimalFragmentImpl_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("species", "parent") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - AnimalFragmentImpl.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): AnimalFragmentImpl.Data { var _species: String? = null var _parent: AnimalFragmentImpl.Data.Parent? = null @@ -55,8 +54,7 @@ public object AnimalFragmentImpl_ResponseAdapter { } private object Parent : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - AnimalFragmentImpl.Data.Parent { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): AnimalFragmentImpl.Data.Parent { val __typename = reader.readTypename() return when(__typename) { "Lion", @@ -74,12 +72,9 @@ public object AnimalFragmentImpl_ResponseAdapter { `value`: AnimalFragmentImpl.Data.Parent, ) { when(value) { - is AnimalFragmentImpl.Data.LionParent -> LionParent.toJson(writer, customScalarAdapters, - value) - is AnimalFragmentImpl.Data.CatParent -> CatParent.toJson(writer, customScalarAdapters, - value) - is AnimalFragmentImpl.Data.OtherParent -> OtherParent.toJson(writer, customScalarAdapters, - value) + is AnimalFragmentImpl.Data.LionParent -> LionParent.toJson(writer, customScalarAdapters, value) + is AnimalFragmentImpl.Data.CatParent -> CatParent.toJson(writer, customScalarAdapters, value) + is AnimalFragmentImpl.Data.OtherParent -> OtherParent.toJson(writer, customScalarAdapters, value) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/optional/kotlin/responseBased/optional/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/optional/kotlin/responseBased/optional/adapter/TestQuery_ResponseAdapter.kt.expected index 63f5a3cc990..2c241efb7cb 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/optional/kotlin/responseBased/optional/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/optional/kotlin/responseBased/optional/adapter/TestQuery_ResponseAdapter.kt.expected @@ -24,8 +24,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _hero: TestQuery.Data.Hero? = null while (true) { @@ -52,8 +51,7 @@ public object TestQuery_ResponseAdapter { private object Hero : Adapter { public val RESPONSE_NAMES: List = listOf("name", "appearsIn") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero { var _name: String? = null var _appearsIn: List? = null @@ -80,8 +78,7 @@ public object TestQuery_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.name) writer.name("appearsIn") - Episode_ResponseAdapter.nullable().list().nullable().toJson(writer, customScalarAdapters, - value.appearsIn) + Episode_ResponseAdapter.nullable().list().nullable().toJson(writer, customScalarAdapters, value.appearsIn) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/optional/kotlin/responseBased/optional/type/Episode.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/optional/kotlin/responseBased/optional/type/Episode.kt.expected index 3118cabc41b..768c5e7b4db 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/optional/kotlin/responseBased/optional/type/Episode.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/optional/kotlin/responseBased/optional/type/Episode.kt.expected @@ -47,8 +47,8 @@ public enum class Episode( ; public companion object { - public val type: EnumType = EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", - "DEPRECATED", "new")) + public val type: EnumType = + EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", "DEPRECATED", "new")) /** * All [Episode] known at compile time @@ -73,10 +73,8 @@ public enum class Episode( /** * Returns the [Episode] that represents the specified [rawValue]. - * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your - * schema instead of calling this function directly. + * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your schema instead of calling this function directly. */ - public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: - UNKNOWN__ + public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: UNKNOWN__ } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/path_vs_flat_accessors/kotlin/operationBased/path_vs_flat_accessors/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/path_vs_flat_accessors/kotlin/operationBased/path_vs_flat_accessors/TestQuery.kt.expected index 2a68f70e432..3adc67b4ef5 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/path_vs_flat_accessors/kotlin/operationBased/path_vs_flat_accessors/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/path_vs_flat_accessors/kotlin/operationBased/path_vs_flat_accessors/TestQuery.kt.expected @@ -107,8 +107,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { root { __typename ... on A { __typename ... on B { fieldB1 } } ... on B { fieldB2 } } }" + get() = "query TestQuery { root { __typename ... on A { __typename ... on B { fieldB1 } } ... on B { fieldB2 } } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/path_vs_flat_accessors/kotlin/operationBased/path_vs_flat_accessors/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/path_vs_flat_accessors/kotlin/operationBased/path_vs_flat_accessors/adapter/TestQuery_ResponseAdapter.kt.expected index 6fcd3c4728e..f83af0f2652 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/path_vs_flat_accessors/kotlin/operationBased/path_vs_flat_accessors/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/path_vs_flat_accessors/kotlin/operationBased/path_vs_flat_accessors/adapter/TestQuery_ResponseAdapter.kt.expected @@ -23,8 +23,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("root") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _root: TestQuery.Data.Root? = null while (true) { @@ -51,8 +50,7 @@ public object TestQuery_ResponseAdapter { private object Root : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Root { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Root { var __typename: String? = null while (true) { @@ -69,15 +67,13 @@ public object TestQuery_ResponseAdapter { var _onA: TestQuery.Data.Root.OnA? = null if (possibleTypes("ABC","AC").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onA = com.example.path_vs_flat_accessors.adapter.TestQuery_ResponseAdapter.Data.Root.OnA.fromJson(reader, - customScalarAdapters) + _onA = com.example.path_vs_flat_accessors.adapter.TestQuery_ResponseAdapter.Data.Root.OnA.fromJson(reader, customScalarAdapters) } var _onB: TestQuery.Data.Root.OnB? = null if (possibleTypes("ABC","BC").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onB = com.example.path_vs_flat_accessors.adapter.TestQuery_ResponseAdapter.Data.Root.OnB.fromJson(reader, - customScalarAdapters) + _onB = com.example.path_vs_flat_accessors.adapter.TestQuery_ResponseAdapter.Data.Root.OnB.fromJson(reader, customScalarAdapters) } return TestQuery.Data.Root( @@ -96,21 +92,18 @@ public object TestQuery_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.__typename) if (value.onA != null) { - com.example.path_vs_flat_accessors.adapter.TestQuery_ResponseAdapter.Data.Root.OnA.toJson(writer, - customScalarAdapters, value.onA) + com.example.path_vs_flat_accessors.adapter.TestQuery_ResponseAdapter.Data.Root.OnA.toJson(writer, customScalarAdapters, value.onA) } if (value.onB != null) { - com.example.path_vs_flat_accessors.adapter.TestQuery_ResponseAdapter.Data.Root.OnB.toJson(writer, - customScalarAdapters, value.onB) + com.example.path_vs_flat_accessors.adapter.TestQuery_ResponseAdapter.Data.Root.OnB.toJson(writer, customScalarAdapters, value.onB) } } private object OnA : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Root.OnA { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Root.OnA { var __typename: String? = null while (true) { @@ -127,8 +120,7 @@ public object TestQuery_ResponseAdapter { var _onB: TestQuery.Data.Root.OnA.OnB? = null if (possibleTypes("ABC","BC").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onB = com.example.path_vs_flat_accessors.adapter.TestQuery_ResponseAdapter.Data.Root.OnA.OnB.fromJson(reader, - customScalarAdapters) + _onB = com.example.path_vs_flat_accessors.adapter.TestQuery_ResponseAdapter.Data.Root.OnA.OnB.fromJson(reader, customScalarAdapters) } return TestQuery.Data.Root.OnA( @@ -146,16 +138,14 @@ public object TestQuery_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.__typename) if (value.onB != null) { - com.example.path_vs_flat_accessors.adapter.TestQuery_ResponseAdapter.Data.Root.OnA.OnB.toJson(writer, - customScalarAdapters, value.onB) + com.example.path_vs_flat_accessors.adapter.TestQuery_ResponseAdapter.Data.Root.OnA.OnB.toJson(writer, customScalarAdapters, value.onB) } } private object OnB : Adapter { public val RESPONSE_NAMES: List = listOf("fieldB1") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Root.OnA.OnB { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Root.OnA.OnB { var _fieldB1: String? = null while (true) { @@ -184,8 +174,7 @@ public object TestQuery_ResponseAdapter { private object OnB : Adapter { public val RESPONSE_NAMES: List = listOf("fieldB2") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Root.OnB { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Root.OnB { var _fieldB2: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/path_vs_flat_accessors/kotlin/responseBased/path_vs_flat_accessors/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/path_vs_flat_accessors/kotlin/responseBased/path_vs_flat_accessors/TestQuery.kt.expected index 5d83d0f0eff..80200afde1a 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/path_vs_flat_accessors/kotlin/responseBased/path_vs_flat_accessors/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/path_vs_flat_accessors/kotlin/responseBased/path_vs_flat_accessors/TestQuery.kt.expected @@ -82,7 +82,8 @@ public class TestQuery() : Query { override val __typename: String, public val fieldB1: String?, override val fieldB2: String?, - ) : ARoot, BRoot + ) : ARoot, + BRoot public data class OtherRoot( override val __typename: String, @@ -124,8 +125,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { root { __typename ... on A { __typename ... on B { fieldB1 } } ... on B { fieldB2 } } }" + get() = "query TestQuery { root { __typename ... on A { __typename ... on B { fieldB1 } } ... on B { fieldB2 } } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/path_vs_flat_accessors/kotlin/responseBased/path_vs_flat_accessors/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/path_vs_flat_accessors/kotlin/responseBased/path_vs_flat_accessors/adapter/TestQuery_ResponseAdapter.kt.expected index 3ec7802b2c9..6966d891fb7 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/path_vs_flat_accessors/kotlin/responseBased/path_vs_flat_accessors/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/path_vs_flat_accessors/kotlin/responseBased/path_vs_flat_accessors/adapter/TestQuery_ResponseAdapter.kt.expected @@ -24,8 +24,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("root") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _root: TestQuery.Data.Root? = null while (true) { @@ -50,8 +49,7 @@ public object TestQuery_ResponseAdapter { } private object Root : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Root { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Root { val __typename = reader.readTypename() return when(__typename) { "ABC", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/recursive_selection/kotlin/responseBased/recursive_selection/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/recursive_selection/kotlin/responseBased/recursive_selection/adapter/TestQuery_ResponseAdapter.kt.expected index 6b970af97ff..25f8bd4b90d 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/recursive_selection/kotlin/responseBased/recursive_selection/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/recursive_selection/kotlin/responseBased/recursive_selection/adapter/TestQuery_ResponseAdapter.kt.expected @@ -22,8 +22,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("tree") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _tree: TestQuery.Data.Tree? = null while (true) { @@ -50,8 +49,7 @@ public object TestQuery_ResponseAdapter { private object Tree : Adapter { public val RESPONSE_NAMES: List = listOf("name", "children", "parent") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Tree { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Tree { var _name: String? = null var _children: List? = null var _parent: TestQuery.Data.Tree.Parent? = null @@ -90,8 +88,7 @@ public object TestQuery_ResponseAdapter { private object Child : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Tree.Child { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Tree.Child { var _name: String? = null while (true) { @@ -119,8 +116,7 @@ public object TestQuery_ResponseAdapter { private object Parent : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Tree.Parent { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Tree.Parent { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/reserved_keywords/kotlin/operationBased/reserved_keywords/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/reserved_keywords/kotlin/operationBased/reserved_keywords/TestQuery.kt.expected index bbe41825b04..f455b8ef2f4 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/reserved_keywords/kotlin/operationBased/reserved_keywords/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/reserved_keywords/kotlin/operationBased/reserved_keywords/TestQuery.kt.expected @@ -107,8 +107,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { yield: hero { while: id it: name } objects: search(text: \"abc\") { __typename ... on Character { name } } }" + get() = "query TestQuery { yield: hero { while: id it: name } objects: search(text: \"abc\") { __typename ... on Character { name } } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/reserved_keywords/kotlin/operationBased/reserved_keywords/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/reserved_keywords/kotlin/operationBased/reserved_keywords/adapter/TestQuery_ResponseAdapter.kt.expected index dfd50662d36..f9313416469 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/reserved_keywords/kotlin/operationBased/reserved_keywords/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/reserved_keywords/kotlin/operationBased/reserved_keywords/adapter/TestQuery_ResponseAdapter.kt.expected @@ -24,8 +24,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("yield", "objects") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _yield: TestQuery.Data.Yield? = null var _objects: List? = null @@ -52,15 +51,13 @@ public object TestQuery_ResponseAdapter { Yield.obj().nullable().toJson(writer, customScalarAdapters, value.`yield`) writer.name("objects") - Object.obj(true).nullable().list().nullable().toJson(writer, customScalarAdapters, - value.objects) + Object.obj(true).nullable().list().nullable().toJson(writer, customScalarAdapters, value.objects) } private object Yield : Adapter { public val RESPONSE_NAMES: List = listOf("while", "it") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Yield { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Yield { var _while: String? = null var _it: String? = null @@ -94,8 +91,7 @@ public object TestQuery_ResponseAdapter { private object Object : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Object { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Object { var __typename: String? = null while (true) { @@ -112,8 +108,7 @@ public object TestQuery_ResponseAdapter { var _onCharacter: TestQuery.Data.Object.OnCharacter? = null if (possibleTypes("Droid","Human").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onCharacter = com.example.reserved_keywords.adapter.TestQuery_ResponseAdapter.Data.Object.OnCharacter.fromJson(reader, - customScalarAdapters) + _onCharacter = com.example.reserved_keywords.adapter.TestQuery_ResponseAdapter.Data.Object.OnCharacter.fromJson(reader, customScalarAdapters) } return TestQuery.Data.Object( @@ -131,16 +126,14 @@ public object TestQuery_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.__typename) if (value.onCharacter != null) { - com.example.reserved_keywords.adapter.TestQuery_ResponseAdapter.Data.Object.OnCharacter.toJson(writer, - customScalarAdapters, value.onCharacter) + com.example.reserved_keywords.adapter.TestQuery_ResponseAdapter.Data.Object.OnCharacter.toJson(writer, customScalarAdapters, value.onCharacter) } } private object OnCharacter : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Object.OnCharacter { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Object.OnCharacter { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/reserved_keywords/kotlin/responseBased/reserved_keywords/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/reserved_keywords/kotlin/responseBased/reserved_keywords/TestQuery.kt.expected index f07ab618047..d674ae2dd0d 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/reserved_keywords/kotlin/responseBased/reserved_keywords/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/reserved_keywords/kotlin/responseBased/reserved_keywords/TestQuery.kt.expected @@ -114,8 +114,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { yield: hero { while: id it: name } objects: search(text: \"abc\") { __typename ... on Character { name } } }" + get() = "query TestQuery { yield: hero { while: id it: name } objects: search(text: \"abc\") { __typename ... on Character { name } } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/reserved_keywords/kotlin/responseBased/reserved_keywords/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/reserved_keywords/kotlin/responseBased/reserved_keywords/adapter/TestQuery_ResponseAdapter.kt.expected index aaaa67aff7f..194748ce289 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/reserved_keywords/kotlin/responseBased/reserved_keywords/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/reserved_keywords/kotlin/responseBased/reserved_keywords/adapter/TestQuery_ResponseAdapter.kt.expected @@ -24,8 +24,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("yield", "objects") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _yield: TestQuery.Data.Yield? = null var _objects: List? = null @@ -58,8 +57,7 @@ public object TestQuery_ResponseAdapter { private object Yield : Adapter { public val RESPONSE_NAMES: List = listOf("while", "it") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Yield { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Yield { var _while: String? = null var _it: String? = null @@ -91,8 +89,7 @@ public object TestQuery_ResponseAdapter { } private object Object : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Object { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Object { val __typename = reader.readTypename() return when(__typename) { "Droid", @@ -109,8 +106,7 @@ public object TestQuery_ResponseAdapter { `value`: TestQuery.Data.Object, ) { when(value) { - is TestQuery.Data.CharacterObject -> CharacterObject.toJson(writer, customScalarAdapters, - value) + is TestQuery.Data.CharacterObject -> CharacterObject.toJson(writer, customScalarAdapters, value) is TestQuery.Data.OtherObject -> OtherObject.toJson(writer, customScalarAdapters, value) } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment/kotlin/operationBased/root_query_fragment/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment/kotlin/operationBased/root_query_fragment/TestQuery.kt.expected index 2451749fc9b..865ec9d2c2a 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment/kotlin/operationBased/root_query_fragment/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment/kotlin/operationBased/root_query_fragment/TestQuery.kt.expected @@ -81,8 +81,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { __typename ...QueryFragment } fragment QueryFragment on Query { __typename hero { name } }" + get() = "query TestQuery { __typename ...QueryFragment } fragment QueryFragment on Query { __typename hero { name } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment/kotlin/operationBased/root_query_fragment/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment/kotlin/operationBased/root_query_fragment/adapter/TestQuery_ResponseAdapter.kt.expected index 4ede55c91aa..3bdef6ec1c4 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment/kotlin/operationBased/root_query_fragment/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment/kotlin/operationBased/root_query_fragment/adapter/TestQuery_ResponseAdapter.kt.expected @@ -19,8 +19,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var __typename: String? = null while (true) { @@ -31,8 +30,7 @@ public object TestQuery_ResponseAdapter { } reader.rewind() - val _queryFragment = com.example.root_query_fragment.fragment.QueryFragmentImpl_ResponseAdapter.QueryFragment.fromJson(reader, - customScalarAdapters) + val _queryFragment = com.example.root_query_fragment.fragment.QueryFragmentImpl_ResponseAdapter.QueryFragment.fromJson(reader, customScalarAdapters) return TestQuery.Data( __typename = __typename ?: missingField(reader, "__typename"), @@ -48,8 +46,7 @@ public object TestQuery_ResponseAdapter { writer.name("__typename") StringAdapter.toJson(writer, customScalarAdapters, value.__typename) - com.example.root_query_fragment.fragment.QueryFragmentImpl_ResponseAdapter.QueryFragment.toJson(writer, - customScalarAdapters, value.queryFragment) + com.example.root_query_fragment.fragment.QueryFragmentImpl_ResponseAdapter.QueryFragment.toJson(writer, customScalarAdapters, value.queryFragment) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment/kotlin/operationBased/root_query_fragment/fragment/QueryFragmentImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment/kotlin/operationBased/root_query_fragment/fragment/QueryFragmentImpl.kt.expected index 61046fcb954..3410486d663 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment/kotlin/operationBased/root_query_fragment/fragment/QueryFragmentImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment/kotlin/operationBased/root_query_fragment/fragment/QueryFragmentImpl.kt.expected @@ -30,8 +30,7 @@ public class QueryFragmentImpl() : Fragment { // This fragment doesn't have any variable } - override fun adapter(): Adapter = - QueryFragmentImpl_ResponseAdapter.QueryFragment.obj() + override fun adapter(): Adapter = QueryFragmentImpl_ResponseAdapter.QueryFragment.obj() override fun rootField(): CompiledField = CompiledField.Builder( name = "data", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment/kotlin/operationBased/root_query_fragment/fragment/QueryFragmentImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment/kotlin/operationBased/root_query_fragment/fragment/QueryFragmentImpl_ResponseAdapter.kt.expected index 70d64b43f1d..c3d8f7881a6 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment/kotlin/operationBased/root_query_fragment/fragment/QueryFragmentImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment/kotlin/operationBased/root_query_fragment/fragment/QueryFragmentImpl_ResponseAdapter.kt.expected @@ -20,8 +20,7 @@ public object QueryFragmentImpl_ResponseAdapter { public object QueryFragment : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.root_query_fragment.fragment.QueryFragment { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.root_query_fragment.fragment.QueryFragment { var __typename: String? = null var _hero: com.example.root_query_fragment.fragment.QueryFragment.Hero? = null @@ -54,8 +53,7 @@ public object QueryFragmentImpl_ResponseAdapter { private object Hero : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.root_query_fragment.fragment.QueryFragment.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.root_query_fragment.fragment.QueryFragment.Hero { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment/kotlin/responseBased/root_query_fragment/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment/kotlin/responseBased/root_query_fragment/TestQuery.kt.expected index 764fb983135..884c8c1494f 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment/kotlin/responseBased/root_query_fragment/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment/kotlin/responseBased/root_query_fragment/TestQuery.kt.expected @@ -54,7 +54,8 @@ public class TestQuery() : Query { public data class Data( override val __typename: String, override val hero: Hero?, - ) : QueryFragment, Query.Data { + ) : QueryFragment, + Query.Data { public data class Hero( /** * The name of the character @@ -91,8 +92,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { __typename ...QueryFragment } fragment QueryFragment on Query { __typename hero { name } }" + get() = "query TestQuery { __typename ...QueryFragment } fragment QueryFragment on Query { __typename hero { name } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment/kotlin/responseBased/root_query_fragment/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment/kotlin/responseBased/root_query_fragment/adapter/TestQuery_ResponseAdapter.kt.expected index b57a7e0047e..ab14af54be4 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment/kotlin/responseBased/root_query_fragment/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment/kotlin/responseBased/root_query_fragment/adapter/TestQuery_ResponseAdapter.kt.expected @@ -21,8 +21,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var __typename: String? = null var _hero: TestQuery.Data.Hero? = null @@ -55,8 +54,7 @@ public object TestQuery_ResponseAdapter { private object Hero : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment/kotlin/responseBased/root_query_fragment/fragment/QueryFragmentImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment/kotlin/responseBased/root_query_fragment/fragment/QueryFragmentImpl.kt.expected index c0a310f3696..0642f8090c4 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment/kotlin/responseBased/root_query_fragment/fragment/QueryFragmentImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment/kotlin/responseBased/root_query_fragment/fragment/QueryFragmentImpl.kt.expected @@ -43,7 +43,8 @@ public class QueryFragmentImpl() : Fragment { public data class Data( override val __typename: String, override val hero: Hero?, - ) : QueryFragment, Fragment.Data { + ) : QueryFragment, + Fragment.Data { public data class Hero( /** * The name of the character diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment/kotlin/responseBased/root_query_fragment/fragment/QueryFragmentImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment/kotlin/responseBased/root_query_fragment/fragment/QueryFragmentImpl_ResponseAdapter.kt.expected index 44c597aaf41..418223ac0bb 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment/kotlin/responseBased/root_query_fragment/fragment/QueryFragmentImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment/kotlin/responseBased/root_query_fragment/fragment/QueryFragmentImpl_ResponseAdapter.kt.expected @@ -20,8 +20,7 @@ public object QueryFragmentImpl_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - QueryFragmentImpl.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): QueryFragmentImpl.Data { var __typename: String? = null var _hero: QueryFragmentImpl.Data.Hero? = null @@ -54,8 +53,7 @@ public object QueryFragmentImpl_ResponseAdapter { private object Hero : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - QueryFragmentImpl.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): QueryFragmentImpl.Data.Hero { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/operationBased/root_query_fragment_with_nested_fragments/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/operationBased/root_query_fragment_with_nested_fragments/TestQuery.kt.expected index b533b92500d..b21d4018ebd 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/operationBased/root_query_fragment_with_nested_fragments/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/operationBased/root_query_fragment_with_nested_fragments/TestQuery.kt.expected @@ -102,8 +102,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { __typename ...QueryFragment } fragment heroFragment on Character { name } fragment droidFragment on Droid { name primaryFunction } fragment QueryFragment on Query { __typename hero { __typename ...heroFragment } droid(id: 1) { __typename ...droidFragment } human(id: 1) { __typename ... on Human { name homePlanet } } }" + get() = "query TestQuery { __typename ...QueryFragment } fragment heroFragment on Character { name } fragment droidFragment on Droid { name primaryFunction } fragment QueryFragment on Query { __typename hero { __typename ...heroFragment } droid(id: 1) { __typename ...droidFragment } human(id: 1) { __typename ... on Human { name homePlanet } } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/operationBased/root_query_fragment_with_nested_fragments/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/operationBased/root_query_fragment_with_nested_fragments/adapter/TestQuery_ResponseAdapter.kt.expected index d10563df534..cc69c04b2fd 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/operationBased/root_query_fragment_with_nested_fragments/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/operationBased/root_query_fragment_with_nested_fragments/adapter/TestQuery_ResponseAdapter.kt.expected @@ -19,8 +19,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var __typename: String? = null while (true) { @@ -31,8 +30,7 @@ public object TestQuery_ResponseAdapter { } reader.rewind() - val _queryFragment = com.example.root_query_fragment_with_nested_fragments.fragment.QueryFragmentImpl_ResponseAdapter.QueryFragment.fromJson(reader, - customScalarAdapters) + val _queryFragment = com.example.root_query_fragment_with_nested_fragments.fragment.QueryFragmentImpl_ResponseAdapter.QueryFragment.fromJson(reader, customScalarAdapters) return TestQuery.Data( __typename = __typename ?: missingField(reader, "__typename"), @@ -48,8 +46,7 @@ public object TestQuery_ResponseAdapter { writer.name("__typename") StringAdapter.toJson(writer, customScalarAdapters, value.__typename) - com.example.root_query_fragment_with_nested_fragments.fragment.QueryFragmentImpl_ResponseAdapter.QueryFragment.toJson(writer, - customScalarAdapters, value.queryFragment) + com.example.root_query_fragment_with_nested_fragments.fragment.QueryFragmentImpl_ResponseAdapter.QueryFragment.toJson(writer, customScalarAdapters, value.queryFragment) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/operationBased/root_query_fragment_with_nested_fragments/fragment/DroidFragmentImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/operationBased/root_query_fragment_with_nested_fragments/fragment/DroidFragmentImpl.kt.expected index f1c73c6e752..d2564cf7b80 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/operationBased/root_query_fragment_with_nested_fragments/fragment/DroidFragmentImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/operationBased/root_query_fragment_with_nested_fragments/fragment/DroidFragmentImpl.kt.expected @@ -30,8 +30,7 @@ public class DroidFragmentImpl() : Fragment { // This fragment doesn't have any variable } - override fun adapter(): Adapter = - DroidFragmentImpl_ResponseAdapter.DroidFragment.obj() + override fun adapter(): Adapter = DroidFragmentImpl_ResponseAdapter.DroidFragment.obj() override fun rootField(): CompiledField = CompiledField.Builder( name = "data", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/operationBased/root_query_fragment_with_nested_fragments/fragment/DroidFragmentImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/operationBased/root_query_fragment_with_nested_fragments/fragment/DroidFragmentImpl_ResponseAdapter.kt.expected index fffa3ea2970..2cbd3ea3201 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/operationBased/root_query_fragment_with_nested_fragments/fragment/DroidFragmentImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/operationBased/root_query_fragment_with_nested_fragments/fragment/DroidFragmentImpl_ResponseAdapter.kt.expected @@ -16,12 +16,10 @@ import kotlin.String import kotlin.collections.List public object DroidFragmentImpl_ResponseAdapter { - public object DroidFragment : - Adapter { + public object DroidFragment : Adapter { public val RESPONSE_NAMES: List = listOf("name", "primaryFunction") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.root_query_fragment_with_nested_fragments.fragment.DroidFragment { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.root_query_fragment_with_nested_fragments.fragment.DroidFragment { var _name: String? = null var _primaryFunction: String? = null diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/operationBased/root_query_fragment_with_nested_fragments/fragment/HeroFragmentImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/operationBased/root_query_fragment_with_nested_fragments/fragment/HeroFragmentImpl.kt.expected index 603faca2828..1deecdcccbf 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/operationBased/root_query_fragment_with_nested_fragments/fragment/HeroFragmentImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/operationBased/root_query_fragment_with_nested_fragments/fragment/HeroFragmentImpl.kt.expected @@ -30,8 +30,7 @@ public class HeroFragmentImpl() : Fragment { // This fragment doesn't have any variable } - override fun adapter(): Adapter = - HeroFragmentImpl_ResponseAdapter.HeroFragment.obj() + override fun adapter(): Adapter = HeroFragmentImpl_ResponseAdapter.HeroFragment.obj() override fun rootField(): CompiledField = CompiledField.Builder( name = "data", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/operationBased/root_query_fragment_with_nested_fragments/fragment/HeroFragmentImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/operationBased/root_query_fragment_with_nested_fragments/fragment/HeroFragmentImpl_ResponseAdapter.kt.expected index dde4917c499..2929c2c43d3 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/operationBased/root_query_fragment_with_nested_fragments/fragment/HeroFragmentImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/operationBased/root_query_fragment_with_nested_fragments/fragment/HeroFragmentImpl_ResponseAdapter.kt.expected @@ -15,12 +15,10 @@ import kotlin.String import kotlin.collections.List public object HeroFragmentImpl_ResponseAdapter { - public object HeroFragment : - Adapter { + public object HeroFragment : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.root_query_fragment_with_nested_fragments.fragment.HeroFragment { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.root_query_fragment_with_nested_fragments.fragment.HeroFragment { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/operationBased/root_query_fragment_with_nested_fragments/fragment/QueryFragmentImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/operationBased/root_query_fragment_with_nested_fragments/fragment/QueryFragmentImpl.kt.expected index 470b0a5eac4..a426c61863b 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/operationBased/root_query_fragment_with_nested_fragments/fragment/QueryFragmentImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/operationBased/root_query_fragment_with_nested_fragments/fragment/QueryFragmentImpl.kt.expected @@ -30,8 +30,7 @@ public class QueryFragmentImpl() : Fragment { // This fragment doesn't have any variable } - override fun adapter(): Adapter = - QueryFragmentImpl_ResponseAdapter.QueryFragment.obj() + override fun adapter(): Adapter = QueryFragmentImpl_ResponseAdapter.QueryFragment.obj() override fun rootField(): CompiledField = CompiledField.Builder( name = "data", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/operationBased/root_query_fragment_with_nested_fragments/fragment/QueryFragmentImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/operationBased/root_query_fragment_with_nested_fragments/fragment/QueryFragmentImpl_ResponseAdapter.kt.expected index c271c44fe02..c4d6b37e9c5 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/operationBased/root_query_fragment_with_nested_fragments/fragment/QueryFragmentImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/operationBased/root_query_fragment_with_nested_fragments/fragment/QueryFragmentImpl_ResponseAdapter.kt.expected @@ -18,12 +18,10 @@ import kotlin.String import kotlin.collections.List public object QueryFragmentImpl_ResponseAdapter { - public object QueryFragment : - Adapter { + public object QueryFragment : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "hero", "droid", "human") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.root_query_fragment_with_nested_fragments.fragment.QueryFragment { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.root_query_fragment_with_nested_fragments.fragment.QueryFragment { var __typename: String? = null var _hero: com.example.root_query_fragment_with_nested_fragments.fragment.QueryFragment.Hero? = null var _droid: com.example.root_query_fragment_with_nested_fragments.fragment.QueryFragment.Droid? = null @@ -65,12 +63,10 @@ public object QueryFragmentImpl_ResponseAdapter { Human.obj(true).nullable().toJson(writer, customScalarAdapters, value.human) } - private object Hero : - Adapter { + private object Hero : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.root_query_fragment_with_nested_fragments.fragment.QueryFragment.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.root_query_fragment_with_nested_fragments.fragment.QueryFragment.Hero { var __typename: String? = null while (true) { @@ -81,8 +77,7 @@ public object QueryFragmentImpl_ResponseAdapter { } reader.rewind() - val _heroFragment = com.example.root_query_fragment_with_nested_fragments.fragment.HeroFragmentImpl_ResponseAdapter.HeroFragment.fromJson(reader, - customScalarAdapters) + val _heroFragment = com.example.root_query_fragment_with_nested_fragments.fragment.HeroFragmentImpl_ResponseAdapter.HeroFragment.fromJson(reader, customScalarAdapters) return com.example.root_query_fragment_with_nested_fragments.fragment.QueryFragment.Hero( __typename = __typename ?: missingField(reader, "__typename"), @@ -98,18 +93,14 @@ public object QueryFragmentImpl_ResponseAdapter { writer.name("__typename") StringAdapter.toJson(writer, customScalarAdapters, value.__typename) - com.example.root_query_fragment_with_nested_fragments.fragment.HeroFragmentImpl_ResponseAdapter.HeroFragment.toJson(writer, - customScalarAdapters, value.heroFragment) + com.example.root_query_fragment_with_nested_fragments.fragment.HeroFragmentImpl_ResponseAdapter.HeroFragment.toJson(writer, customScalarAdapters, value.heroFragment) } } - private object Droid : - Adapter - { + private object Droid : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.root_query_fragment_with_nested_fragments.fragment.QueryFragment.Droid { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.root_query_fragment_with_nested_fragments.fragment.QueryFragment.Droid { var __typename: String? = null while (true) { @@ -120,8 +111,7 @@ public object QueryFragmentImpl_ResponseAdapter { } reader.rewind() - val _droidFragment = com.example.root_query_fragment_with_nested_fragments.fragment.DroidFragmentImpl_ResponseAdapter.DroidFragment.fromJson(reader, - customScalarAdapters) + val _droidFragment = com.example.root_query_fragment_with_nested_fragments.fragment.DroidFragmentImpl_ResponseAdapter.DroidFragment.fromJson(reader, customScalarAdapters) return com.example.root_query_fragment_with_nested_fragments.fragment.QueryFragment.Droid( __typename = __typename ?: missingField(reader, "__typename"), @@ -137,18 +127,14 @@ public object QueryFragmentImpl_ResponseAdapter { writer.name("__typename") StringAdapter.toJson(writer, customScalarAdapters, value.__typename) - com.example.root_query_fragment_with_nested_fragments.fragment.DroidFragmentImpl_ResponseAdapter.DroidFragment.toJson(writer, - customScalarAdapters, value.droidFragment) + com.example.root_query_fragment_with_nested_fragments.fragment.DroidFragmentImpl_ResponseAdapter.DroidFragment.toJson(writer, customScalarAdapters, value.droidFragment) } } - private object Human : - Adapter - { + private object Human : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.root_query_fragment_with_nested_fragments.fragment.QueryFragment.Human { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.root_query_fragment_with_nested_fragments.fragment.QueryFragment.Human { var __typename: String? = null while (true) { @@ -159,8 +145,7 @@ public object QueryFragmentImpl_ResponseAdapter { } reader.rewind() - val _onHuman = com.example.root_query_fragment_with_nested_fragments.fragment.QueryFragmentImpl_ResponseAdapter.QueryFragment.Human.OnHuman.fromJson(reader, - customScalarAdapters) + val _onHuman = com.example.root_query_fragment_with_nested_fragments.fragment.QueryFragmentImpl_ResponseAdapter.QueryFragment.Human.OnHuman.fromJson(reader, customScalarAdapters) return com.example.root_query_fragment_with_nested_fragments.fragment.QueryFragment.Human( __typename = __typename ?: missingField(reader, "__typename"), @@ -176,17 +161,13 @@ public object QueryFragmentImpl_ResponseAdapter { writer.name("__typename") StringAdapter.toJson(writer, customScalarAdapters, value.__typename) - com.example.root_query_fragment_with_nested_fragments.fragment.QueryFragmentImpl_ResponseAdapter.QueryFragment.Human.OnHuman.toJson(writer, - customScalarAdapters, value.onHuman) + com.example.root_query_fragment_with_nested_fragments.fragment.QueryFragmentImpl_ResponseAdapter.QueryFragment.Human.OnHuman.toJson(writer, customScalarAdapters, value.onHuman) } - private object OnHuman : - Adapter - { + private object OnHuman : Adapter { public val RESPONSE_NAMES: List = listOf("name", "homePlanet") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.root_query_fragment_with_nested_fragments.fragment.QueryFragment.Human.OnHuman { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.root_query_fragment_with_nested_fragments.fragment.QueryFragment.Human.OnHuman { var _name: String? = null var _homePlanet: String? = null diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/responseBased/root_query_fragment_with_nested_fragments/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/responseBased/root_query_fragment_with_nested_fragments/TestQuery.kt.expected index 15311b987d0..d5cc31c89b2 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/responseBased/root_query_fragment_with_nested_fragments/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/responseBased/root_query_fragment_with_nested_fragments/TestQuery.kt.expected @@ -58,14 +58,16 @@ public class TestQuery() : Query { override val hero: Hero?, override val droid: Droid?, override val human: Human?, - ) : QueryFragment, Query.Data { + ) : QueryFragment, + Query.Data { public data class Hero( override val __typename: String, /** * The name of the character */ override val name: String, - ) : HeroFragment, QueryFragment.Hero { + ) : HeroFragment, + QueryFragment.Hero { public companion object { @Suppress("USELESS_CAST") public fun Hero.heroFragment(): HeroFragment? = this as? HeroFragment @@ -82,7 +84,8 @@ public class TestQuery() : Query { * This droid's primary function */ override val primaryFunction: String?, - ) : DroidFragment, QueryFragment.Droid { + ) : DroidFragment, + QueryFragment.Droid { public companion object { @Suppress("USELESS_CAST") public fun Droid.droidFragment(): DroidFragment? = this as? DroidFragment @@ -151,8 +154,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { __typename ...QueryFragment } fragment heroFragment on Character { name } fragment droidFragment on Droid { name primaryFunction } fragment QueryFragment on Query { __typename hero { __typename ...heroFragment } droid(id: 1) { __typename ...droidFragment } human(id: 1) { __typename ... on Human { name homePlanet } } }" + get() = "query TestQuery { __typename ...QueryFragment } fragment heroFragment on Character { name } fragment droidFragment on Droid { name primaryFunction } fragment QueryFragment on Query { __typename hero { __typename ...heroFragment } droid(id: 1) { __typename ...droidFragment } human(id: 1) { __typename ... on Human { name homePlanet } } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/responseBased/root_query_fragment_with_nested_fragments/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/responseBased/root_query_fragment_with_nested_fragments/adapter/TestQuery_ResponseAdapter.kt.expected index 7abebb91d8c..6887291d07b 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/responseBased/root_query_fragment_with_nested_fragments/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/responseBased/root_query_fragment_with_nested_fragments/adapter/TestQuery_ResponseAdapter.kt.expected @@ -22,8 +22,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "hero", "droid", "human") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var __typename: String? = null var _hero: TestQuery.Data.Hero? = null var _droid: TestQuery.Data.Droid? = null @@ -68,8 +67,7 @@ public object TestQuery_ResponseAdapter { private object Hero : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero { var __typename: String? = null var _name: String? = null @@ -103,8 +101,7 @@ public object TestQuery_ResponseAdapter { private object Droid : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "name", "primaryFunction") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Droid { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Droid { var __typename: String? = null var _name: String? = null var _primaryFunction: String? = null @@ -144,8 +141,7 @@ public object TestQuery_ResponseAdapter { private object Human : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "name", "homePlanet") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Human { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Human { var __typename: String? = null var _name: String? = null var _homePlanet: String? = null diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/responseBased/root_query_fragment_with_nested_fragments/fragment/DroidFragmentImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/responseBased/root_query_fragment_with_nested_fragments/fragment/DroidFragmentImpl.kt.expected index b2ef4428220..163d6c99d1b 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/responseBased/root_query_fragment_with_nested_fragments/fragment/DroidFragmentImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/responseBased/root_query_fragment_with_nested_fragments/fragment/DroidFragmentImpl.kt.expected @@ -49,5 +49,6 @@ public class DroidFragmentImpl() : Fragment { * This droid's primary function */ override val primaryFunction: String?, - ) : DroidFragment, Fragment.Data + ) : DroidFragment, + Fragment.Data } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/responseBased/root_query_fragment_with_nested_fragments/fragment/DroidFragmentImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/responseBased/root_query_fragment_with_nested_fragments/fragment/DroidFragmentImpl_ResponseAdapter.kt.expected index 585a92e6d88..9e21a78ce64 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/responseBased/root_query_fragment_with_nested_fragments/fragment/DroidFragmentImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/responseBased/root_query_fragment_with_nested_fragments/fragment/DroidFragmentImpl_ResponseAdapter.kt.expected @@ -19,8 +19,7 @@ public object DroidFragmentImpl_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("name", "primaryFunction") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - DroidFragmentImpl.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): DroidFragmentImpl.Data { var _name: String? = null var _primaryFunction: String? = null diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/responseBased/root_query_fragment_with_nested_fragments/fragment/HeroFragmentImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/responseBased/root_query_fragment_with_nested_fragments/fragment/HeroFragmentImpl.kt.expected index 8174bb97103..e0628017d15 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/responseBased/root_query_fragment_with_nested_fragments/fragment/HeroFragmentImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/responseBased/root_query_fragment_with_nested_fragments/fragment/HeroFragmentImpl.kt.expected @@ -45,5 +45,6 @@ public class HeroFragmentImpl() : Fragment { * The name of the character */ override val name: String, - ) : HeroFragment, Fragment.Data + ) : HeroFragment, + Fragment.Data } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/responseBased/root_query_fragment_with_nested_fragments/fragment/HeroFragmentImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/responseBased/root_query_fragment_with_nested_fragments/fragment/HeroFragmentImpl_ResponseAdapter.kt.expected index 52bff86a614..d7fa58ee022 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/responseBased/root_query_fragment_with_nested_fragments/fragment/HeroFragmentImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/responseBased/root_query_fragment_with_nested_fragments/fragment/HeroFragmentImpl_ResponseAdapter.kt.expected @@ -18,8 +18,7 @@ public object HeroFragmentImpl_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - HeroFragmentImpl.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): HeroFragmentImpl.Data { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/responseBased/root_query_fragment_with_nested_fragments/fragment/QueryFragmentImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/responseBased/root_query_fragment_with_nested_fragments/fragment/QueryFragmentImpl.kt.expected index 94fdbdf6157..213f37505c9 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/responseBased/root_query_fragment_with_nested_fragments/fragment/QueryFragmentImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/responseBased/root_query_fragment_with_nested_fragments/fragment/QueryFragmentImpl.kt.expected @@ -46,14 +46,16 @@ public class QueryFragmentImpl() : Fragment { override val hero: Hero?, override val droid: Droid?, override val human: Human?, - ) : QueryFragment, Fragment.Data { + ) : QueryFragment, + Fragment.Data { public data class Hero( override val __typename: String, /** * The name of the character */ override val name: String, - ) : HeroFragment, QueryFragment.Hero { + ) : HeroFragment, + QueryFragment.Hero { public companion object { @Suppress("USELESS_CAST") public fun Hero.heroFragment(): HeroFragment? = this as? HeroFragment @@ -70,7 +72,8 @@ public class QueryFragmentImpl() : Fragment { * This droid's primary function */ override val primaryFunction: String?, - ) : DroidFragment, QueryFragment.Droid { + ) : DroidFragment, + QueryFragment.Droid { public companion object { @Suppress("USELESS_CAST") public fun Droid.droidFragment(): DroidFragment? = this as? DroidFragment diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/responseBased/root_query_fragment_with_nested_fragments/fragment/QueryFragmentImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/responseBased/root_query_fragment_with_nested_fragments/fragment/QueryFragmentImpl_ResponseAdapter.kt.expected index 546884fa378..733fc2718b4 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/responseBased/root_query_fragment_with_nested_fragments/fragment/QueryFragmentImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_fragment_with_nested_fragments/kotlin/responseBased/root_query_fragment_with_nested_fragments/fragment/QueryFragmentImpl_ResponseAdapter.kt.expected @@ -21,8 +21,7 @@ public object QueryFragmentImpl_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "hero", "droid", "human") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - QueryFragmentImpl.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): QueryFragmentImpl.Data { var __typename: String? = null var _hero: QueryFragmentImpl.Data.Hero? = null var _droid: QueryFragmentImpl.Data.Droid? = null @@ -67,8 +66,7 @@ public object QueryFragmentImpl_ResponseAdapter { private object Hero : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - QueryFragmentImpl.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): QueryFragmentImpl.Data.Hero { var __typename: String? = null var _name: String? = null @@ -102,8 +100,7 @@ public object QueryFragmentImpl_ResponseAdapter { private object Droid : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "name", "primaryFunction") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - QueryFragmentImpl.Data.Droid { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): QueryFragmentImpl.Data.Droid { var __typename: String? = null var _name: String? = null var _primaryFunction: String? = null @@ -143,8 +140,7 @@ public object QueryFragmentImpl_ResponseAdapter { private object Human : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "name", "homePlanet") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - QueryFragmentImpl.Data.Human { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): QueryFragmentImpl.Data.Human { var __typename: String? = null var _name: String? = null var _homePlanet: String? = null diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_inline_fragment/kotlin/operationBased/root_query_inline_fragment/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_inline_fragment/kotlin/operationBased/root_query_inline_fragment/TestQuery.kt.expected index 4e08a76f562..6f83c66136d 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_inline_fragment/kotlin/operationBased/root_query_inline_fragment/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_inline_fragment/kotlin/operationBased/root_query_inline_fragment/TestQuery.kt.expected @@ -143,8 +143,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { __typename ... on Query { __typename hero { __typename name appearsIn ... on Human { height } } droid(id: 1) { __typename ... on Droid { name primaryFunction } } } }" + get() = "query TestQuery { __typename ... on Query { __typename hero { __typename name appearsIn ... on Human { height } } droid(id: 1) { __typename ... on Droid { name primaryFunction } } } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_inline_fragment/kotlin/operationBased/root_query_inline_fragment/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_inline_fragment/kotlin/operationBased/root_query_inline_fragment/adapter/TestQuery_ResponseAdapter.kt.expected index 60cb871ce1e..43d7d84b11e 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_inline_fragment/kotlin/operationBased/root_query_inline_fragment/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_inline_fragment/kotlin/operationBased/root_query_inline_fragment/adapter/TestQuery_ResponseAdapter.kt.expected @@ -29,8 +29,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var __typename: String? = null while (true) { @@ -41,8 +40,7 @@ public object TestQuery_ResponseAdapter { } reader.rewind() - val _onQuery = com.example.root_query_inline_fragment.adapter.TestQuery_ResponseAdapter.Data.OnQuery.fromJson(reader, - customScalarAdapters) + val _onQuery = com.example.root_query_inline_fragment.adapter.TestQuery_ResponseAdapter.Data.OnQuery.fromJson(reader, customScalarAdapters) return TestQuery.Data( __typename = __typename ?: missingField(reader, "__typename"), @@ -58,15 +56,13 @@ public object TestQuery_ResponseAdapter { writer.name("__typename") StringAdapter.toJson(writer, customScalarAdapters, value.__typename) - com.example.root_query_inline_fragment.adapter.TestQuery_ResponseAdapter.Data.OnQuery.toJson(writer, - customScalarAdapters, value.onQuery) + com.example.root_query_inline_fragment.adapter.TestQuery_ResponseAdapter.Data.OnQuery.toJson(writer, customScalarAdapters, value.onQuery) } private object OnQuery : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "hero", "droid") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.OnQuery { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.OnQuery { var __typename: String? = null var _hero: TestQuery.Data.OnQuery.Hero? = null var _droid: TestQuery.Data.OnQuery.Droid? = null @@ -105,8 +101,7 @@ public object TestQuery_ResponseAdapter { private object Hero : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "name", "appearsIn") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.OnQuery.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.OnQuery.Hero { var __typename: String? = null var _name: String? = null var _appearsIn: List? = null @@ -127,8 +122,7 @@ public object TestQuery_ResponseAdapter { var _onHuman: TestQuery.Data.OnQuery.Hero.OnHuman? = null if (possibleTypes("Human").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onHuman = com.example.root_query_inline_fragment.adapter.TestQuery_ResponseAdapter.Data.OnQuery.Hero.OnHuman.fromJson(reader, - customScalarAdapters) + _onHuman = com.example.root_query_inline_fragment.adapter.TestQuery_ResponseAdapter.Data.OnQuery.Hero.OnHuman.fromJson(reader, customScalarAdapters) } return TestQuery.Data.OnQuery.Hero( @@ -151,20 +145,17 @@ public object TestQuery_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.name) writer.name("appearsIn") - Episode_ResponseAdapter.nullable().list().toJson(writer, customScalarAdapters, - value.appearsIn) + Episode_ResponseAdapter.nullable().list().toJson(writer, customScalarAdapters, value.appearsIn) if (value.onHuman != null) { - com.example.root_query_inline_fragment.adapter.TestQuery_ResponseAdapter.Data.OnQuery.Hero.OnHuman.toJson(writer, - customScalarAdapters, value.onHuman) + com.example.root_query_inline_fragment.adapter.TestQuery_ResponseAdapter.Data.OnQuery.Hero.OnHuman.toJson(writer, customScalarAdapters, value.onHuman) } } private object OnHuman : Adapter { public val RESPONSE_NAMES: List = listOf("height") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.OnQuery.Hero.OnHuman { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.OnQuery.Hero.OnHuman { var _height: Double? = null while (true) { @@ -193,8 +184,7 @@ public object TestQuery_ResponseAdapter { private object Droid : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.OnQuery.Droid { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.OnQuery.Droid { var __typename: String? = null while (true) { @@ -205,8 +195,7 @@ public object TestQuery_ResponseAdapter { } reader.rewind() - val _onDroid = com.example.root_query_inline_fragment.adapter.TestQuery_ResponseAdapter.Data.OnQuery.Droid.OnDroid.fromJson(reader, - customScalarAdapters) + val _onDroid = com.example.root_query_inline_fragment.adapter.TestQuery_ResponseAdapter.Data.OnQuery.Droid.OnDroid.fromJson(reader, customScalarAdapters) return TestQuery.Data.OnQuery.Droid( __typename = __typename ?: missingField(reader, "__typename"), @@ -222,15 +211,13 @@ public object TestQuery_ResponseAdapter { writer.name("__typename") StringAdapter.toJson(writer, customScalarAdapters, value.__typename) - com.example.root_query_inline_fragment.adapter.TestQuery_ResponseAdapter.Data.OnQuery.Droid.OnDroid.toJson(writer, - customScalarAdapters, value.onDroid) + com.example.root_query_inline_fragment.adapter.TestQuery_ResponseAdapter.Data.OnQuery.Droid.OnDroid.toJson(writer, customScalarAdapters, value.onDroid) } private object OnDroid : Adapter { public val RESPONSE_NAMES: List = listOf("name", "primaryFunction") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.OnQuery.Droid.OnDroid { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.OnQuery.Droid.OnDroid { var _name: String? = null var _primaryFunction: String? = null diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_inline_fragment/kotlin/operationBased/root_query_inline_fragment/type/Episode.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_inline_fragment/kotlin/operationBased/root_query_inline_fragment/type/Episode.kt.expected index 8e542ecc73d..c11161bc21f 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_inline_fragment/kotlin/operationBased/root_query_inline_fragment/type/Episode.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_inline_fragment/kotlin/operationBased/root_query_inline_fragment/type/Episode.kt.expected @@ -47,8 +47,8 @@ public enum class Episode( ; public companion object { - public val type: EnumType = EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", - "DEPRECATED", "new")) + public val type: EnumType = + EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", "DEPRECATED", "new")) /** * All [Episode] known at compile time @@ -73,10 +73,8 @@ public enum class Episode( /** * Returns the [Episode] that represents the specified [rawValue]. - * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your - * schema instead of calling this function directly. + * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your schema instead of calling this function directly. */ - public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: - UNKNOWN__ + public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: UNKNOWN__ } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_inline_fragment/kotlin/responseBased/root_query_inline_fragment/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_inline_fragment/kotlin/responseBased/root_query_inline_fragment/TestQuery.kt.expected index b9d620725c4..2acfcde56d3 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_inline_fragment/kotlin/responseBased/root_query_inline_fragment/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_inline_fragment/kotlin/responseBased/root_query_inline_fragment/TestQuery.kt.expected @@ -155,8 +155,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { __typename ... on Query { __typename hero { __typename name appearsIn ... on Human { height } } droid(id: 1) { __typename ... on Droid { name primaryFunction } } } }" + get() = "query TestQuery { __typename ... on Query { __typename hero { __typename name appearsIn ... on Human { height } } droid(id: 1) { __typename ... on Droid { name primaryFunction } } } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_inline_fragment/kotlin/responseBased/root_query_inline_fragment/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_inline_fragment/kotlin/responseBased/root_query_inline_fragment/adapter/TestQuery_ResponseAdapter.kt.expected index 499ec3b31b7..59a423f5789 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_inline_fragment/kotlin/responseBased/root_query_inline_fragment/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_inline_fragment/kotlin/responseBased/root_query_inline_fragment/adapter/TestQuery_ResponseAdapter.kt.expected @@ -29,8 +29,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "hero", "droid") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var __typename: String? = null var _hero: TestQuery.Data.Hero? = null var _droid: TestQuery.Data.Droid? = null @@ -67,8 +66,7 @@ public object TestQuery_ResponseAdapter { } private object Hero : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero { val __typename = reader.readTypename() return when(__typename) { "Human", @@ -133,8 +131,7 @@ public object TestQuery_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.name) writer.name("appearsIn") - Episode_ResponseAdapter.nullable().list().toJson(writer, customScalarAdapters, - value.appearsIn) + Episode_ResponseAdapter.nullable().list().toJson(writer, customScalarAdapters, value.appearsIn) writer.name("height") NullableDoubleAdapter.toJson(writer, customScalarAdapters, value.height) @@ -181,16 +178,14 @@ public object TestQuery_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.name) writer.name("appearsIn") - Episode_ResponseAdapter.nullable().list().toJson(writer, customScalarAdapters, - value.appearsIn) + Episode_ResponseAdapter.nullable().list().toJson(writer, customScalarAdapters, value.appearsIn) } } private object Droid : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "name", "primaryFunction") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Droid { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Droid { var __typename: String? = null var _name: String? = null var _primaryFunction: String? = null diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_inline_fragment/kotlin/responseBased/root_query_inline_fragment/type/Episode.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_inline_fragment/kotlin/responseBased/root_query_inline_fragment/type/Episode.kt.expected index 8e542ecc73d..c11161bc21f 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/root_query_inline_fragment/kotlin/responseBased/root_query_inline_fragment/type/Episode.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/root_query_inline_fragment/kotlin/responseBased/root_query_inline_fragment/type/Episode.kt.expected @@ -47,8 +47,8 @@ public enum class Episode( ; public companion object { - public val type: EnumType = EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", - "DEPRECATED", "new")) + public val type: EnumType = + EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", "DEPRECATED", "new")) /** * All [Episode] known at compile time @@ -73,10 +73,8 @@ public enum class Episode( /** * Returns the [Episode] that represents the specified [rawValue]. - * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your - * schema instead of calling this function directly. + * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your schema instead of calling this function directly. */ - public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: - UNKNOWN__ + public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: UNKNOWN__ } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/TestQuery.kt.expected index 09591041a26..44e58502772 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/TestQuery.kt.expected @@ -107,13 +107,11 @@ internal class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { hero { __typename ...HeroDetails ...HumanDetails } } fragment HumanDetails on Human { __typename name } fragment HeroDetails on Character { __typename ...HumanDetails }" + get() = "query TestQuery { hero { __typename ...HeroDetails ...HumanDetails } } fragment HumanDetails on Human { __typename name } fragment HeroDetails on Character { __typename ...HumanDetails }" public const val OPERATION_NAME: String = "TestQuery" - public fun Data(resolver: FakeResolver = DefaultFakeResolver(__Schema.all), - block: QueryBuilder.() -> Unit = {}): Data = buildData( + public fun Data(resolver: FakeResolver = DefaultFakeResolver(__Schema.all), block: QueryBuilder.() -> Unit = {}): Data = buildData( CompiledQuery, block, TestQuery_ResponseAdapter.Data, diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/adapter/TestQuery_ResponseAdapter.kt.expected index bd2ac785e59..bb07e32844e 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/adapter/TestQuery_ResponseAdapter.kt.expected @@ -23,8 +23,7 @@ internal object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _hero: TestQuery.Data.Hero? = null while (true) { @@ -51,8 +50,7 @@ internal object TestQuery_ResponseAdapter { private object Hero : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero { var __typename: String? = null while (true) { @@ -67,14 +65,12 @@ internal object TestQuery_ResponseAdapter { } reader.rewind() - val _heroDetails = com.example.simple_fragment.fragment.HeroDetailsImpl_ResponseAdapter.HeroDetails.fromJson(reader, - customScalarAdapters) + val _heroDetails = com.example.simple_fragment.fragment.HeroDetailsImpl_ResponseAdapter.HeroDetails.fromJson(reader, customScalarAdapters) var _humanDetails: HumanDetails? = null if (possibleTypes("Human").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _humanDetails = com.example.simple_fragment.fragment.HumanDetailsImpl_ResponseAdapter.HumanDetails.fromJson(reader, - customScalarAdapters) + _humanDetails = com.example.simple_fragment.fragment.HumanDetailsImpl_ResponseAdapter.HumanDetails.fromJson(reader, customScalarAdapters) } return TestQuery.Data.Hero( @@ -92,12 +88,10 @@ internal object TestQuery_ResponseAdapter { writer.name("__typename") StringAdapter.toJson(writer, customScalarAdapters, value.__typename) - com.example.simple_fragment.fragment.HeroDetailsImpl_ResponseAdapter.HeroDetails.toJson(writer, - customScalarAdapters, value.heroDetails) + com.example.simple_fragment.fragment.HeroDetailsImpl_ResponseAdapter.HeroDetails.toJson(writer, customScalarAdapters, value.heroDetails) if (value.humanDetails != null) { - com.example.simple_fragment.fragment.HumanDetailsImpl_ResponseAdapter.HumanDetails.toJson(writer, - customScalarAdapters, value.humanDetails) + com.example.simple_fragment.fragment.HumanDetailsImpl_ResponseAdapter.HumanDetails.toJson(writer, customScalarAdapters, value.humanDetails) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/fragment/HeroDetailsImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/fragment/HeroDetailsImpl.kt.expected index deb30370208..369db0514f1 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/fragment/HeroDetailsImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/fragment/HeroDetailsImpl.kt.expected @@ -43,8 +43,7 @@ internal class HeroDetailsImpl() : Fragment { // This fragment doesn't have any variable } - override fun adapter(): Adapter = - HeroDetailsImpl_ResponseAdapter.HeroDetails.obj(true) + override fun adapter(): Adapter = HeroDetailsImpl_ResponseAdapter.HeroDetails.obj(true) override fun rootField(): CompiledField = CompiledField.Builder( name = "data", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected index 07b237efdbf..72a9a5cf27a 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected @@ -19,8 +19,7 @@ internal object HeroDetailsImpl_ResponseAdapter { public object HeroDetails : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.simple_fragment.fragment.HeroDetails { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.simple_fragment.fragment.HeroDetails { var __typename: String? = null while (true) { @@ -37,8 +36,7 @@ internal object HeroDetailsImpl_ResponseAdapter { var _humanDetails: HumanDetails? = null if (possibleTypes("Human").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _humanDetails = com.example.simple_fragment.fragment.HumanDetailsImpl_ResponseAdapter.HumanDetails.fromJson(reader, - customScalarAdapters) + _humanDetails = com.example.simple_fragment.fragment.HumanDetailsImpl_ResponseAdapter.HumanDetails.fromJson(reader, customScalarAdapters) } return com.example.simple_fragment.fragment.HeroDetails( @@ -56,8 +54,7 @@ internal object HeroDetailsImpl_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.__typename) if (value.humanDetails != null) { - com.example.simple_fragment.fragment.HumanDetailsImpl_ResponseAdapter.HumanDetails.toJson(writer, - customScalarAdapters, value.humanDetails) + com.example.simple_fragment.fragment.HumanDetailsImpl_ResponseAdapter.HumanDetails.toJson(writer, customScalarAdapters, value.humanDetails) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/fragment/HumanDetailsImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/fragment/HumanDetailsImpl.kt.expected index 1a688afd341..1fc7bdaf9a0 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/fragment/HumanDetailsImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/fragment/HumanDetailsImpl.kt.expected @@ -40,8 +40,7 @@ internal class HumanDetailsImpl() : Fragment { // This fragment doesn't have any variable } - override fun adapter(): Adapter = - HumanDetailsImpl_ResponseAdapter.HumanDetails.obj() + override fun adapter(): Adapter = HumanDetailsImpl_ResponseAdapter.HumanDetails.obj() override fun rootField(): CompiledField = CompiledField.Builder( name = "data", @@ -51,8 +50,7 @@ internal class HumanDetailsImpl() : Fragment { .build() public companion object { - public fun Data(resolver: FakeResolver = DefaultFakeResolver(__Schema.all), - block: HumanBuilder.() -> Unit = {}): HumanDetails = buildData( + public fun Data(resolver: FakeResolver = DefaultFakeResolver(__Schema.all), block: HumanBuilder.() -> Unit = {}): HumanDetails = buildData( Human, block, HumanDetailsImpl_ResponseAdapter.HumanDetails, diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected index c6785a63b74..8f1254ca0cd 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected @@ -18,8 +18,7 @@ internal object HumanDetailsImpl_ResponseAdapter { public object HumanDetails : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.simple_fragment.fragment.HumanDetails { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.simple_fragment.fragment.HumanDetails { var __typename: String? = null var _name: String? = null diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/schema/__Schema.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/schema/__Schema.kt.expected index 28cf364805e..b2ade9d7d2a 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/schema/__Schema.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/schema/__Schema.kt.expected @@ -14,14 +14,7 @@ import kotlin.collections.List */ internal object __Schema { public val all: List = listOf( - com.example.simple_fragment.type.Character.type, - com.example.simple_fragment.type.Droid.type, - com.example.simple_fragment.type.Human.type, - com.example.simple_fragment.type.Query.type, - com.example.simple_fragment.type.SearchResult.type, - com.example.simple_fragment.type.Starship.type) + com.example.simple_fragment.type.Character.type, com.example.simple_fragment.type.Droid.type, com.example.simple_fragment.type.Human.type, com.example.simple_fragment.type.Query.type, com.example.simple_fragment.type.SearchResult.type, com.example.simple_fragment.type.Starship.type) - - public fun possibleTypes(type: CompiledNamedType): List = - com.apollographql.apollo.api.possibleTypes(all, type) + public fun possibleTypes(type: CompiledNamedType): List = com.apollographql.apollo.api.possibleTypes(all, type) } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/type/Character.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/type/Character.kt.expected index fabc675fa2b..6e392e664b9 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/type/Character.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/type/Character.kt.expected @@ -22,8 +22,7 @@ internal class Character { public companion object : BuilderFactory { public val type: InterfaceType = InterfaceType.Builder(name = "Character").build() - override fun newBuilder(customScalarAdapters: CustomScalarAdapters): OtherCharacterBuilder = - OtherCharacterBuilder(customScalarAdapters) + override fun newBuilder(customScalarAdapters: CustomScalarAdapters): OtherCharacterBuilder = OtherCharacterBuilder(customScalarAdapters) } } @@ -37,8 +36,7 @@ internal class OtherCharacterBuilder( internal class OtherCharacterMap( __fields: Map, -) : CharacterMap, Map by __fields +) : CharacterMap, + Map by __fields -internal fun BuilderScope.buildOtherCharacter(typename: String, - block: OtherCharacterBuilder.() -> Unit): OtherCharacterMap = - OtherCharacterBuilder(customScalarAdapters).apply(block).apply { __typename = typename }.build() +internal fun BuilderScope.buildOtherCharacter(typename: String, block: OtherCharacterBuilder.() -> Unit): OtherCharacterMap = OtherCharacterBuilder(customScalarAdapters).apply(block).apply { __typename = typename }.build() diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/type/Droid.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/type/Droid.kt.expected index 08f50ea5f13..9a13bc27901 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/type/Droid.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/type/Droid.kt.expected @@ -23,8 +23,7 @@ internal class Droid { public val type: ObjectType = ObjectType.Builder(name = "Droid").interfaces(listOf(Character.type)).build() - override fun newBuilder(customScalarAdapters: CustomScalarAdapters): DroidBuilder = - DroidBuilder(customScalarAdapters) + override fun newBuilder(customScalarAdapters: CustomScalarAdapters): DroidBuilder = DroidBuilder(customScalarAdapters) } } @@ -39,7 +38,8 @@ internal class DroidBuilder( internal class DroidMap( __fields: Map, -) : CharacterMap, SearchResultMap, Map by __fields +) : CharacterMap, + SearchResultMap, + Map by __fields -internal fun BuilderScope.buildDroid(block: DroidBuilder.() -> Unit): DroidMap = - DroidBuilder(customScalarAdapters).apply(block).build() +internal fun BuilderScope.buildDroid(block: DroidBuilder.() -> Unit): DroidMap = DroidBuilder(customScalarAdapters).apply(block).build() diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/type/Human.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/type/Human.kt.expected index a2dd8d8cf5a..f9ee5d04d8d 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/type/Human.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/type/Human.kt.expected @@ -23,8 +23,7 @@ internal class Human { public val type: ObjectType = ObjectType.Builder(name = "Human").interfaces(listOf(Character.type)).build() - override fun newBuilder(customScalarAdapters: CustomScalarAdapters): HumanBuilder = - HumanBuilder(customScalarAdapters) + override fun newBuilder(customScalarAdapters: CustomScalarAdapters): HumanBuilder = HumanBuilder(customScalarAdapters) } } @@ -41,7 +40,8 @@ internal class HumanBuilder( internal class HumanMap( __fields: Map, -) : CharacterMap, SearchResultMap, Map by __fields +) : CharacterMap, + SearchResultMap, + Map by __fields -internal fun BuilderScope.buildHuman(block: HumanBuilder.() -> Unit): HumanMap = - HumanBuilder(customScalarAdapters).apply(block).build() +internal fun BuilderScope.buildHuman(block: HumanBuilder.() -> Unit): HumanMap = HumanBuilder(customScalarAdapters).apply(block).build() diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/type/Query.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/type/Query.kt.expected index 59aa887bec4..3cfa633041b 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/type/Query.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/type/Query.kt.expected @@ -22,8 +22,7 @@ internal class Query { public companion object : BuilderFactory { public val type: ObjectType = ObjectType.Builder(name = "Query").build() - override fun newBuilder(customScalarAdapters: CustomScalarAdapters): QueryBuilder = - QueryBuilder(customScalarAdapters) + override fun newBuilder(customScalarAdapters: CustomScalarAdapters): QueryBuilder = QueryBuilder(customScalarAdapters) } } @@ -42,5 +41,4 @@ internal class QueryMap( __fields: Map, ) : Map by __fields -internal fun BuilderScope.buildQuery(block: QueryBuilder.() -> Unit): QueryMap = - QueryBuilder(customScalarAdapters).apply(block).build() +internal fun BuilderScope.buildQuery(block: QueryBuilder.() -> Unit): QueryMap = QueryBuilder(customScalarAdapters).apply(block).build() diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/type/SearchResult.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/type/SearchResult.kt.expected index 574cc8f0bb0..a7d8ba192be 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/type/SearchResult.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/type/SearchResult.kt.expected @@ -19,8 +19,7 @@ internal class SearchResult { public companion object : BuilderFactory { public val type: UnionType = UnionType("SearchResult", Human.type, Droid.type, Starship.type) - override fun newBuilder(customScalarAdapters: CustomScalarAdapters): OtherSearchResultBuilder = - OtherSearchResultBuilder(customScalarAdapters) + override fun newBuilder(customScalarAdapters: CustomScalarAdapters): OtherSearchResultBuilder = OtherSearchResultBuilder(customScalarAdapters) } } @@ -34,8 +33,7 @@ internal class OtherSearchResultBuilder( internal class OtherSearchResultMap( __fields: Map, -) : SearchResultMap, Map by __fields +) : SearchResultMap, + Map by __fields -internal fun BuilderScope.buildOtherSearchResult(typename: String, - block: OtherSearchResultBuilder.() -> Unit): OtherSearchResultMap = - OtherSearchResultBuilder(customScalarAdapters).apply(block).apply { __typename = typename }.build() +internal fun BuilderScope.buildOtherSearchResult(typename: String, block: OtherSearchResultBuilder.() -> Unit): OtherSearchResultMap = OtherSearchResultBuilder(customScalarAdapters).apply(block).apply { __typename = typename }.build() diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/type/Starship.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/type/Starship.kt.expected index dcd20a27d40..8a3d0d6fbf9 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/type/Starship.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/type/Starship.kt.expected @@ -19,8 +19,7 @@ internal class Starship { public companion object : BuilderFactory { public val type: ObjectType = ObjectType.Builder(name = "Starship").build() - override fun newBuilder(customScalarAdapters: CustomScalarAdapters): StarshipBuilder = - StarshipBuilder(customScalarAdapters) + override fun newBuilder(customScalarAdapters: CustomScalarAdapters): StarshipBuilder = StarshipBuilder(customScalarAdapters) } } @@ -35,7 +34,7 @@ internal class StarshipBuilder( internal class StarshipMap( __fields: Map, -) : SearchResultMap, Map by __fields +) : SearchResultMap, + Map by __fields -internal fun BuilderScope.buildStarship(block: StarshipBuilder.() -> Unit): StarshipMap = - StarshipBuilder(customScalarAdapters).apply(block).build() +internal fun BuilderScope.buildStarship(block: StarshipBuilder.() -> Unit): StarshipMap = StarshipBuilder(customScalarAdapters).apply(block).build() diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/type/__CustomScalarAdapters.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/type/__CustomScalarAdapters.kt.expected index d04afdde0d2..f75efa16b79 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/type/__CustomScalarAdapters.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/operationBased/simple_fragment/type/__CustomScalarAdapters.kt.expected @@ -12,4 +12,3 @@ import com.apollographql.apollo.api.CustomScalarAdapters */ internal val __CustomScalarAdapters: CustomScalarAdapters = CustomScalarAdapters.Builder() .build() - diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/TestQuery.kt.expected index a07145ae676..a839c7b1ab4 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/TestQuery.kt.expected @@ -88,11 +88,14 @@ internal class TestQuery() : Query { * What this human calls themselves */ override val name: String, - ) : Hero, HumanHeroDetails, HumanDetails + ) : Hero, + HumanHeroDetails, + HumanDetails public data class OtherHero( override val __typename: String, - ) : Hero, HeroDetails + ) : Hero, + HeroDetails } public companion object { @@ -124,13 +127,11 @@ internal class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { hero { __typename ...HeroDetails ...HumanDetails } } fragment HumanDetails on Human { __typename name } fragment HeroDetails on Character { __typename ...HumanDetails }" + get() = "query TestQuery { hero { __typename ...HeroDetails ...HumanDetails } } fragment HumanDetails on Human { __typename name } fragment HeroDetails on Character { __typename ...HumanDetails }" public const val OPERATION_NAME: String = "TestQuery" - public fun Data(resolver: FakeResolver = DefaultFakeResolver(__Schema.all), - block: QueryBuilder.() -> Unit = {}): Data = buildData( + public fun Data(resolver: FakeResolver = DefaultFakeResolver(__Schema.all), block: QueryBuilder.() -> Unit = {}): Data = buildData( CompiledQuery, block, TestQuery_ResponseAdapter.Data, diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/adapter/TestQuery_ResponseAdapter.kt.expected index a66f5ee74b8..ff6cfcd83a7 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/adapter/TestQuery_ResponseAdapter.kt.expected @@ -23,8 +23,7 @@ internal object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _hero: TestQuery.Data.Hero? = null while (true) { @@ -49,8 +48,7 @@ internal object TestQuery_ResponseAdapter { } private object Hero : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero { val __typename = reader.readTypename() return when(__typename) { "Human", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/fragment/HeroDetailsImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/fragment/HeroDetailsImpl.kt.expected index e1cb4165ee4..678d5eac20c 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/fragment/HeroDetailsImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/fragment/HeroDetailsImpl.kt.expected @@ -72,11 +72,14 @@ internal class HeroDetailsImpl() : Fragment { * What this human calls themselves */ override val name: String, - ) : Data, HumanDetails, HumanHeroDetails + ) : Data, + HumanDetails, + HumanHeroDetails public data class OtherData( override val __typename: String, - ) : Data, HeroDetails + ) : Data, + HeroDetails public companion object { public fun > Data( diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected index d578ca56a59..ea6a5262695 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected @@ -18,8 +18,7 @@ import kotlin.collections.List internal object HeroDetailsImpl_ResponseAdapter { public object Data : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - HeroDetailsImpl.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): HeroDetailsImpl.Data { val __typename = reader.readTypename() return when(__typename) { "Human", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/fragment/HumanDetailsImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/fragment/HumanDetailsImpl.kt.expected index 2ea483621b9..6cc408c5647 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/fragment/HumanDetailsImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/fragment/HumanDetailsImpl.kt.expected @@ -56,11 +56,11 @@ internal class HumanDetailsImpl() : Fragment { * What this human calls themselves */ override val name: String, - ) : HumanDetails, Fragment.Data + ) : HumanDetails, + Fragment.Data public companion object { - public fun Data(resolver: FakeResolver = DefaultFakeResolver(__Schema.all), - block: HumanBuilder.() -> Unit = {}): Data = buildData( + public fun Data(resolver: FakeResolver = DefaultFakeResolver(__Schema.all), block: HumanBuilder.() -> Unit = {}): Data = buildData( Human, block, HumanDetailsImpl_ResponseAdapter.Data, diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected index 52c633e9238..fab3fa0c4a9 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/fragment/HumanDetailsImpl_ResponseAdapter.kt.expected @@ -18,8 +18,7 @@ internal object HumanDetailsImpl_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - HumanDetailsImpl.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): HumanDetailsImpl.Data { var __typename: String? = null var _name: String? = null diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/schema/__Schema.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/schema/__Schema.kt.expected index 28cf364805e..b2ade9d7d2a 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/schema/__Schema.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/schema/__Schema.kt.expected @@ -14,14 +14,7 @@ import kotlin.collections.List */ internal object __Schema { public val all: List = listOf( - com.example.simple_fragment.type.Character.type, - com.example.simple_fragment.type.Droid.type, - com.example.simple_fragment.type.Human.type, - com.example.simple_fragment.type.Query.type, - com.example.simple_fragment.type.SearchResult.type, - com.example.simple_fragment.type.Starship.type) + com.example.simple_fragment.type.Character.type, com.example.simple_fragment.type.Droid.type, com.example.simple_fragment.type.Human.type, com.example.simple_fragment.type.Query.type, com.example.simple_fragment.type.SearchResult.type, com.example.simple_fragment.type.Starship.type) - - public fun possibleTypes(type: CompiledNamedType): List = - com.apollographql.apollo.api.possibleTypes(all, type) + public fun possibleTypes(type: CompiledNamedType): List = com.apollographql.apollo.api.possibleTypes(all, type) } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/type/Character.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/type/Character.kt.expected index fabc675fa2b..6e392e664b9 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/type/Character.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/type/Character.kt.expected @@ -22,8 +22,7 @@ internal class Character { public companion object : BuilderFactory { public val type: InterfaceType = InterfaceType.Builder(name = "Character").build() - override fun newBuilder(customScalarAdapters: CustomScalarAdapters): OtherCharacterBuilder = - OtherCharacterBuilder(customScalarAdapters) + override fun newBuilder(customScalarAdapters: CustomScalarAdapters): OtherCharacterBuilder = OtherCharacterBuilder(customScalarAdapters) } } @@ -37,8 +36,7 @@ internal class OtherCharacterBuilder( internal class OtherCharacterMap( __fields: Map, -) : CharacterMap, Map by __fields +) : CharacterMap, + Map by __fields -internal fun BuilderScope.buildOtherCharacter(typename: String, - block: OtherCharacterBuilder.() -> Unit): OtherCharacterMap = - OtherCharacterBuilder(customScalarAdapters).apply(block).apply { __typename = typename }.build() +internal fun BuilderScope.buildOtherCharacter(typename: String, block: OtherCharacterBuilder.() -> Unit): OtherCharacterMap = OtherCharacterBuilder(customScalarAdapters).apply(block).apply { __typename = typename }.build() diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/type/Droid.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/type/Droid.kt.expected index 08f50ea5f13..9a13bc27901 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/type/Droid.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/type/Droid.kt.expected @@ -23,8 +23,7 @@ internal class Droid { public val type: ObjectType = ObjectType.Builder(name = "Droid").interfaces(listOf(Character.type)).build() - override fun newBuilder(customScalarAdapters: CustomScalarAdapters): DroidBuilder = - DroidBuilder(customScalarAdapters) + override fun newBuilder(customScalarAdapters: CustomScalarAdapters): DroidBuilder = DroidBuilder(customScalarAdapters) } } @@ -39,7 +38,8 @@ internal class DroidBuilder( internal class DroidMap( __fields: Map, -) : CharacterMap, SearchResultMap, Map by __fields +) : CharacterMap, + SearchResultMap, + Map by __fields -internal fun BuilderScope.buildDroid(block: DroidBuilder.() -> Unit): DroidMap = - DroidBuilder(customScalarAdapters).apply(block).build() +internal fun BuilderScope.buildDroid(block: DroidBuilder.() -> Unit): DroidMap = DroidBuilder(customScalarAdapters).apply(block).build() diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/type/Human.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/type/Human.kt.expected index a2dd8d8cf5a..f9ee5d04d8d 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/type/Human.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/type/Human.kt.expected @@ -23,8 +23,7 @@ internal class Human { public val type: ObjectType = ObjectType.Builder(name = "Human").interfaces(listOf(Character.type)).build() - override fun newBuilder(customScalarAdapters: CustomScalarAdapters): HumanBuilder = - HumanBuilder(customScalarAdapters) + override fun newBuilder(customScalarAdapters: CustomScalarAdapters): HumanBuilder = HumanBuilder(customScalarAdapters) } } @@ -41,7 +40,8 @@ internal class HumanBuilder( internal class HumanMap( __fields: Map, -) : CharacterMap, SearchResultMap, Map by __fields +) : CharacterMap, + SearchResultMap, + Map by __fields -internal fun BuilderScope.buildHuman(block: HumanBuilder.() -> Unit): HumanMap = - HumanBuilder(customScalarAdapters).apply(block).build() +internal fun BuilderScope.buildHuman(block: HumanBuilder.() -> Unit): HumanMap = HumanBuilder(customScalarAdapters).apply(block).build() diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/type/Query.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/type/Query.kt.expected index 59aa887bec4..3cfa633041b 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/type/Query.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/type/Query.kt.expected @@ -22,8 +22,7 @@ internal class Query { public companion object : BuilderFactory { public val type: ObjectType = ObjectType.Builder(name = "Query").build() - override fun newBuilder(customScalarAdapters: CustomScalarAdapters): QueryBuilder = - QueryBuilder(customScalarAdapters) + override fun newBuilder(customScalarAdapters: CustomScalarAdapters): QueryBuilder = QueryBuilder(customScalarAdapters) } } @@ -42,5 +41,4 @@ internal class QueryMap( __fields: Map, ) : Map by __fields -internal fun BuilderScope.buildQuery(block: QueryBuilder.() -> Unit): QueryMap = - QueryBuilder(customScalarAdapters).apply(block).build() +internal fun BuilderScope.buildQuery(block: QueryBuilder.() -> Unit): QueryMap = QueryBuilder(customScalarAdapters).apply(block).build() diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/type/SearchResult.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/type/SearchResult.kt.expected index 574cc8f0bb0..a7d8ba192be 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/type/SearchResult.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/type/SearchResult.kt.expected @@ -19,8 +19,7 @@ internal class SearchResult { public companion object : BuilderFactory { public val type: UnionType = UnionType("SearchResult", Human.type, Droid.type, Starship.type) - override fun newBuilder(customScalarAdapters: CustomScalarAdapters): OtherSearchResultBuilder = - OtherSearchResultBuilder(customScalarAdapters) + override fun newBuilder(customScalarAdapters: CustomScalarAdapters): OtherSearchResultBuilder = OtherSearchResultBuilder(customScalarAdapters) } } @@ -34,8 +33,7 @@ internal class OtherSearchResultBuilder( internal class OtherSearchResultMap( __fields: Map, -) : SearchResultMap, Map by __fields +) : SearchResultMap, + Map by __fields -internal fun BuilderScope.buildOtherSearchResult(typename: String, - block: OtherSearchResultBuilder.() -> Unit): OtherSearchResultMap = - OtherSearchResultBuilder(customScalarAdapters).apply(block).apply { __typename = typename }.build() +internal fun BuilderScope.buildOtherSearchResult(typename: String, block: OtherSearchResultBuilder.() -> Unit): OtherSearchResultMap = OtherSearchResultBuilder(customScalarAdapters).apply(block).apply { __typename = typename }.build() diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/type/Starship.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/type/Starship.kt.expected index dcd20a27d40..8a3d0d6fbf9 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/type/Starship.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/type/Starship.kt.expected @@ -19,8 +19,7 @@ internal class Starship { public companion object : BuilderFactory { public val type: ObjectType = ObjectType.Builder(name = "Starship").build() - override fun newBuilder(customScalarAdapters: CustomScalarAdapters): StarshipBuilder = - StarshipBuilder(customScalarAdapters) + override fun newBuilder(customScalarAdapters: CustomScalarAdapters): StarshipBuilder = StarshipBuilder(customScalarAdapters) } } @@ -35,7 +34,7 @@ internal class StarshipBuilder( internal class StarshipMap( __fields: Map, -) : SearchResultMap, Map by __fields +) : SearchResultMap, + Map by __fields -internal fun BuilderScope.buildStarship(block: StarshipBuilder.() -> Unit): StarshipMap = - StarshipBuilder(customScalarAdapters).apply(block).build() +internal fun BuilderScope.buildStarship(block: StarshipBuilder.() -> Unit): StarshipMap = StarshipBuilder(customScalarAdapters).apply(block).build() diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/type/__CustomScalarAdapters.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/type/__CustomScalarAdapters.kt.expected index d04afdde0d2..f75efa16b79 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/type/__CustomScalarAdapters.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment/kotlin/responseBased/simple_fragment/type/__CustomScalarAdapters.kt.expected @@ -12,4 +12,3 @@ import com.apollographql.apollo.api.CustomScalarAdapters */ internal val __CustomScalarAdapters: CustomScalarAdapters = CustomScalarAdapters.Builder() .build() - diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment_with_inline_fragments/kotlin/operationBased/simple_fragment_with_inline_fragments/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment_with_inline_fragments/kotlin/operationBased/simple_fragment_with_inline_fragments/TestQuery.kt.expected index d69e78a374b..84de16f5c70 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment_with_inline_fragments/kotlin/operationBased/simple_fragment_with_inline_fragments/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment_with_inline_fragments/kotlin/operationBased/simple_fragment_with_inline_fragments/TestQuery.kt.expected @@ -94,8 +94,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { hero { __typename ...HeroDetails } } fragment HeroDetails on Character { name friends { __typename name ... on Human { height } ... on Droid { primaryFunction } } }" + get() = "query TestQuery { hero { __typename ...HeroDetails } } fragment HeroDetails on Character { name friends { __typename name ... on Human { height } ... on Droid { primaryFunction } } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment_with_inline_fragments/kotlin/operationBased/simple_fragment_with_inline_fragments/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment_with_inline_fragments/kotlin/operationBased/simple_fragment_with_inline_fragments/adapter/TestQuery_ResponseAdapter.kt.expected index 93480d3ca39..2d384ed73e3 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment_with_inline_fragments/kotlin/operationBased/simple_fragment_with_inline_fragments/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment_with_inline_fragments/kotlin/operationBased/simple_fragment_with_inline_fragments/adapter/TestQuery_ResponseAdapter.kt.expected @@ -21,8 +21,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _hero: TestQuery.Data.Hero? = null while (true) { @@ -49,8 +48,7 @@ public object TestQuery_ResponseAdapter { private object Hero : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero { var __typename: String? = null while (true) { @@ -61,8 +59,7 @@ public object TestQuery_ResponseAdapter { } reader.rewind() - val _heroDetails = com.example.simple_fragment_with_inline_fragments.fragment.HeroDetailsImpl_ResponseAdapter.HeroDetails.fromJson(reader, - customScalarAdapters) + val _heroDetails = com.example.simple_fragment_with_inline_fragments.fragment.HeroDetailsImpl_ResponseAdapter.HeroDetails.fromJson(reader, customScalarAdapters) return TestQuery.Data.Hero( __typename = __typename ?: missingField(reader, "__typename"), @@ -78,8 +75,7 @@ public object TestQuery_ResponseAdapter { writer.name("__typename") StringAdapter.toJson(writer, customScalarAdapters, value.__typename) - com.example.simple_fragment_with_inline_fragments.fragment.HeroDetailsImpl_ResponseAdapter.HeroDetails.toJson(writer, - customScalarAdapters, value.heroDetails) + com.example.simple_fragment_with_inline_fragments.fragment.HeroDetailsImpl_ResponseAdapter.HeroDetails.toJson(writer, customScalarAdapters, value.heroDetails) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment_with_inline_fragments/kotlin/operationBased/simple_fragment_with_inline_fragments/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment_with_inline_fragments/kotlin/operationBased/simple_fragment_with_inline_fragments/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected index b2b12583c43..fe4fa28f0a0 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment_with_inline_fragments/kotlin/operationBased/simple_fragment_with_inline_fragments/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment_with_inline_fragments/kotlin/operationBased/simple_fragment_with_inline_fragments/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected @@ -23,12 +23,10 @@ import kotlin.String import kotlin.collections.List public object HeroDetailsImpl_ResponseAdapter { - public object HeroDetails : - Adapter { + public object HeroDetails : Adapter { public val RESPONSE_NAMES: List = listOf("name", "friends") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.simple_fragment_with_inline_fragments.fragment.HeroDetails { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.simple_fragment_with_inline_fragments.fragment.HeroDetails { var _name: String? = null var _friends: List? = null @@ -55,16 +53,13 @@ public object HeroDetailsImpl_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.name) writer.name("friends") - Friend.obj(true).nullable().list().nullable().toJson(writer, customScalarAdapters, - value.friends) + Friend.obj(true).nullable().list().nullable().toJson(writer, customScalarAdapters, value.friends) } - private object Friend : - Adapter { + private object Friend : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.simple_fragment_with_inline_fragments.fragment.HeroDetails.Friend { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.simple_fragment_with_inline_fragments.fragment.HeroDetails.Friend { var __typename: String? = null var _name: String? = null @@ -83,15 +78,13 @@ public object HeroDetailsImpl_ResponseAdapter { var _onHuman: com.example.simple_fragment_with_inline_fragments.fragment.HeroDetails.Friend.OnHuman? = null if (possibleTypes("Human").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onHuman = com.example.simple_fragment_with_inline_fragments.fragment.HeroDetailsImpl_ResponseAdapter.HeroDetails.Friend.OnHuman.fromJson(reader, - customScalarAdapters) + _onHuman = com.example.simple_fragment_with_inline_fragments.fragment.HeroDetailsImpl_ResponseAdapter.HeroDetails.Friend.OnHuman.fromJson(reader, customScalarAdapters) } var _onDroid: com.example.simple_fragment_with_inline_fragments.fragment.HeroDetails.Friend.OnDroid? = null if (possibleTypes("Droid").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onDroid = com.example.simple_fragment_with_inline_fragments.fragment.HeroDetailsImpl_ResponseAdapter.HeroDetails.Friend.OnDroid.fromJson(reader, - customScalarAdapters) + _onDroid = com.example.simple_fragment_with_inline_fragments.fragment.HeroDetailsImpl_ResponseAdapter.HeroDetails.Friend.OnDroid.fromJson(reader, customScalarAdapters) } return com.example.simple_fragment_with_inline_fragments.fragment.HeroDetails.Friend( @@ -114,23 +107,18 @@ public object HeroDetailsImpl_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.name) if (value.onHuman != null) { - com.example.simple_fragment_with_inline_fragments.fragment.HeroDetailsImpl_ResponseAdapter.HeroDetails.Friend.OnHuman.toJson(writer, - customScalarAdapters, value.onHuman) + com.example.simple_fragment_with_inline_fragments.fragment.HeroDetailsImpl_ResponseAdapter.HeroDetails.Friend.OnHuman.toJson(writer, customScalarAdapters, value.onHuman) } if (value.onDroid != null) { - com.example.simple_fragment_with_inline_fragments.fragment.HeroDetailsImpl_ResponseAdapter.HeroDetails.Friend.OnDroid.toJson(writer, - customScalarAdapters, value.onDroid) + com.example.simple_fragment_with_inline_fragments.fragment.HeroDetailsImpl_ResponseAdapter.HeroDetails.Friend.OnDroid.toJson(writer, customScalarAdapters, value.onDroid) } } - private object OnHuman : - Adapter - { + private object OnHuman : Adapter { public val RESPONSE_NAMES: List = listOf("height") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.simple_fragment_with_inline_fragments.fragment.HeroDetails.Friend.OnHuman { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.simple_fragment_with_inline_fragments.fragment.HeroDetails.Friend.OnHuman { var _height: Double? = null while (true) { @@ -155,13 +143,10 @@ public object HeroDetailsImpl_ResponseAdapter { } } - private object OnDroid : - Adapter - { + private object OnDroid : Adapter { public val RESPONSE_NAMES: List = listOf("primaryFunction") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.simple_fragment_with_inline_fragments.fragment.HeroDetails.Friend.OnDroid { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.simple_fragment_with_inline_fragments.fragment.HeroDetails.Friend.OnDroid { var _primaryFunction: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment_with_inline_fragments/kotlin/responseBased/simple_fragment_with_inline_fragments/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment_with_inline_fragments/kotlin/responseBased/simple_fragment_with_inline_fragments/TestQuery.kt.expected index 00971adb88a..074f4f264be 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment_with_inline_fragments/kotlin/responseBased/simple_fragment_with_inline_fragments/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment_with_inline_fragments/kotlin/responseBased/simple_fragment_with_inline_fragments/TestQuery.kt.expected @@ -96,7 +96,8 @@ public class TestQuery() : Query { * Height in the preferred unit, default is meters */ override val height: Double?, - ) : Friend, HeroDetails.HumanFriend + ) : Friend, + HeroDetails.HumanFriend public data class DroidFriend( override val __typename: String, @@ -108,7 +109,8 @@ public class TestQuery() : Query { * This droid's primary function */ override val primaryFunction: String?, - ) : Friend, HeroDetails.DroidFriend + ) : Friend, + HeroDetails.DroidFriend public data class OtherFriend( override val __typename: String, @@ -116,7 +118,8 @@ public class TestQuery() : Query { * The name of the character */ override val name: String, - ) : Friend, HeroDetails.Friend + ) : Friend, + HeroDetails.Friend public companion object { @Suppress("USELESS_CAST") @@ -157,8 +160,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { hero { __typename ...HeroDetails } } fragment HeroDetails on Character { name friends { __typename name ... on Human { height } ... on Droid { primaryFunction } } }" + get() = "query TestQuery { hero { __typename ...HeroDetails } } fragment HeroDetails on Character { name friends { __typename name ... on Human { height } ... on Droid { primaryFunction } } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment_with_inline_fragments/kotlin/responseBased/simple_fragment_with_inline_fragments/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment_with_inline_fragments/kotlin/responseBased/simple_fragment_with_inline_fragments/adapter/TestQuery_ResponseAdapter.kt.expected index 043f2fc92e0..3daddb39e0e 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment_with_inline_fragments/kotlin/responseBased/simple_fragment_with_inline_fragments/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment_with_inline_fragments/kotlin/responseBased/simple_fragment_with_inline_fragments/adapter/TestQuery_ResponseAdapter.kt.expected @@ -27,8 +27,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _hero: TestQuery.Data.Hero? = null while (true) { @@ -55,8 +54,7 @@ public object TestQuery_ResponseAdapter { private object Hero : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "name", "friends") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero { var __typename: String? = null var _name: String? = null var _friends: List? = null @@ -89,13 +87,11 @@ public object TestQuery_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.name) writer.name("friends") - Friend.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, - value.friends) + Friend.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, value.friends) } private object Friend : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero.Friend { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero.Friend { val __typename = reader.readTypename() return when(__typename) { "Human", @@ -113,12 +109,9 @@ public object TestQuery_ResponseAdapter { `value`: TestQuery.Data.Hero.Friend, ) { when(value) { - is TestQuery.Data.Hero.HumanFriend -> HumanFriend.toJson(writer, customScalarAdapters, - value) - is TestQuery.Data.Hero.DroidFriend -> DroidFriend.toJson(writer, customScalarAdapters, - value) - is TestQuery.Data.Hero.OtherFriend -> OtherFriend.toJson(writer, customScalarAdapters, - value) + is TestQuery.Data.Hero.HumanFriend -> HumanFriend.toJson(writer, customScalarAdapters, value) + is TestQuery.Data.Hero.DroidFriend -> DroidFriend.toJson(writer, customScalarAdapters, value) + is TestQuery.Data.Hero.OtherFriend -> OtherFriend.toJson(writer, customScalarAdapters, value) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment_with_inline_fragments/kotlin/responseBased/simple_fragment_with_inline_fragments/fragment/HeroDetailsImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment_with_inline_fragments/kotlin/responseBased/simple_fragment_with_inline_fragments/fragment/HeroDetailsImpl.kt.expected index e5871999ed1..c964cbefbe3 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment_with_inline_fragments/kotlin/responseBased/simple_fragment_with_inline_fragments/fragment/HeroDetailsImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment_with_inline_fragments/kotlin/responseBased/simple_fragment_with_inline_fragments/fragment/HeroDetailsImpl.kt.expected @@ -52,7 +52,8 @@ public class HeroDetailsImpl() : Fragment { * The friends of the character, or an empty list if they have none */ override val friends: List?, - ) : HeroDetails, Fragment.Data { + ) : HeroDetails, + Fragment.Data { public fun friendsFilterNotNull(): List? = friends?.filterNotNull() public sealed interface Friend : HeroDetails.Friend { @@ -82,7 +83,8 @@ public class HeroDetailsImpl() : Fragment { * Height in the preferred unit, default is meters */ override val height: Double?, - ) : Friend, HeroDetails.HumanFriend + ) : Friend, + HeroDetails.HumanFriend public data class DroidFriend( override val __typename: String, @@ -94,7 +96,8 @@ public class HeroDetailsImpl() : Fragment { * This droid's primary function */ override val primaryFunction: String?, - ) : Friend, HeroDetails.DroidFriend + ) : Friend, + HeroDetails.DroidFriend public data class OtherFriend( override val __typename: String, @@ -102,6 +105,7 @@ public class HeroDetailsImpl() : Fragment { * The name of the character */ override val name: String, - ) : Friend, HeroDetails.Friend + ) : Friend, + HeroDetails.Friend } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment_with_inline_fragments/kotlin/responseBased/simple_fragment_with_inline_fragments/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment_with_inline_fragments/kotlin/responseBased/simple_fragment_with_inline_fragments/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected index 4012977d617..d26079264fe 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment_with_inline_fragments/kotlin/responseBased/simple_fragment_with_inline_fragments/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_fragment_with_inline_fragments/kotlin/responseBased/simple_fragment_with_inline_fragments/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected @@ -26,8 +26,7 @@ public object HeroDetailsImpl_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("name", "friends") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - HeroDetailsImpl.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): HeroDetailsImpl.Data { var _name: String? = null var _friends: List? = null @@ -58,8 +57,7 @@ public object HeroDetailsImpl_ResponseAdapter { } private object Friend : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - HeroDetailsImpl.Data.Friend { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): HeroDetailsImpl.Data.Friend { val __typename = reader.readTypename() return when(__typename) { "Human", @@ -77,12 +75,9 @@ public object HeroDetailsImpl_ResponseAdapter { `value`: HeroDetailsImpl.Data.Friend, ) { when(value) { - is HeroDetailsImpl.Data.HumanFriend -> HumanFriend.toJson(writer, customScalarAdapters, - value) - is HeroDetailsImpl.Data.DroidFriend -> DroidFriend.toJson(writer, customScalarAdapters, - value) - is HeroDetailsImpl.Data.OtherFriend -> OtherFriend.toJson(writer, customScalarAdapters, - value) + is HeroDetailsImpl.Data.HumanFriend -> HumanFriend.toJson(writer, customScalarAdapters, value) + is HeroDetailsImpl.Data.DroidFriend -> DroidFriend.toJson(writer, customScalarAdapters, value) + is HeroDetailsImpl.Data.OtherFriend -> OtherFriend.toJson(writer, customScalarAdapters, value) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_inline_fragment/kotlin/operationBased/simple_inline_fragment/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_inline_fragment/kotlin/operationBased/simple_inline_fragment/TestQuery.kt.expected index 594707fb879..82453f48206 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_inline_fragment/kotlin/operationBased/simple_inline_fragment/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_inline_fragment/kotlin/operationBased/simple_inline_fragment/TestQuery.kt.expected @@ -133,8 +133,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { hero { __typename ... on Character { __typename id ... on Character { name } } ... on Human { height } ... on Droid { primaryFunction } } }" + get() = "query TestQuery { hero { __typename ... on Character { __typename id ... on Character { name } } ... on Human { height } ... on Droid { primaryFunction } } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_inline_fragment/kotlin/operationBased/simple_inline_fragment/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_inline_fragment/kotlin/operationBased/simple_inline_fragment/adapter/TestQuery_ResponseAdapter.kt.expected index ca4d39e6dcd..37d39e096bc 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_inline_fragment/kotlin/operationBased/simple_inline_fragment/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_inline_fragment/kotlin/operationBased/simple_inline_fragment/adapter/TestQuery_ResponseAdapter.kt.expected @@ -26,8 +26,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _hero: TestQuery.Data.Hero? = null while (true) { @@ -54,8 +53,7 @@ public object TestQuery_ResponseAdapter { private object Hero : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero { var __typename: String? = null while (true) { @@ -70,21 +68,18 @@ public object TestQuery_ResponseAdapter { } reader.rewind() - val _onCharacter = com.example.simple_inline_fragment.adapter.TestQuery_ResponseAdapter.Data.Hero.OnCharacter.fromJson(reader, - customScalarAdapters) + val _onCharacter = com.example.simple_inline_fragment.adapter.TestQuery_ResponseAdapter.Data.Hero.OnCharacter.fromJson(reader, customScalarAdapters) var _onHuman: TestQuery.Data.Hero.OnHuman? = null if (possibleTypes("Human").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onHuman = com.example.simple_inline_fragment.adapter.TestQuery_ResponseAdapter.Data.Hero.OnHuman.fromJson(reader, - customScalarAdapters) + _onHuman = com.example.simple_inline_fragment.adapter.TestQuery_ResponseAdapter.Data.Hero.OnHuman.fromJson(reader, customScalarAdapters) } var _onDroid: TestQuery.Data.Hero.OnDroid? = null if (possibleTypes("Droid").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onDroid = com.example.simple_inline_fragment.adapter.TestQuery_ResponseAdapter.Data.Hero.OnDroid.fromJson(reader, - customScalarAdapters) + _onDroid = com.example.simple_inline_fragment.adapter.TestQuery_ResponseAdapter.Data.Hero.OnDroid.fromJson(reader, customScalarAdapters) } return TestQuery.Data.Hero( @@ -103,25 +98,21 @@ public object TestQuery_ResponseAdapter { writer.name("__typename") StringAdapter.toJson(writer, customScalarAdapters, value.__typename) - com.example.simple_inline_fragment.adapter.TestQuery_ResponseAdapter.Data.Hero.OnCharacter.toJson(writer, - customScalarAdapters, value.onCharacter) + com.example.simple_inline_fragment.adapter.TestQuery_ResponseAdapter.Data.Hero.OnCharacter.toJson(writer, customScalarAdapters, value.onCharacter) if (value.onHuman != null) { - com.example.simple_inline_fragment.adapter.TestQuery_ResponseAdapter.Data.Hero.OnHuman.toJson(writer, - customScalarAdapters, value.onHuman) + com.example.simple_inline_fragment.adapter.TestQuery_ResponseAdapter.Data.Hero.OnHuman.toJson(writer, customScalarAdapters, value.onHuman) } if (value.onDroid != null) { - com.example.simple_inline_fragment.adapter.TestQuery_ResponseAdapter.Data.Hero.OnDroid.toJson(writer, - customScalarAdapters, value.onDroid) + com.example.simple_inline_fragment.adapter.TestQuery_ResponseAdapter.Data.Hero.OnDroid.toJson(writer, customScalarAdapters, value.onDroid) } } private object OnCharacter : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "id") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero.OnCharacter { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero.OnCharacter { var __typename: String? = null var _id: String? = null @@ -134,8 +125,7 @@ public object TestQuery_ResponseAdapter { } reader.rewind() - val _onCharacter = com.example.simple_inline_fragment.adapter.TestQuery_ResponseAdapter.Data.Hero.OnCharacter.OnCharacter.fromJson(reader, - customScalarAdapters) + val _onCharacter = com.example.simple_inline_fragment.adapter.TestQuery_ResponseAdapter.Data.Hero.OnCharacter.OnCharacter.fromJson(reader, customScalarAdapters) return TestQuery.Data.Hero.OnCharacter( __typename = __typename ?: missingField(reader, "__typename"), @@ -155,15 +145,13 @@ public object TestQuery_ResponseAdapter { writer.name("id") StringAdapter.toJson(writer, customScalarAdapters, value.id) - com.example.simple_inline_fragment.adapter.TestQuery_ResponseAdapter.Data.Hero.OnCharacter.OnCharacter.toJson(writer, - customScalarAdapters, value.onCharacter) + com.example.simple_inline_fragment.adapter.TestQuery_ResponseAdapter.Data.Hero.OnCharacter.OnCharacter.toJson(writer, customScalarAdapters, value.onCharacter) } private object OnCharacter : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero.OnCharacter.OnCharacter { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero.OnCharacter.OnCharacter { var _name: String? = null while (true) { @@ -192,8 +180,7 @@ public object TestQuery_ResponseAdapter { private object OnHuman : Adapter { public val RESPONSE_NAMES: List = listOf("height") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero.OnHuman { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero.OnHuman { var _height: Double? = null while (true) { @@ -221,8 +208,7 @@ public object TestQuery_ResponseAdapter { private object OnDroid : Adapter { public val RESPONSE_NAMES: List = listOf("primaryFunction") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero.OnDroid { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero.OnDroid { var _primaryFunction: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_inline_fragment/kotlin/responseBased/simple_inline_fragment/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_inline_fragment/kotlin/responseBased/simple_inline_fragment/TestQuery.kt.expected index ccb499c0631..cfad9f66a45 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_inline_fragment/kotlin/responseBased/simple_inline_fragment/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_inline_fragment/kotlin/responseBased/simple_inline_fragment/TestQuery.kt.expected @@ -151,8 +151,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { hero { __typename ... on Character { __typename id ... on Character { name } } ... on Human { height } ... on Droid { primaryFunction } } }" + get() = "query TestQuery { hero { __typename ... on Character { __typename id ... on Character { name } } ... on Human { height } ... on Droid { primaryFunction } } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_inline_fragment/kotlin/responseBased/simple_inline_fragment/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_inline_fragment/kotlin/responseBased/simple_inline_fragment/adapter/TestQuery_ResponseAdapter.kt.expected index 53030dcf7f5..34828b28bee 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_inline_fragment/kotlin/responseBased/simple_inline_fragment/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_inline_fragment/kotlin/responseBased/simple_inline_fragment/adapter/TestQuery_ResponseAdapter.kt.expected @@ -26,8 +26,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _hero: TestQuery.Data.Hero? = null while (true) { @@ -52,8 +51,7 @@ public object TestQuery_ResponseAdapter { } private object Hero : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero { val __typename = reader.readTypename() return when(__typename) { "Human", @@ -129,8 +127,8 @@ public object TestQuery_ResponseAdapter { } public object DroidHero { - public val RESPONSE_NAMES: List = listOf("__typename", "id", "name", - "primaryFunction") + public val RESPONSE_NAMES: List = + listOf("__typename", "id", "name", "primaryFunction") public fun fromJson( reader: JsonReader, diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_union/kotlin/operationBased/simple_union/AnimalQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_union/kotlin/operationBased/simple_union/AnimalQuery.kt.expected index fa461d3ff69..75a206c6f8f 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_union/kotlin/operationBased/simple_union/AnimalQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_union/kotlin/operationBased/simple_union/AnimalQuery.kt.expected @@ -94,8 +94,7 @@ public class AnimalQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query AnimalQuery { animal { __typename ...CatFragment ...DogFragment } } fragment CatFragment on Cat { meow } fragment DogFragment on Dog { woof }" + get() = "query AnimalQuery { animal { __typename ...CatFragment ...DogFragment } } fragment CatFragment on Cat { meow } fragment DogFragment on Dog { woof }" public const val OPERATION_NAME: String = "AnimalQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_union/kotlin/operationBased/simple_union/adapter/AnimalQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_union/kotlin/operationBased/simple_union/adapter/AnimalQuery_ResponseAdapter.kt.expected index 790ee016806..e2dde244de6 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_union/kotlin/operationBased/simple_union/adapter/AnimalQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_union/kotlin/operationBased/simple_union/adapter/AnimalQuery_ResponseAdapter.kt.expected @@ -24,8 +24,7 @@ public object AnimalQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("animal") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - AnimalQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): AnimalQuery.Data { var _animal: AnimalQuery.Data.Animal? = null while (true) { @@ -52,8 +51,7 @@ public object AnimalQuery_ResponseAdapter { private object Animal : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - AnimalQuery.Data.Animal { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): AnimalQuery.Data.Animal { var __typename: String? = null while (true) { @@ -70,15 +68,13 @@ public object AnimalQuery_ResponseAdapter { var _catFragment: CatFragment? = null if (possibleTypes("Cat").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _catFragment = com.example.simple_union.fragment.CatFragmentImpl_ResponseAdapter.CatFragment.fromJson(reader, - customScalarAdapters) + _catFragment = com.example.simple_union.fragment.CatFragmentImpl_ResponseAdapter.CatFragment.fromJson(reader, customScalarAdapters) } var _dogFragment: DogFragment? = null if (possibleTypes("Dog").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _dogFragment = com.example.simple_union.fragment.DogFragmentImpl_ResponseAdapter.DogFragment.fromJson(reader, - customScalarAdapters) + _dogFragment = com.example.simple_union.fragment.DogFragmentImpl_ResponseAdapter.DogFragment.fromJson(reader, customScalarAdapters) } return AnimalQuery.Data.Animal( @@ -97,13 +93,11 @@ public object AnimalQuery_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.__typename) if (value.catFragment != null) { - com.example.simple_union.fragment.CatFragmentImpl_ResponseAdapter.CatFragment.toJson(writer, - customScalarAdapters, value.catFragment) + com.example.simple_union.fragment.CatFragmentImpl_ResponseAdapter.CatFragment.toJson(writer, customScalarAdapters, value.catFragment) } if (value.dogFragment != null) { - com.example.simple_union.fragment.DogFragmentImpl_ResponseAdapter.DogFragment.toJson(writer, - customScalarAdapters, value.dogFragment) + com.example.simple_union.fragment.DogFragmentImpl_ResponseAdapter.DogFragment.toJson(writer, customScalarAdapters, value.dogFragment) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_union/kotlin/operationBased/simple_union/fragment/CatFragmentImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_union/kotlin/operationBased/simple_union/fragment/CatFragmentImpl_ResponseAdapter.kt.expected index 258fa44f44f..e050ceeac1e 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_union/kotlin/operationBased/simple_union/fragment/CatFragmentImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_union/kotlin/operationBased/simple_union/fragment/CatFragmentImpl_ResponseAdapter.kt.expected @@ -18,8 +18,7 @@ public object CatFragmentImpl_ResponseAdapter { public object CatFragment : Adapter { public val RESPONSE_NAMES: List = listOf("meow") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.simple_union.fragment.CatFragment { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.simple_union.fragment.CatFragment { var _meow: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_union/kotlin/operationBased/simple_union/fragment/DogFragmentImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_union/kotlin/operationBased/simple_union/fragment/DogFragmentImpl_ResponseAdapter.kt.expected index 2845846039a..e5ece4c1f0c 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_union/kotlin/operationBased/simple_union/fragment/DogFragmentImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_union/kotlin/operationBased/simple_union/fragment/DogFragmentImpl_ResponseAdapter.kt.expected @@ -18,8 +18,7 @@ public object DogFragmentImpl_ResponseAdapter { public object DogFragment : Adapter { public val RESPONSE_NAMES: List = listOf("woof") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.simple_union.fragment.DogFragment { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.simple_union.fragment.DogFragment { var _woof: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_union/kotlin/responseBased/simple_union/AnimalQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_union/kotlin/responseBased/simple_union/AnimalQuery.kt.expected index b91c3f8df1b..a1fa8c35aea 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_union/kotlin/responseBased/simple_union/AnimalQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_union/kotlin/responseBased/simple_union/AnimalQuery.kt.expected @@ -76,12 +76,14 @@ public class AnimalQuery() : Query { public data class CatAnimal( override val __typename: String, override val meow: String, - ) : Animal, CatFragment + ) : Animal, + CatFragment public data class DogAnimal( override val __typename: String, override val woof: String, - ) : Animal, DogFragment + ) : Animal, + DogFragment public data class OtherAnimal( override val __typename: String, @@ -115,8 +117,7 @@ public class AnimalQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query AnimalQuery { animal { __typename ...CatFragment ...DogFragment } } fragment CatFragment on Cat { meow } fragment DogFragment on Dog { woof }" + get() = "query AnimalQuery { animal { __typename ...CatFragment ...DogFragment } } fragment CatFragment on Cat { meow } fragment DogFragment on Dog { woof }" public const val OPERATION_NAME: String = "AnimalQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_union/kotlin/responseBased/simple_union/adapter/AnimalQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_union/kotlin/responseBased/simple_union/adapter/AnimalQuery_ResponseAdapter.kt.expected index 6a4cc39d666..9924188a79a 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_union/kotlin/responseBased/simple_union/adapter/AnimalQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_union/kotlin/responseBased/simple_union/adapter/AnimalQuery_ResponseAdapter.kt.expected @@ -23,8 +23,7 @@ public object AnimalQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("animal") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - AnimalQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): AnimalQuery.Data { var _animal: AnimalQuery.Data.Animal? = null while (true) { @@ -49,8 +48,7 @@ public object AnimalQuery_ResponseAdapter { } private object Animal : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - AnimalQuery.Data.Animal { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): AnimalQuery.Data.Animal { val __typename = reader.readTypename() return when(__typename) { "Cat", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_union/kotlin/responseBased/simple_union/fragment/CatFragmentImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_union/kotlin/responseBased/simple_union/fragment/CatFragmentImpl.kt.expected index 03f2516513f..75afe92e4d4 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_union/kotlin/responseBased/simple_union/fragment/CatFragmentImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_union/kotlin/responseBased/simple_union/fragment/CatFragmentImpl.kt.expected @@ -42,5 +42,6 @@ public class CatFragmentImpl() : Fragment { public data class Data( override val meow: String, - ) : CatFragment, Fragment.Data + ) : CatFragment, + Fragment.Data } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_union/kotlin/responseBased/simple_union/fragment/CatFragmentImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_union/kotlin/responseBased/simple_union/fragment/CatFragmentImpl_ResponseAdapter.kt.expected index 8b7fc88c9cf..f743e764120 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_union/kotlin/responseBased/simple_union/fragment/CatFragmentImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_union/kotlin/responseBased/simple_union/fragment/CatFragmentImpl_ResponseAdapter.kt.expected @@ -18,8 +18,7 @@ public object CatFragmentImpl_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("meow") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - CatFragmentImpl.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): CatFragmentImpl.Data { var _meow: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_union/kotlin/responseBased/simple_union/fragment/DogFragmentImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_union/kotlin/responseBased/simple_union/fragment/DogFragmentImpl.kt.expected index 1bcdd4eb54b..0f2b8c52632 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_union/kotlin/responseBased/simple_union/fragment/DogFragmentImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_union/kotlin/responseBased/simple_union/fragment/DogFragmentImpl.kt.expected @@ -42,5 +42,6 @@ public class DogFragmentImpl() : Fragment { public data class Data( override val woof: String, - ) : DogFragment, Fragment.Data + ) : DogFragment, + Fragment.Data } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/simple_union/kotlin/responseBased/simple_union/fragment/DogFragmentImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/simple_union/kotlin/responseBased/simple_union/fragment/DogFragmentImpl_ResponseAdapter.kt.expected index 7a241bfff40..b8dbcf89c3b 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/simple_union/kotlin/responseBased/simple_union/fragment/DogFragmentImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/simple_union/kotlin/responseBased/simple_union/fragment/DogFragmentImpl_ResponseAdapter.kt.expected @@ -18,8 +18,7 @@ public object DogFragmentImpl_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("woof") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - DogFragmentImpl.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): DogFragmentImpl.Data { var _woof: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/starships/kotlin/responseBased/starships/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/starships/kotlin/responseBased/starships/TestQuery.kt.expected index ff1a9dd0ef3..bebd8c4922e 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/starships/kotlin/responseBased/starships/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/starships/kotlin/responseBased/starships/TestQuery.kt.expected @@ -35,8 +35,7 @@ public data class TestQuery( customScalarAdapters: CustomScalarAdapters, withDefaultValues: Boolean, ) { - TestQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, - withDefaultValues) + TestQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, withDefaultValues) } override fun adapter(): Adapter = TestQuery_ResponseAdapter.Data.obj() diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/starships/kotlin/responseBased/starships/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/starships/kotlin/responseBased/starships/adapter/TestQuery_ResponseAdapter.kt.expected index 053ff184328..e08efccf61f 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/starships/kotlin/responseBased/starships/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/starships/kotlin/responseBased/starships/adapter/TestQuery_ResponseAdapter.kt.expected @@ -24,8 +24,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("starship") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _starship: TestQuery.Data.Starship? = null while (true) { @@ -52,8 +51,7 @@ public object TestQuery_ResponseAdapter { private object Starship : Adapter { public val RESPONSE_NAMES: List = listOf("id", "name", "coordinates") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Starship { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Starship { var _id: String? = null var _name: String? = null var _coordinates: List>? = null @@ -86,8 +84,7 @@ public object TestQuery_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.name) writer.name("coordinates") - DoubleAdapter.list().list().nullable().toJson(writer, customScalarAdapters, - value.coordinates) + DoubleAdapter.list().list().nullable().toJson(writer, customScalarAdapters, value.coordinates) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/subscriptions/kotlin/responseBased/subscriptions/TestSubscription.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/subscriptions/kotlin/responseBased/subscriptions/TestSubscription.kt.expected index 339bb40dbe6..66c8fb55426 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/subscriptions/kotlin/responseBased/subscriptions/TestSubscription.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/subscriptions/kotlin/responseBased/subscriptions/TestSubscription.kt.expected @@ -34,8 +34,7 @@ public data class TestSubscription( customScalarAdapters: CustomScalarAdapters, withDefaultValues: Boolean, ) { - TestSubscription_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, - withDefaultValues) + TestSubscription_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, withDefaultValues) } override fun adapter(): Adapter = TestSubscription_ResponseAdapter.Data.obj() @@ -84,8 +83,7 @@ public data class TestSubscription( * ``` */ public val OPERATION_DOCUMENT: String - get() = - "subscription TestSubscription(${'$'}repo: String!) { commentAdded(repoFullName: ${'$'}repo) { id content } }" + get() = "subscription TestSubscription(${'$'}repo: String!) { commentAdded(repoFullName: ${'$'}repo) { id content } }" public const val OPERATION_NAME: String = "TestSubscription" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/subscriptions/kotlin/responseBased/subscriptions/adapter/TestSubscription_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/subscriptions/kotlin/responseBased/subscriptions/adapter/TestSubscription_ResponseAdapter.kt.expected index f6f03223b4c..8e7169040cf 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/subscriptions/kotlin/responseBased/subscriptions/adapter/TestSubscription_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/subscriptions/kotlin/responseBased/subscriptions/adapter/TestSubscription_ResponseAdapter.kt.expected @@ -23,8 +23,7 @@ public object TestSubscription_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("commentAdded") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestSubscription.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestSubscription.Data { var _commentAdded: TestSubscription.Data.CommentAdded? = null while (true) { @@ -51,8 +50,7 @@ public object TestSubscription_ResponseAdapter { private object CommentAdded : Adapter { public val RESPONSE_NAMES: List = listOf("id", "content") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestSubscription.Data.CommentAdded { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestSubscription.Data.CommentAdded { var _id: Int? = null var _content: String? = null diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/suppressed_warnings/kotlin/responseBased/suppressed_warnings/CatQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/suppressed_warnings/kotlin/responseBased/suppressed_warnings/CatQuery.kt.expected index 16c7ad8aaf5..4e523190116 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/suppressed_warnings/kotlin/responseBased/suppressed_warnings/CatQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/suppressed_warnings/kotlin/responseBased/suppressed_warnings/CatQuery.kt.expected @@ -37,8 +37,7 @@ public data class CatQuery( customScalarAdapters: CustomScalarAdapters, withDefaultValues: Boolean, ) { - CatQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, - withDefaultValues) + CatQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, withDefaultValues) } override fun adapter(): Adapter = CatQuery_ResponseAdapter.Data.obj() @@ -78,8 +77,7 @@ public data class CatQuery( * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query CatQuery(${'$'}filter: Filter) { search(filter: ${'$'}filter) { mustaches } direction }" + get() = "query CatQuery(${'$'}filter: Filter) { search(filter: ${'$'}filter) { mustaches } direction }" public const val OPERATION_NAME: String = "CatQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/suppressed_warnings/kotlin/responseBased/suppressed_warnings/adapter/CatQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/suppressed_warnings/kotlin/responseBased/suppressed_warnings/adapter/CatQuery_ResponseAdapter.kt.expected index e45bf4ddfeb..0c93cefa27e 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/suppressed_warnings/kotlin/responseBased/suppressed_warnings/adapter/CatQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/suppressed_warnings/kotlin/responseBased/suppressed_warnings/adapter/CatQuery_ResponseAdapter.kt.expected @@ -24,8 +24,7 @@ public object CatQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("search", "direction") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - CatQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): CatQuery.Data { var _search: CatQuery.Data.Search? = null var _direction: Direction? = null @@ -58,8 +57,7 @@ public object CatQuery_ResponseAdapter { private object Search : Adapter { public val RESPONSE_NAMES: List = listOf("mustaches") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - CatQuery.Data.Search { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): CatQuery.Data.Search { var _mustaches: Int? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/suppressed_warnings/kotlin/responseBased/suppressed_warnings/adapter/CatQuery_VariablesAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/suppressed_warnings/kotlin/responseBased/suppressed_warnings/adapter/CatQuery_VariablesAdapter.kt.expected index 567848a5ec3..e78643e4ed4 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/suppressed_warnings/kotlin/responseBased/suppressed_warnings/adapter/CatQuery_VariablesAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/suppressed_warnings/kotlin/responseBased/suppressed_warnings/adapter/CatQuery_VariablesAdapter.kt.expected @@ -29,8 +29,7 @@ public object CatQuery_VariablesAdapter { ) { if (value.filter is Optional.Present) { writer.name("filter") - Filter_InputAdapter.obj().nullable().present().toJson(writer, customScalarAdapters, - value.filter) + Filter_InputAdapter.obj().nullable().present().toJson(writer, customScalarAdapters, value.filter) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/suppressed_warnings/kotlin/responseBased/suppressed_warnings/type/Direction.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/suppressed_warnings/kotlin/responseBased/suppressed_warnings/type/Direction.kt.expected index 6f6474e8177..20549038675 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/suppressed_warnings/kotlin/responseBased/suppressed_warnings/type/Direction.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/suppressed_warnings/kotlin/responseBased/suppressed_warnings/type/Direction.kt.expected @@ -53,10 +53,8 @@ public enum class Direction( /** * Returns the [Direction] that represents the specified [rawValue]. - * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your - * schema instead of calling this function directly. + * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your schema instead of calling this function directly. */ - public fun safeValueOf(rawValue: String): Direction = values().find { it.rawValue == rawValue } - ?: UNKNOWN__ + public fun safeValueOf(rawValue: String): Direction = values().find { it.rawValue == rawValue } ?: UNKNOWN__ } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/suppressed_warnings/kotlin/responseBased/suppressed_warnings/type/adapter/Filter_InputAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/suppressed_warnings/kotlin/responseBased/suppressed_warnings/type/adapter/Filter_InputAdapter.kt.expected index 0fb64717d6a..6a936255d70 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/suppressed_warnings/kotlin/responseBased/suppressed_warnings/type/adapter/Filter_InputAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/suppressed_warnings/kotlin/responseBased/suppressed_warnings/type/adapter/Filter_InputAdapter.kt.expected @@ -21,8 +21,7 @@ import kotlin.Suppress @Suppress("DEPRECATION") @OptIn(ApolloRequiresOptIn::class) public object Filter_InputAdapter : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): Filter = - throw IllegalStateException("Input type used in output position") + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): Filter = throw IllegalStateException("Input type used in output position") override fun toJson( writer: JsonWriter, diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/operationBased/target_name/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/operationBased/target_name/TestQuery.kt.expected index acf7b8ce3d3..de9efaffc31 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/operationBased/target_name/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/operationBased/target_name/TestQuery.kt.expected @@ -39,8 +39,7 @@ public data class TestQuery( customScalarAdapters: CustomScalarAdapters, withDefaultValues: Boolean, ) { - TestQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, - withDefaultValues) + TestQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, withDefaultValues) } override fun adapter(): Adapter = TestQuery_ResponseAdapter.Data.obj() @@ -109,8 +108,7 @@ public data class TestQuery( * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery(${'$'}input: ReservedInput, ${'$'}scalar: ReservedScalar, ${'$'}enum: ReservedEnum) { object(input: ${'$'}input) { field } interface { field } union { __typename ... on ReservedObject { field } } scalar(scalar: ${'$'}scalar) enum(enum: ${'$'}enum) }" + get() = "query TestQuery(${'$'}input: ReservedInput, ${'$'}scalar: ReservedScalar, ${'$'}enum: ReservedEnum) { object(input: ${'$'}input) { field } interface { field } union { __typename ... on ReservedObject { field } } scalar(scalar: ${'$'}scalar) enum(enum: ${'$'}enum) }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/operationBased/target_name/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/operationBased/target_name/adapter/TestQuery_ResponseAdapter.kt.expected index 034d5045f90..4e83a362a0b 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/operationBased/target_name/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/operationBased/target_name/adapter/TestQuery_ResponseAdapter.kt.expected @@ -25,11 +25,10 @@ import kotlin.collections.List public object TestQuery_ResponseAdapter { public object Data : Adapter { - public val RESPONSE_NAMES: List = listOf("object", "interface", "union", "scalar", - "enum") + public val RESPONSE_NAMES: List = + listOf("object", "interface", "union", "scalar", "enum") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _object: TestQuery.Data.Object? = null var _interface: TestQuery.Data.Interface? = null var _union: TestQuery.Data.Union? = null @@ -80,8 +79,7 @@ public object TestQuery_ResponseAdapter { private object Object : Adapter { public val RESPONSE_NAMES: List = listOf("field") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Object { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Object { var _field: String? = null while (true) { @@ -109,8 +107,7 @@ public object TestQuery_ResponseAdapter { private object Interface : Adapter { public val RESPONSE_NAMES: List = listOf("field") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Interface { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Interface { var _field: String? = null while (true) { @@ -138,8 +135,7 @@ public object TestQuery_ResponseAdapter { private object Union : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Union { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Union { var __typename: String? = null while (true) { @@ -156,8 +152,7 @@ public object TestQuery_ResponseAdapter { var _onReservedObject: TestQuery.Data.Union.OnReservedObject? = null if (possibleTypes("ReservedObject").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onReservedObject = com.example.target_name.adapter.TestQuery_ResponseAdapter.Data.Union.OnReservedObject.fromJson(reader, - customScalarAdapters) + _onReservedObject = com.example.target_name.adapter.TestQuery_ResponseAdapter.Data.Union.OnReservedObject.fromJson(reader, customScalarAdapters) } return TestQuery.Data.Union( @@ -175,16 +170,14 @@ public object TestQuery_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.__typename) if (value.onReservedObject != null) { - com.example.target_name.adapter.TestQuery_ResponseAdapter.Data.Union.OnReservedObject.toJson(writer, - customScalarAdapters, value.onReservedObject) + com.example.target_name.adapter.TestQuery_ResponseAdapter.Data.Union.OnReservedObject.toJson(writer, customScalarAdapters, value.onReservedObject) } } private object OnReservedObject : Adapter { public val RESPONSE_NAMES: List = listOf("field") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Union.OnReservedObject { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Union.OnReservedObject { var _field: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/operationBased/target_name/adapter/TestQuery_VariablesAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/operationBased/target_name/adapter/TestQuery_VariablesAdapter.kt.expected index d4102c9e510..1d849f1bacc 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/operationBased/target_name/adapter/TestQuery_VariablesAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/operationBased/target_name/adapter/TestQuery_VariablesAdapter.kt.expected @@ -31,8 +31,7 @@ public object TestQuery_VariablesAdapter { ) { if (value.input is Optional.Present) { writer.name("input") - RenamedInput_InputAdapter.obj().nullable().present().toJson(writer, customScalarAdapters, - value.input) + RenamedInput_InputAdapter.obj().nullable().present().toJson(writer, customScalarAdapters, value.input) } if (value.scalar is Optional.Present) { writer.name("scalar") @@ -40,8 +39,7 @@ public object TestQuery_VariablesAdapter { } if (value.`enum` is Optional.Present) { writer.name("enum") - RenamedEnum_ResponseAdapter.nullable().present().toJson(writer, customScalarAdapters, - value.`enum`) + RenamedEnum_ResponseAdapter.nullable().present().toJson(writer, customScalarAdapters, value.`enum`) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/operationBased/target_name/type/adapter/renamedEnum_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/operationBased/target_name/type/adapter/renamedEnum_ResponseAdapter.kt.expected index b59030bd39e..a9e48066d43 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/operationBased/target_name/type/adapter/renamedEnum_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/operationBased/target_name/type/adapter/renamedEnum_ResponseAdapter.kt.expected @@ -12,8 +12,7 @@ import com.apollographql.apollo.api.json.JsonWriter import com.example.target_name.type.RenamedEnum public object RenamedEnum_ResponseAdapter : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - RenamedEnum { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): RenamedEnum { val rawValue = reader.nextString()!! return RenamedEnum.safeValueOf(rawValue) } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/operationBased/target_name/type/adapter/renamedInput_InputAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/operationBased/target_name/type/adapter/renamedInput_InputAdapter.kt.expected index fecc37482a8..7644092b952 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/operationBased/target_name/type/adapter/renamedInput_InputAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/operationBased/target_name/type/adapter/renamedInput_InputAdapter.kt.expected @@ -16,8 +16,7 @@ import com.example.target_name.type.RenamedInput import kotlin.IllegalStateException public object RenamedInput_InputAdapter : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - RenamedInput = throw IllegalStateException("Input type used in output position") + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): RenamedInput = throw IllegalStateException("Input type used in output position") override fun toJson( writer: JsonWriter, diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/operationBased/target_name/type/renamedEnum.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/operationBased/target_name/type/renamedEnum.kt.expected index b7781cdc765..8859bdb3c42 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/operationBased/target_name/type/renamedEnum.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/operationBased/target_name/type/renamedEnum.kt.expected @@ -42,10 +42,8 @@ public enum class RenamedEnum( /** * Returns the [RenamedEnum] that represents the specified [rawValue]. - * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your - * schema instead of calling this function directly. + * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your schema instead of calling this function directly. */ - public fun safeValueOf(rawValue: String): RenamedEnum = - values().find { it.rawValue == rawValue } ?: UNKNOWN__ + public fun safeValueOf(rawValue: String): RenamedEnum = values().find { it.rawValue == rawValue } ?: UNKNOWN__ } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/responseBased/target_name/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/responseBased/target_name/TestQuery.kt.expected index 29b637de637..0afea93ca2d 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/responseBased/target_name/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/responseBased/target_name/TestQuery.kt.expected @@ -40,8 +40,7 @@ public data class TestQuery( customScalarAdapters: CustomScalarAdapters, withDefaultValues: Boolean, ) { - TestQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, - withDefaultValues) + TestQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, withDefaultValues) } override fun adapter(): Adapter = TestQuery_ResponseAdapter.Data.obj() @@ -116,8 +115,7 @@ public data class TestQuery( * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery(${'$'}input: ReservedInput, ${'$'}scalar: ReservedScalar, ${'$'}enum: ReservedEnum) { object(input: ${'$'}input) { field } interface { field } union { __typename ... on ReservedObject { field } } scalar(scalar: ${'$'}scalar) enum(enum: ${'$'}enum) }" + get() = "query TestQuery(${'$'}input: ReservedInput, ${'$'}scalar: ReservedScalar, ${'$'}enum: ReservedEnum) { object(input: ${'$'}input) { field } interface { field } union { __typename ... on ReservedObject { field } } scalar(scalar: ${'$'}scalar) enum(enum: ${'$'}enum) }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/responseBased/target_name/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/responseBased/target_name/adapter/TestQuery_ResponseAdapter.kt.expected index 51748630a5d..8be6144dffd 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/responseBased/target_name/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/responseBased/target_name/adapter/TestQuery_ResponseAdapter.kt.expected @@ -26,11 +26,10 @@ import kotlin.collections.List public object TestQuery_ResponseAdapter { public object Data : Adapter { - public val RESPONSE_NAMES: List = listOf("object", "interface", "union", "scalar", - "enum") + public val RESPONSE_NAMES: List = + listOf("object", "interface", "union", "scalar", "enum") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _object: TestQuery.Data.Object? = null var _interface: TestQuery.Data.Interface? = null var _union: TestQuery.Data.Union? = null @@ -81,8 +80,7 @@ public object TestQuery_ResponseAdapter { private object Object : Adapter { public val RESPONSE_NAMES: List = listOf("field") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Object { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Object { var _field: String? = null while (true) { @@ -110,8 +108,7 @@ public object TestQuery_ResponseAdapter { private object Interface : Adapter { public val RESPONSE_NAMES: List = listOf("field") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Interface { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Interface { var _field: String? = null while (true) { @@ -137,8 +134,7 @@ public object TestQuery_ResponseAdapter { } private object Union : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Union { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Union { val __typename = reader.readTypename() return when(__typename) { "ReservedObject", @@ -154,8 +150,7 @@ public object TestQuery_ResponseAdapter { `value`: TestQuery.Data.Union, ) { when(value) { - is TestQuery.Data.ReservedObjectUnion -> ReservedObjectUnion.toJson(writer, - customScalarAdapters, value) + is TestQuery.Data.ReservedObjectUnion -> ReservedObjectUnion.toJson(writer, customScalarAdapters, value) is TestQuery.Data.OtherUnion -> OtherUnion.toJson(writer, customScalarAdapters, value) } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/responseBased/target_name/adapter/TestQuery_VariablesAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/responseBased/target_name/adapter/TestQuery_VariablesAdapter.kt.expected index d4102c9e510..1d849f1bacc 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/responseBased/target_name/adapter/TestQuery_VariablesAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/responseBased/target_name/adapter/TestQuery_VariablesAdapter.kt.expected @@ -31,8 +31,7 @@ public object TestQuery_VariablesAdapter { ) { if (value.input is Optional.Present) { writer.name("input") - RenamedInput_InputAdapter.obj().nullable().present().toJson(writer, customScalarAdapters, - value.input) + RenamedInput_InputAdapter.obj().nullable().present().toJson(writer, customScalarAdapters, value.input) } if (value.scalar is Optional.Present) { writer.name("scalar") @@ -40,8 +39,7 @@ public object TestQuery_VariablesAdapter { } if (value.`enum` is Optional.Present) { writer.name("enum") - RenamedEnum_ResponseAdapter.nullable().present().toJson(writer, customScalarAdapters, - value.`enum`) + RenamedEnum_ResponseAdapter.nullable().present().toJson(writer, customScalarAdapters, value.`enum`) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/responseBased/target_name/type/adapter/renamedEnum_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/responseBased/target_name/type/adapter/renamedEnum_ResponseAdapter.kt.expected index b59030bd39e..a9e48066d43 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/responseBased/target_name/type/adapter/renamedEnum_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/responseBased/target_name/type/adapter/renamedEnum_ResponseAdapter.kt.expected @@ -12,8 +12,7 @@ import com.apollographql.apollo.api.json.JsonWriter import com.example.target_name.type.RenamedEnum public object RenamedEnum_ResponseAdapter : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - RenamedEnum { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): RenamedEnum { val rawValue = reader.nextString()!! return RenamedEnum.safeValueOf(rawValue) } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/responseBased/target_name/type/adapter/renamedInput_InputAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/responseBased/target_name/type/adapter/renamedInput_InputAdapter.kt.expected index fecc37482a8..7644092b952 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/responseBased/target_name/type/adapter/renamedInput_InputAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/responseBased/target_name/type/adapter/renamedInput_InputAdapter.kt.expected @@ -16,8 +16,7 @@ import com.example.target_name.type.RenamedInput import kotlin.IllegalStateException public object RenamedInput_InputAdapter : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - RenamedInput = throw IllegalStateException("Input type used in output position") + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): RenamedInput = throw IllegalStateException("Input type used in output position") override fun toJson( writer: JsonWriter, diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/responseBased/target_name/type/renamedEnum.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/responseBased/target_name/type/renamedEnum.kt.expected index b7781cdc765..8859bdb3c42 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/responseBased/target_name/type/renamedEnum.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/target_name/kotlin/responseBased/target_name/type/renamedEnum.kt.expected @@ -42,10 +42,8 @@ public enum class RenamedEnum( /** * Returns the [RenamedEnum] that represents the specified [rawValue]. - * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your - * schema instead of calling this function directly. + * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your schema instead of calling this function directly. */ - public fun safeValueOf(rawValue: String): RenamedEnum = - values().find { it.rawValue == rawValue } ?: UNKNOWN__ + public fun safeValueOf(rawValue: String): RenamedEnum = values().find { it.rawValue == rawValue } ?: UNKNOWN__ } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/test_inline/kotlin/operationBased/test_inline/GetPage.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/test_inline/kotlin/operationBased/test_inline/GetPage.kt.expected index 1b497776790..18cdb008c82 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/test_inline/kotlin/operationBased/test_inline/GetPage.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/test_inline/kotlin/operationBased/test_inline/GetPage.kt.expected @@ -111,8 +111,7 @@ public class GetPage() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query GetPage { collection { __typename items { title } ... on ParticularCollection { items { __typename ... on ParticularItem { image } } } } }" + get() = "query GetPage { collection { __typename items { title } ... on ParticularCollection { items { __typename ... on ParticularItem { image } } } } }" public const val OPERATION_NAME: String = "GetPage" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/test_inline/kotlin/operationBased/test_inline/adapter/GetPage_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/test_inline/kotlin/operationBased/test_inline/adapter/GetPage_ResponseAdapter.kt.expected index cfcd5e568df..b82de2587a6 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/test_inline/kotlin/operationBased/test_inline/adapter/GetPage_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/test_inline/kotlin/operationBased/test_inline/adapter/GetPage_ResponseAdapter.kt.expected @@ -23,8 +23,7 @@ public object GetPage_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("collection") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - GetPage.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): GetPage.Data { var _collection: GetPage.Data.Collection? = null while (true) { @@ -51,8 +50,7 @@ public object GetPage_ResponseAdapter { private object Collection : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "items") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - GetPage.Data.Collection { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): GetPage.Data.Collection { var __typename: String? = null var _items: List? = null @@ -71,8 +69,7 @@ public object GetPage_ResponseAdapter { var _onParticularCollection: GetPage.Data.Collection.OnParticularCollection? = null if (possibleTypes("ParticularCollection").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onParticularCollection = com.example.test_inline.adapter.GetPage_ResponseAdapter.Data.Collection.OnParticularCollection.fromJson(reader, - customScalarAdapters) + _onParticularCollection = com.example.test_inline.adapter.GetPage_ResponseAdapter.Data.Collection.OnParticularCollection.fromJson(reader, customScalarAdapters) } return GetPage.Data.Collection( @@ -94,16 +91,14 @@ public object GetPage_ResponseAdapter { Item.obj().list().toJson(writer, customScalarAdapters, value.items) if (value.onParticularCollection != null) { - com.example.test_inline.adapter.GetPage_ResponseAdapter.Data.Collection.OnParticularCollection.toJson(writer, - customScalarAdapters, value.onParticularCollection) + com.example.test_inline.adapter.GetPage_ResponseAdapter.Data.Collection.OnParticularCollection.toJson(writer, customScalarAdapters, value.onParticularCollection) } } private object Item : Adapter { public val RESPONSE_NAMES: List = listOf("title") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - GetPage.Data.Collection.Item { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): GetPage.Data.Collection.Item { var _title: String? = null while (true) { @@ -128,12 +123,10 @@ public object GetPage_ResponseAdapter { } } - private object OnParticularCollection : - Adapter { + private object OnParticularCollection : Adapter { public val RESPONSE_NAMES: List = listOf("items") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - GetPage.Data.Collection.OnParticularCollection { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): GetPage.Data.Collection.OnParticularCollection { var _items: List? = null while (true) { @@ -160,8 +153,7 @@ public object GetPage_ResponseAdapter { private object Item : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - GetPage.Data.Collection.OnParticularCollection.Item { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): GetPage.Data.Collection.OnParticularCollection.Item { var __typename: String? = null while (true) { @@ -178,8 +170,7 @@ public object GetPage_ResponseAdapter { var _onParticularItem: GetPage.Data.Collection.OnParticularCollection.Item.OnParticularItem? = null if (possibleTypes("ParticularItem").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onParticularItem = com.example.test_inline.adapter.GetPage_ResponseAdapter.Data.Collection.OnParticularCollection.Item.OnParticularItem.fromJson(reader, - customScalarAdapters) + _onParticularItem = com.example.test_inline.adapter.GetPage_ResponseAdapter.Data.Collection.OnParticularCollection.Item.OnParticularItem.fromJson(reader, customScalarAdapters) } return GetPage.Data.Collection.OnParticularCollection.Item( @@ -197,17 +188,14 @@ public object GetPage_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.__typename) if (value.onParticularItem != null) { - com.example.test_inline.adapter.GetPage_ResponseAdapter.Data.Collection.OnParticularCollection.Item.OnParticularItem.toJson(writer, - customScalarAdapters, value.onParticularItem) + com.example.test_inline.adapter.GetPage_ResponseAdapter.Data.Collection.OnParticularCollection.Item.OnParticularItem.toJson(writer, customScalarAdapters, value.onParticularItem) } } - private object OnParticularItem : - Adapter { + private object OnParticularItem : Adapter { public val RESPONSE_NAMES: List = listOf("image") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - GetPage.Data.Collection.OnParticularCollection.Item.OnParticularItem { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): GetPage.Data.Collection.OnParticularCollection.Item.OnParticularItem { var _image: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/test_inline/kotlin/responseBased/test_inline/GetPage.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/test_inline/kotlin/responseBased/test_inline/GetPage.kt.expected index 1f4d0cfa9d8..a70cd336db6 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/test_inline/kotlin/responseBased/test_inline/GetPage.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/test_inline/kotlin/responseBased/test_inline/GetPage.kt.expected @@ -65,8 +65,7 @@ public class GetPage() : Query { public companion object { @Suppress("USELESS_CAST") - public fun Collection.asParticularCollection(): ParticularCollectionCollection? = this as? - ParticularCollectionCollection + public fun Collection.asParticularCollection(): ParticularCollectionCollection? = this as? ParticularCollectionCollection } } @@ -89,12 +88,14 @@ public class GetPage() : Query { override val title: String, override val __typename: String, public val image: String, - ) : Item, Collection.Item + ) : Item, + Collection.Item public data class OtherItem( override val title: String, override val __typename: String, - ) : Item, Collection.Item + ) : Item, + Collection.Item } public data class OtherCollection( @@ -135,8 +136,7 @@ public class GetPage() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query GetPage { collection { __typename items { title } ... on ParticularCollection { items { __typename ... on ParticularItem { image } } } } }" + get() = "query GetPage { collection { __typename items { title } ... on ParticularCollection { items { __typename ... on ParticularItem { image } } } } }" public const val OPERATION_NAME: String = "GetPage" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/test_inline/kotlin/responseBased/test_inline/adapter/GetPage_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/test_inline/kotlin/responseBased/test_inline/adapter/GetPage_ResponseAdapter.kt.expected index 7adb5bb3bd0..d762c34a03b 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/test_inline/kotlin/responseBased/test_inline/adapter/GetPage_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/test_inline/kotlin/responseBased/test_inline/adapter/GetPage_ResponseAdapter.kt.expected @@ -23,8 +23,7 @@ public object GetPage_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("collection") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - GetPage.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): GetPage.Data { var _collection: GetPage.Data.Collection? = null while (true) { @@ -49,8 +48,7 @@ public object GetPage_ResponseAdapter { } private object Collection : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - GetPage.Data.Collection { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): GetPage.Data.Collection { val __typename = reader.readTypename() return when(__typename) { "ParticularCollection", @@ -66,10 +64,8 @@ public object GetPage_ResponseAdapter { `value`: GetPage.Data.Collection, ) { when(value) { - is GetPage.Data.ParticularCollectionCollection -> - ParticularCollectionCollection.toJson(writer, customScalarAdapters, value) - is GetPage.Data.OtherCollection -> OtherCollection.toJson(writer, customScalarAdapters, - value) + is GetPage.Data.ParticularCollectionCollection -> ParticularCollectionCollection.toJson(writer, customScalarAdapters, value) + is GetPage.Data.OtherCollection -> OtherCollection.toJson(writer, customScalarAdapters, value) } } } @@ -112,8 +108,7 @@ public object GetPage_ResponseAdapter { } private object Item : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - GetPage.Data.ParticularCollectionCollection.Item { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): GetPage.Data.ParticularCollectionCollection.Item { val __typename = reader.readTypename() return when(__typename) { "ParticularItem", @@ -129,10 +124,8 @@ public object GetPage_ResponseAdapter { `value`: GetPage.Data.ParticularCollectionCollection.Item, ) { when(value) { - is GetPage.Data.ParticularCollectionCollection.ParticularItemItem -> - ParticularItemItem.toJson(writer, customScalarAdapters, value) - is GetPage.Data.ParticularCollectionCollection.OtherItem -> OtherItem.toJson(writer, - customScalarAdapters, value) + is GetPage.Data.ParticularCollectionCollection.ParticularItemItem -> ParticularItemItem.toJson(writer, customScalarAdapters, value) + is GetPage.Data.ParticularCollectionCollection.OtherItem -> OtherItem.toJson(writer, customScalarAdapters, value) } } } @@ -260,8 +253,7 @@ public object GetPage_ResponseAdapter { private object Item : Adapter { public val RESPONSE_NAMES: List = listOf("title") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - GetPage.Data.OtherCollection.Item { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): GetPage.Data.OtherCollection.Item { var _title: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/two_heroes_unique/kotlin/responseBased/two_heroes_unique/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/two_heroes_unique/kotlin/responseBased/two_heroes_unique/adapter/TestQuery_ResponseAdapter.kt.expected index 531dab1a18a..7c321557f7d 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/two_heroes_unique/kotlin/responseBased/two_heroes_unique/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/two_heroes_unique/kotlin/responseBased/two_heroes_unique/adapter/TestQuery_ResponseAdapter.kt.expected @@ -21,8 +21,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("r2", "luke") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _r2: TestQuery.Data.R2? = null var _luke: TestQuery.Data.Luke? = null @@ -55,8 +54,7 @@ public object TestQuery_ResponseAdapter { private object R2 : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.R2 { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.R2 { var _name: String? = null while (true) { @@ -84,8 +82,7 @@ public object TestQuery_ResponseAdapter { private object Luke : Adapter { public val RESPONSE_NAMES: List = listOf("id", "name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Luke { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Luke { var _id: String? = null var _name: String? = null diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/two_heroes_with_friends/kotlin/responseBased/two_heroes_with_friends/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/two_heroes_with_friends/kotlin/responseBased/two_heroes_with_friends/TestQuery.kt.expected index 0630ad1cf59..3078a811d07 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/two_heroes_with_friends/kotlin/responseBased/two_heroes_with_friends/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/two_heroes_with_friends/kotlin/responseBased/two_heroes_with_friends/TestQuery.kt.expected @@ -172,8 +172,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { r2: hero { name friendsConnection { totalCount edges { node { name } } } } luke: hero(episode: EMPIRE) { id name friendsConnection { totalCount edges { node { name } } } } }" + get() = "query TestQuery { r2: hero { name friendsConnection { totalCount edges { node { name } } } } luke: hero(episode: EMPIRE) { id name friendsConnection { totalCount edges { node { name } } } } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/two_heroes_with_friends/kotlin/responseBased/two_heroes_with_friends/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/two_heroes_with_friends/kotlin/responseBased/two_heroes_with_friends/adapter/TestQuery_ResponseAdapter.kt.expected index 797b1017c58..92686323846 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/two_heroes_with_friends/kotlin/responseBased/two_heroes_with_friends/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/two_heroes_with_friends/kotlin/responseBased/two_heroes_with_friends/adapter/TestQuery_ResponseAdapter.kt.expected @@ -24,8 +24,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("r2", "luke") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _r2: TestQuery.Data.R2? = null var _luke: TestQuery.Data.Luke? = null @@ -58,8 +57,7 @@ public object TestQuery_ResponseAdapter { private object R2 : Adapter { public val RESPONSE_NAMES: List = listOf("name", "friendsConnection") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.R2 { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.R2 { var _name: String? = null var _friendsConnection: TestQuery.Data.R2.FriendsConnection? = null @@ -92,8 +90,7 @@ public object TestQuery_ResponseAdapter { private object FriendsConnection : Adapter { public val RESPONSE_NAMES: List = listOf("totalCount", "edges") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.R2.FriendsConnection { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.R2.FriendsConnection { var _totalCount: Int? = null var _edges: List? = null @@ -126,8 +123,7 @@ public object TestQuery_ResponseAdapter { private object Edge : Adapter { public val RESPONSE_NAMES: List = listOf("node") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.R2.FriendsConnection.Edge { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.R2.FriendsConnection.Edge { var _node: TestQuery.Data.R2.FriendsConnection.Edge.Node? = null while (true) { @@ -154,8 +150,7 @@ public object TestQuery_ResponseAdapter { private object Node : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.R2.FriendsConnection.Edge.Node { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.R2.FriendsConnection.Edge.Node { var _name: String? = null while (true) { @@ -186,8 +181,7 @@ public object TestQuery_ResponseAdapter { private object Luke : Adapter { public val RESPONSE_NAMES: List = listOf("id", "name", "friendsConnection") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Luke { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Luke { var _id: String? = null var _name: String? = null var _friendsConnection: TestQuery.Data.Luke.FriendsConnection? = null @@ -226,8 +220,7 @@ public object TestQuery_ResponseAdapter { private object FriendsConnection : Adapter { public val RESPONSE_NAMES: List = listOf("totalCount", "edges") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Luke.FriendsConnection { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Luke.FriendsConnection { var _totalCount: Int? = null var _edges: List? = null @@ -260,8 +253,7 @@ public object TestQuery_ResponseAdapter { private object Edge : Adapter { public val RESPONSE_NAMES: List = listOf("node") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Luke.FriendsConnection.Edge { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Luke.FriendsConnection.Edge { var _node: TestQuery.Data.Luke.FriendsConnection.Edge.Node? = null while (true) { @@ -288,8 +280,7 @@ public object TestQuery_ResponseAdapter { private object Node : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Luke.FriendsConnection.Edge.Node { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Luke.FriendsConnection.Edge.Node { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/typename_always_first/kotlin/operationBased/typename_always_first/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/typename_always_first/kotlin/operationBased/typename_always_first/TestQuery.kt.expected index 1bd6d9fb578..20000e0c29b 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/typename_always_first/kotlin/operationBased/typename_always_first/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/typename_always_first/kotlin/operationBased/typename_always_first/TestQuery.kt.expected @@ -114,8 +114,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { hero { __typename ... on Human { height __typename } ... on Droid { name __typename primaryFunction } } __typename }" + get() = "query TestQuery { hero { __typename ... on Human { height __typename } ... on Droid { name __typename primaryFunction } } __typename }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/typename_always_first/kotlin/operationBased/typename_always_first/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/typename_always_first/kotlin/operationBased/typename_always_first/adapter/TestQuery_ResponseAdapter.kt.expected index 50f6026499b..0c4629ae433 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/typename_always_first/kotlin/operationBased/typename_always_first/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/typename_always_first/kotlin/operationBased/typename_always_first/adapter/TestQuery_ResponseAdapter.kt.expected @@ -26,8 +26,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero", "__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _hero: TestQuery.Data.Hero? = null var __typename: String? = null @@ -60,8 +59,7 @@ public object TestQuery_ResponseAdapter { private object Hero : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero { var __typename: String? = null while (true) { @@ -78,15 +76,13 @@ public object TestQuery_ResponseAdapter { var _onHuman: TestQuery.Data.Hero.OnHuman? = null if (possibleTypes("Human").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onHuman = com.example.typename_always_first.adapter.TestQuery_ResponseAdapter.Data.Hero.OnHuman.fromJson(reader, - customScalarAdapters) + _onHuman = com.example.typename_always_first.adapter.TestQuery_ResponseAdapter.Data.Hero.OnHuman.fromJson(reader, customScalarAdapters) } var _onDroid: TestQuery.Data.Hero.OnDroid? = null if (possibleTypes("Droid").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onDroid = com.example.typename_always_first.adapter.TestQuery_ResponseAdapter.Data.Hero.OnDroid.fromJson(reader, - customScalarAdapters) + _onDroid = com.example.typename_always_first.adapter.TestQuery_ResponseAdapter.Data.Hero.OnDroid.fromJson(reader, customScalarAdapters) } return TestQuery.Data.Hero( @@ -105,21 +101,18 @@ public object TestQuery_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.__typename) if (value.onHuman != null) { - com.example.typename_always_first.adapter.TestQuery_ResponseAdapter.Data.Hero.OnHuman.toJson(writer, - customScalarAdapters, value.onHuman) + com.example.typename_always_first.adapter.TestQuery_ResponseAdapter.Data.Hero.OnHuman.toJson(writer, customScalarAdapters, value.onHuman) } if (value.onDroid != null) { - com.example.typename_always_first.adapter.TestQuery_ResponseAdapter.Data.Hero.OnDroid.toJson(writer, - customScalarAdapters, value.onDroid) + com.example.typename_always_first.adapter.TestQuery_ResponseAdapter.Data.Hero.OnDroid.toJson(writer, customScalarAdapters, value.onDroid) } } private object OnHuman : Adapter { public val RESPONSE_NAMES: List = listOf("height", "__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero.OnHuman { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero.OnHuman { var _height: Double? = null var __typename: String? = null @@ -153,8 +146,7 @@ public object TestQuery_ResponseAdapter { private object OnDroid : Adapter { public val RESPONSE_NAMES: List = listOf("name", "__typename", "primaryFunction") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero.OnDroid { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero.OnDroid { var _name: String? = null var __typename: String? = null var _primaryFunction: String? = null diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/typename_always_first/kotlin/responseBased/typename_always_first/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/typename_always_first/kotlin/responseBased/typename_always_first/TestQuery.kt.expected index aa867421521..b5ae0ad3853 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/typename_always_first/kotlin/responseBased/typename_always_first/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/typename_always_first/kotlin/responseBased/typename_always_first/TestQuery.kt.expected @@ -119,8 +119,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { hero { __typename ... on Human { height __typename } ... on Droid { name __typename primaryFunction } } __typename }" + get() = "query TestQuery { hero { __typename ... on Human { height __typename } ... on Droid { name __typename primaryFunction } } __typename }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/typename_always_first/kotlin/responseBased/typename_always_first/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/typename_always_first/kotlin/responseBased/typename_always_first/adapter/TestQuery_ResponseAdapter.kt.expected index 8ae4e66ec13..13d05e87fc9 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/typename_always_first/kotlin/responseBased/typename_always_first/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/typename_always_first/kotlin/responseBased/typename_always_first/adapter/TestQuery_ResponseAdapter.kt.expected @@ -26,8 +26,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero", "__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _hero: TestQuery.Data.Hero? = null var __typename: String? = null @@ -58,8 +57,7 @@ public object TestQuery_ResponseAdapter { } private object Hero : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero { val __typename = reader.readTypename() return when(__typename) { "Human", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/union_fragment/kotlin/operationBased/union_fragment/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/union_fragment/kotlin/operationBased/union_fragment/TestQuery.kt.expected index 247e79d8fc7..48cdc86e794 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/union_fragment/kotlin/operationBased/union_fragment/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/union_fragment/kotlin/operationBased/union_fragment/TestQuery.kt.expected @@ -101,8 +101,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { search(text: \"test\") { __typename ... on Starship { id } ...Starship } } fragment Starship on Starship { name }" + get() = "query TestQuery { search(text: \"test\") { __typename ... on Starship { id } ...Starship } } fragment Starship on Starship { name }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/union_fragment/kotlin/operationBased/union_fragment/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/union_fragment/kotlin/operationBased/union_fragment/adapter/TestQuery_ResponseAdapter.kt.expected index 338b82edbfa..1a771190719 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/union_fragment/kotlin/operationBased/union_fragment/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/union_fragment/kotlin/operationBased/union_fragment/adapter/TestQuery_ResponseAdapter.kt.expected @@ -25,8 +25,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("search") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _search: List? = null while (true) { @@ -47,15 +46,13 @@ public object TestQuery_ResponseAdapter { `value`: TestQuery.Data, ) { writer.name("search") - Search.obj(true).nullable().list().nullable().toJson(writer, customScalarAdapters, - value.search) + Search.obj(true).nullable().list().nullable().toJson(writer, customScalarAdapters, value.search) } private object Search : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Search { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Search { var __typename: String? = null while (true) { @@ -72,15 +69,13 @@ public object TestQuery_ResponseAdapter { var _onStarship: TestQuery.Data.Search.OnStarship? = null if (possibleTypes("Starship").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onStarship = com.example.union_fragment.adapter.TestQuery_ResponseAdapter.Data.Search.OnStarship.fromJson(reader, - customScalarAdapters) + _onStarship = com.example.union_fragment.adapter.TestQuery_ResponseAdapter.Data.Search.OnStarship.fromJson(reader, customScalarAdapters) } var _starship: Starship? = null if (possibleTypes("Starship").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _starship = com.example.union_fragment.fragment.StarshipImpl_ResponseAdapter.Starship.fromJson(reader, - customScalarAdapters) + _starship = com.example.union_fragment.fragment.StarshipImpl_ResponseAdapter.Starship.fromJson(reader, customScalarAdapters) } return TestQuery.Data.Search( @@ -99,21 +94,18 @@ public object TestQuery_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.__typename) if (value.onStarship != null) { - com.example.union_fragment.adapter.TestQuery_ResponseAdapter.Data.Search.OnStarship.toJson(writer, - customScalarAdapters, value.onStarship) + com.example.union_fragment.adapter.TestQuery_ResponseAdapter.Data.Search.OnStarship.toJson(writer, customScalarAdapters, value.onStarship) } if (value.starship != null) { - com.example.union_fragment.fragment.StarshipImpl_ResponseAdapter.Starship.toJson(writer, - customScalarAdapters, value.starship) + com.example.union_fragment.fragment.StarshipImpl_ResponseAdapter.Starship.toJson(writer, customScalarAdapters, value.starship) } } private object OnStarship : Adapter { public val RESPONSE_NAMES: List = listOf("id") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Search.OnStarship { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Search.OnStarship { var _id: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/union_fragment/kotlin/operationBased/union_fragment/fragment/StarshipImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/union_fragment/kotlin/operationBased/union_fragment/fragment/StarshipImpl_ResponseAdapter.kt.expected index 3ff9167193d..51afe6ec060 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/union_fragment/kotlin/operationBased/union_fragment/fragment/StarshipImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/union_fragment/kotlin/operationBased/union_fragment/fragment/StarshipImpl_ResponseAdapter.kt.expected @@ -18,8 +18,7 @@ public object StarshipImpl_ResponseAdapter { public object Starship : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.union_fragment.fragment.Starship { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.union_fragment.fragment.Starship { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/union_fragment/kotlin/responseBased/union_fragment/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/union_fragment/kotlin/responseBased/union_fragment/TestQuery.kt.expected index 4c386e66ac3..75102805935 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/union_fragment/kotlin/responseBased/union_fragment/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/union_fragment/kotlin/responseBased/union_fragment/TestQuery.kt.expected @@ -79,7 +79,8 @@ public class TestQuery() : Query { * The name of the starship */ override val name: String, - ) : Search, Starship + ) : Search, + Starship public data class OtherSearch( override val __typename: String, @@ -111,8 +112,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { search(text: \"test\") { __typename ... on Starship { id } ...Starship } } fragment Starship on Starship { name }" + get() = "query TestQuery { search(text: \"test\") { __typename ... on Starship { id } ...Starship } } fragment Starship on Starship { name }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/union_fragment/kotlin/responseBased/union_fragment/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/union_fragment/kotlin/responseBased/union_fragment/adapter/TestQuery_ResponseAdapter.kt.expected index 5579b1eaaa8..11d4679b751 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/union_fragment/kotlin/responseBased/union_fragment/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/union_fragment/kotlin/responseBased/union_fragment/adapter/TestQuery_ResponseAdapter.kt.expected @@ -24,8 +24,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("search") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _search: List? = null while (true) { @@ -50,8 +49,7 @@ public object TestQuery_ResponseAdapter { } private object Search : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Search { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Search { val __typename = reader.readTypename() return when(__typename) { "Starship", @@ -67,8 +65,7 @@ public object TestQuery_ResponseAdapter { `value`: TestQuery.Data.Search, ) { when(value) { - is TestQuery.Data.StarshipSearch -> StarshipSearch.toJson(writer, customScalarAdapters, - value) + is TestQuery.Data.StarshipSearch -> StarshipSearch.toJson(writer, customScalarAdapters, value) is TestQuery.Data.OtherSearch -> OtherSearch.toJson(writer, customScalarAdapters, value) } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/union_fragment/kotlin/responseBased/union_fragment/fragment/StarshipImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/union_fragment/kotlin/responseBased/union_fragment/fragment/StarshipImpl.kt.expected index 0897f57b937..e167008c142 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/union_fragment/kotlin/responseBased/union_fragment/fragment/StarshipImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/union_fragment/kotlin/responseBased/union_fragment/fragment/StarshipImpl.kt.expected @@ -44,5 +44,6 @@ public class StarshipImpl() : Fragment { * The name of the starship */ override val name: String, - ) : Starship, Fragment.Data + ) : Starship, + Fragment.Data } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/union_fragment/kotlin/responseBased/union_fragment/fragment/StarshipImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/union_fragment/kotlin/responseBased/union_fragment/fragment/StarshipImpl_ResponseAdapter.kt.expected index de36613ec44..155c9a1097a 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/union_fragment/kotlin/responseBased/union_fragment/fragment/StarshipImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/union_fragment/kotlin/responseBased/union_fragment/fragment/StarshipImpl_ResponseAdapter.kt.expected @@ -18,8 +18,7 @@ public object StarshipImpl_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - StarshipImpl.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): StarshipImpl.Data { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/union_inline_fragments/kotlin/operationBased/union_inline_fragments/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/union_inline_fragments/kotlin/operationBased/union_inline_fragments/TestQuery.kt.expected index eaba5d306b6..e79ee24d904 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/union_inline_fragments/kotlin/operationBased/union_inline_fragments/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/union_inline_fragments/kotlin/operationBased/union_inline_fragments/TestQuery.kt.expected @@ -209,8 +209,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { search(text: \"test\") { __typename ... on Character { id name friends { __typename ... on Character { name } ... on Human { homePlanet friends { __typename ... on Character { firstAppearsIn } } } ... on Droid { primaryFunction friends { id } } } } ... on Starship { name } } }" + get() = "query TestQuery { search(text: \"test\") { __typename ... on Character { id name friends { __typename ... on Character { name } ... on Human { homePlanet friends { __typename ... on Character { firstAppearsIn } } } ... on Droid { primaryFunction friends { id } } } } ... on Starship { name } } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/union_inline_fragments/kotlin/operationBased/union_inline_fragments/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/union_inline_fragments/kotlin/operationBased/union_inline_fragments/adapter/TestQuery_ResponseAdapter.kt.expected index a1d7c281928..5589fa057b1 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/union_inline_fragments/kotlin/operationBased/union_inline_fragments/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/union_inline_fragments/kotlin/operationBased/union_inline_fragments/adapter/TestQuery_ResponseAdapter.kt.expected @@ -27,8 +27,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("search") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _search: List? = null while (true) { @@ -49,15 +48,13 @@ public object TestQuery_ResponseAdapter { `value`: TestQuery.Data, ) { writer.name("search") - Search.obj(true).nullable().list().nullable().toJson(writer, customScalarAdapters, - value.search) + Search.obj(true).nullable().list().nullable().toJson(writer, customScalarAdapters, value.search) } private object Search : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Search { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Search { var __typename: String? = null while (true) { @@ -74,15 +71,13 @@ public object TestQuery_ResponseAdapter { var _onCharacter: TestQuery.Data.Search.OnCharacter? = null if (possibleTypes("Droid","Human").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onCharacter = com.example.union_inline_fragments.adapter.TestQuery_ResponseAdapter.Data.Search.OnCharacter.fromJson(reader, - customScalarAdapters) + _onCharacter = com.example.union_inline_fragments.adapter.TestQuery_ResponseAdapter.Data.Search.OnCharacter.fromJson(reader, customScalarAdapters) } var _onStarship: TestQuery.Data.Search.OnStarship? = null if (possibleTypes("Starship").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onStarship = com.example.union_inline_fragments.adapter.TestQuery_ResponseAdapter.Data.Search.OnStarship.fromJson(reader, - customScalarAdapters) + _onStarship = com.example.union_inline_fragments.adapter.TestQuery_ResponseAdapter.Data.Search.OnStarship.fromJson(reader, customScalarAdapters) } return TestQuery.Data.Search( @@ -101,21 +96,18 @@ public object TestQuery_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.__typename) if (value.onCharacter != null) { - com.example.union_inline_fragments.adapter.TestQuery_ResponseAdapter.Data.Search.OnCharacter.toJson(writer, - customScalarAdapters, value.onCharacter) + com.example.union_inline_fragments.adapter.TestQuery_ResponseAdapter.Data.Search.OnCharacter.toJson(writer, customScalarAdapters, value.onCharacter) } if (value.onStarship != null) { - com.example.union_inline_fragments.adapter.TestQuery_ResponseAdapter.Data.Search.OnStarship.toJson(writer, - customScalarAdapters, value.onStarship) + com.example.union_inline_fragments.adapter.TestQuery_ResponseAdapter.Data.Search.OnStarship.toJson(writer, customScalarAdapters, value.onStarship) } } private object OnCharacter : Adapter { public val RESPONSE_NAMES: List = listOf("id", "name", "friends") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Search.OnCharacter { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Search.OnCharacter { var _id: String? = null var _name: String? = null var _friends: List? = null @@ -148,15 +140,13 @@ public object TestQuery_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.name) writer.name("friends") - Friend.obj(true).nullable().list().nullable().toJson(writer, customScalarAdapters, - value.friends) + Friend.obj(true).nullable().list().nullable().toJson(writer, customScalarAdapters, value.friends) } private object Friend : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Search.OnCharacter.Friend { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Search.OnCharacter.Friend { var __typename: String? = null while (true) { @@ -171,21 +161,18 @@ public object TestQuery_ResponseAdapter { } reader.rewind() - val _onCharacter = com.example.union_inline_fragments.adapter.TestQuery_ResponseAdapter.Data.Search.OnCharacter.Friend.OnCharacter.fromJson(reader, - customScalarAdapters) + val _onCharacter = com.example.union_inline_fragments.adapter.TestQuery_ResponseAdapter.Data.Search.OnCharacter.Friend.OnCharacter.fromJson(reader, customScalarAdapters) var _onHuman: TestQuery.Data.Search.OnCharacter.Friend.OnHuman? = null if (possibleTypes("Human").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onHuman = com.example.union_inline_fragments.adapter.TestQuery_ResponseAdapter.Data.Search.OnCharacter.Friend.OnHuman.fromJson(reader, - customScalarAdapters) + _onHuman = com.example.union_inline_fragments.adapter.TestQuery_ResponseAdapter.Data.Search.OnCharacter.Friend.OnHuman.fromJson(reader, customScalarAdapters) } var _onDroid: TestQuery.Data.Search.OnCharacter.Friend.OnDroid? = null if (possibleTypes("Droid").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onDroid = com.example.union_inline_fragments.adapter.TestQuery_ResponseAdapter.Data.Search.OnCharacter.Friend.OnDroid.fromJson(reader, - customScalarAdapters) + _onDroid = com.example.union_inline_fragments.adapter.TestQuery_ResponseAdapter.Data.Search.OnCharacter.Friend.OnDroid.fromJson(reader, customScalarAdapters) } return TestQuery.Data.Search.OnCharacter.Friend( @@ -204,26 +191,21 @@ public object TestQuery_ResponseAdapter { writer.name("__typename") StringAdapter.toJson(writer, customScalarAdapters, value.__typename) - com.example.union_inline_fragments.adapter.TestQuery_ResponseAdapter.Data.Search.OnCharacter.Friend.OnCharacter.toJson(writer, - customScalarAdapters, value.onCharacter) + com.example.union_inline_fragments.adapter.TestQuery_ResponseAdapter.Data.Search.OnCharacter.Friend.OnCharacter.toJson(writer, customScalarAdapters, value.onCharacter) if (value.onHuman != null) { - com.example.union_inline_fragments.adapter.TestQuery_ResponseAdapter.Data.Search.OnCharacter.Friend.OnHuman.toJson(writer, - customScalarAdapters, value.onHuman) + com.example.union_inline_fragments.adapter.TestQuery_ResponseAdapter.Data.Search.OnCharacter.Friend.OnHuman.toJson(writer, customScalarAdapters, value.onHuman) } if (value.onDroid != null) { - com.example.union_inline_fragments.adapter.TestQuery_ResponseAdapter.Data.Search.OnCharacter.Friend.OnDroid.toJson(writer, - customScalarAdapters, value.onDroid) + com.example.union_inline_fragments.adapter.TestQuery_ResponseAdapter.Data.Search.OnCharacter.Friend.OnDroid.toJson(writer, customScalarAdapters, value.onDroid) } } - private object OnCharacter : Adapter - { + private object OnCharacter : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Search.OnCharacter.Friend.OnCharacter { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Search.OnCharacter.Friend.OnCharacter { var _name: String? = null while (true) { @@ -251,8 +233,7 @@ public object TestQuery_ResponseAdapter { private object OnHuman : Adapter { public val RESPONSE_NAMES: List = listOf("homePlanet", "friends") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Search.OnCharacter.Friend.OnHuman { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Search.OnCharacter.Friend.OnHuman { var _homePlanet: String? = null var _friends: List? = null @@ -279,16 +260,13 @@ public object TestQuery_ResponseAdapter { NullableStringAdapter.toJson(writer, customScalarAdapters, value.homePlanet) writer.name("friends") - Friend.obj(true).nullable().list().nullable().toJson(writer, customScalarAdapters, - value.friends) + Friend.obj(true).nullable().list().nullable().toJson(writer, customScalarAdapters, value.friends) } - private object Friend : Adapter - { + private object Friend : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Search.OnCharacter.Friend.OnHuman.Friend { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Search.OnCharacter.Friend.OnHuman.Friend { var __typename: String? = null while (true) { @@ -299,8 +277,7 @@ public object TestQuery_ResponseAdapter { } reader.rewind() - val _onCharacter = com.example.union_inline_fragments.adapter.TestQuery_ResponseAdapter.Data.Search.OnCharacter.Friend.OnHuman.Friend.OnCharacter.fromJson(reader, - customScalarAdapters) + val _onCharacter = com.example.union_inline_fragments.adapter.TestQuery_ResponseAdapter.Data.Search.OnCharacter.Friend.OnHuman.Friend.OnCharacter.fromJson(reader, customScalarAdapters) return TestQuery.Data.Search.OnCharacter.Friend.OnHuman.Friend( __typename = __typename ?: missingField(reader, "__typename"), @@ -316,17 +293,13 @@ public object TestQuery_ResponseAdapter { writer.name("__typename") StringAdapter.toJson(writer, customScalarAdapters, value.__typename) - com.example.union_inline_fragments.adapter.TestQuery_ResponseAdapter.Data.Search.OnCharacter.Friend.OnHuman.Friend.OnCharacter.toJson(writer, - customScalarAdapters, value.onCharacter) + com.example.union_inline_fragments.adapter.TestQuery_ResponseAdapter.Data.Search.OnCharacter.Friend.OnHuman.Friend.OnCharacter.toJson(writer, customScalarAdapters, value.onCharacter) } - private object OnCharacter : - Adapter { + private object OnCharacter : Adapter { public val RESPONSE_NAMES: List = listOf("firstAppearsIn") - override fun fromJson(reader: JsonReader, - customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Search.OnCharacter.Friend.OnHuman.Friend.OnCharacter { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Search.OnCharacter.Friend.OnHuman.Friend.OnCharacter { var _firstAppearsIn: Episode? = null while (true) { @@ -356,8 +329,7 @@ public object TestQuery_ResponseAdapter { private object OnDroid : Adapter { public val RESPONSE_NAMES: List = listOf("primaryFunction", "friends") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Search.OnCharacter.Friend.OnDroid { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Search.OnCharacter.Friend.OnDroid { var _primaryFunction: String? = null var _friends: List? = null @@ -384,16 +356,13 @@ public object TestQuery_ResponseAdapter { NullableStringAdapter.toJson(writer, customScalarAdapters, value.primaryFunction) writer.name("friends") - Friend.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, - value.friends) + Friend.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, value.friends) } - private object Friend : Adapter - { + private object Friend : Adapter { public val RESPONSE_NAMES: List = listOf("id") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Search.OnCharacter.Friend.OnDroid.Friend { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Search.OnCharacter.Friend.OnDroid.Friend { var _id: String? = null while (true) { @@ -424,8 +393,7 @@ public object TestQuery_ResponseAdapter { private object OnStarship : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Search.OnStarship { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Search.OnStarship { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/union_inline_fragments/kotlin/operationBased/union_inline_fragments/type/Episode.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/union_inline_fragments/kotlin/operationBased/union_inline_fragments/type/Episode.kt.expected index 79119fdd521..81fbbdaa650 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/union_inline_fragments/kotlin/operationBased/union_inline_fragments/type/Episode.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/union_inline_fragments/kotlin/operationBased/union_inline_fragments/type/Episode.kt.expected @@ -47,8 +47,8 @@ public enum class Episode( ; public companion object { - public val type: EnumType = EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", - "DEPRECATED", "new")) + public val type: EnumType = + EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", "DEPRECATED", "new")) /** * All [Episode] known at compile time @@ -73,10 +73,8 @@ public enum class Episode( /** * Returns the [Episode] that represents the specified [rawValue]. - * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your - * schema instead of calling this function directly. + * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your schema instead of calling this function directly. */ - public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: - UNKNOWN__ + public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: UNKNOWN__ } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/union_inline_fragments/kotlin/responseBased/union_inline_fragments/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/union_inline_fragments/kotlin/responseBased/union_inline_fragments/TestQuery.kt.expected index 40b88a5f574..b2a9e6ea110 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/union_inline_fragments/kotlin/responseBased/union_inline_fragments/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/union_inline_fragments/kotlin/responseBased/union_inline_fragments/TestQuery.kt.expected @@ -221,8 +221,7 @@ public class TestQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery { search(text: \"test\") { __typename ... on Character { id name friends { __typename ... on Character { name } ... on Human { homePlanet friends { __typename ... on Character { firstAppearsIn } } } ... on Droid { primaryFunction friends { id } } } } ... on Starship { name } } }" + get() = "query TestQuery { search(text: \"test\") { __typename ... on Character { id name friends { __typename ... on Character { name } ... on Human { homePlanet friends { __typename ... on Character { firstAppearsIn } } } ... on Droid { primaryFunction friends { id } } } } ... on Starship { name } } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/union_inline_fragments/kotlin/responseBased/union_inline_fragments/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/union_inline_fragments/kotlin/responseBased/union_inline_fragments/adapter/TestQuery_ResponseAdapter.kt.expected index 417c74149a7..36f7b12c9b4 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/union_inline_fragments/kotlin/responseBased/union_inline_fragments/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/union_inline_fragments/kotlin/responseBased/union_inline_fragments/adapter/TestQuery_ResponseAdapter.kt.expected @@ -27,8 +27,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("search") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _search: List? = null while (true) { @@ -53,8 +52,7 @@ public object TestQuery_ResponseAdapter { } private object Search : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Search { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Search { val __typename = reader.readTypename() return when(__typename) { "Droid", @@ -73,10 +71,8 @@ public object TestQuery_ResponseAdapter { `value`: TestQuery.Data.Search, ) { when(value) { - is TestQuery.Data.CharacterSearch -> CharacterSearch.toJson(writer, customScalarAdapters, - value) - is TestQuery.Data.StarshipSearch -> StarshipSearch.toJson(writer, customScalarAdapters, - value) + is TestQuery.Data.CharacterSearch -> CharacterSearch.toJson(writer, customScalarAdapters, value) + is TestQuery.Data.StarshipSearch -> StarshipSearch.toJson(writer, customScalarAdapters, value) is TestQuery.Data.OtherSearch -> OtherSearch.toJson(writer, customScalarAdapters, value) } } @@ -128,13 +124,11 @@ public object TestQuery_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.name) writer.name("friends") - Friend.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, - value.friends) + Friend.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, value.friends) } private object Friend : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.CharacterSearch.Friend { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.CharacterSearch.Friend { val __typename = reader.readTypename() return when(__typename) { "Human", @@ -152,19 +146,16 @@ public object TestQuery_ResponseAdapter { `value`: TestQuery.Data.CharacterSearch.Friend, ) { when(value) { - is TestQuery.Data.CharacterSearch.HumanFriend -> HumanFriend.toJson(writer, - customScalarAdapters, value) - is TestQuery.Data.CharacterSearch.DroidFriend -> DroidFriend.toJson(writer, - customScalarAdapters, value) - is TestQuery.Data.CharacterSearch.OtherFriend -> OtherFriend.toJson(writer, - customScalarAdapters, value) + is TestQuery.Data.CharacterSearch.HumanFriend -> HumanFriend.toJson(writer, customScalarAdapters, value) + is TestQuery.Data.CharacterSearch.DroidFriend -> DroidFriend.toJson(writer, customScalarAdapters, value) + is TestQuery.Data.CharacterSearch.OtherFriend -> OtherFriend.toJson(writer, customScalarAdapters, value) } } } public object HumanFriend { - public val RESPONSE_NAMES: List = listOf("__typename", "name", "homePlanet", - "friends") + public val RESPONSE_NAMES: List = + listOf("__typename", "name", "homePlanet", "friends") public fun fromJson( reader: JsonReader, @@ -209,15 +200,13 @@ public object TestQuery_ResponseAdapter { NullableStringAdapter.toJson(writer, customScalarAdapters, value.homePlanet) writer.name("friends") - Friend.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, - value.friends) + Friend.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, value.friends) } private object Friend : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "firstAppearsIn") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.CharacterSearch.HumanFriend.Friend { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.CharacterSearch.HumanFriend.Friend { var __typename: String? = null var _firstAppearsIn: Episode? = null @@ -250,8 +239,8 @@ public object TestQuery_ResponseAdapter { } public object DroidFriend { - public val RESPONSE_NAMES: List = listOf("__typename", "name", "primaryFunction", - "friends") + public val RESPONSE_NAMES: List = + listOf("__typename", "name", "primaryFunction", "friends") public fun fromJson( reader: JsonReader, @@ -296,15 +285,13 @@ public object TestQuery_ResponseAdapter { NullableStringAdapter.toJson(writer, customScalarAdapters, value.primaryFunction) writer.name("friends") - Friend.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, - value.friends) + Friend.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, value.friends) } private object Friend : Adapter { public val RESPONSE_NAMES: List = listOf("id") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.CharacterSearch.DroidFriend.Friend { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.CharacterSearch.DroidFriend.Friend { var _id: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/union_inline_fragments/kotlin/responseBased/union_inline_fragments/type/Episode.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/union_inline_fragments/kotlin/responseBased/union_inline_fragments/type/Episode.kt.expected index 79119fdd521..81fbbdaa650 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/union_inline_fragments/kotlin/responseBased/union_inline_fragments/type/Episode.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/union_inline_fragments/kotlin/responseBased/union_inline_fragments/type/Episode.kt.expected @@ -47,8 +47,8 @@ public enum class Episode( ; public companion object { - public val type: EnumType = EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", - "DEPRECATED", "new")) + public val type: EnumType = + EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", "DEPRECATED", "new")) /** * All [Episode] known at compile time @@ -73,10 +73,8 @@ public enum class Episode( /** * Returns the [Episode] that represents the specified [rawValue]. - * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your - * schema instead of calling this function directly. + * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your schema instead of calling this function directly. */ - public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: - UNKNOWN__ + public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: UNKNOWN__ } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/unique_type_name/kotlin/operationBased/unique_type_name/HeroDetailQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/unique_type_name/kotlin/operationBased/unique_type_name/HeroDetailQuery.kt.expected index 361734835c4..7f1f02b9058 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/unique_type_name/kotlin/operationBased/unique_type_name/HeroDetailQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/unique_type_name/kotlin/operationBased/unique_type_name/HeroDetailQuery.kt.expected @@ -161,8 +161,7 @@ public class HeroDetailQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query HeroDetailQuery { heroDetailQuery { __typename name friends { name } ... on Human { height friends { appearsIn friends { __typename ...HeroDetails } } } } } fragment HeroDetails on Character { name friendsConnection { totalCount edges { node { name } } } }" + get() = "query HeroDetailQuery { heroDetailQuery { __typename name friends { name } ... on Human { height friends { appearsIn friends { __typename ...HeroDetails } } } } } fragment HeroDetails on Character { name friendsConnection { totalCount edges { node { name } } } }" public const val OPERATION_NAME: String = "HeroDetailQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/unique_type_name/kotlin/operationBased/unique_type_name/adapter/HeroDetailQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/unique_type_name/kotlin/operationBased/unique_type_name/adapter/HeroDetailQuery_ResponseAdapter.kt.expected index cdc226c99fa..bc7296e5d9f 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/unique_type_name/kotlin/operationBased/unique_type_name/adapter/HeroDetailQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/unique_type_name/kotlin/operationBased/unique_type_name/adapter/HeroDetailQuery_ResponseAdapter.kt.expected @@ -28,8 +28,7 @@ public object HeroDetailQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("heroDetailQuery") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.unique_type_name.HeroDetailQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.unique_type_name.HeroDetailQuery.Data { var _heroDetailQuery: com.example.unique_type_name.HeroDetailQuery.Data.HeroDetailQuery? = null while (true) { @@ -50,16 +49,13 @@ public object HeroDetailQuery_ResponseAdapter { `value`: com.example.unique_type_name.HeroDetailQuery.Data, ) { writer.name("heroDetailQuery") - HeroDetailQuery.obj(true).nullable().toJson(writer, customScalarAdapters, - value.heroDetailQuery) + HeroDetailQuery.obj(true).nullable().toJson(writer, customScalarAdapters, value.heroDetailQuery) } - private object HeroDetailQuery : - Adapter { + private object HeroDetailQuery : Adapter { public val RESPONSE_NAMES: List = listOf("__typename", "name", "friends") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.unique_type_name.HeroDetailQuery.Data.HeroDetailQuery { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.unique_type_name.HeroDetailQuery.Data.HeroDetailQuery { var __typename: String? = null var _name: String? = null var _friends: List? = null @@ -80,8 +76,7 @@ public object HeroDetailQuery_ResponseAdapter { var _onHuman: com.example.unique_type_name.HeroDetailQuery.Data.HeroDetailQuery.OnHuman? = null if (possibleTypes("Human").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onHuman = com.example.unique_type_name.adapter.HeroDetailQuery_ResponseAdapter.Data.HeroDetailQuery.OnHuman.fromJson(reader, - customScalarAdapters) + _onHuman = com.example.unique_type_name.adapter.HeroDetailQuery_ResponseAdapter.Data.HeroDetailQuery.OnHuman.fromJson(reader, customScalarAdapters) } return com.example.unique_type_name.HeroDetailQuery.Data.HeroDetailQuery( @@ -104,21 +99,17 @@ public object HeroDetailQuery_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.name) writer.name("friends") - Friend.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, - value.friends) + Friend.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, value.friends) if (value.onHuman != null) { - com.example.unique_type_name.adapter.HeroDetailQuery_ResponseAdapter.Data.HeroDetailQuery.OnHuman.toJson(writer, - customScalarAdapters, value.onHuman) + com.example.unique_type_name.adapter.HeroDetailQuery_ResponseAdapter.Data.HeroDetailQuery.OnHuman.toJson(writer, customScalarAdapters, value.onHuman) } } - private object Friend : - Adapter { + private object Friend : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.unique_type_name.HeroDetailQuery.Data.HeroDetailQuery.Friend { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.unique_type_name.HeroDetailQuery.Data.HeroDetailQuery.Friend { var _name: String? = null while (true) { @@ -143,12 +134,10 @@ public object HeroDetailQuery_ResponseAdapter { } } - private object OnHuman : - Adapter { + private object OnHuman : Adapter { public val RESPONSE_NAMES: List = listOf("height", "friends") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.unique_type_name.HeroDetailQuery.Data.HeroDetailQuery.OnHuman { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.unique_type_name.HeroDetailQuery.Data.HeroDetailQuery.OnHuman { var _height: Double? = null var _friends: List? = null @@ -175,17 +164,13 @@ public object HeroDetailQuery_ResponseAdapter { NullableDoubleAdapter.toJson(writer, customScalarAdapters, value.height) writer.name("friends") - Friend.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, - value.friends) + Friend.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, value.friends) } - private object Friend : - Adapter - { + private object Friend : Adapter { public val RESPONSE_NAMES: List = listOf("appearsIn", "friends") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.unique_type_name.HeroDetailQuery.Data.HeroDetailQuery.OnHuman.Friend { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.unique_type_name.HeroDetailQuery.Data.HeroDetailQuery.OnHuman.Friend { var _appearsIn: List? = null var _friends: List? = null @@ -209,21 +194,16 @@ public object HeroDetailQuery_ResponseAdapter { `value`: com.example.unique_type_name.HeroDetailQuery.Data.HeroDetailQuery.OnHuman.Friend, ) { writer.name("appearsIn") - Episode_ResponseAdapter.nullable().list().toJson(writer, customScalarAdapters, - value.appearsIn) + Episode_ResponseAdapter.nullable().list().toJson(writer, customScalarAdapters, value.appearsIn) writer.name("friends") - Friend.obj(true).nullable().list().nullable().toJson(writer, customScalarAdapters, - value.friends) + Friend.obj(true).nullable().list().nullable().toJson(writer, customScalarAdapters, value.friends) } - private object Friend : - Adapter - { + private object Friend : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.unique_type_name.HeroDetailQuery.Data.HeroDetailQuery.OnHuman.Friend.Friend { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.unique_type_name.HeroDetailQuery.Data.HeroDetailQuery.OnHuman.Friend.Friend { var __typename: String? = null while (true) { @@ -234,8 +214,7 @@ public object HeroDetailQuery_ResponseAdapter { } reader.rewind() - val _heroDetails = com.example.unique_type_name.fragment.HeroDetailsImpl_ResponseAdapter.HeroDetails.fromJson(reader, - customScalarAdapters) + val _heroDetails = com.example.unique_type_name.fragment.HeroDetailsImpl_ResponseAdapter.HeroDetails.fromJson(reader, customScalarAdapters) return com.example.unique_type_name.HeroDetailQuery.Data.HeroDetailQuery.OnHuman.Friend.Friend( __typename = __typename ?: missingField(reader, "__typename"), @@ -251,8 +230,7 @@ public object HeroDetailQuery_ResponseAdapter { writer.name("__typename") StringAdapter.toJson(writer, customScalarAdapters, value.__typename) - com.example.unique_type_name.fragment.HeroDetailsImpl_ResponseAdapter.HeroDetails.toJson(writer, - customScalarAdapters, value.heroDetails) + com.example.unique_type_name.fragment.HeroDetailsImpl_ResponseAdapter.HeroDetails.toJson(writer, customScalarAdapters, value.heroDetails) } } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/unique_type_name/kotlin/operationBased/unique_type_name/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/unique_type_name/kotlin/operationBased/unique_type_name/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected index cc3b46005b3..8628653b7e8 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/unique_type_name/kotlin/operationBased/unique_type_name/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/unique_type_name/kotlin/operationBased/unique_type_name/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected @@ -23,8 +23,7 @@ public object HeroDetailsImpl_ResponseAdapter { public object HeroDetails : Adapter { public val RESPONSE_NAMES: List = listOf("name", "friendsConnection") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.unique_type_name.fragment.HeroDetails { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.unique_type_name.fragment.HeroDetails { var _name: String? = null var _friendsConnection: com.example.unique_type_name.fragment.HeroDetails.FriendsConnection? = null @@ -54,12 +53,10 @@ public object HeroDetailsImpl_ResponseAdapter { FriendsConnection.obj().toJson(writer, customScalarAdapters, value.friendsConnection) } - private object FriendsConnection : - Adapter { + private object FriendsConnection : Adapter { public val RESPONSE_NAMES: List = listOf("totalCount", "edges") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.unique_type_name.fragment.HeroDetails.FriendsConnection { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.unique_type_name.fragment.HeroDetails.FriendsConnection { var _totalCount: Int? = null var _edges: List? = null @@ -89,12 +86,10 @@ public object HeroDetailsImpl_ResponseAdapter { Edge.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, value.edges) } - private object Edge : - Adapter { + private object Edge : Adapter { public val RESPONSE_NAMES: List = listOf("node") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.unique_type_name.fragment.HeroDetails.FriendsConnection.Edge { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.unique_type_name.fragment.HeroDetails.FriendsConnection.Edge { var _node: com.example.unique_type_name.fragment.HeroDetails.FriendsConnection.Edge.Node? = null while (true) { @@ -118,12 +113,10 @@ public object HeroDetailsImpl_ResponseAdapter { Node.obj().nullable().toJson(writer, customScalarAdapters, value.node) } - private object Node : - Adapter { + private object Node : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.unique_type_name.fragment.HeroDetails.FriendsConnection.Edge.Node { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.unique_type_name.fragment.HeroDetails.FriendsConnection.Edge.Node { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/unique_type_name/kotlin/operationBased/unique_type_name/type/Episode.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/unique_type_name/kotlin/operationBased/unique_type_name/type/Episode.kt.expected index 6f7b04dc89a..60490d39978 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/unique_type_name/kotlin/operationBased/unique_type_name/type/Episode.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/unique_type_name/kotlin/operationBased/unique_type_name/type/Episode.kt.expected @@ -47,8 +47,8 @@ public enum class Episode( ; public companion object { - public val type: EnumType = EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", - "DEPRECATED", "new")) + public val type: EnumType = + EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", "DEPRECATED", "new")) /** * All [Episode] known at compile time @@ -73,10 +73,8 @@ public enum class Episode( /** * Returns the [Episode] that represents the specified [rawValue]. - * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your - * schema instead of calling this function directly. + * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your schema instead of calling this function directly. */ - public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: - UNKNOWN__ + public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: UNKNOWN__ } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/unique_type_name/kotlin/responseBased/unique_type_name/HeroDetailQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/unique_type_name/kotlin/responseBased/unique_type_name/HeroDetailQuery.kt.expected index a78ca941296..867376a1428 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/unique_type_name/kotlin/responseBased/unique_type_name/HeroDetailQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/unique_type_name/kotlin/responseBased/unique_type_name/HeroDetailQuery.kt.expected @@ -230,8 +230,7 @@ public class HeroDetailQuery() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query HeroDetailQuery { heroDetailQuery { __typename name friends { name } ... on Human { height friends { appearsIn friends { __typename ...HeroDetails } } } } } fragment HeroDetails on Character { name friendsConnection { totalCount edges { node { name } } } }" + get() = "query HeroDetailQuery { heroDetailQuery { __typename name friends { name } ... on Human { height friends { appearsIn friends { __typename ...HeroDetails } } } } } fragment HeroDetails on Character { name friendsConnection { totalCount edges { node { name } } } }" public const val OPERATION_NAME: String = "HeroDetailQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/unique_type_name/kotlin/responseBased/unique_type_name/adapter/HeroDetailQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/unique_type_name/kotlin/responseBased/unique_type_name/adapter/HeroDetailQuery_ResponseAdapter.kt.expected index 8987208357b..2e334e7ea0f 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/unique_type_name/kotlin/responseBased/unique_type_name/adapter/HeroDetailQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/unique_type_name/kotlin/responseBased/unique_type_name/adapter/HeroDetailQuery_ResponseAdapter.kt.expected @@ -30,8 +30,7 @@ public object HeroDetailQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("heroDetailQuery") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.unique_type_name.HeroDetailQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.unique_type_name.HeroDetailQuery.Data { var _heroDetailQuery: com.example.unique_type_name.HeroDetailQuery.Data.HeroDetailQuery? = null while (true) { @@ -55,10 +54,8 @@ public object HeroDetailQuery_ResponseAdapter { HeroDetailQuery.obj().nullable().toJson(writer, customScalarAdapters, value.heroDetailQuery) } - private object HeroDetailQuery : - Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.unique_type_name.HeroDetailQuery.Data.HeroDetailQuery { + private object HeroDetailQuery : Adapter { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.unique_type_name.HeroDetailQuery.Data.HeroDetailQuery { val __typename = reader.readTypename() return when(__typename) { "Human", @@ -74,10 +71,8 @@ public object HeroDetailQuery_ResponseAdapter { `value`: com.example.unique_type_name.HeroDetailQuery.Data.HeroDetailQuery, ) { when(value) { - is com.example.unique_type_name.HeroDetailQuery.Data.HumanHeroDetailQuery -> - HumanHeroDetailQuery.toJson(writer, customScalarAdapters, value) - is com.example.unique_type_name.HeroDetailQuery.Data.OtherHeroDetailQuery -> - OtherHeroDetailQuery.toJson(writer, customScalarAdapters, value) + is com.example.unique_type_name.HeroDetailQuery.Data.HumanHeroDetailQuery -> HumanHeroDetailQuery.toJson(writer, customScalarAdapters, value) + is com.example.unique_type_name.HeroDetailQuery.Data.OtherHeroDetailQuery -> OtherHeroDetailQuery.toJson(writer, customScalarAdapters, value) } } } @@ -125,19 +120,16 @@ public object HeroDetailQuery_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.name) writer.name("friends") - Friend.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, - value.friends) + Friend.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, value.friends) writer.name("height") NullableDoubleAdapter.toJson(writer, customScalarAdapters, value.height) } - private object Friend : - Adapter { + private object Friend : Adapter { public val RESPONSE_NAMES: List = listOf("name", "appearsIn", "friends") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.unique_type_name.HeroDetailQuery.Data.HumanHeroDetailQuery.Friend { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.unique_type_name.HeroDetailQuery.Data.HumanHeroDetailQuery.Friend { var _name: String? = null var _appearsIn: List? = null var _friends: List? = null @@ -167,22 +159,17 @@ public object HeroDetailQuery_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.name) writer.name("appearsIn") - Episode_ResponseAdapter.nullable().list().toJson(writer, customScalarAdapters, - value.appearsIn) + Episode_ResponseAdapter.nullable().list().toJson(writer, customScalarAdapters, value.appearsIn) writer.name("friends") - Friend.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, - value.friends) + Friend.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, value.friends) } - private object Friend : - Adapter - { - public val RESPONSE_NAMES: List = listOf("__typename", "name", - "friendsConnection") + private object Friend : Adapter { + public val RESPONSE_NAMES: List = + listOf("__typename", "name", "friendsConnection") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.unique_type_name.HeroDetailQuery.Data.HumanHeroDetailQuery.Friend.Friend { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.unique_type_name.HeroDetailQuery.Data.HumanHeroDetailQuery.Friend.Friend { var __typename: String? = null var _name: String? = null var _friendsConnection: com.example.unique_type_name.HeroDetailQuery.Data.HumanHeroDetailQuery.Friend.Friend.FriendsConnection? = null @@ -218,13 +205,10 @@ public object HeroDetailQuery_ResponseAdapter { FriendsConnection.obj().toJson(writer, customScalarAdapters, value.friendsConnection) } - private object FriendsConnection : - Adapter - { + private object FriendsConnection : Adapter { public val RESPONSE_NAMES: List = listOf("totalCount", "edges") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.unique_type_name.HeroDetailQuery.Data.HumanHeroDetailQuery.Friend.Friend.FriendsConnection { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.unique_type_name.HeroDetailQuery.Data.HumanHeroDetailQuery.Friend.Friend.FriendsConnection { var _totalCount: Int? = null var _edges: List? = null @@ -251,17 +235,13 @@ public object HeroDetailQuery_ResponseAdapter { NullableIntAdapter.toJson(writer, customScalarAdapters, value.totalCount) writer.name("edges") - Edge.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, - value.edges) + Edge.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, value.edges) } - private object Edge : - Adapter - { + private object Edge : Adapter { public val RESPONSE_NAMES: List = listOf("node") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.unique_type_name.HeroDetailQuery.Data.HumanHeroDetailQuery.Friend.Friend.FriendsConnection.Edge { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.unique_type_name.HeroDetailQuery.Data.HumanHeroDetailQuery.Friend.Friend.FriendsConnection.Edge { var _node: com.example.unique_type_name.HeroDetailQuery.Data.HumanHeroDetailQuery.Friend.Friend.FriendsConnection.Edge.Node? = null while (true) { @@ -285,14 +265,10 @@ public object HeroDetailQuery_ResponseAdapter { Node.obj().nullable().toJson(writer, customScalarAdapters, value.node) } - private object Node : - Adapter - { + private object Node : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, - customScalarAdapters: CustomScalarAdapters): - com.example.unique_type_name.HeroDetailQuery.Data.HumanHeroDetailQuery.Friend.Friend.FriendsConnection.Edge.Node { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.unique_type_name.HeroDetailQuery.Data.HumanHeroDetailQuery.Friend.Friend.FriendsConnection.Edge.Node { var _name: String? = null while (true) { @@ -362,16 +338,13 @@ public object HeroDetailQuery_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.name) writer.name("friends") - Friend.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, - value.friends) + Friend.obj().nullable().list().nullable().toJson(writer, customScalarAdapters, value.friends) } - private object Friend : - Adapter { + private object Friend : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.unique_type_name.HeroDetailQuery.Data.OtherHeroDetailQuery.Friend { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.unique_type_name.HeroDetailQuery.Data.OtherHeroDetailQuery.Friend { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/unique_type_name/kotlin/responseBased/unique_type_name/fragment/HeroDetailsImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/unique_type_name/kotlin/responseBased/unique_type_name/fragment/HeroDetailsImpl.kt.expected index fffdecfd304..452da94fa2c 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/unique_type_name/kotlin/responseBased/unique_type_name/fragment/HeroDetailsImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/unique_type_name/kotlin/responseBased/unique_type_name/fragment/HeroDetailsImpl.kt.expected @@ -50,7 +50,8 @@ public class HeroDetailsImpl() : Fragment { * The friends of the character exposed as a connection with edges */ override val friendsConnection: FriendsConnection, - ) : HeroDetails, Fragment.Data { + ) : HeroDetails, + Fragment.Data { public data class FriendsConnection( /** * The total number of friends diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/unique_type_name/kotlin/responseBased/unique_type_name/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/unique_type_name/kotlin/responseBased/unique_type_name/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected index 73a76e32e61..6d43c05e127 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/unique_type_name/kotlin/responseBased/unique_type_name/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/unique_type_name/kotlin/responseBased/unique_type_name/fragment/HeroDetailsImpl_ResponseAdapter.kt.expected @@ -23,8 +23,7 @@ public object HeroDetailsImpl_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("name", "friendsConnection") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - HeroDetailsImpl.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): HeroDetailsImpl.Data { var _name: String? = null var _friendsConnection: HeroDetailsImpl.Data.FriendsConnection? = null @@ -57,8 +56,7 @@ public object HeroDetailsImpl_ResponseAdapter { private object FriendsConnection : Adapter { public val RESPONSE_NAMES: List = listOf("totalCount", "edges") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - HeroDetailsImpl.Data.FriendsConnection { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): HeroDetailsImpl.Data.FriendsConnection { var _totalCount: Int? = null var _edges: List? = null @@ -91,8 +89,7 @@ public object HeroDetailsImpl_ResponseAdapter { private object Edge : Adapter { public val RESPONSE_NAMES: List = listOf("node") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - HeroDetailsImpl.Data.FriendsConnection.Edge { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): HeroDetailsImpl.Data.FriendsConnection.Edge { var _node: HeroDetailsImpl.Data.FriendsConnection.Edge.Node? = null while (true) { @@ -119,8 +116,7 @@ public object HeroDetailsImpl_ResponseAdapter { private object Node : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - HeroDetailsImpl.Data.FriendsConnection.Edge.Node { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): HeroDetailsImpl.Data.FriendsConnection.Edge.Node { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/unique_type_name/kotlin/responseBased/unique_type_name/type/Episode.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/unique_type_name/kotlin/responseBased/unique_type_name/type/Episode.kt.expected index 6f7b04dc89a..60490d39978 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/unique_type_name/kotlin/responseBased/unique_type_name/type/Episode.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/unique_type_name/kotlin/responseBased/unique_type_name/type/Episode.kt.expected @@ -47,8 +47,8 @@ public enum class Episode( ; public companion object { - public val type: EnumType = EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", - "DEPRECATED", "new")) + public val type: EnumType = + EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", "DEPRECATED", "new")) /** * All [Episode] known at compile time @@ -73,10 +73,8 @@ public enum class Episode( /** * Returns the [Episode] that represents the specified [rawValue]. - * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your - * schema instead of calling this function directly. + * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your schema instead of calling this function directly. */ - public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: - UNKNOWN__ + public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: UNKNOWN__ } } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/used_arguments/kotlin/operationBased/used_arguments/GetA.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/used_arguments/kotlin/operationBased/used_arguments/GetA.kt.expected index e4b3e192147..14d457ba486 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/used_arguments/kotlin/operationBased/used_arguments/GetA.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/used_arguments/kotlin/operationBased/used_arguments/GetA.kt.expected @@ -96,8 +96,7 @@ public class GetA() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query GetA { a { __typename ... on B { field(arg: 42) } ... on C { field(arg: 42) } } }" + get() = "query GetA { a { __typename ... on B { field(arg: 42) } ... on C { field(arg: 42) } } }" public const val OPERATION_NAME: String = "GetA" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/used_arguments/kotlin/operationBased/used_arguments/adapter/GetA_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/used_arguments/kotlin/operationBased/used_arguments/adapter/GetA_ResponseAdapter.kt.expected index 4be7b30225e..8c95e4ccbe1 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/used_arguments/kotlin/operationBased/used_arguments/adapter/GetA_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/used_arguments/kotlin/operationBased/used_arguments/adapter/GetA_ResponseAdapter.kt.expected @@ -24,8 +24,7 @@ public object GetA_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("a") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - GetA.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): GetA.Data { var _a: GetA.Data.A? = null while (true) { @@ -52,8 +51,7 @@ public object GetA_ResponseAdapter { private object A : Adapter { public val RESPONSE_NAMES: List = listOf("__typename") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - GetA.Data.A { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): GetA.Data.A { var __typename: String? = null while (true) { @@ -70,15 +68,13 @@ public object GetA_ResponseAdapter { var _onB: GetA.Data.A.OnB? = null if (possibleTypes("B").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onB = com.example.used_arguments.adapter.GetA_ResponseAdapter.Data.A.OnB.fromJson(reader, - customScalarAdapters) + _onB = com.example.used_arguments.adapter.GetA_ResponseAdapter.Data.A.OnB.fromJson(reader, customScalarAdapters) } var _onC: GetA.Data.A.OnC? = null if (possibleTypes("C").evaluate(customScalarAdapters.falseVariables, __typename, customScalarAdapters.deferredFragmentIdentifiers, null)) { reader.rewind() - _onC = com.example.used_arguments.adapter.GetA_ResponseAdapter.Data.A.OnC.fromJson(reader, - customScalarAdapters) + _onC = com.example.used_arguments.adapter.GetA_ResponseAdapter.Data.A.OnC.fromJson(reader, customScalarAdapters) } return GetA.Data.A( @@ -97,21 +93,18 @@ public object GetA_ResponseAdapter { StringAdapter.toJson(writer, customScalarAdapters, value.__typename) if (value.onB != null) { - com.example.used_arguments.adapter.GetA_ResponseAdapter.Data.A.OnB.toJson(writer, - customScalarAdapters, value.onB) + com.example.used_arguments.adapter.GetA_ResponseAdapter.Data.A.OnB.toJson(writer, customScalarAdapters, value.onB) } if (value.onC != null) { - com.example.used_arguments.adapter.GetA_ResponseAdapter.Data.A.OnC.toJson(writer, - customScalarAdapters, value.onC) + com.example.used_arguments.adapter.GetA_ResponseAdapter.Data.A.OnC.toJson(writer, customScalarAdapters, value.onC) } } private object OnB : Adapter { public val RESPONSE_NAMES: List = listOf("field") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - GetA.Data.A.OnB { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): GetA.Data.A.OnB { var _field: Int? = null while (true) { @@ -139,8 +132,7 @@ public object GetA_ResponseAdapter { private object OnC : Adapter { public val RESPONSE_NAMES: List = listOf("field") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - GetA.Data.A.OnC { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): GetA.Data.A.OnC { var _field: Int? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/used_arguments/kotlin/operationBased/used_arguments/fragment/ADetailsImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/used_arguments/kotlin/operationBased/used_arguments/fragment/ADetailsImpl_ResponseAdapter.kt.expected index 79ed5630c56..a4f051016ca 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/used_arguments/kotlin/operationBased/used_arguments/fragment/ADetailsImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/used_arguments/kotlin/operationBased/used_arguments/fragment/ADetailsImpl_ResponseAdapter.kt.expected @@ -18,8 +18,7 @@ public object ADetailsImpl_ResponseAdapter { public object ADetails : Adapter { public val RESPONSE_NAMES: List = listOf("field") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - com.example.used_arguments.fragment.ADetails { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): com.example.used_arguments.fragment.ADetails { var _field: Int? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/used_arguments/kotlin/responseBased/used_arguments/GetA.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/used_arguments/kotlin/responseBased/used_arguments/GetA.kt.expected index 205575f66d9..bb92e066900 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/used_arguments/kotlin/responseBased/used_arguments/GetA.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/used_arguments/kotlin/responseBased/used_arguments/GetA.kt.expected @@ -103,8 +103,7 @@ public class GetA() : Query { * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query GetA { a { __typename ... on B { field(arg: 42) } ... on C { field(arg: 42) } } }" + get() = "query GetA { a { __typename ... on B { field(arg: 42) } ... on C { field(arg: 42) } } }" public const val OPERATION_NAME: String = "GetA" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/used_arguments/kotlin/responseBased/used_arguments/adapter/GetA_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/used_arguments/kotlin/responseBased/used_arguments/adapter/GetA_ResponseAdapter.kt.expected index dcf0e115e8b..8d841e08125 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/used_arguments/kotlin/responseBased/used_arguments/adapter/GetA_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/used_arguments/kotlin/responseBased/used_arguments/adapter/GetA_ResponseAdapter.kt.expected @@ -25,8 +25,7 @@ public object GetA_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("a") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - GetA.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): GetA.Data { var _a: GetA.Data.A? = null while (true) { @@ -51,8 +50,7 @@ public object GetA_ResponseAdapter { } private object A : Adapter { - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - GetA.Data.A { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): GetA.Data.A { val __typename = reader.readTypename() return when(__typename) { "B", diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/used_arguments/kotlin/responseBased/used_arguments/fragment/ADetailsImpl.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/used_arguments/kotlin/responseBased/used_arguments/fragment/ADetailsImpl.kt.expected index b8395d9cfef..49ca14a91a2 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/used_arguments/kotlin/responseBased/used_arguments/fragment/ADetailsImpl.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/used_arguments/kotlin/responseBased/used_arguments/fragment/ADetailsImpl.kt.expected @@ -41,5 +41,6 @@ public class ADetailsImpl() : Fragment { public data class Data( override val `field`: Int?, - ) : ADetails, Fragment.Data + ) : ADetails, + Fragment.Data } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/used_arguments/kotlin/responseBased/used_arguments/fragment/ADetailsImpl_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/used_arguments/kotlin/responseBased/used_arguments/fragment/ADetailsImpl_ResponseAdapter.kt.expected index ddd5017b385..5b20ef27dac 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/used_arguments/kotlin/responseBased/used_arguments/fragment/ADetailsImpl_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/used_arguments/kotlin/responseBased/used_arguments/fragment/ADetailsImpl_ResponseAdapter.kt.expected @@ -18,8 +18,7 @@ public object ADetailsImpl_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("field") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - ADetailsImpl.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): ADetailsImpl.Data { var _field: Int? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/variable_default_value/kotlin/responseBased/variable_default_value/TestQuery.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/variable_default_value/kotlin/responseBased/variable_default_value/TestQuery.kt.expected index e47596bf4a5..70fc64eac6c 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/variable_default_value/kotlin/responseBased/variable_default_value/TestQuery.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/variable_default_value/kotlin/responseBased/variable_default_value/TestQuery.kt.expected @@ -36,8 +36,7 @@ public data class TestQuery @JvmOverloads constructor( customScalarAdapters: CustomScalarAdapters, withDefaultValues: Boolean, ) { - TestQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, - withDefaultValues) + TestQuery_VariablesAdapter.serializeVariables(writer, this, customScalarAdapters, withDefaultValues) } override fun adapter(): Adapter = TestQuery_ResponseAdapter.Data.obj() @@ -78,8 +77,7 @@ public data class TestQuery @JvmOverloads constructor( * ``` */ public val OPERATION_DOCUMENT: String - get() = - "query TestQuery(${'$'}episode: Episode! = JEDI ) { hero(episode: ${'$'}episode) { name } }" + get() = "query TestQuery(${'$'}episode: Episode! = JEDI ) { hero(episode: ${'$'}episode) { name } }" public const val OPERATION_NAME: String = "TestQuery" } diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/variable_default_value/kotlin/responseBased/variable_default_value/adapter/TestQuery_ResponseAdapter.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/variable_default_value/kotlin/responseBased/variable_default_value/adapter/TestQuery_ResponseAdapter.kt.expected index 64a78202e74..839ec119f87 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/variable_default_value/kotlin/responseBased/variable_default_value/adapter/TestQuery_ResponseAdapter.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/variable_default_value/kotlin/responseBased/variable_default_value/adapter/TestQuery_ResponseAdapter.kt.expected @@ -21,8 +21,7 @@ public object TestQuery_ResponseAdapter { public object Data : Adapter { public val RESPONSE_NAMES: List = listOf("hero") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data { var _hero: TestQuery.Data.Hero? = null while (true) { @@ -49,8 +48,7 @@ public object TestQuery_ResponseAdapter { private object Hero : Adapter { public val RESPONSE_NAMES: List = listOf("name") - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): - TestQuery.Data.Hero { + override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): TestQuery.Data.Hero { var _name: String? = null while (true) { diff --git a/libraries/apollo-compiler/src/test/graphql/com/example/variable_default_value/kotlin/responseBased/variable_default_value/type/Episode.kt.expected b/libraries/apollo-compiler/src/test/graphql/com/example/variable_default_value/kotlin/responseBased/variable_default_value/type/Episode.kt.expected index 3391c29bbfd..236eb71cb1e 100644 --- a/libraries/apollo-compiler/src/test/graphql/com/example/variable_default_value/kotlin/responseBased/variable_default_value/type/Episode.kt.expected +++ b/libraries/apollo-compiler/src/test/graphql/com/example/variable_default_value/kotlin/responseBased/variable_default_value/type/Episode.kt.expected @@ -47,8 +47,8 @@ public enum class Episode( ; public companion object { - public val type: EnumType = EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", - "DEPRECATED", "new")) + public val type: EnumType = + EnumType("Episode", listOf("NEWHOPE", "EMPIRE", "JEDI", "DEPRECATED", "new")) /** * All [Episode] known at compile time @@ -73,10 +73,8 @@ public enum class Episode( /** * Returns the [Episode] that represents the specified [rawValue]. - * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your - * schema instead of calling this function directly. + * Note: unknown values of [rawValue] will return [UNKNOWN__]. You may want to update your schema instead of calling this function directly. */ - public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: - UNKNOWN__ + public fun safeValueOf(rawValue: String): Episode = values().find { it.rawValue == rawValue } ?: UNKNOWN__ } }