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

Method extract

src/extraction/dfm-extractor.ts:32–53  ·  view source on GitHub ↗

* Extract components and event handler references from DFM/FMX source

()

Source from the content-addressed store, hash-verified

30 * Extract components and event handler references from DFM/FMX source
31 */
32 extract(): ExtractionResult {
33 const startTime = Date.now();
34
35 try {
36 const fileNode = this.createFileNode();
37 this.parseComponents(fileNode.id);
38 } catch (error) {
39 this.errors.push({
40 message: `DFM extraction error: ${error instanceof Error ? error.message : String(error)}`,
41 severity: 'error',
42 code: 'parse_error',
43 });
44 }
45
46 return {
47 nodes: this.nodes,
48 edges: this.edges,
49 unresolvedReferences: this.unresolvedReferences,
50 errors: this.errors,
51 durationMs: Date.now() - startTime,
52 };
53 }
54
55 /** Create a file node for the DFM form file */
56 private createFileNode(): Node {

Callers

nothing calls this directly

Calls 2

createFileNodeMethod · 0.95
parseComponentsMethod · 0.95

Tested by

no test coverage detected