MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / applyParse_FileWithLine

Function applyParse_FileWithLine

lib/utils.ts:188–201  ·  view source on GitHub ↗
(lineObj: ResultLine, filteredLine: string)

Source from the content-addressed store, hash-verified

186}
187
188function applyParse_FileWithLine(lineObj: ResultLine, filteredLine: string) {
189 const match = filteredLine.match(SOURCE_WITH_FILENAME);
190 if (match) {
191 const filename = match[1];
192 const message = match[5].trim();
193 lineObj.tag = {
194 file: filename,
195 line: Number.parseInt(match[2], 10),
196 column: Number.parseInt(match[4] || '0', 10),
197 text: message,
198 severity: parseSeverity(message),
199 };
200 }
201}
202
203function applyParse_AtFileLine(lineObj: ResultLine, filteredLine: string) {
204 const match = filteredLine.match(ATFILELINE_RE);

Callers 1

parseOutputFunction · 0.85

Calls 2

parseSeverityFunction · 0.85
matchMethod · 0.80

Tested by

no test coverage detected