original_string: private function buildString()
      {
          $this->pathAsString = '';
          $data = false;
  
          foreach ($this->elements as $index => $element) {
              if ($this->mapsForm[$index]) {
                  $this->pathAsString .= ".children[$element]";
              } elseif (!$data) {
                  $this->pathAsString .= '.data'.($this->isIndex[$index] ? "[$element]" : ".$element");
                  $data = true;
              } else {
                  $this->pathAsString .= $this->isIndex[$index] ? "[$element]" : ".$element";
              }
          }
  
          if ('' !== $this->pathAsString) {
              // remove leading dot
              $this->pathAsString = substr($this->pathAsString, 1);
          }
      }
code: private function buildString()
      {
          $this->pathAsString = '';
          $data = false;
  
          foreach ($this->elements as $index => $element) {
              if ($this->mapsForm[$index]) {
                  $this->pathAsString .= ".children[$element]";
              } elseif (!$data) {
                  $this->pathAsString .= '.data'.($this->isIndex[$index] ? "[$element]" : ".$element");
                  $data = true;
              } else {
                  $this->pathAsString .= $this->isIndex[$index] ? "[$element]" : ".$element";
              }
          }
  
          if ('' !== $this->pathAsString) {
              // remove leading dot
              $this->pathAsString = substr($this->pathAsString, 1);
          }
      }
code_tokens: private function buildString ( ) { $ this -> pathAsString = '' ; $ data = false ; foreach ( $ this -> elements as $ index => $ element ) { if ( $ this -> mapsForm [ $ index ] ) { $ this -> pathAsString .= ".children[$element]" ; } elseif ( ! $ data ) { $ this -> pathAsString .= '.data' . ( $ this -> isIndex [ $ index ] ? "[$element]" : ".$element" ) ; $ data = true ; } else { $ this -> pathAsString .= $ this -> isIndex [ $ index ] ? "[$element]" : ".$element" ; } } if ( '' !== $ this -> pathAsString ) { // remove leading dot $ this -> pathAsString = substr ( $ this -> pathAsString , 1 ) ; } }
docstring: Builds the string representation from the elements.
docstring_tokens: Builds the string representation from the elements .