private IEnumerable <IDiffItem> CheckVisibility(MethodDefinition oldMethod, MethodDefinition newMethod) { int result = VisibilityComparer.CompareVisibilityDefinitions(oldMethod, newMethod); if (result != 0) { yield return(new VisibilityChangedDiffItem(result < 0)); } }
private IEnumerable <IDiffItem> CheckVisibility(TypeDefinition oldType, TypeDefinition newType) { int result = VisibilityComparer.CompareTypes(oldType, newType); if (result != 0) { yield return(new VisibilityChangedDiffItem(result < 0)); } }