public override IDictionary <string, IAnalysisSet> GetAllMembers(PythonTools.Interpreter.IModuleContext moduleContext)
        {
            Dictionary <string, IAnalysisSet> res = new Dictionary <string, IAnalysisSet>();

            foreach (var member in _members)
            {
                foreach (var keyValue in member.GetAllMembers(moduleContext))
                {
                    IAnalysisSet existing;
                    if (res.TryGetValue(keyValue.Key, out existing))
                    {
                        MultipleMemberInfo existingMultiMember = existing as MultipleMemberInfo;
                        if (existingMultiMember != null)
                        {
                            res[keyValue.Key] = MultipleMemberInfo.Create(existingMultiMember._members, keyValue.Value);
                        }
                        else
                        {
                            res[keyValue.Key] = MultipleMemberInfo.Create(existing, keyValue.Value);
                        }
                    }
                    else
                    {
                        res[keyValue.Key] = keyValue.Value;
                    }
                }
            }

            return(res);
        }
Example #2
0
 public override IDictionary <string, ISet <Namespace> > GetAllMembers(PythonTools.Interpreter.IModuleContext moduleContext)
 {
     return(base.GetAllMembers(moduleContext));
 }