Beispiel #1
0
 public void Clear()
 {
     MethodMatches.Clear();
     TypeMatches.Clear();
     FieldMatches.Clear();
     AssemblyMatches.Clear();
 }
Beispiel #2
0
 public void AddMatch(Instruction ins, MethodDefinition method, bool bSearchForward, MatchContext context)
 {
     using (Tracer t = new Tracer(myType, "AddMatch_Instruction"))
     {
         t.Info("Add match for instruction {0} in method {1} SearchForward {2}", ins, method, bSearchForward);
         var queryResult = GetResultWithFileLineIfEnabled(ins, method, bSearchForward, context);
         AddMatch(method.DeclaringType.Module.Assembly);
         MethodMatches.Add(queryResult);
     }
 }