(lang: string, code: CopyInFile)
| 208 | } |
| 209 | |
| 210 | async compile(lang: string, code: CopyInFile) { |
| 211 | using compileSpan = this.startChildSpan('judge.compile', { lang }); |
| 212 | const copyIn = Object.fromEntries( |
| 213 | (this.config.user_extra_files || []).map((i) => [basename(i), { src: i }]), |
| 214 | ) as CopyIn; |
| 215 | const result = await compile(this.session.getLang(lang), code, copyIn, this.next); |
| 216 | compileSpan.setStatus({ code: SpanStatusCode.OK }); |
| 217 | await this.pushClean(result.clean); |
| 218 | return result; |
| 219 | } |
| 220 | |
| 221 | async compileLocalFile( |
| 222 | type: 'interactor' | 'validator' | 'checker' | 'generator' | 'manager' | 'std', |
no test coverage detected