MCPcopy Index your code
hub / github.com/witheve/Eve / getProposal

Method getProposal

src/runtime/providers/string.ts:353–366  ·  view source on GitHub ↗
(tripleIndex, proposed, prefix)

Source from the content-addressed store, hash-verified

351 }
352
353 getProposal(tripleIndex, proposed, prefix) {
354 let proposal = this.proposalObject;
355 let {args} = this.resolve(prefix);
356 let [text, az] = args;
357 if(typeof args[0] !== "string") {
358 proposal.cardinality = 0;
359 } else if (!this.validAsOption(az)) {
360 proposal.cardinality = 0;
361 } else {
362 proposal.providing = proposed;
363 proposal.cardinality = 1;
364 }
365 return proposal;
366 }
367
368 // Adapted from: https://mathiasbynens.be/notes/javascript-unicode
369 countSymbols(string) {

Callers

nothing calls this directly

Calls 2

validAsOptionMethod · 0.95
resolveMethod · 0.45

Tested by

no test coverage detected