Member predicate AstNode::AstNode::hasAncestor

Does this AstNode have ‘other’ as a ancestor?

predicate hasAncestor(AstNode other)