()
| 419 | // This method should be called once type analysis has completed for |
| 420 | // this file and all of its dependent files. |
| 421 | finalizeAnalysis() { |
| 422 | assert(!this.isTypeAnalysisRequired()); |
| 423 | |
| 424 | // Mark the type analysis as final. |
| 425 | this._analysisJob.isTypeAnalysisFinalized = true; |
| 426 | |
| 427 | // Finalize the diagnostics from the last pass of type analysis |
| 428 | // so they become visible. |
| 429 | this._analysisJob.typeAnalysisFinalDiagnostics = |
| 430 | this._analysisJob.typeAnalysisLastPassDiagnostics; |
| 431 | this._analysisJob.typeAnalysisLastPassDiagnostics = []; |
| 432 | this._diagnosticVersion++; |
| 433 | } |
| 434 | |
| 435 | private _buildFileInfo(configOptions: ConfigOptions, importMap?: ImportMap, builtinsScope?: Scope) { |
| 436 | assert(this._analysisJob.parseResults !== undefined); |
no test coverage detected