Lines Matching refs:tokenDefs

242     public function tokenDefs() { return $this->_tokenDefs; }  function in AST\\ElementDefinition
245 public function __construct($name, $fixing, $tokenDefs, $priority, $arity=null, $nested=null) { argument
246 if ($tokenDefs instanceof TokenDefinition) {
247 $tokenDefs = array($tokenDefs);
249 if (!is_array($tokenDefs)) {
272 $this->_tokenDefs = $tokenDefs;
283 if (count($this->tokenDefs()) != 1) {
291 if (count($this->tokenDefs()) != 1 && count($this->tokenDefs()) != $this->arity()) {
299 if (count($this->tokenDefs()) != 1 && count($this->tokenDefs()) != $this->arity()) {
307 … if (count($this->tokenDefs()) != 1 && count($this->tokenDefs()) != $this->arity() - 1) {
315 if (count($this->tokenDefs()) != 2) {
464 if ($args[$position]->definition() == $this->tokenDefs()[0]) {
471 … $chainLength = self::_getLongestAlternateChain($args, $position, $this->tokenDefs()[0]);
476 } else if (count($this->tokenDefs()) == 1) {
477 …$chainLength = self::_getLongestAlternateChain($args, $position, $this->tokenDefs()[0], $this->ari…
482 } else if (self::_isMatchingAlternateChain($args, $position, $this->tokenDefs())) {
489 … $chainLength = self::_getLongestAlternateChain($args, $position + 1, $this->tokenDefs()[0]);
494 } else if (count($this->tokenDefs()) == 1) {
495 …inLength = self::_getLongestAlternateChain($args, $position + 1, $this->tokenDefs()[0], $this->ari…
500 … } else if (self::_isMatchingAlternateChain($args, $position + 1, $this->tokenDefs())) {
507 … $chainLength = self::_getLongestAlternateChain($args, $position + 1, $this->tokenDefs()[0]);
512 } else if (count($this->tokenDefs()) == 1) {
513 …inLength = self::_getLongestAlternateChain($args, $position + 1, $this->tokenDefs()[0], $this->ari…
518 … } else if (self::_isMatchingAlternateChain($args, $position + 1, $this->tokenDefs())) {
524 …$sequenceLength = self::_getWrappedSequence($args, $position, $this->tokenDefs(), $this->nested());
555 if ($idx < count($this->tokenDefs())) {
556 return $this->tokenDefs()[$idx]->representation();
557 } elseif (count($this->tokenDefs()) == 1) {
558 return $this->tokenDefs()[0]->representation();
598 $retval = array_merge($retval, $elmDef->tokenDefs());
615 } else if ($args[0]->definition() != $this->tokenDefs()[0]) {
616 …rmedExpressionException($elmInstance, 'Expected a token of type ' . $this->tokenDefs()[0]->name());