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

Method constructor

lib/compilers/lua.ts:56–69  ·  view source on GitHub ↗
(compilerInfo: PreliminaryCompilerInfo, env: CompilationEnvironment)

Source from the content-addressed store, hash-verified

54 }
55
56 constructor(compilerInfo: PreliminaryCompilerInfo, env: CompilationEnvironment) {
57 super(compilerInfo, env);
58 this.compiler.demangler = '';
59 this.demanglerClass = null;
60 // Per-compiler properties aren't inherited through the normal cascade
61 // (TODO(#7150)), so resolve the interpreter explicitly: compiler-specific,
62 // then group, then the language-level default. Reading plain 'interpreter'
63 // would only ever see the top-level value, so every version would execute
64 // with the same Lua.
65 this.interpreterExe =
66 this.compilerProps<string>(`compiler.${this.compiler.id}.interpreter`, '') ||
67 this.compilerProps<string>(`group.${this.compiler.group}.interpreter`, '') ||
68 this.compilerProps<string>('interpreter', '');
69 }
70
71 override getArgumentParserClass() {
72 return BaseParser;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected