Property | Type | Description | |
---|---|---|---|
$column | integer | The 1-indexed column number at which this Token begins. | |
$end | integer | The character offset at which this Node ends. | |
$kind | string | The kind of Token (see one of constants above). | |
$line | integer | The 1-indexed line number on which this Token appears. | |
$next | |||
$prev | Tokens exist as nodes in a double-linked-list amongst all tokens
including ignored tokens. |
||
$start | integer | The character offset at which this Node begins. | |
$value | string | null |
Method | Description | |
---|---|---|
__construct ( $kind, $start, $end, $line, $column, |
Token constructor. | |
getDescription ( ) : string | ||
getKindDescription ( $kind ) : mixed | ||
toArray ( ) : array |
public __construct ( $kind, $start, $end, $line, $column, |
||
$kind | ||
$start | ||
$end | ||
$line | ||
$column | ||
$previous | ||
$value | null |
public static getKindDescription ( $kind ) : mixed | ||
$kind | ||
return | mixed |
public int $column | ||
return | integer |
public int $end | ||
return | integer |
public string $kind | ||
return | string |
public int $line | ||
return | integer |
public Token,GraphQL\Language $prev | ||
return |
public int $start | ||
return | integer |