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

Method constructor

lib/compilers/d8.ts:64–87  ·  view source on GitHub ↗
(compilerInfo: PreliminaryCompilerInfo, env: CompilationEnvironment)

Source from the content-addressed store, hash-verified

62 libPaths: string[];
63
64 constructor(compilerInfo: PreliminaryCompilerInfo, env: CompilationEnvironment) {
65 super({...compilerInfo}, env);
66
67 this.lineNumberRegex = /^\s+\.line\s+(\d+).*$/;
68 this.methodEndRegex = /^\s*\.end\smethod.*$/;
69
70 this.minApiArgRegex = /^--min-api$/;
71
72 this.jvmSyspropArgRegex = /^-J.*$/;
73 this.syspropArgRegex = /^-D.*$/;
74
75 // TODO(#7150) this can be rephrased once 7150 is done...
76 this.javaId = this.compilerProps<string>(`compiler.${this.compiler.id}.javaId`);
77 if (!this.javaId) {
78 this.javaId = this.compilerProps<string>(`group.${this.compiler.group}.javaId`);
79 }
80
81 this.versionFromPropsRegex = /^version\.version=(.*)$/;
82 this.versionFromJarRegex = /^.*r8-(.*)\.jar$/;
83
84 this.kotlinId = this.compilerProps<string>(`group.${this.compiler.group}.kotlinId`);
85
86 this.libPaths = [];
87 }
88
89 override getOutputFilename(dirPath: string) {
90 return path.join(dirPath, `${path.basename(this.compileFilename, this.lang.extensions[0])}.dex`);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected