private void DumpMembers(ModuleAnalysis moduleAnalysis, string memberCode, int depth) {
            var moduleMembers = moduleAnalysis.GetMembersByIndex(memberCode, 0).ToArray();
            Array.Sort(moduleMembers, (x, y) => String.Compare(x.Name, y.Name));

            if (depth < _dumpMembers.Value) {
                foreach (var member in moduleMembers) {
                    Console.WriteLine("    {0} {1}", new string(' ', depth * 4), member.Name);

                    DumpMembers(moduleAnalysis, memberCode + "." + member.Completion, depth + 1);
                }
            }
        }
Пример #2
0
 private static IEnumerable<string> GetMemberNames(ModuleAnalysis analysis, string name) {
     return analysis.GetMembersByIndex(name, 0).Select(x => x.Name);
 }