121 references to DifferenceType
Microsoft.Cci.Extensions (70)
Differs\DifferenceRule.cs (18)
11public virtual DifferenceType Diff<T>(IDifferences differences, ElementMapping<T> mapping) where T : class 14return DifferenceType.Unchanged; 36return DifferenceType.Unknown; 39public virtual DifferenceType Diff(IDifferences differences, MemberMapping mapping) 44public virtual DifferenceType Diff(IDifferences differences, ITypeDefinitionMember impl, ITypeDefinitionMember contract) 46return DifferenceType.Unknown; 49public virtual DifferenceType Diff(IDifferences differences, TypeMapping mapping) 54public virtual DifferenceType Diff(IDifferences differences, ITypeDefinition impl, ITypeDefinition contract) 56return DifferenceType.Unknown; 59public virtual DifferenceType Diff(IDifferences differences, NamespaceMapping mapping) 64public virtual DifferenceType Diff(IDifferences differences, INamespaceDefinition impl, INamespaceDefinition contract) 66return DifferenceType.Unknown; 69public virtual DifferenceType Diff(IDifferences differences, AssemblyMapping mapping) 74public virtual DifferenceType Diff(IDifferences differences, IAssembly impl, IAssembly contract) 76return DifferenceType.Unknown; 79public virtual DifferenceType Diff(IDifferences differences, AssemblySetMapping mapping) 84public virtual DifferenceType Diff(IDifferences differences, IEnumerable<IAssembly> impl, IEnumerable<IAssembly> contract) 86return DifferenceType.Unknown;
Differs\ElementDiffer.cs (13)
17private DifferenceType _difference; 31public DifferenceType DifferenceType 57private DifferenceType GetMappingDifference() 62return DifferenceType.Unchanged; 67private DifferenceType Diff() 69DifferenceType difference = DifferenceType.Unknown; 75DifferenceType tempDiff = differenceRule.Diff<T>(this, _mapping); 83if (difference == DifferenceType.Unknown) 89difference = DifferenceType.Removed; 91difference = DifferenceType.Added; 97difference = DifferenceType.Changed; 102difference = DifferenceType.Unchanged;
Differs\IDifferenceRule.cs (1)
11DifferenceType Diff<T>(IDifferences differences, ElementMapping<T> mapping) where T : class;
Differs\IDifferences.cs (2)
11DifferenceType DifferenceType { get; } 19if (differences.DifferenceType == DifferenceType.Changed)
Differs\ListMerger.cs (11)
22public static List<Tuple<DifferenceType, T>> Merge<T>(T[] list0, T[] list1) where T : class 27public static List<Tuple<DifferenceType, T>> Merge<T>(T[] list0, int list0Start, int list0End, T[] list1, int list1Start, int list1End) where T : class 29List<Tuple<DifferenceType, T>> list = new List<Tuple<DifferenceType, T>>(); 37list.Add(Tuple.Create(DifferenceType.Removed, list0[list0Index])); 45list.Add(Tuple.Create(DifferenceType.Unchanged, list0[list0Index])); 57list.Add(Tuple.Create(DifferenceType.Removed, list0[list0Index])); 69list.Add(Tuple.Create(DifferenceType.Added, list1[list1Index])); 78list.Add(Tuple.Create(DifferenceType.Removed, list0[list0Index])); 81list.Add(Tuple.Create(DifferenceType.Added, list1[list1Index])); 88list.Add(Tuple.Create(DifferenceType.Added, list1[list1Index]));
Differs\Rules\TokenListDiffer.cs (7)
23public override DifferenceType Diff(IDifferences differences, ITypeDefinitionMember item1, ITypeDefinitionMember item2) 28public override DifferenceType Diff(IDifferences differences, ITypeDefinition item1, ITypeDefinition item2) 33public override DifferenceType Diff(IDifferences differences, INamespaceDefinition item1, INamespaceDefinition item2) 38private DifferenceType Diff(IDifferences differences, IDefinition item1, IDefinition item2) 41return DifferenceType.Unknown; 48return DifferenceType.Changed; 50return DifferenceType.Unchanged;
Filters\CommonTypesMappingDifferenceFilter.cs (3)
37var isAdded = type.Difference == DifferenceType.Added; 38var isRemoved = type.Difference == DifferenceType.Removed; 51public bool Include(DifferenceType difference)
Filters\IMappingDifferenceFilter.cs (1)
15bool Include(DifferenceType difference);
Filters\MappingDifferenceFilter.cs (3)
13private readonly Func<DifferenceType, bool> _include; 16public MappingDifferenceFilter(Func<DifferenceType, bool> include, ICciFilter filter) 72public virtual bool Include(DifferenceType difference)
Filters\TypesOnlyMappingDifferenceFilter.cs (1)
12public TypesOnlyMappingDifferenceFilter(Func<DifferenceType, bool> include, ICciFilter filter)
Mappings\ElementMapping.cs (1)
99public virtual DifferenceType Difference
Mappings\SimpleElementMapping.cs (6)
11private readonly DifferenceType _difference; 13public SimpleElementMapping(DifferenceType difference, T element) 19case DifferenceType.Unchanged: 23case DifferenceType.Removed: 26case DifferenceType.Added: 34public override DifferenceType Difference { get { return _difference; } }
Mappings\TypeMapping.cs (3)
28if (Settings.DiffFilter.Include(DifferenceType.Unchanged)) 36return Difference != DifferenceType.Added && Difference != DifferenceType.Removed;
Microsoft.DotNet.AsmDiff (51)
ApiRecordingCSharpDiffWriter.cs (1)
59var difference = elementMapping.Difference;
Csv\DiffDifferenceCsvColumn.cs (5)
27private static string Difference(DifferenceType differenceType) 31case DifferenceType.Unchanged: 33case DifferenceType.Added: 35case DifferenceType.Removed: 37case DifferenceType.Changed:
Csv\DiffInNewCsvColumn.cs (5)
27private static string InNew(DifferenceType differenceType) 31case DifferenceType.Unchanged: 32case DifferenceType.Added: 33case DifferenceType.Changed: 36case DifferenceType.Removed:
Csv\DiffInOldCsvColumn.cs (5)
27private static string InOld(DifferenceType differenceType) 31case DifferenceType.Unchanged: 32case DifferenceType.Removed: 33case DifferenceType.Changed: 36case DifferenceType.Added:
Csv\DiffTokensCsvColumn.cs (6)
36return mapping.Difference == DifferenceType.Changed 62private static string GetDifferencePrefix(DifferenceType differenceType) 66case DifferenceType.Unknown: 67case DifferenceType.Unchanged: 69case DifferenceType.Added: 71case DifferenceType.Removed:
DiffApiDefinition.cs (2)
21public DifferenceType Difference { get; private set; } 24public DiffApiDefinition(IDefinition left, IDefinition right, DifferenceType difference, IList<DiffApiDefinition> children)
DiffCSharpWriter.cs (14)
270case DifferenceType.Unchanged: 274case DifferenceType.Added: 280case DifferenceType.Removed: 286case DifferenceType.Changed: 312DifferenceType context = DifferenceType.Unchanged; 323case DifferenceType.Unchanged: 326case DifferenceType.Removed: 327if (context != DifferenceType.Removed) 331case DifferenceType.Added: 332if (context != DifferenceType.Added) 343public IEnumerable<Tuple<DifferenceType, SyntaxToken>> GetTokenDiff(IDefinition def1, IDefinition def2) 351List<Tuple<DifferenceType, SyntaxToken>> merged = new List<Tuple<DifferenceType, SyntaxToken>>();
DiffEngine.cs (5)
99Func<DifferenceType, bool> diffFilterPredicate = t => (t != DifferenceType.Added || configuration.IsOptionSet(DiffConfigurationOptions.IncludeAdded)) && 100(t != DifferenceType.Changed || configuration.IsOptionSet(DiffConfigurationOptions.IncludeChanged)) && 101(t != DifferenceType.Removed || configuration.IsOptionSet(DiffConfigurationOptions.IncludeRemoved)) && 102(t != DifferenceType.Unchanged || configuration.IsOptionSet(DiffConfigurationOptions.IncludeUnchanged));
MarkdownDiffExporter.cs (8)
127DifferenceType diff = api.Difference; 129if (diff == DifferenceType.Changed) 138diff = DifferenceType.Unchanged; 143case DifferenceType.Added: 146case DifferenceType.Removed: 149case DifferenceType.Changed: 165var diffMarker = diff == DifferenceType.Added 167: diff == DifferenceType.Removed