COBOL analysis is being deprecated. Version 1.23 is the final Semmle release to include the CodeQL library for COBOL.

Member predicate AstNode::hasAncestor

Does this AstNode have ‘other’ as a ancestor?

predicate hasAncestor(AstNode other)