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

Method preProcessLines

lib/compilers/pascal.ts:351–372  ·  view source on GitHub ↗
(asmLines: string[])

Source from the content-addressed store, hash-verified

349 }
350
351 preProcessLines(asmLines: string[]) {
352 let i = 0;
353 const files: Record<string, number> = {};
354 let currentFileId = 1;
355
356 while (i < asmLines.length) {
357 const newFileId = this.tryGetFilenumber(asmLines[i], files);
358 if (newFileId) currentFileId = newFileId;
359
360 const extraHint = this.getExtraAsmHint(asmLines[i], currentFileId);
361 if (extraHint) {
362 i++;
363 asmLines.splice(i, 0, extraHint);
364 } else {
365 this.demangler.addDemangleToCache(asmLines[i]);
366 }
367
368 i++;
369 }
370
371 return asmLines;
372 }
373}

Callers

nothing calls this directly

Calls 3

tryGetFilenumberMethod · 0.95
getExtraAsmHintMethod · 0.95
addDemangleToCacheMethod · 0.80

Tested by

no test coverage detected