private addConstant ( ast\Node $node, string $name, ast\Node | mixed $value, integer $flags ) : void | ||
$node | ast\Node | The node where the constant was found |
$name | string | The name of the constant |
$value | ast\Node | mixed | Either a node or a constant to be used as the value of the constant. |
$flags | integer | Any flags on the definition of the constant |
return | void |