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

Method getEdgesWithTypeFrom

src/db/queries.ts:5686–5701  ·  view source on GitHub ↗

* Resolution edges whose answer was read from other files * (`metadata.typeFrom` — python attribute types, see * `resurrectTypeDependentEdges`), with the source file context a * resurrection needs. One scan; only python attribute calls carry the key.

()

Source from the content-addressed store, hash-verified

5684 * resurrection needs. One scan; only python attribute calls carry the key.
5685 */
5686 getEdgesWithTypeFrom(): Array<Edge & { edgeId: number; sourceFilePath: string; sourceLanguage: Language }> {
5687 const rows = this.db
5688 .prepare(
5689 `SELECT e.*, src.file_path AS source_file_path, src.language AS source_language
5690 FROM edges e
5691 JOIN nodes src ON src.id = e.source
5692 WHERE e.metadata LIKE '%"typeFrom"%'`
5693 )
5694 .all() as Array<EdgeRow & { source_file_path: string; source_language: Language }>;
5695 return rows.map((row) => ({
5696 ...rowToEdge(row),
5697 edgeId: row.id,
5698 sourceFilePath: row.source_file_path,
5699 sourceLanguage: row.source_language,
5700 }));
5701 }
5702
5703 /** What the parameter-flow pass reads and writes. */
5704 get parameterFlows(): ParameterFlowQueries {

Callers 1

Calls 4

rowToEdgeFunction · 0.85
mapMethod · 0.80
allMethod · 0.65
prepareMethod · 0.65

Tested by

no test coverage detected