Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Candidate ¶
Candidate is a place an anchor might belong, offered for a human (or an agent) to accept or reject.
type Request ¶
type Request struct {
Anchor domain.Anchor
Content string
Symbols []domain.Symbol
// Lines maps the anchor's recorded line numbers onto the current content
// using git history. Nil when no diff base is available, in which case
// resolution falls back to matching on text alone.
Lines *gitmap.LineMap
}
Request is everything resolution needs about one anchor at one moment.
type Resolution ¶
type Service ¶
type Service struct{}
func (*Service) Candidates ¶
Candidates proposes relocations for an anchor that automatic resolution could not place, ranked most plausible first.
Where Resolve stops at the first strategy confident enough to act on its own, this gathers every strategy's opinion, including the near-misses Resolve rejects. A stale anchor is precisely the case where no single strategy was certain, so the useful output is a shortlist, not a verdict.
Click to show internal directories.
Click to hide internal directories.