text_lint.results.cursor.ResultTreeCursor

class text_lint.results.cursor.ResultTreeCursor[Quellcode]

Bases: object

Represents a location within a ResultForest instance.

__init__() None[Quellcode]

Initialize ResultTreeCursor instances.

clone() ResultTreeCursor[Quellcode]

Create a nested copy of all trees at the specified location.

Rückgabe:

A cloned copy of the current cursor object.

Rückgabetyp:

ResultTreeCursor

flatten() None[Quellcode]

Merge the current location’s tree groups.

increment_depth() None[Quellcode]

Increase tree depth by one set of nodes.

property location: List[ResultTree | AliasResultForestCursor]

Return the current location within the ResultForest instance.

unique() None[Quellcode]

Select the first unique value for each tree at the current location.