@parent(treelike)

If the tree has a parent property, this returns the value of that property.