Lines Matching refs:PredictionContext

13 abstract class PredictionContext implements Hashable
25 * Here, `$` = {@see PredictionContext::EMPTY_RETURN_STATE}.
30 * Stores the computed hash code of this {@see PredictionContext}. The hash
34 * int hash = {@see MurmurHash::initialize}({@see PredictionContext::INITIAL_HASH});
36 * for (int i = 0; i < {@see PredictionContext::size()}; i++) {
37 * hash = {@see MurmurHash::update}(hash, {@see PredictionContext::getParent()});
40 * for (int i = 0; i < {@see PredictionContext::size()}; i++) {
41 * hash = {@see MurmurHash::update}(hash, {@see PredictionContext::getReturnState()});
44 * hash = {@see MurmurHash::finish}(hash, 2 * {@see PredictionContext::size()});
72 * Convert a {@see RuleContext} tree to a {@see PredictionContext} graph.
73 * Return {@see PredictionContext::empty()} if `outerContext` is empty or null.
75 public static function fromRuleContext(ATN $atn, ?RuleContext $outerContext) : PredictionContext
81 // If we are in RuleContext of start rule, s, then PredictionContext
87 // If we have a parent, convert it to a PredictionContext graph
100 * This means only the {@see PredictionContext::empty()} (wildcard? not sure)
129 PredictionContext $a,
130 PredictionContext $b,
133 ) : PredictionContext {
198 ) : PredictionContext {
307 * {@see PredictionContext::empty()}. In the following diagrams, the symbol
308 * `$` is used to represent {@see PredictionContext::empty()}.
315 * {@see PredictionContext::empty()} is superset of any graph; return
316 * {@see PredictionContext::empty()}.
320 * {@see PredictionContext::empty()} and anything is `#EMPTY`, so merged parent is
334 * Must keep all contexts; {@see PredictionContext::empty()} in array is
345 ) : ?PredictionContext {
408 ) : PredictionContext {
540 * @param array<PredictionContext> $parents
558 * @param array<PredictionContext|null> $visited
561 PredictionContext $context,