code: public void setName(NameExpr name) {
          if (this.name != null) {
              updateReferences(this.name);
          }
          this.name = name;
          setAsParentNodeOf(name);
      }
docs: Sets the name of this package declaration.
  
  @param name
  the name to set