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 | 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) {
|
H A D | PredictionContextCache.php | 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 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 75 public static function fromRuleContext(ATN $atn, ?RuleContext $outerContext) : PredictionContext 129 PredictionContext $a, 130 PredictionContext $b, 133 ) : PredictionContext { 198 ) : PredictionContext { 345 ) : ?PredictionContext { 408 ) : PredictionContext { 561 PredictionContext $context,
|
/plugin/combo/vendor/antlr/antlr4-php-runtime/src/Atn/ |
H A D | ATNSimulator.php | 8 use Antlr\Antlr4\Runtime\PredictionContexts\PredictionContext; alias 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, $mergeCa…
|
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 1096 $initialContext = PredictionContext::fromRuleContext($this->atn, $ctx); 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()) {
|