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

Class AstNode

A node in the abstract syntax tree, any program element.

Import path

import semmle.cobol.AstNode

Direct supertypes

Indirect supertypes

Known direct subtypes

Predicates

getASuccessor

Get any possible successor in the progam’s control flow.

getEnclosingText

Get the unit containing this element.

getEnclosingUnit

Get the unit containing this element.

hasAncestor

Does this AstNode have ‘other’ as a ancestor?

hasDescendant

Does this AstNode have ‘other’ as a descendant?

toString

Inherited predicates

getLocation

Get this element’s location.

from Locatable
getNumLines

Get the number of lines covered by this element.

from Locatable
getParentfrom AstNode_