public void Clear() { MethodMatches.Clear(); TypeMatches.Clear(); FieldMatches.Clear(); AssemblyMatches.Clear(); }
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); } }