MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / stands

Method stands

src/resolution/parameter-flow.ts:408–413  ·  view source on GitHub ↗

Whether a typed flow still stands now that `writtenElsewhere` is known.

(flow: TypedFlow)

Source from the content-addressed store, hash-verified

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
416const isMethodKind = (kind: string): boolean => kind === 'method' || kind === 'function';

Callers 1

planFlowsFunction · 0.95

Calls 2

flowMethod · 0.95
isFlowValueFunction · 0.85

Tested by

no test coverage detected