Свойство | Тип | Описание | |
---|---|---|---|
$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 |
Метод | Описание | |
---|---|---|
__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 | ||
Результат | mixed |
public int $column | ||
Результат | integer |
public int $end | ||
Результат | integer |
public string $kind | ||
Результат | string |
public int $line | ||
Результат | integer |
public Token,GraphQL\Language $prev | ||
Результат |
public int $start | ||
Результат | integer |