SpecQueryMatch class

One node matched by a SpecQuery (the llm_and_d4rt_tools.md §6 cursor record).

Constructors

SpecQueryMatch({required String path, required SpecNodeKind kind, String? classId, String? headline, String? snippet, List<SpecMatchSpan> matchSpans = const []})
path and kind identify the hit and are always known. snippet and matchSpans are populated together and only for a query that carried a text dimension — a purely structural query leaves both at their defaults, so an empty matchSpans never has to be read as "searched but found nothing". headline and classId mirror the node and stay null where the node itself has neither.
const

Properties

classId → String?
The model class the node is (null for value leaves and list containers).
final
hashCode → int
The hash code for this object.
no setterinherited
headline → String?
The node's headline — stored if the author set one, else the model's doc comment (null when neither exists).
final
kind → SpecNodeKind
What kind of node the path lands on.
final
matchSpans → List<SpecMatchSpan>
The spans within snippet the text pattern matched (empty for non-text queries).
final
path → String
The globally-unique section-ID path the node lives at.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
snippet → String?
The matched text, when the query carried a text dimension (null otherwise) — the value/headline that the pattern hit.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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