(multiIndex: MultiIndex, prefix)
| 680 | } |
| 681 | |
| 682 | propose(multiIndex: MultiIndex, prefix) { |
| 683 | // if either our inputs aren't resolved or our outputs are all filled |
| 684 | // in, then we don't have anything to propose |
| 685 | if(!fullyResolved(this.args, prefix) |
| 686 | || fullyResolved(this.outputs, prefix)) return; |
| 687 | |
| 688 | // find out which of our outputs we could propose a value for |
| 689 | let proposed; |
| 690 | let proposedIx = 0; |
| 691 | for(let ret of this.outputs) { |
| 692 | if(toValue(ret, prefix) === undefined) { |
| 693 | proposed = ret; |
| 694 | break; |
| 695 | } |
| 696 | proposedIx++; |
| 697 | } |
| 698 | |
| 699 | return this.getProposal(multiIndex, proposed, proposedIx, prefix); |
| 700 | } |
| 701 | |
| 702 | resolveProposal(proposal, prefix) { |
| 703 | return proposal.index; |
nothing calls this directly
no test coverage detected