(id: string, args: any[], returns: any[])
| 361 | vars: Variable[]; |
| 362 | |
| 363 | constructor(id: string, args: any[], returns: any[]) { |
| 364 | this.id = id; |
| 365 | this.args = args; |
| 366 | this.returns = returns; |
| 367 | this.proposalObject = {providing: null, cardinality: 0} |
| 368 | this.resolvedArgs = []; |
| 369 | this.resolvedReturns = []; |
| 370 | this.resolved = {args: null, returns: null}; |
| 371 | this.vars = []; |
| 372 | // capture our variables |
| 373 | for(let register of this.args) { |
| 374 | if(isVariable(register)) { |
| 375 | this.vars[register.id] = register; |
| 376 | } |
| 377 | } |
| 378 | for(let register of this.returns) { |
| 379 | if(isVariable(register)) { |
| 380 | this.vars[register.id] = register; |
| 381 | } |
| 382 | } |
| 383 | } |
| 384 | |
| 385 | resolve(prefix) { |
| 386 | let resolved = this.resolved; |
nothing calls this directly
no test coverage detected