docs: public AstNode removeFromParent() {
          AstNode result = this.parent;
          if (this.parent != null) {
              // Remove this node from its current parent ...
              this.parent.children.remove(this);
              this.parent = null;
          }
          return result;
      }