MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / firstErrorLine

Method firstErrorLine

src/orchestration/qa-node.ts:150–157  ·  view source on GitHub ↗
(node: any, _content: string)

Source from the content-addressed store, hash-verified

148 }
149
150 private firstErrorLine(node: any, _content: string): number | null {
151 if (node.type === 'ERROR' || node.isMissing?.()) return (node.startPosition?.row ?? 0) + 1;
152 for (let i = 0; i < (node.childCount ?? 0); i++) {
153 const l = this.firstErrorLine(node.child(i), _content);
154 if (l) return l;
155 }
156 return null;
157 }
158}

Callers 1

parseCheckMethod · 0.95

Calls 1

childMethod · 0.80

Tested by

no test coverage detected