Documentation

Location
in package

Contains a range of UTF-8 character offsets and token references that identify the region of the source from which the AST derived.

Table of Contents

$end  : int
The character offset at which this Node ends.
$endToken  : Token|null
The Token at which this Node ends.
$source  : Source|null
The Source document the AST represents.
$start  : int
The character offset at which this Node begins.
$startToken  : Token|null
The Token at which this Node begins.
__construct()  : mixed
create()  : static

Properties

$end

The character offset at which this Node ends.

public int $end

$endToken

The Token at which this Node ends.

public Token|null $endToken

$source

The Source document the AST represents.

public Source|null $source

$start

The character offset at which this Node begins.

public int $start

$startToken

The Token at which this Node begins.

public Token|null $startToken

Methods

__construct()

public __construct([Token|null $startToken = null ][, Token|null $endToken = null ][, Source|null $source = null ]) : mixed
Parameters
$startToken : Token|null = null
$endToken : Token|null = null
$source : Source|null = null
Return values
mixed

create()

public static create(int $start, int $end) : static
Parameters
$start : int
$end : int
Return values
static

Search results