Ejemplo n.º 1
0
 public override IDictionary <string, IAnalysisSet> GetAllMembers(IModuleContext moduleContext, GetMemberOptions options = GetMemberOptions.None)
 {
     if (_type == null)
     {
         return(new Dictionary <string, IAnalysisSet>());
     }
     return(ProjectState.GetAllMembers(_type, moduleContext));
 }
Ejemplo n.º 2
0
        public override IDictionary <string, IAnalysisSet> GetAllMembers(IModuleContext moduleContext, GetMemberOptions options = GetMemberOptions.None)
        {
            var res = ProjectState.GetAllMembers(_interpreterModule, moduleContext);

            foreach (var value in _specializedValues.MaybeEnumerate().Concat(_childModules.MaybeEnumerate()))
            {
                if (!res.TryGetValue(value.Key, out var existing))
                {
                    res[value.Key] = value.Value;
                }
                else
                {
                    res[value.Key] = existing.Union(value.Value);
                }
            }
            return(res);
        }
Ejemplo n.º 3
0
        public override IDictionary <string, IAnalysisSet> GetAllMembers(IModuleContext moduleContext)
        {
            var res = ProjectState.GetAllMembers(_interpreterModule, moduleContext);

            if (_specializedValues != null)
            {
                foreach (var value in _specializedValues)
                {
                    IAnalysisSet existing;
                    if (!res.TryGetValue(value.Key, out existing))
                    {
                        res[value.Key] = value.Value;
                    }
                    else
                    {
                        var newSet = existing.Union(value.Value, canMutate: false);
                        res[value.Key] = newSet;
                    }
                }
            }
            return(res);
        }
Ejemplo n.º 4
0
 public override IDictionary <string, IAnalysisSet> GetAllMembers(IModuleContext moduleContext)
 {
     return(ProjectState.GetAllMembers(_container, moduleContext));
 }
Ejemplo n.º 5
0
 public override IDictionary <string, ISet <Namespace> > GetAllMembers(IModuleContext moduleContext)
 {
     return(ProjectState.GetAllMembers(_interpreterModule, moduleContext));
 }