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