-
Notifications
You must be signed in to change notification settings - Fork 653
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce SchemaLayout/OperationsLayout/ExecutableSchemaLayout (#5588)
- Loading branch information
1 parent
2b517d1
commit 5568815
Showing
91 changed files
with
412 additions
and
383 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 5 additions & 4 deletions
9
...r/src/main/kotlin/com/apollographql/apollo3/compiler/codegen/SchemaAndOperationsLayout.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
package com.apollographql.apollo3.compiler.codegen | ||
|
||
internal interface CommonLayout { | ||
interface CommonLayout { | ||
fun topLevelName(name: String): String | ||
fun propertyName(name: String): String | ||
} | ||
|
||
internal interface SchemaLayout : CommonLayout { | ||
interface SchemaLayout : CommonLayout { | ||
fun schemaPackageName(): String | ||
fun schemaTypeName(schemaTypeName: String): String | ||
} | ||
|
||
internal interface OperationsLayout { | ||
interface OperationsLayout: CommonLayout { | ||
fun executableDocumentPackageName(filePath: String?): String | ||
fun operationName(name: String, capitalizedOperationType: String): String | ||
fun fragmentName(name: String): String | ||
} | ||
|
||
internal interface SchemaAndOperationsLayout : SchemaLayout, OperationsLayout | ||
interface SchemaAndOperationsLayout : SchemaLayout, OperationsLayout | ||
interface ExecutableSchemaLayout : SchemaLayout |
Oops, something went wrong.