Example #1
0
        public virtual IEnumerable <string> GetMemberNames()
        {
            var names = GlobalScope.GetExportableVariableNames();
            // Get submodules since they may not be explicitly exported
            // and yet are available. Consider 'pandas.io'.
            var mi = Interpreter.ModuleResolution.CurrentPathResolver.GetModuleImportFromModuleName(Name);

            return(names.Concat(mi?.GetChildrenNames() ?? Enumerable.Empty <string>()).Distinct());
        }
Example #2
0
 public virtual IEnumerable <string> GetMemberNames() => GlobalScope.GetExportableVariableNames();