Exemple #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);
 }
Exemple #2
0
 MethodGroupResolveResult CreateResolveResult(PythonStandardModuleType type, string name)
 {
     return(PythonStandardModuleMethodGroupResolveResult.Create(type, name));
 }