Home
last modified time | relevance | path

Searched refs:PredictionContext (Results 1 – 12 of 12) sorted by relevance

/plugin/combo/vendor/antlr/antlr4-php-runtime/src/PredictionContexts/
H A DSingletonPredictionContext.php15 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 DPredictionContextCache.php29 public function add(PredictionContext $ctx) : PredictionContext
31 if ($ctx === PredictionContext::empty()) {
46 public function get(PredictionContext $ctx) : ?PredictionContext
H A DArrayPredictionContext.php10 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 DEmptyPredictionContext.php11 parent::__construct(PredictionContext::EMPTY_RETURN_STATE);
24 public function getParent(int $index) : ?PredictionContext
H A DPredictionContext.php13 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 DATNSimulator.php8 use Antlr\Antlr4\Runtime\PredictionContexts\PredictionContext; alias
96 public function getCachedContext(PredictionContext $context) : PredictionContext
104 return PredictionContext::getCachedPredictionContext(
H A DATNConfig.php12 use Antlr\Antlr4\Runtime\PredictionContexts\PredictionContext; alias
49 * @var PredictionContext|null
83 ?PredictionContext $context = null,
H A DLexerATNConfig.php11 use Antlr\Antlr4\Runtime\PredictionContexts\PredictionContext; alias
24 ?PredictionContext $context = null,
H A DATNConfigSet.php12 use Antlr\Antlr4\Runtime\PredictionContexts\PredictionContext; alias
175 …$merged = PredictionContext::merge($existing->context, $config->context, $rootIsWildcard, $mergeCa…
H A DLexerATNSimulator.php19 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 DParserATNSimulator.php29 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 DLL1Analyzer.php16 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()) {