Whether a typed flow still stands now that `writtenElsewhere` is known.
(flow: TypedFlow)
| 406 | |
| 407 | /** Whether a typed flow still stands now that `writtenElsewhere` is known. */ |
| 408 | stands(flow: TypedFlow): boolean { |
| 409 | const answer = this.flow(flow.method, flow.parameter, [], new Set()); |
| 410 | if (isFlowValue(answer)) return true; |
| 411 | this.abstained[answer] = (this.abstained[answer] ?? 0) + 1; |
| 412 | return false; |
| 413 | } |
| 414 | } |
| 415 | |
| 416 | const isMethodKind = (kind: string): boolean => kind === 'method' || kind === 'function'; |
no test coverage detected