173 references to SymbolComparisonResults
Microsoft.CodeAnalysis.VisualBasic (173)
Symbols\MethodSignatureComparer.vb (73)
315comparisons As SymbolComparisonResults, 316Optional stopIfAny As SymbolComparisonResults = 0 317) As SymbolComparisonResults 318Dim results As SymbolComparisonResults = Nothing 324If (comparisons And SymbolComparisonResults.ArityMismatch) <> 0 Then 326results = results Or SymbolComparisonResults.ArityMismatch 327If (stopIfAny And SymbolComparisonResults.ArityMismatch) <> 0 Then 333If (stopIfAny And SymbolComparisonResults.TotalParameterCountMismatch) <> 0 Then 335results = results Or SymbolComparisonResults.TotalParameterCountMismatch 343If (comparisons And (SymbolComparisonResults.ReturnTypeMismatch Or SymbolComparisonResults.CustomModifierMismatch Or SymbolComparisonResults.TupleNamesMismatch)) <> 0 Then 361If (comparisons And SymbolComparisonResults.AllParameterMismatches) <> 0 Then 370If (comparisons And SymbolComparisonResults.CallingConventionMismatch) <> 0 Then 372results = results Or SymbolComparisonResults.CallingConventionMismatch 373If (stopIfAny And SymbolComparisonResults.CallingConventionMismatch) <> 0 Then 379If (comparisons And SymbolComparisonResults.VarargMismatch) <> 0 Then 381results = results Or SymbolComparisonResults.VarargMismatch 382If (stopIfAny And SymbolComparisonResults.VarargMismatch) <> 0 Then 388If (comparisons And SymbolComparisonResults.ConstraintMismatch) <> 0 Then 393Debug.Assert((comparisons And SymbolComparisonResults.ArityMismatch) <> 0) 395If ((results And SymbolComparisonResults.ArityMismatch) = 0) AndAlso 397results = results Or SymbolComparisonResults.ConstraintMismatch 398If (stopIfAny And SymbolComparisonResults.ConstraintMismatch) <> 0 Then 405If (comparisons And SymbolComparisonResults.NameMismatch) <> 0 Then 407results = results Or SymbolComparisonResults.NameMismatch 408If (stopIfAny And SymbolComparisonResults.NameMismatch) <> 0 Then 448comparisons As SymbolComparisonResults, 449Optional stopIfAny As SymbolComparisonResults = 0 450) As SymbolComparisonResults 452Return SymbolComparisonResults.ReturnTypeMismatch 459Return SymbolComparisonResults.ReturnTypeMismatch 462Dim result As SymbolComparisonResults = 0 464If (comparisons And SymbolComparisonResults.TupleNamesMismatch) <> 0 AndAlso 466result = result Or SymbolComparisonResults.TupleNamesMismatch 467If (stopIfAny And SymbolComparisonResults.TupleNamesMismatch) <> 0 Then 472If (comparisons And SymbolComparisonResults.CustomModifierMismatch) <> 0 AndAlso 475result = result Or SymbolComparisonResults.CustomModifierMismatch 476If (stopIfAny And SymbolComparisonResults.CustomModifierMismatch) <> 0 Then 498comparisons As SymbolComparisonResults, 499Optional stopIfAny As SymbolComparisonResults = 0 500) As SymbolComparisonResults 501Dim results As SymbolComparisonResults = Nothing 518results = results Or SymbolComparisonResults.TotalParameterCountMismatch 519If (stopIfAny And SymbolComparisonResults.TotalParameterCountMismatch) <> 0 Then 525results = results Or SymbolComparisonResults.OptionalParameterMismatch 526If (stopIfAny And SymbolComparisonResults.OptionalParameterMismatch) <> 0 Then 530results = results Or SymbolComparisonResults.RequiredExtraParameterMismatch 531If (stopIfAny And SymbolComparisonResults.RequiredExtraParameterMismatch) <> 0 Then 545(SymbolComparisonResults.OptionalParameterTypeMismatch Or 546SymbolComparisonResults.RequiredParameterTypeMismatch Or 547SymbolComparisonResults.CustomModifierMismatch Or 548SymbolComparisonResults.TupleNamesMismatch)) <> 0 Then 564results = results Or SymbolComparisonResults.OptionalParameterMismatch 565If (stopIfAny And SymbolComparisonResults.OptionalParameterMismatch) <> 0 Then 576results = results Or SymbolComparisonResults.OptionalParameterTypeMismatch 577If (stopIfAny And SymbolComparisonResults.OptionalParameterTypeMismatch) <> 0 Then 581results = results Or SymbolComparisonResults.RequiredParameterTypeMismatch 582If (stopIfAny And SymbolComparisonResults.RequiredParameterTypeMismatch) <> 0 Then 587If (comparisons And SymbolComparisonResults.TupleNamesMismatch) <> 0 AndAlso 591results = results Or SymbolComparisonResults.TupleNamesMismatch 592If (stopIfAny And SymbolComparisonResults.TupleNamesMismatch) <> 0 Then 597If (comparisons And SymbolComparisonResults.CustomModifierMismatch) <> 0 AndAlso 601results = results Or SymbolComparisonResults.CustomModifierMismatch 602If (stopIfAny And SymbolComparisonResults.CustomModifierMismatch) <> 0 Then 610results = results Or SymbolComparisonResults.ParameterByrefMismatch 611If (stopIfAny And SymbolComparisonResults.ParameterByrefMismatch) <> 0 Then 616If (comparisons And SymbolComparisonResults.ParamArrayMismatch) <> 0 Then 618results = results Or SymbolComparisonResults.ParamArrayMismatch 619If (stopIfAny And SymbolComparisonResults.ParamArrayMismatch) <> 0 Then 626(comparisons And SymbolComparisonResults.OptionalParameterValueMismatch) <> 0 Then 652results = results Or SymbolComparisonResults.OptionalParameterValueMismatch 653If (stopIfAny And SymbolComparisonResults.OptionalParameterValueMismatch) <> 0 Then
Symbols\PropertySignatureComparer.vb (20)
152comparisons As SymbolComparisonResults, 153Optional stopIfAny As SymbolComparisonResults = 0 154) As SymbolComparisonResults 155Dim results As SymbolComparisonResults = Nothing 161If (comparisons And SymbolComparisonResults.PropertyAccessorMismatch) <> 0 Then 163results = results Or SymbolComparisonResults.PropertyAccessorMismatch 164If (stopIfAny And SymbolComparisonResults.PropertyAccessorMismatch) <> 0 Then 169If (comparisons And SymbolComparisonResults.PropertyInitOnlyMismatch) <> 0 AndAlso 172results = results Or SymbolComparisonResults.PropertyInitOnlyMismatch 173If (stopIfAny And SymbolComparisonResults.PropertyInitOnlyMismatch) <> 0 Then 179If (comparisons And (SymbolComparisonResults.ReturnTypeMismatch Or SymbolComparisonResults.CustomModifierMismatch Or SymbolComparisonResults.TupleNamesMismatch)) <> 0 Then 195If (comparisons And SymbolComparisonResults.AllParameterMismatches) <> 0 Then 202If (comparisons And SymbolComparisonResults.CallingConventionMismatch) <> 0 Then 204results = results Or SymbolComparisonResults.CallingConventionMismatch 205If (stopIfAny And SymbolComparisonResults.CallingConventionMismatch) <> 0 Then 212If (comparisons And SymbolComparisonResults.NameMismatch) <> 0 Then 214results = results Or SymbolComparisonResults.NameMismatch 215If (stopIfAny And SymbolComparisonResults.NameMismatch) <> 0 Then
Symbols\Source\ImplementsHelper.vb (3)
411Return MembersAreMatching(implementingSym, implementedSym, Not SymbolComparisonResults.MismatchesForExplicitInterfaceImplementations, EventSignatureComparer.ExplicitEventImplementationComparer) 418Return MembersAreMatching(implementingSym, implementedSym, SymbolComparisonResults.TupleNamesMismatch, EventSignatureComparer.ExplicitEventImplementationWithTupleNamesComparer) 423comparisons As SymbolComparisonResults,
Symbols\Source\OverrideHidingHelper.vb (28)
95Const mismatchesForOverriding As SymbolComparisonResults = 96(SymbolComparisonResults.AllMismatches And (Not SymbolComparisonResults.MismatchesForConflictingMethods)) Or 97SymbolComparisonResults.CustomModifierMismatch 101Const exactMatchIgnoringCustomModifiersMask As SymbolComparisonResults = 102SymbolComparisonResults.TotalParameterCountMismatch Or SymbolComparisonResults.OptionalParameterTypeMismatch 105Const exactMatchMask As SymbolComparisonResults = 106exactMatchIgnoringCustomModifiersMask Or SymbolComparisonResults.CustomModifierMismatch 108Dim results As SymbolComparisonResults = DetailedSignatureCompare(sym1, sym2, mismatchesForOverriding) 128comparisons As SymbolComparisonResults, 129Optional stopIfAny As SymbolComparisonResults = 0 130) As SymbolComparisonResults 871Dim comparisonResults As SymbolComparisonResults = DetailedSignatureCompare(member, overriddenMember, SymbolComparisonResults.AllMismatches) 878ElseIf (comparisonResults And SymbolComparisonResults.ParameterByrefMismatch) <> 0 Then 880ElseIf (comparisonResults And SymbolComparisonResults.OptionalParameterMismatch) <> 0 Then 882ElseIf (comparisonResults And SymbolComparisonResults.ReturnTypeMismatch) <> 0 Then 884ElseIf (comparisonResults And SymbolComparisonResults.PropertyAccessorMismatch) <> 0 Then 886ElseIf (comparisonResults And SymbolComparisonResults.PropertyInitOnlyMismatch) <> 0 Then 888ElseIf (comparisonResults And SymbolComparisonResults.ParamArrayMismatch) <> 0 Then 890ElseIf (comparisonResults And SymbolComparisonResults.OptionalParameterTypeMismatch) <> 0 Then 892ElseIf (comparisonResults And SymbolComparisonResults.OptionalParameterValueMismatch) <> 0 Then 894ElseIf (comparisonResults And SymbolComparisonResults.ConstraintMismatch) <> 0 Then 898ElseIf member.ContainsTupleNames() AndAlso (comparisonResults And SymbolComparisonResults.TupleNamesMismatch) <> 0 Then 937Const significantDifferences As SymbolComparisonResults = SymbolComparisonResults.AllMismatches And 938Not SymbolComparisonResults.MismatchesForConflictingMethods
Symbols\Source\SourceMemberContainerTypeSymbol.vb (44)
1952Dim options = SymbolComparisonResults.ArityMismatch Or SymbolComparisonResults.ConstraintMismatch 1968Dim comparisons = SymbolComparisonResults.AllMismatches And 1969Not (SymbolComparisonResults.CallingConventionMismatch Or 1970SymbolComparisonResults.ConstraintMismatch Or 1971SymbolComparisonResults.OptionalParameterValueMismatch Or 1972SymbolComparisonResults.ParamArrayMismatch) 1974Dim result As SymbolComparisonResults = MethodSignatureComparer.DetailedCompare(partialDeclaration, candidate, comparisons) 3572Dim comparisonResults As SymbolComparisonResults = OverrideHidingHelper.DetailedSignatureCompare( 3575SymbolComparisonResults.AllMismatches And Not (SymbolComparisonResults.CallingConventionMismatch Or SymbolComparisonResults.ConstraintMismatch)) 3577Debug.Assert((comparisonResults And SymbolComparisonResults.PropertyInitOnlyMismatch) = 0) 3580If (comparisonResults And Not SymbolComparisonResults.MismatchesForConflictingMethods) = 0 Then 3616Dim significantDiff As SymbolComparisonResults = Not SymbolComparisonResults.MismatchesForConflictingMethods 3621significantDiff = significantDiff Or SymbolComparisonResults.ReturnTypeMismatch 3695Dim comparisonResults As SymbolComparisonResults = MethodSignatureComparer.DetailedCompare( 3698SymbolComparisonResults.AllMismatches And 3699Not (SymbolComparisonResults.CallingConventionMismatch Or 3700SymbolComparisonResults.ConstraintMismatch Or 3701SymbolComparisonResults.CustomModifierMismatch Or 3702SymbolComparisonResults.NameMismatch)) 3704If (comparisonResults And (Not SymbolComparisonResults.MismatchesForConflictingMethods Or SymbolComparisonResults.ReturnTypeMismatch)) = 0 Then 3732significantDiff As SymbolComparisonResults, 3749Dim comparisonResults As SymbolComparisonResults = MethodSignatureComparer.DetailedCompare( 3752SymbolComparisonResults.AllMismatches And 3753Not (SymbolComparisonResults.CallingConventionMismatch Or 3754SymbolComparisonResults.ConstraintMismatch Or 3755SymbolComparisonResults.CustomModifierMismatch Or 3756SymbolComparisonResults.NameMismatch)) 3758Debug.Assert((comparisonResults And SymbolComparisonResults.PropertyInitOnlyMismatch) = 0) 3841Private Sub ReportOverloadsErrors(comparisonResults As SymbolComparisonResults, firstMember As Symbol, secondMember As Symbol, location As Location, diagnostics As BindingDiagnosticBag) 3842Debug.Assert((comparisonResults And SymbolComparisonResults.PropertyInitOnlyMismatch) = 0) 3853If (comparisonResults And SymbolComparisonResults.TupleNamesMismatch) <> 0 Then 3857If (comparisonResults And SymbolComparisonResults.ParameterByrefMismatch) <> 0 Then 3861If (comparisonResults And SymbolComparisonResults.ReturnTypeMismatch) <> 0 Then 3865If (comparisonResults And SymbolComparisonResults.ParamArrayMismatch) <> 0 Then 3869If (comparisonResults And SymbolComparisonResults.OptionalParameterMismatch) <> 0 AndAlso (comparisonResults And SymbolComparisonResults.TotalParameterCountMismatch) = 0 Then 3875Debug.Assert((comparisonResults And SymbolComparisonResults.OptionalParameterTypeMismatch) = 0) 3882If (comparisonResults And SymbolComparisonResults.OptionalParameterValueMismatch) <> 0 Then 3886If (comparisonResults And SymbolComparisonResults.PropertyAccessorMismatch) <> 0 Then
Symbols\Source\SourceMemberMethodSymbol.vb (5)
253Dim result As SymbolComparisonResults = MethodSignatureComparer.DetailedCompare(Me, methodImpl, 254SymbolComparisonResults.OptionalParameterValueMismatch Or 255SymbolComparisonResults.ParamArrayMismatch) 261If (result And SymbolComparisonResults.ParamArrayMismatch) <> 0 Then 263ElseIf (result And SymbolComparisonResults.OptionalParameterValueMismatch) <> 0 Then