Lines Matching refs:this
38 $this->parents = $parents;
39 $this->returnStates = $returnStates;
52 $clone = clone $this;
61 return $this->returnStates[0] === PredictionContext::EMPTY_RETURN_STATE;
66 return \count($this->returnStates);
71 return $this->parents[$index];
76 return $this->returnStates[$index];
81 if ($this === $other) {
89 if ($this->returnStates === $other->returnStates) {
93 return Equality::equals($this->parents, $other->parents);
98 if ($this->isEmpty()) {
103 for ($i = 0, $count = \count($this->returnStates); $i < $count; $i++) {
108 if ($this->returnStates[$i] === PredictionContext::EMPTY_RETURN_STATE) {
113 $string .= $this->returnStates[$i];
115 if ($this->parents[$i] !== null) {
116 $string .= ' ' . $this->parents[$i];
127 return Hasher::hash($this->parents, $this->returnStates);