(bypassCache?: BypassCache)
| 286 | } |
| 287 | |
| 288 | compile(bypassCache?: BypassCache): void { |
| 289 | if (this.deferCompiles) { |
| 290 | this.needsCompile = true; |
| 291 | return; |
| 292 | } |
| 293 | this.needsCompile = false; |
| 294 | this.compileTimeLabel.text(' - Compiling...'); |
| 295 | const options: CompilationRequestOptions = { |
| 296 | userArguments: this.options, |
| 297 | executeParameters: { |
| 298 | args: this.executionArguments, |
| 299 | stdin: this.executionStdin, |
| 300 | runtimeTools: this.compilerShared.getRuntimeTools(), |
| 301 | }, |
| 302 | compilerOptions: { |
| 303 | executorRequest: true, |
| 304 | skipAsm: true, |
| 305 | overrides: this.compilerShared.getOverrides(), |
| 306 | }, |
| 307 | filters: {execute: true}, |
| 308 | tools: [], |
| 309 | libraries: [], |
| 310 | }; |
| 311 | |
| 312 | this.libsWidget?.getLibsInUse().forEach(item => { |
| 313 | options.libraries.push({ |
| 314 | id: item.libId, |
| 315 | version: item.versionId, |
| 316 | }); |
| 317 | }); |
| 318 | |
| 319 | if (this.sourceTreeId) { |
| 320 | this.compileFromTree(options, bypassCache); |
| 321 | } else { |
| 322 | this.compileFromEditorSource(options, bypassCache); |
| 323 | } |
| 324 | } |
| 325 | |
| 326 | compileFromEditorSource(options: CompilationRequestOptions, bypassCache?: BypassCache): void { |
| 327 | if (!this.compiler || !this.compilerIsVisible(this.compiler)) { |
no test coverage detected