public AnalysisModuleKey(IPythonModule module)
 {
     Name                = module.Name;
     FilePath            = module.ModuleType == ModuleType.CompiledBuiltin ? null : module.FilePath;
     IsTypeshed          = module is StubPythonModule stub && stub.IsTypeshed;
     IsNonUserAsDocument = (module.IsNonUserFile() || module.IsCompiled()) && module is IDocument document && document.IsOpen;
 }
Ejemplo n.º 2
0
 private static bool IsNonUserAsDocumentModule(IPythonModule module)
 => (module.IsNonUserFile() || module.IsCompiled()) && module is IDocument document && document.IsOpen;