SourceMapper

sangria.ast.SourceMapper

Set of functions that convert a GraphQL source code location to human-readable strings.

When rendering the results of a GraphQL document parse, it's helpful to describe where parsing failed. This is the interface to that facility.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Concise view

Value members

Abstract methods

def id: String

Identifier for the GraphQL document being parsed. Should be unique.

Identifier for the GraphQL document being parsed. Should be unique.

Attributes

def renderLinePosition(location: AstLocation, prefix: String): String

Return an indication of the line position of the given location.

Return an indication of the line position of the given location.

Useful for pointing to the location of a parsing error.

Attributes

prefix

prefix to attach to the returned string

Return a description of the given location.

Return a description of the given location.

Attributes

The GraphQL source code mapped by this object.

The GraphQL source code mapped by this object.

Attributes