GQLNode

sealed interface GQLNode

A node in the GraphQL AST.

The structure of the different nodes matches closely the one of the GraphQL specification (https://spec.graphql.org/June2018/#sec-Appendix-Grammar-Summary.Document)

Whitespace tokens are not mapped to GQLNodes so some formatting will be lost during modification

Inheritors

Properties

Link copied to clipboard
abstract val children: List<GQLNode>

The children of this node.

Link copied to clipboard

Functions

Link copied to clipboard

Internal-only. Copies this code using the given children

Link copied to clipboard
fun GQLNode.toUtf8(indent: String = " "): String
fun GQLNode.toUtf8(sink: BufferedSink, indent: String = " ")
Link copied to clipboard
Link copied to clipboard
abstract fun writeInternal(writer: SDLWriter)

Internal-only. Copies this code using the given children