original_string: public function addChild(string $key) : NodePath
      {
          $path = $this->path;
          $path[] = $key;
          return new NodePath($path);
      }
code: public function addChild(string $key) : NodePath
      {
          $path = $this->path;
          $path[] = $key;
          return new NodePath($path);
      }
code_tokens: public function addChild ( string $ key ) : NodePath { $ path = $ this -> path ; $ path [ ] = $ key ; return new NodePath ( $ path ) ; }
docstring: Return new path with an added child.
  @param string $key
  @return NodePath
docstring_tokens: Return new path with an added child .