original_string: public function add_node(node $node) {
          $name = $node->name;
          if (isset($this->nodes[$name])) {
              throw new \coding_exception("Node name $name already used");
          }
          $this->nodes[$node->name] = $node;
      }
code: public function add_node(node $node) {
          $name = $node->name;
          if (isset($this->nodes[$name])) {
              throw new \coding_exception("Node name $name already used");
          }
          $this->nodes[$node->name] = $node;
      }
code_tokens: public function add_node ( node $ node ) { $ name = $ node -> name ; if ( isset ( $ this -> nodes [ $ name ] ) ) { throw new \ coding_exception ( "Node name $name already used" ) ; } $ this -> nodes [ $ node -> name ] = $ node ; }
docstring: Add a node to the tree.
  
  @param node $node node object.
  
  @throws \coding_exception
docstring_tokens: Add a node to the tree .