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

Method constructor

lib/compilers/dotnet.ts:59–76  ·  view source on GitHub ↗
(compilerInfo: PreliminaryCompilerInfo, env: CompilationEnvironment)

Source from the content-addressed store, hash-verified

57 private readonly toolsPath: string;
58
59 constructor(compilerInfo: PreliminaryCompilerInfo, env: CompilationEnvironment) {
60 super(compilerInfo, env);
61
62 this.sdkBaseDir = path.join(path.dirname(compilerInfo.exe), 'sdk');
63
64 this.buildConfig = this.compilerProps<string>(`compiler.${this.compiler.id}.buildConfig`);
65 this.clrBuildDir = this.compilerProps<string>(`compiler.${this.compiler.id}.clrDir`);
66 this.langVersion = this.compilerProps<string>(`compiler.${this.compiler.id}.langVersion`);
67
68 this.corerunPath = path.join(this.clrBuildDir, 'corerun');
69 this.crossgen2Path = path.join(this.clrBuildDir, 'crossgen2', 'crossgen2');
70 this.ilcPath = path.join(this.clrBuildDir, 'ilc-published', 'ilc');
71 this.ildasmPath = path.join(this.clrBuildDir, 'ildasm');
72 this.toolsPath = path.join(this.clrBuildDir, 'dotnet-tools', '.store');
73
74 this.asm = new DotNetAsmParser();
75 this.disassemblyLoaderPath = path.join(this.clrBuildDir, 'DisassemblyLoader', 'DisassemblyLoader.dll');
76 }
77
78 async getCompilerInfo(lang: LanguageKey): Promise<DotNetCompilerInfo> {
79 const sdkDirs = await fs.readdir(this.sdkBaseDir);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected