py-ast - v1.16.0
    Preparing search index...

    Function isASTNode

    AST inspection and construction utilities.

    • Check if a value is an AST node.

      A value is considered an AST node if it is a non-null object carrying a nodeType property; this is a type guard that narrows to ASTNodeUnion.

      Parameters

      • value: any

        The value to test

      Returns value is ASTNodeUnion

      true if value is an AST node, false otherwise