text_lint.operations.lookups.index.IndexLookup

class text_lint.operations.lookups.index.IndexLookup(lookup_name: str, lookup_expression: LookupExpression, lookup_params: AliasLookupParams, requesting_operation_name: str)[source]

Bases: LookupBase

IndexLookup operation for ResultForest instances.

apply(state: LookupState) None[source]

Select the indexed tree from the current ResultForest location.