Parses node and marks the resulting CST node as a name donor for the
nearest enclosing adopt: if the donated node lands as a direct child
of the node an adopt produces, that node takes the donor's type as its own
name, and the donor is flagged ignored (they stay in
the tree, so the source is still reproduced exactly, but they are dropped
when the CST is condensed) while any named children it captured are promoted
into the adopted node in its place. A donated node that never lands as a
direct child of an adopted node has no effect.
Parses
nodeand marks the resulting CST node as a name donor for the nearest enclosing adopt: if the donated node lands as a direct child of the node anadoptproduces, that node takes the donor's type as its own name, and the donor is flagged ignored (they stay in the tree, so the source is still reproduced exactly, but they are dropped when the CST is condensed) while any named children it captured are promoted into the adopted node in its place. A donated node that never lands as a direct child of an adopted node has no effect.