Lines Matching refs:chainLength

391     private static function _splicePrefix(&$args, $firstTokPosition, $chainLength, $definition) {  argument
395 $elmArgs = self::_extractAlternateChain($args, $firstTokPosition + 1, $chainLength);
397 if ($firstTokPosition + $chainLength * 2 > count($args)) {
400 array_splice($args, $firstTokPosition, $chainLength * 2, array($elmInst));
404 private static function _splicePostfix(&$args, $firstTokPosition, $chainLength, $definition) { argument
408 $elmArgs = self::_extractAlternateChain($args, $firstTokPosition - 1, $chainLength);
412 } elseif ($firstTokPosition + $chainLength * 2 - 1 > count($args)) {
415 array_splice($args, $firstTokPosition - 1, $chainLength * 2, array($elmInst));
419 private static function _spliceInfix(&$args, $firstTokPosition, $chainLength, $definition) { argument
423 $elmArgs = self::_extractAlternateChain($args, $firstTokPosition - 1, $chainLength + 1);
427 } elseif ($firstTokPosition + $chainLength * 2 > count($args)) {
430 array_splice($args, $firstTokPosition - 1, $chainLength * 2 + 1, array($elmInst));
471 … $chainLength = self::_getLongestAlternateChain($args, $position, $this->tokenDefs()[0]);
472 if ($chainLength > 0) {
473 $position = self::_splicePrefix($args, $position, $chainLength, $this);
477 …$chainLength = self::_getLongestAlternateChain($args, $position, $this->tokenDefs()[0], $this->ari…
478 if ($chainLength == $this->arity()) {
479 $position = self::_splicePrefix($args, $position, $chainLength, $this);
489 … $chainLength = self::_getLongestAlternateChain($args, $position + 1, $this->tokenDefs()[0]);
490 if ($chainLength > 0) {
491 $position = self::_splicePostfix($args, $position + 1, $chainLength, $this);
495 …$chainLength = self::_getLongestAlternateChain($args, $position + 1, $this->tokenDefs()[0], $this-…
496 if ($chainLength == $this->arity()) {
497 $position = self::_splicePostfix($args, $position + 1, $chainLength, $this);
507 … $chainLength = self::_getLongestAlternateChain($args, $position + 1, $this->tokenDefs()[0]);
508 if ($chainLength > 0) {
509 $position = self::_spliceInfix($args, $position + 1, $chainLength, $this);
513 …$chainLength = self::_getLongestAlternateChain($args, $position + 1, $this->tokenDefs()[0], $this-…
514 if ($chainLength == $this->arity() - 1) {
515 $position = self::_spliceInfix($args, $position + 1, $chainLength, $this);