getAncestors(node) {
		if (!node) {
			throw new TypeError("Missing required argument: node.");
		}

		const ancestorsStartingAtParent = [];

		for (let ancestor = node.parent; ancestor; ancestor = ancestor.parent) {
			ancestorsStartingAtParent.push(ancestor);
		}

		return ancestorsStartingAtParent.reverse();
	}
Gets all the ancestors of a given node
@param {ASTNode} node The node
@returns {Array<ASTNode>} All the ancestor nodes in the AST, not including the provided node, starting
from the root node at index 0 and going inwards to the parent node.
@throws {TypeError} When `node` is missing.