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

Method _parseFile

server/src/analyzer/program.ts:219–227  ·  view source on GitHub ↗
(fileToParse: SourceFileInfo, options: ConfigOptions)

Source from the content-addressed store, hash-verified

217 }
218
219 private _parseFile(fileToParse: SourceFileInfo, options: ConfigOptions) {
220 if (!this._isFileNeeded(fileToParse) || !fileToParse.sourceFile.isParseRequired()) {
221 return;
222 }
223
224 if (fileToParse.sourceFile.parse(options)) {
225 this._updateSourceFileImports(fileToParse);
226 }
227 }
228
229 private _doSemanticAnalysis(fileToAnalyze: SourceFileInfo, options: ConfigOptions) {
230 if (!this._isFileNeeded(fileToAnalyze) || !fileToAnalyze.sourceFile.isSemanticAnalysisRequired()) {

Callers 2

analyzeMethod · 0.95
_doSemanticAnalysisMethod · 0.95

Calls 4

_isFileNeededMethod · 0.95
isParseRequiredMethod · 0.80
parseMethod · 0.80

Tested by

no test coverage detected