public function visitGlobal(Node $node) : Context { $variable = Variable::fromNodeInContext($node->children['var'], $this->context, $this->code_base, false); // Note that we're not creating a new scope, just // adding variables to the existing scope $this->context->addScopeVariable($variable); return $this->context; }