Polyglot SQL API Documentation - v0.2.0
    Preparing search index...

    Function getParent

    • Find the parent of a target node in the AST.

      Uses reference equality (===) to identify the target, so the target must be a reference obtained from the same AST object graph (e.g. via findFirst() or findAll()).

      Parameters

      Returns Expression | null

      The parent Expression, or null if target is the root or not found.