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

    Function iterFields

    AST inspection and construction utilities.

    • Iterate over all fields of a node.

      Skips the location bookkeeping properties (nodeType, lineno, col_offset, end_lineno, end_col_offset) and yields the node's remaining own properties as [name, value] pairs.

      Parameters

      • node: ASTNodeUnion

        The AST node whose fields should be iterated

      Returns Generator<[string, any]>

      A generator of [fieldName, fieldValue] tuples