ParentChildSearcher class

Wraps a precise child Searcher and returns expanded parent context.

This keeps retrieval and presentation separate: the wrapped searcher still ranks the most precise chunks, while the resolver maps those hits to larger file/class/namespace context for callers that need more code around a match.

Annotations
  • @immutable

Constructors

ParentChildSearcher({required Searcher searcher, required ParentChildResolver resolver, bool deduplicateContexts = true})
Creates a parent-child searcher around searcher.
const

Properties

deduplicateContexts bool
Whether repeated context chunks should collapse to the first child hit.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
Searches precise chunks, then expands each hit to parent context.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited