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

Method getOutputFilename

lib/compilers/pascal.ts:124–132  ·  view source on GitHub ↗
(dirPath: string, outputFilebase: string, key?: any)

Source from the content-addressed store, hash-verified

122 }
123
124 override getOutputFilename(dirPath: string, outputFilebase: string, key?: any): string {
125 let baseFilename: string = outputFilebase;
126 if (key?.source) {
127 const inputFilename = this.getMainSourceFilename(key.source);
128 baseFilename = inputFilename.substring(0, inputFilename.length - 4);
129 }
130
131 return path.join(dirPath, `${baseFilename}.s`);
132 }
133
134 override getExecutableFilename(dirPath: string, outputFilebase: string, key?: CacheKey | CompilationCacheKey) {
135 const source = (key && (key as CacheKey).source) || '';

Callers

nothing calls this directly

Calls 1

getMainSourceFilenameMethod · 0.95

Tested by

no test coverage detected