Lines Matching refs:definition

35     public function __construct($definition, $args) {  argument
36 $this->_definition = $definition;
40 public function definition() { return $this->_definition; } function in AST\\ElementInstance
61 if ($this->definition() === null) {
73 return $this->definition()->getRepresentation($this);
86 if ($this->definition() !== null && $this->definition()->fixing() == Fixing::None) {
153 if ($this->definition() !== null) {
154 echo $indentStr . '+-' . $this->definition()->name() . "\n";
189 if ($this->definition() === null) {
194 $this->definition()->ensureWellFormed($this);
214 if ($this->definition() === null) {
222 return $this->definition()->evaluate($this);
338 if ($args[$lastFound]->definition() == $tokDef) {
353 if ($args[$lastFound]->definition() == $tokDefs[$tokDefIdx]) {
367 if ($args[$position]->definition() != $openTokDef) {
372 if ($args[$i]->definition() == $closeTokDef) {
376 } else if ($nested && $args[$i]->definition() == $openTokDef) {
391 private static function _splicePrefix(&$args, $firstTokPosition, $chainLength, $definition) { argument
396 $elmInst = new ElementInstance($definition, $elmArgs);
398 throw new NotEnoughArgumentsException($definition);
404 private static function _splicePostfix(&$args, $firstTokPosition, $chainLength, $definition) { argument
409 $elmInst = new ElementInstance($definition, $elmArgs);
411 throw new NotEnoughArgumentsException($definition);
413 throw new NotEnoughArgumentsException($definition);
419 private static function _spliceInfix(&$args, $firstTokPosition, $chainLength, $definition) { argument
424 $elmInst = new ElementInstance($definition, $elmArgs);
426 throw new NotEnoughArgumentsException($definition);
428 throw new NotEnoughArgumentsException($definition);
434 private static function _spliceWrap(&$args, $firstTokPosition, $sequenceLength, $definition) { argument
445 $elmInst = new ElementInstance($definition, $elmArgs);
450 private static function _spliceNone(&$args, $firstTokPosition, $definition) { argument
457 …array_splice($args, $firstTokPosition, 1, array(new ElementInstance($definition, array($args[$firs…
464 if ($args[$position]->definition() == $this->tokenDefs()[0]) {
604 if ($elmInstance->definition() != $this) {
615 } else if ($args[0]->definition() != $this->tokenDefs()[0]) {