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

Method extract

src/extraction/cfml-extractor.ts:91–115  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

89 }
90
91 extract(): ExtractionResult {
92 const startTime = Date.now();
93
94 try {
95 if (isBareScriptCfml(this.source)) {
96 this.extractBareScript();
97 } else {
98 this.extractTagBased();
99 }
100 } catch (error) {
101 this.errors.push({
102 message: `CFML extraction error: ${error instanceof Error ? error.message : String(error)}`,
103 severity: 'error',
104 code: 'parse_error',
105 });
106 }
107
108 return {
109 nodes: this.nodes,
110 edges: this.edges,
111 unresolvedReferences: this.unresolvedReferences,
112 errors: this.errors,
113 durationMs: Date.now() - startTime,
114 };
115 }
116
117 /** Modern bare-script `.cfc`/`.cfm`: delegate the whole file to the cfscript grammar. */
118 private extractBareScript(): void {

Callers

nothing calls this directly

Calls 4

extractBareScriptMethod · 0.95
extractTagBasedMethod · 0.95
isBareScriptCfmlFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected