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

    Function iterChildNodes

    AST inspection and construction utilities.

    • Iterate over all direct child nodes.

      Walks the node's fields (via iterFields) and yields any values, or array elements, that are themselves AST nodes.

      Parameters

      • node: ASTNodeUnion

        The AST node whose children should be iterated

      Returns Generator<ASTNodeUnion>

      A generator of the node's direct child AST nodes