MCPcopy
hub / github.com/witheve/Eve / propose

Method propose

src/runtime/join.ts:275–283  ·  view source on GitHub ↗
(tripleIndex, prefix)

Source from the content-addressed store, hash-verified

273
274 // Return a proposal or nothing based on the currently solved prefix of variables.
275 propose(tripleIndex, prefix) : Proposal | undefined {
276 let resolved = this.resolve(prefix);
277 let [e,a,v,node] = resolved;
278 // if this scan is fully resolved, then there's no variable for us to propose
279 if(e !== undefined && a !== undefined && v !== undefined && (node !== undefined || this.node === undefined)) {
280 return;
281 }
282 return this.getProposal(tripleIndex, resolved);
283 }
284
285 // Given a proposal, get the values for that proposal. There are two proposal types
286 // for scans purely because of the way we wrote our indexes. Because JS will turn all

Callers

nothing calls this directly

Calls 2

resolveMethod · 0.95
getProposalMethod · 0.95

Tested by

no test coverage detected