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

Method _markFileDirtyRecursive

server/src/analyzer/program.ts:386–399  ·  view source on GitHub ↗
(sourceFileInfo: SourceFileInfo,
            markMap: { [path: string]: boolean })

Source from the content-addressed store, hash-verified

384 }
385
386 private _markFileDirtyRecursive(sourceFileInfo: SourceFileInfo,
387 markMap: { [path: string]: boolean }) {
388 let filePath = sourceFileInfo.sourceFile.getFilePath();
389
390 // Don't mark it again if it's already been visited.
391 if (markMap[filePath] === undefined) {
392 sourceFileInfo.sourceFile.markReanalysisRequired();
393 markMap[filePath] = true;
394
395 sourceFileInfo.importedBy.forEach(dep => {
396 this._markFileDirtyRecursive(dep, markMap);
397 });
398 }
399 }
400
401 getDiagnostics(options: ConfigOptions): FileDiagnostics[] {
402 let fileDiagnostics: FileDiagnostics[] = this._removeUnneededFiles();

Callers 1

markFilesDirtyMethod · 0.95

Calls 3

getFilePathMethod · 0.80
forEachMethod · 0.80

Tested by

no test coverage detected