diff options
author | Jeremy Rifkin <51220084+jeremy-rifkin@users.noreply.github.com> | 2023-01-29 13:22:30 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-29 13:22:30 -0500 |
commit | 6a6efaefe650c06fd93e0d52e0ae6b6e3b4d4718 (patch) | |
tree | ffeb8626d237499e91babfd329cb752497b19872 /lib/compilers/python.ts | |
parent | 87203f71cb1294703dcdbcb4abc3385b21083291 (diff) | |
download | compiler-explorer-6a6efaefe650c06fd93e0d52e0ae6b6e3b4d4718.tar.gz compiler-explorer-6a6efaefe650c06fd93e0d52e0ae6b6e3b4d4718.zip |
Tsify lib/compilers (#4609)gh-6026
Diffstat (limited to 'lib/compilers/python.ts')
-rw-r--r-- | lib/compilers/python.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/compilers/python.ts b/lib/compilers/python.ts index eaf1092d7..ebfca451f 100644 --- a/lib/compilers/python.ts +++ b/lib/compilers/python.ts @@ -23,6 +23,8 @@ // POSSIBILITY OF SUCH DAMAGE. import {AsmResultSource, ParsedAsmResultLine} from '../../types/asmresult/asmresult.interfaces'; +import {CompilerInfo} from '../../types/compiler.interfaces'; +import {ParseFiltersAndOutputOptions} from '../../types/features/filters.interfaces'; import {BaseCompiler} from '../base-compiler'; import {resolvePathFromAppRoot} from '../utils'; @@ -35,7 +37,7 @@ export class PythonCompiler extends BaseCompiler { return 'python'; } - constructor(compilerInfo, env) { + constructor(compilerInfo: CompilerInfo, env) { super(compilerInfo, env); this.compiler.demangler = ''; this.demanglerClass = null; @@ -73,7 +75,7 @@ export class PythonCompiler extends BaseCompiler { return {asm: bytecodeResult}; } - override optionsForFilter(filters, outputFilename) { + override optionsForFilter(filters: ParseFiltersAndOutputOptions, outputFilename: string) { return ['-I', this.disasmScriptPath, '--outputfile', outputFilename, '--inputfile']; } |