(node, n=1)
return node
Increment the line number and end line number of each node in the tree
    starting at *node* by *n*. This is useful to "move code" to a different
    location in a file.
Increment the line number and end line number of each node in the tree
    starting at *node* by *n*. This is useful to "move code" to a different
    location in a file.
Increment the line number and end line number of each node in the tree starting at * node * by * n * . This is useful to move code to a different location in a file .
def increment_lineno(node, n=1):
    """
    Increment the line number and end line number of each node in the tree
    starting at *node* by *n*. This is useful to "move code" to a different
    location in a file.
    """
    for child in walk(node):
        if 'lineno' in child._attributes:
            child.lineno = getattr(child, 'lineno', 0) + n
        if (
            "end_lineno" in child._attributes
            and (end_lineno := getattr(child, "end_lineno", 0)) is not None
        ):
            child.end_lineno = end_lineno + n
    return node
def increment_lineno ( node , n = 1 ) : for child in walk ( node ) : if 'lineno' in child . _attributes : child . lineno = getattr ( child , 'lineno' , 0 ) + n if ( "end_lineno" in child . _attributes and ( end_lineno := getattr ( child , "end_lineno" , 0 ) ) is not None ) : child . end_lineno = end_lineno + n return node