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

Method preProcess

lib/compilers/pony.ts:55–62  ·  view source on GitHub ↗
(source: string, filters: any)

Source from the content-addressed store, hash-verified

53 }
54
55 override preProcess(source: string, filters: any) {
56 // I do not think you can make a Pony "library", so you must always have a main.
57 // Looking at the stdlib, the main is used as a test harness.
58 if (!this.stubRe.test(source)) {
59 source += `\n${this.stubText}\n`;
60 }
61 return source;
62 }
63
64 override async generateIR(
65 inputFilename: string,

Callers

nothing calls this directly

Calls 1

testMethod · 0.80

Tested by

no test coverage detected