Lines Matching refs:PredictionContext
11 * Used to cache {@see PredictionContext} objects. Its used for
15 class SingletonPredictionContext extends PredictionContext
17 /** @var PredictionContext|null */
23 public function __construct(int $returnState, ?PredictionContext $parent = null)
31 public static function create(?PredictionContext $parent, int $returnState) : PredictionContext
34 if ($returnState === PredictionContext::EMPTY_RETURN_STATE && $parent === null) {
35 return PredictionContext::empty();
46 public function getParent(int $index) : ?PredictionContext
86 if ($this->returnState === PredictionContext::EMPTY_RETURN_STATE) {