public function isLocalVariable(Block $block, $name) { if (!isset($this->scope[$block])) { return false; } $vars = $this->scope[$block]; return isset($vars[$name]); }
private function readVariableName($name, Block $block) { if ($this->ctx->isLocalVariable($block, $name)) { return $this->ctx->scope[$block][$name]; } return $this->readVariableRecursive($name, $block); }