ParserConfig

sangria.parser.ParserConfig$
See theParserConfig companion class
object ParserConfig

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Types

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 Parboiled2 ParserInput from 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 SourceMapper doesn'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 custom SourceMapper.

Attributes

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

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.

Attributes

Concrete fields

lazy val default: ParserConfig
lazy val defaultSourceIdFn: ParserInput => String

Function that generates a random identifier for each input.

Function that generates a random identifier for each input.

Attributes

Function that returns the default `SourceMapper`.

Function that returns the default `SourceMapper`.

Attributes

lazy val emptySourceIdFn: ParserInput => String

Function that always generates an empty identifier.

Function that always generates an empty identifier.

Attributes

Function that returns no SourceMapper.

Function that returns no SourceMapper.

Attributes