Retrieve the document in which the given AST node is contained. A reference to the document is usually held by the root node of the AST.
an error if the node is not contained in a document.
Retrieve the document in which the given AST node is contained. A reference to the document is usually held by the root node of the AST.