* Extract components and event handler references from DFM/FMX source
()
| 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 { |
nothing calls this directly
no test coverage detected