From b3dba8cfb241a7bbc2220c8888601e4a581cfcd7 Mon Sep 17 00:00:00 2001 From: Yasuhiro Shimizu Date: Thu, 24 Jan 2019 12:14:56 +0900 Subject: [PATCH] add internal modifier to top level document object #13 --- .../kgql/compiler/generator/DocumentWrapperGenerator.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kgql-compiler/src/main/kotlin/com/codingfeline/kgql/compiler/generator/DocumentWrapperGenerator.kt b/kgql-compiler/src/main/kotlin/com/codingfeline/kgql/compiler/generator/DocumentWrapperGenerator.kt index 13620a6..41490d4 100644 --- a/kgql-compiler/src/main/kotlin/com/codingfeline/kgql/compiler/generator/DocumentWrapperGenerator.kt +++ b/kgql-compiler/src/main/kotlin/com/codingfeline/kgql/compiler/generator/DocumentWrapperGenerator.kt @@ -27,6 +27,8 @@ class DocumentWrapperGenerator( logger("Generating $className...") val objectType = TypeSpec.objectBuilder(className) + .addModifiers(KModifier.INTERNAL) + val fqName = "${sourceFile.packageName}.$className" // add raw document property