171 references to ComparisonResult
Microsoft.CodeAnalysis (24)
MetadataReference\AssemblyIdentityComparer.cs (20)
62
return Compare(reference: null, referenceDisplayName, definition, unificationApplied: out _, ignoreVersion: false) !=
ComparisonResult
.NotEquivalent;
73
return Compare(reference, referenceDisplayName: null, definition, unificationApplied: out _, ignoreVersion: false) !=
ComparisonResult
.NotEquivalent;
81
public
ComparisonResult
Compare(AssemblyIdentity reference, AssemblyIdentity definition)
87
internal
ComparisonResult
Compare(AssemblyIdentity? reference, string? referenceDisplayName, AssemblyIdentity definition, out bool unificationApplied, bool ignoreVersion)
99
return eq.GetValueOrDefault() ?
ComparisonResult
.Equivalent :
ComparisonResult
.NotEquivalent;
109
return
ComparisonResult
.NotEquivalent;
118
return
ComparisonResult
.NotEquivalent;
123
return
ComparisonResult
.Equivalent;
133
return
ComparisonResult
.NotEquivalent;
140
return
ComparisonResult
.NotEquivalent;
145
return
ComparisonResult
.NotEquivalent;
150
return
ComparisonResult
.Equivalent;
158
return
ComparisonResult
.NotEquivalent;
163
return
ComparisonResult
.NotEquivalent;
168
return
ComparisonResult
.NotEquivalent;
191
return
ComparisonResult
.Equivalent;
196
return
ComparisonResult
.EquivalentIgnoringVersion;
199
return
ComparisonResult
.NotEquivalent;
202
return
ComparisonResult
.Equivalent;
ReferenceManager\CommonReferenceManager.Binding.cs (1)
564
IdentityComparer.Compare(referenceIdentity, resolvedAssembly.Identity) == AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent)
ReferenceManager\CommonReferenceManager.Resolution.cs (3)
944
case AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent:
947
case AssemblyIdentityComparer.
ComparisonResult
.Equivalent:
950
case AssemblyIdentityComparer.
ComparisonResult
.EquivalentIgnoringVersion:
Microsoft.CodeAnalysis.CSharp (2)
Symbols\Retargeting\RetargetingModuleSymbol.cs (2)
216
Debug.Assert(identityComparer.Compare(moduleReferences.Identities[i], definitionIdentity) != AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent);
217
Debug.Assert(identityComparer.Compare(moduleReferences.Identities[i], underlyingBoundReferences[j].Identity) != AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent);
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (8)
EEMetadataReferenceResolver.cs (4)
65
var
compareResult = _identityComparer.Compare(referenceIdentity, identity);
68
case AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent:
70
case AssemblyIdentityComparer.
ComparisonResult
.Equivalent:
72
case AssemblyIdentityComparer.
ComparisonResult
.EquivalentIgnoringVersion:
MetadataUtilities.cs (4)
285
var
compareResult = identityComparer.Compare(referencedModule, identity);
288
case AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent:
291
case AssemblyIdentityComparer.
ComparisonResult
.Equivalent:
292
case AssemblyIdentityComparer.
ComparisonResult
.EquivalentIgnoringVersion:
Microsoft.CodeAnalysis.UnitTests (135)
MetadataReferences\AssemblyIdentityComparerTests.cs (127)
18
AssemblyIdentityComparer.
ComparisonResult
match,
19
AssemblyIdentityComparer.
ComparisonResult
? fusionMatch = null,
46
var
fusionResult1 = FusionAssemblyIdentityComparer.CompareAssemblyIdentity(displayName1, displayName2, ignoreVersion, policy: fusionPolicy, unificationApplied: out fusionUnificationApplied1);
60
var
actual1 = comparer.Compare(null, displayName1, id2, out unificationApplied1, ignoreVersion);
67
var
actual2 = comparer.Compare(id1, null, id2, out unificationApplied2, ignoreVersion);
81
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
87
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
93
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent,
94
fusionMatch: AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
100
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent,
101
fusionMatch: AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
107
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent,
108
fusionMatch: AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
114
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent,
115
fusionMatch: AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
121
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent,
122
fusionMatch: AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
128
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
138
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
144
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent,
150
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent,
160
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent,
166
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent,
172
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent,
178
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent,
184
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
190
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
196
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
202
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent,
208
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
214
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
226
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
232
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
238
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
244
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
250
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
256
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
262
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
268
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
274
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
280
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
286
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
292
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
298
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
304
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
310
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
316
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
322
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
332
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
338
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent,
344
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent,
354
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
360
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent,
366
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent,
372
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
378
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent,
384
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent,
394
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
400
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
406
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent,
412
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent,
418
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent,
424
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
430
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent,
436
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent,
442
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent,
448
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
458
AssemblyIdentityComparer.
ComparisonResult
.EquivalentIgnoringVersion,
464
AssemblyIdentityComparer.
ComparisonResult
.EquivalentIgnoringVersion,
470
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
476
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
482
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
489
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent,
490
fusionMatch: AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
496
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
502
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent);
507
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
514
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
521
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
527
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent);
533
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
539
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
545
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
552
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent);
557
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent);
562
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent);
572
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
590
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent);
595
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
605
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
612
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent,
613
fusionMatch: AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
630
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent,
641
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent);
646
AssemblyIdentityComparer.
ComparisonResult
.Equivalent);
651
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent);
660
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent,
666
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent,
676
AssemblyIdentityComparer.
ComparisonResult
.Equivalent);
682
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
688
AssemblyIdentityComparer.
ComparisonResult
.Equivalent);
693
AssemblyIdentityComparer.
ComparisonResult
.Equivalent);
698
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent,
704
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent,
714
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
724
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
730
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent,
736
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
742
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
748
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent,
754
AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
760
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent,
766
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent,
773
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent,
774
fusionMatch: AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
780
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent,
781
fusionMatch: AssemblyIdentityComparer.
ComparisonResult
.Equivalent);
786
AssemblyIdentityComparer.
ComparisonResult
.EquivalentIgnoringVersion,
787
fusionMatch: AssemblyIdentityComparer.
ComparisonResult
.Equivalent,
794
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent);
799
AssemblyIdentityComparer.
ComparisonResult
.EquivalentIgnoringVersion,
805
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent);
810
AssemblyIdentityComparer.
ComparisonResult
.EquivalentIgnoringVersion,
816
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent,
817
fusionMatch: AssemblyIdentityComparer.
ComparisonResult
.Equivalent);
822
AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent,
823
fusionMatch: AssemblyIdentityComparer.
ComparisonResult
.Equivalent);
MetadataReferences\FusionAssemblyIdentityComparer.cs (8)
36
internal static AssemblyIdentityComparer.
ComparisonResult
CompareAssemblyIdentity(string fullName1, string fullName2, bool ignoreVersion, FusionAssemblyPortabilityPolicy policy, out bool unificationApplied)
45
return AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent;
52
return AssemblyIdentityComparer.
ComparisonResult
.Equivalent;
56
return AssemblyIdentityComparer.
ComparisonResult
.Equivalent;
61
return AssemblyIdentityComparer.
ComparisonResult
.Equivalent;
66
return AssemblyIdentityComparer.
ComparisonResult
.EquivalentIgnoringVersion;
70
return equivalent ? AssemblyIdentityComparer.
ComparisonResult
.Equivalent : AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent;
Microsoft.CodeAnalysis.VisualBasic (2)
Symbols\Retargeting\RetargetingModuleSymbol.vb (2)
201
Debug.Assert(identityComparer.Compare(referencedAssemblies(i), definitionIdentity) <> AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent)
202
Debug.Assert(identityComparer.Compare(referencedAssemblies(i), underlyingBoundReferences(j).Identity) <> AssemblyIdentityComparer.
ComparisonResult
.NotEquivalent)