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

Method hasError

src/orchestration/qa-node.ts:142–148  ·  view source on GitHub ↗
(node: any)

Source from the content-addressed store, hash-verified

140 }
141
142 private hasError(node: any): boolean {
143 if (node.type === 'ERROR' || node.isMissing?.()) return true;
144 for (let i = 0; i < (node.childCount ?? 0); i++) {
145 if (this.hasError(node.child(i))) return true;
146 }
147 return false;
148 }
149
150 private firstErrorLine(node: any, _content: string): number | null {
151 if (node.type === 'ERROR' || node.isMissing?.()) return (node.startPosition?.row ?? 0) + 1;

Callers 1

parseCheckMethod · 0.95

Calls 1

childMethod · 0.80

Tested by

no test coverage detected