FunctionTree
Methods
- children() : array<int, FunctionTree>
- Every operand of this node that is an expression, in constructor order.
- resolved() : bool
- True when this node and every node in children() can answer returns().
- withChildren() : static
- A copy of this node with $children in place of children(): same count, same order, same per-element narrowing. Never mutates $this.
Methods
children()
Every operand of this node that is an expression, in constructor order.
public
children() : array<int, FunctionTree>
Raw scalars, enums, Types and scope-introducing bodies are fields, not children.
Return values
array<int, FunctionTree>resolved()
True when this node and every node in children() can answer returns().
public
resolved() : bool
Return values
boolwithChildren()
A copy of this node with $children in place of children(): same count, same order, same per-element narrowing. Never mutates $this.
public
withChildren(array<int, FunctionTree> $children) : static
Parameters
- $children : array<int, FunctionTree>