You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The definition doesn't seem to be used, and I'm not sure what it illustrates. In any case, this seems to be a pun on Base.parent:
help?> parent
[...]
parent(A)
Return the underlying "parent array”. This parent array of objects of types SubArray, ReshapedArray or LinearAlgebra.Transpose is what was passed as an argument to view, reshape,
transpose, etc. during object creation. If the input is not a wrapped object, return the input itself.
The parent API hasn't really been strictly defined yet, so I agree that Base.parent shouldn't be used for getting the parent of a node. I plan to submit a PR for that sometime in the near future in which it's a separate function.
Any update on this? ExplicitImports notes that AbstractTrees.parent is not exported or public. Is this a public function, or should it be treated as package internals?
Activity
jlumpe commentedon Apr 27, 2021
The parent API hasn't really been strictly defined yet, so I agree that
Base.parentshouldn't be used for getting the parent of a node. I plan to submit a PR for that sometime in the near future in which it's a separate function.BenjaminDoran commentedon Dec 19, 2025
Any update on this?
ExplicitImportsnotes thatAbstractTrees.parentis not exported or public. Is this a public function, or should it be treated as package internals?