示例#1
0
        public FailListEntry(TypeDefinition type, Type entry, string original, List <string> stack)
        {
            FullName = type.FullName;
            Original = original;

            IsFatal = entry.Action == TypeAction.Fail;

            stack.ForEach(s => TracerStack.Add(new FailListNode("stack", s)));

            while (entry != null)
            {
                EntryStack.Add(new FailListNode("type", entry.ToString()));
                entry = entry.Parent;
            }
        }
示例#2
0
        public FailListEntry(MethodDefinition method, Method entry, List <string> stack)
        {
            FullName = method.FullName;

            IsFatal = entry.Action == MethodAction.Fail;

            stack.ForEach(s => TracerStack.Add(new FailListNode("stack", s)));

            if (entry != null)
            {
                EntryStack.Add(new FailListNode("method", entry.ToString()));

                var type = entry.Parent;
                while (type != null)
                {
                    EntryStack.Add(new FailListNode("type", type.ToString()));
                    type = type.Parent;
                }
            }
        }