public function visitConstDecl(Node $node) : Context { foreach ($node->children ?? [] as $child_node) { $this->addConstant($child_node, $child_node->children['name'], $child_node->children['value'], $child_node->flags ?? 0); } return $this->context; }