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

Method extract

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

Source from the content-addressed store, hash-verified

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