object ParserConfig extends Serializable
- Alphabetic
- By Inheritance
- ParserConfig
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- type CodeSourceToSourceMapperFunction = (String, ParserInput) => Option[ast.SourceMapper]
Mapping from a GraphQL code source to a
SourceMapper.Mapping from a GraphQL code source to a
SourceMapper.A SourceMapper provides methods for displaying GraphQL source code. This type is the type of a function that returns a
SourceMapper, given an identifier for the source code, and a Parboiled2ParserInputfrom which the source code will be extracted.In practice, the identifiers are typically randomly-generated, the input source is from a string, and the chosen
SourceMapperdoesn't depend on either. In most cases, the default is returned. This function type is mostly used to allow Sangria users to replace the default with their own customSourceMapper.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- lazy val default: ParserConfig
- lazy val defaultSourceIdFn: (ParserInput) => String
Function that generates a random identifier for each input.
- lazy val defaultSourceMapperFn: CodeSourceToSourceMapperFunction
Function that returns the default
SourceMapper. - lazy val emptySourceIdFn: (ParserInput) => String
Function that always generates an empty identifier.
- lazy val emptySourceMapperFn: CodeSourceToSourceMapperFunction
Function that returns no
SourceMapper. - final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def parboiledToSourceMapper(input: ParserInput): SourceMapperInput
Return the given Parboiled2 parser input, wrapped with our sangria.ast.SourceMapperInput.
Return the given Parboiled2 parser input, wrapped with our sangria.ast.SourceMapperInput.
This utility method makes it easier to write quasiquotes.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()