class BinaryOpNode extends ExpressionNode

Constants

private Ops

Methods

__construct(ExpressionNode $left, string $operator, ExpressionNode $right, Position|null $position = null)

No description

static ExpressionNode
nest(string $operator, ExpressionNode ...$exprs)

Creates nested BinaryOp nodes from a list of expressions.

string
print(PrintContext $context)

No description

getIterator()

No description

Details

at line 23
__construct(ExpressionNode $left, string $operator, ExpressionNode $right, Position|null $position = null)

No description

Parameters

ExpressionNode $left
string $operator
ExpressionNode $right
Position|null $position

at line 38
static ExpressionNode nest(string $operator, ExpressionNode ...$exprs)

Creates nested BinaryOp nodes from a list of expressions.

Parameters

string $operator
ExpressionNode ...$exprs

Return Value

ExpressionNode

at line 54
string print(PrintContext $context)

No description

Parameters

PrintContext $context

Return Value

string

at line 60
Generator getIterator()

No description

Return Value

Generator