Lines Matching refs:parent
18 public $parent;
23 public function __construct(int $returnState, ?PredictionContext $parent = null)
25 parent::__construct();
27 $this->parent = $parent;
31 public static function create(?PredictionContext $parent, int $returnState) : PredictionContext
34 if ($returnState === PredictionContext::EMPTY_RETURN_STATE && $parent === null) {
38 return new SingletonPredictionContext($returnState, $parent);
49 throw new \InvalidArgumentException('Singleton prediction context has only one parent.');
52 return $this->parent;
58 throw new \InvalidArgumentException('Singleton prediction context has only one parent.');
78 return Equality::equals($this->parent, $other->parent);
83 $up = $this->parent === null ? '' : (string) $this->parent;
98 if ($this->parent === null) {
102 return Hasher::hash($this->parent, $this->returnState);