示例#1
0
        MethodGroupResolveResult ResolveIfMethodIsImported(PythonResolverContext resolverContext, MemberName memberName)
        {
            if (!memberName.HasName)
            {
                memberName = new PythonBuiltInModuleMemberName(memberName.Type);
            }

            PythonStandardModuleType type = standardModuleResolver.GetStandardModuleTypeIfImported(resolverContext, memberName.Type);

            if (type != null)
            {
                return(CreateResolveResult(type, memberName.Name));
            }
            return(null);
        }