private function encapsList($node, $terminator, $encaps_whitespace_allowed = FALSE) {
    if (!$encaps_whitespace_allowed) {
      if ($this->tryMatch(T_ENCAPSED_AND_WHITESPACE, $node)) {
        $node->addChild($this->encapsVar());
      }
    }
    while ($this->currentType !== NULL && $this->currentType !== $terminator) {
      $this->tryMatch(T_ENCAPSED_AND_WHITESPACE, $node) ||
        $node->addChild($this->encapsVar());
    }
  }
private function encapsList($node, $terminator, $encaps_whitespace_allowed = FALSE) {
    if (!$encaps_whitespace_allowed) {
      if ($this->tryMatch(T_ENCAPSED_AND_WHITESPACE, $node)) {
        $node->addChild($this->encapsVar());
      }
    }
    while ($this->currentType !== NULL && $this->currentType !== $terminator) {
      $this->tryMatch(T_ENCAPSED_AND_WHITESPACE, $node) ||
        $node->addChild($this->encapsVar());
    }
  }
private function encapsList ( $ node , $ terminator , $ encaps_whitespace_allowed = FALSE ) { if ( ! $ encaps_whitespace_allowed ) { if ( $ this -> tryMatch ( T_ENCAPSED_AND_WHITESPACE , $ node ) ) { $ node -> addChild ( $ this -> encapsVar ( ) ) ; } } while ( $ this -> currentType !== NULL && $ this -> currentType !== $ terminator ) { $ this -> tryMatch ( T_ENCAPSED_AND_WHITESPACE , $ node ) || $ node -> addChild ( $ this -> encapsVar ( ) ) ; } }
Parse an encaps list.
@param InterpolatedStringNode|HeredocNode|BacktickNode $node Interpolated string.
@param int|string $terminator Token type that terminates the encaps list
@param bool $encaps_whitespace_allowed
Parse an encaps list .