Ejemplo n.º 1
0
 MethodGroupResolveResult ResolveMethodFromImportedNames(PythonResolverContext resolverContext, MemberName memberName)
 {
     if (!memberName.HasName)
     {
         string name       = memberName.Type;
         string moduleName = resolverContext.GetModuleForImportedName(name);
         if (moduleName != null)
         {
             PythonStandardModuleType type = standardModuleResolver.GetStandardModuleType(moduleName);
             if (type != null)
             {
                 name = resolverContext.UnaliasImportedName(name);
                 return(PythonStandardModuleMethodGroupResolveResult.Create(type, name));
             }
         }
     }
     return(null);
 }