Lines Matching refs:arity
238 public function arity() { return $this->_arity; } function in AST\\ElementDefinition
245 public function __construct($name, $fixing, $tokenDefs, $priority, $arity=null, $nested=null) { argument
252 if ($arity === null) {
255 $arity = 0;
259 $arity = 1;
262 $arity = -1;
273 $this->_arity = $arity;
280 if ($this->arity() != 0) {
288 if ($this->arity() == 0) {
291 if (count($this->tokenDefs()) != 1 && count($this->tokenDefs()) != $this->arity()) {
296 if ($this->arity() == 0) {
299 if (count($this->tokenDefs()) != 1 && count($this->tokenDefs()) != $this->arity()) {
304 if ($this->arity() == 0 || $this->arity() == 1) {
307 … if (count($this->tokenDefs()) != 1 && count($this->tokenDefs()) != $this->arity() - 1) {
312 if ($this->arity() !== null) {
470 if ($this->arity() < 0) {
477 …nLength = self::_getLongestAlternateChain($args, $position, $this->tokenDefs()[0], $this->arity());
478 if ($chainLength == $this->arity()) {
483 $position = self::_splicePrefix($args, $position, $this->arity(), $this);
488 if ($this->arity() < 0) {
495 …gth = self::_getLongestAlternateChain($args, $position + 1, $this->tokenDefs()[0], $this->arity());
496 if ($chainLength == $this->arity()) {
501 $position = self::_splicePostfix($args, $position + 1, $this->arity(), $this);
506 if ($this->arity() < 0) {
513 …gth = self::_getLongestAlternateChain($args, $position + 1, $this->tokenDefs()[0], $this->arity());
514 if ($chainLength == $this->arity() - 1) {
519 $position = self::_spliceInfix($args, $position + 1, $this->arity() - 1, $this);
622 if ($this->arity() < 0) { // Any number of tokens, > 0
628 } elseif (count($args) != $this->arity()) {
629 …w MalformedExpressionException($elmInstance, 'Expected exactly ' . $this->arity() . ' arguments.');