Searched refs:PredictionContext (Results 1 – 12 of 12) sorted by relevance
/plugin/combo/vendor/antlr/antlr4-php-runtime/src/PredictionContexts/ |
H A D | SingletonPredictionContext.php | 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 [all...] |
H A D | PredictionContextCache.php | 10 * Used to cache {@see PredictionContext} objects. Its used for the shared 29 public function add(PredictionContext $ctx) : PredictionContext 31 if ($ctx === PredictionContext::empty()) { 46 public function get(PredictionContext $ctx) : ?PredictionContext
|
H A D | ArrayPredictionContext.php | 10 final class ArrayPredictionContext extends PredictionContext 18 * @var array<PredictionContext|null> 31 * @param array<PredictionContext|null> $parents 48 * @param array<PredictionContext|null> $parents 61 return $this->returnStates[0] === PredictionContext::EMPTY_RETURN_STATE; 69 public function getParent(int $index) : ?PredictionContext 108 if ($this->returnStates[$i] === PredictionContext::EMPTY_RETURN_STATE) {
|
H A D | EmptyPredictionContext.php | 11 parent::__construct(PredictionContext::EMPTY_RETURN_STATE); 24 public function getParent(int $index) : ?PredictionContext
|
H A D | PredictionContext.php | 13 abstract class PredictionContext implements Hashable class 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} grap [all...] |
/plugin/combo/vendor/antlr/antlr4-php-runtime/src/Atn/ |
H A D | ATNSimulator.php | 8 use Antlr\Antlr4\Runtime\PredictionContexts\PredictionContext; alias 12 * The context cache maps all PredictionContext objects that are == 38 * The context cache maps all PredictionContext objects that are equals() 96 public function getCachedContext(PredictionContext $context) : PredictionContext 104 return PredictionContext::getCachedPredictionContext(
|
H A D | ATNConfig.php | 12 use Antlr\Antlr4\Runtime\PredictionContexts\PredictionContext; alias 49 * @var PredictionContext|null 83 ?PredictionContext $context = null,
|
H A D | LexerATNConfig.php | 11 use Antlr\Antlr4\Runtime\PredictionContexts\PredictionContext; alias 24 ?PredictionContext $context = null,
|
H A D | ATNConfigSet.php | 12 use Antlr\Antlr4\Runtime\PredictionContexts\PredictionContext; alias 175 $merged = PredictionContext::merge($existing->context, $config->context, $rootIsWildcard, $mergeCache);
|
H A D | LexerATNSimulator.php | 19 use Antlr\Antlr4\Runtime\PredictionContexts\PredictionContext; alias 450 $initialContext = PredictionContext::empty(); 505 $configs->add(new LexerATNConfig($config, $config->state, PredictionContext::empty())); 511 if ($config->context->getReturnState($i) !== PredictionContext::EMPTY_RETURN_STATE) {
|
H A D | ParserATNSimulator.php | 29 use Antlr\Antlr4\Runtime\PredictionContexts\PredictionContext; alias 165 * {@see PredictionContext} objects are shared among the DFA states. This makes 180 * rebuilds the configurations' {@see PredictionContext} objects using cached 1096 $initialContext = PredictionContext::fromRuleContext($this->atn, $ctx); 1249 /** @var array<PredictionContext> $statesFromAlt1 */ 1637 if ($config->context->getReturnState($i) === PredictionContext::EMPTY_RETURN_STATE) { 1640 new ATNConfig($config, $config->state, PredictionContext::empty(), null, null),
|
/plugin/combo/vendor/antlr/antlr4-php-runtime/src/ |
H A D | LL1Analyzer.php | 16 use Antlr\Antlr4\Runtime\PredictionContexts\PredictionContext; alias 64 PredictionContext::empty(), 109 PredictionContext::fromRuleContext($s->atn, $context) : 142 * @param PredictionContext|null $context The outer context, or `null` 177 ?PredictionContext $context, 217 if ($context !== PredictionContext::empty()) {
|