Ejemplo n.º 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;
            }
        }
Ejemplo n.º 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;
                }
            }
        }
Ejemplo n.º 3
0
 public override void VisitChildren(IVisitor visitor)
 {
     TracerStack.VisitChildren(visitor);
     EntryStack.VisitChildren(visitor);
 }