protected override void FindMatches(IMatchAgent <IAttributeDefinition> agent) { agent.MatchOn(SameDefinition); agent.MatchOn(ChangedNamedArgument); agent.MatchOn(ChangedOrdinalArgument); agent.MatchOn(SameName); }
protected override void FindMatches(IMatchAgent <ITypeDefinition> agent) { agent.MatchOn(ExactSignature); agent.MatchOn(DifferentGenericTypes); agent.MatchOn(MovedType); agent.MatchOn(ChangedTypeDefinition); }
protected override void FindMatches(IMatchAgent <IMethodDefinition> agent) { agent.MatchOn(ExactSignature); // At this point something is different // First check on single things that have changed between methods agent.MatchOn(ChangedReturnType); agent.MatchOn(ChangedName); agent.MatchOn(ChangedParameterTypes); agent.MatchOn(ChangedParameterCount); agent.MatchOn(ChangeGenericTypeParametersCount); // Still attempt a match when multiple things have changed agent.MatchOn(ChangedGenericTypeParametersCountAndParametersCount); agent.MatchOn(ChangedParametersAndReturnType); agent.MatchOn(NameOnly); // At this point we have matched as many related methods between the old code and the new code }
protected override void FindMatches(IMatchAgent <IPropertyAccessorDefinition> agent) { agent.MatchOn(PropertyAccessorName); }
protected override void FindMatches(IMatchAgent <IFieldDefinition> agent) { agent.MatchOn(FieldName); }