зеркало из https://github.com/microsoft/pyright.git
Fix fileInfo null error (#8702)
* fix file info null reference * check for binding * removing fileinfo in if statement
This commit is contained in:
Родитель
e8f0965e5b
Коммит
1f193580c8
|
@ -2032,8 +2032,13 @@ export class Program {
|
|||
}
|
||||
|
||||
// We might not have the file info if binding failed for whatever reasons.
|
||||
// Check whether the file has been bound
|
||||
if (file.sourceFile.isBindingRequired()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
const fileInfo = AnalyzerNodeInfo.getFileInfo(parseResults.parseTree);
|
||||
if (fileInfo && fileInfo.accessedSymbolSet) {
|
||||
if (fileInfo.accessedSymbolSet) {
|
||||
dependentFiles.push(parseResults);
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче