Methods |
public
|
__construct(array $tokens)
|
#
|
public
|
parseExpression(): ExpressionNode
Parses PHP-like expression.
Parses PHP-like expression.
|
#
|
public
|
parseArguments(): ArrayNode
Parses optional list of arguments. Named and variadic arguments are also supported.
Parses optional list of arguments. Named and variadic arguments are also supported.
|
#
|
public
|
parseModifier(): ModifierNode
Parses optional list of filters.
Parses optional list of filters.
|
#
|
public
|
parseUnquotedStringOrExpression(bool $colon = true): ExpressionNode
Parses unquoted string or PHP-like expression.
Parses unquoted string or PHP-like expression.
|
#
|
public
|
parseType(): ?SuperiorTypeNode
Parses optional type declaration.
Parses optional type declaration.
|
#
|
public
|
tryConsumeTokenBeforeUnquotedString(string ...$kind): ?Token
Consumes optional token followed by whitespace. Suitable before parseUnquotedStringOrExpression().
Consumes optional token followed by whitespace. Suitable before parseUnquotedStringOrExpression().
|
#
|
public
|
tryConsumeModifier(string ...$kind): ?Token
Deprecated
use tryConsumeTokenBeforeUnquotedString()
|
#
|
public
|
isEnd(): bool
|
#
|
public
|
throwReservedKeywordException(Token $token)
|
#
|
protected
|
checkFunctionName(FunctionCallNode|FunctionCallableNode $func): ExpressionNode
|
#
|
protected
static
|
handleBuiltinTypes(NameNode $name): NameNode|IdentifierNode
|
#
|
protected
static
|
parseOffset(string $str, Position $position): StringNode|IntegerNode
|
#
|
protected
|
parseDocString(
string $startToken,
ExpressionNode[] $parts,
string $endToken,
Position $startPos,
Position $endPos,
): StringNode|InterpolatedStringNode
|
#
|
public
|
convertArrayToList(ArrayNode $array): ListNode
|
#
|