PHP Class GraphQL\Language\AST\Location

Show file Open project: webonyx/graphql-php

Public Properties

Property Type Description
$end integer The character offset at which this Node ends.
$endToken GraphQL\Language\Token The Token at which this Node ends.
$source GraphQL\Language\Source | null The Source document the AST represents.
$start integer The character offset at which this Node begins.
$startToken GraphQL\Language\Token The Token at which this Node begins.

Public Methods

Method Description
__construct ( Token $startToken, Token $endToken, Source $source = null )

Method Details

__construct() public method

public __construct ( Token $startToken, Token $endToken, Source $source = null )
$startToken GraphQL\Language\Token
$endToken GraphQL\Language\Token
$source GraphQL\Language\Source

Property Details

$end public property

The character offset at which this Node ends.
public int $end
return integer

$endToken public property

The Token at which this Node ends.
public Token,GraphQL\Language $endToken
return GraphQL\Language\Token

$source public property

The Source document the AST represents.
public Source,GraphQL\Language|null $source
return GraphQL\Language\Source | null

$start public property

The character offset at which this Node begins.
public int $start
return integer

$startToken public property

The Token at which this Node begins.
public Token,GraphQL\Language $startToken
return GraphQL\Language\Token