MCPcopy Index your code
hub / github.com/microsoft/pyright / finalizeAnalysis

Method finalizeAnalysis

server/src/analyzer/sourceFile.ts:421–433  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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);

Callers 1

_doFullAnalysisMethod · 0.80

Calls 1

Tested by

no test coverage detected