457 references to ConsiderEverything
Microsoft.CodeAnalysis (4)
MetadataReader\MetadataDecoder.cs (2)
534
Debug.Assert(result1.Equals(result, TypeCompareKind.
ConsiderEverything
));
2354
if (!param2.Type.Equals(param1.Type, TypeCompareKind.
ConsiderEverything
))
Symbols\SymbolEqualityComparer.cs (1)
33
internal static readonly SymbolEqualityComparer ConsiderEverything = new SymbolEqualityComparer(TypeCompareKind.
ConsiderEverything
);
Symbols\TypeCompareKind.cs (1)
18
ConsiderEverything2 =
ConsiderEverything
,
Microsoft.CodeAnalysis.CSharp (313)
Binder\Binder.ValueChecks.cs (5)
1218
TypeCompareKind.
ConsiderEverything
))
3750
Debug.Assert(thisParam.Type.Equals(((BoundThisReference)expr).Type, TypeCompareKind.
ConsiderEverything
));
4045
Debug.Assert(thisParam.Type.Equals(((BoundThisReference)expr).Type, TypeCompareKind.
ConsiderEverything
));
4357
Debug.Assert(thisParam.Type.Equals(((BoundThisReference)expr).Type, TypeCompareKind.
ConsiderEverything
));
5009
Debug.Assert(thisParam.Type.Equals(((BoundThisReference)expr).Type, TypeCompareKind.
ConsiderEverything
));
Binder\Binder_Await.cs (1)
281
Debug.Assert(TypeSymbol.Equals(expression.Type, getAwaiterArgument.Type, TypeCompareKind.
ConsiderEverything
));
Binder\Binder_Conversions.cs (12)
220
if (destination.Equals(type, TypeCompareKind.
ConsiderEverything
) && wasCompilerGenerated)
597
readonlySpanType.Equals(method.ReturnType.OriginalDefinition, TypeCompareKind.
ConsiderEverything
));
646
arg.source.Equals(parameter.Type.OriginalDefinition, TypeCompareKind.
ConsiderEverything
) &&
648
arg.destination.Equals(method.ReturnType.OriginalDefinition, TypeCompareKind.
ConsiderEverything
) &&
652
((NamedTypeSymbol)parameter.Type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].Type.Equals(typeArgument.Type, TypeCompareKind.
ConsiderEverything
) &&
654
((NamedTypeSymbol)method.ReturnType).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].Type.Equals(((NamedTypeSymbol)arg.destination).TypeParameters[0], TypeCompareKind.
ConsiderEverything
));
677
method.ReturnType.Equals(readOnlySpanType, TypeCompareKind.
ConsiderEverything
))
715
Debug.Assert(destination.Equals(Compilation.GetWellKnownType(WellKnownType.System_IFormattable), TypeCompareKind.
ConsiderEverything
) ||
716
destination.Equals(Compilation.GetWellKnownType(WellKnownType.System_FormattableString), TypeCompareKind.
ConsiderEverything
));
876
if (targetType.OriginalDefinition.Equals(Compilation.GetWellKnownType(WellKnownType.System_Collections_Immutable_ImmutableArray_T), TypeCompareKind.
ConsiderEverything
))
1936
Debug.Assert(targetTyped || destination.IsErrorType() || destination.Equals(source.Type, TypeCompareKind.
ConsiderEverything
));
1975
Debug.Assert(targetTyped || destination.IsErrorType() || destination.Equals(source.Type, TypeCompareKind.
ConsiderEverything
));
Binder\Binder_Expressions.cs (8)
2021
if (currentType.IsEqualToOrDerivedFrom(declaringType, TypeCompareKind.
ConsiderEverything
, useSiteInfo: ref discardedUseSiteInfo) ||
2365
if (currentType.IsEqualToOrDerivedFrom(declaringType, TypeCompareKind.
ConsiderEverything
, useSiteInfo: ref discardedUseSiteInfo) ||
2439
if ((object)hostObjectType != null && hostObjectType.IsEqualToOrDerivedFrom(memberDeclaringType, TypeCompareKind.
ConsiderEverything
, useSiteInfo: ref discardedUseSiteInfo))
6267
if (!memberSymbol.Equals(requiredMember, TypeCompareKind.
ConsiderEverything
))
7640
Debug.Assert(leftType.Equals(boundValue.Type, TypeCompareKind.
ConsiderEverything
));
9543
{ Code: (int)ErrorCode.ERR_BadIndexLHS, Arguments: [TypeSymbol type] } && type.Equals(expr.Type, TypeCompareKind.
ConsiderEverything
))
10396
TypeSymbol.Equals(argType, Compilation.GetWellKnownType(WellKnownType.System_Index), TypeCompareKind.
ConsiderEverything
) ? ThreeState.True :
10397
TypeSymbol.Equals(argType, Compilation.GetWellKnownType(WellKnownType.System_Range), TypeCompareKind.
ConsiderEverything
) ? ThreeState.False :
Binder\Binder_Invocation.cs (2)
1906
TypeSymbol.Equals(containingMethod.ContainingType, method.ContainingType, TypeCompareKind.
ConsiderEverything
) &&
1973
Debug.Assert(typeOrValue.Type.Equals(boundValue.Type, TypeCompareKind.
ConsiderEverything
));
Binder\Binder_Patterns.cs (2)
1509
memberSymbol.Equals(lengthProperty, TypeCompareKind.
ConsiderEverything
); // If Length and Count are both present, only the former is assumed to be non-negative.
1832
Debug.Assert(spoiler.Equals(bestSoFar, TypeCompareKind.
ConsiderEverything
));
Binder\Binder_Symbols.cs (4)
2111
Debug.Assert(!Symbol.Equals(originalSymbols[best.Index], originalSymbols[secondBest.Index], TypeCompareKind.
ConsiderEverything
) || options.IsAttributeTypeLookup(),
2114
Debug.Assert(!Symbol.Equals(first, second, TypeCompareKind.
ConsiderEverything
) || !Symbol.Equals(originalSymbols[best.Index], originalSymbols[secondBest.Index], TypeCompareKind.
ConsiderEverything
),
2270
!Symbol.Equals(originalSymbols[best.Index], originalSymbols[secondBest.Index], TypeCompareKind.
ConsiderEverything
),
Binder\DecisionDagBuilder_ListPatterns.cs (1)
18
input.Type.StrippedType().Equals(list.NarrowedType, TypeCompareKind.
ConsiderEverything
) &&
Binder\ForEachEnumeratorInfo.cs (1)
81
(collectionType.HasInlineArrayAttribute(out _) && collectionType.TryGetInlineArrayElementField() is FieldSymbol elementField && elementType.Equals(elementField.TypeWithAnnotations, TypeCompareKind.
ConsiderEverything
)));
Binder\InMethodBinder.cs (4)
168
if (TypeSymbol.Equals(originalDefinition, compilation.GetWellKnownType(WellKnownType.System_Collections_Generic_IAsyncEnumerable_T), TypeCompareKind.
ConsiderEverything
) ||
169
TypeSymbol.Equals(originalDefinition, compilation.GetWellKnownType(WellKnownType.System_Collections_Generic_IAsyncEnumerator_T), TypeCompareKind.
ConsiderEverything
))
184
if (TypeSymbol.Equals(originalDefinition, compilation.GetWellKnownType(WellKnownType.System_Collections_Generic_IAsyncEnumerable_T), TypeCompareKind.
ConsiderEverything
) ||
185
TypeSymbol.Equals(originalDefinition, compilation.GetWellKnownType(WellKnownType.System_Collections_Generic_IAsyncEnumerator_T), TypeCompareKind.
ConsiderEverything
))
Binder\LockBinder.cs (1)
88
!TypeSymbol.Equals(scopeType.ContainingType, lockType, TypeCompareKind.
ConsiderEverything
))
Binder\Semantics\Conversions\Conversions.cs (2)
153
return (TypeSymbol.Equals(destination, Compilation.GetWellKnownType(WellKnownType.System_IFormattable), TypeCompareKind.
ConsiderEverything
) ||
154
TypeSymbol.Equals(destination, Compilation.GetWellKnownType(WellKnownType.System_FormattableString), TypeCompareKind.
ConsiderEverything
))
Binder\Semantics\Operators\BinaryOperatorSignature.cs (1)
66
Symbol.Equals(this.Method, other.Method, TypeCompareKind.
ConsiderEverything
);
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (5)
2961
if (!candidate.Equals(candidate2, TypeCompareKind.
ConsiderEverything
) &&
3164
if (TypeSymbol.Equals(currentInterface.OriginalDefinition, target.OriginalDefinition, TypeCompareKind.
ConsiderEverything
))
3170
else if (!TypeSymbol.Equals(matchingInterface, currentInterface, TypeCompareKind.
ConsiderEverything
))
3398
type.SetUnknownNullabilityForReferenceTypes().Equals(type, TypeCompareKind.
ConsiderEverything
));
3431
var comparison = conversions.IncludeNullability ? TypeCompareKind.
ConsiderEverything
: TypeCompareKind.IgnoreNullableModifiersForReferenceTypes;
Binder\Semantics\OverloadResolution\OverloadResolution.cs (4)
1131
if (otherType.IsDerivedFrom(memberContainingType, TypeCompareKind.
ConsiderEverything
, useSiteInfo: ref useSiteInfo))
1392
checkOverrideContainingType && !moreDerivedOverride.ContainingType.IsDerivedFrom(member.ContainingType, TypeCompareKind.
ConsiderEverything
, ref useSiteInfo) ||
1449
if (HidesByName(otherMember) && otherContainingType.IsDerivedFrom(memberContainingType, TypeCompareKind.
ConsiderEverything
, useSiteInfo: ref useSiteInfo))
1659
else if (currentType.IsClassType() && type.IsClassType() && currentType.IsDerivedFrom(type, TypeCompareKind.
ConsiderEverything
, useSiteInfo: ref useSiteInfo))
BoundTree\BoundInlineArrayAccess.cs (2)
62
Debug.Assert(((NamedTypeSymbol)Type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].Equals(Expression.Type?.TryGetInlineArrayElementField()?.TypeWithAnnotations ?? default, TypeCompareKind.
ConsiderEverything
));
70
Debug.Assert(Type.Equals(Expression.Type?.TryGetInlineArrayElementField()?.Type, TypeCompareKind.
ConsiderEverything
));
BoundTree\UnboundLambda.cs (3)
845
lambdaSymbol.ReturnTypeWithAnnotations.Equals(returnType, TypeCompareKind.
ConsiderEverything
) &&
1115
if (!other.ParameterTypes[i].Equals(this.ParameterTypes[i], TypeCompareKind.
ConsiderEverything
) ||
1479
=> x.IsExpressionTree == y.IsExpressionTree && Symbol.Equals(x.Type, y.Type, TypeCompareKind.
ConsiderEverything
);
CodeGen\EmitStackAllocInitializer.cs (1)
75
Debug.Assert(TypeSymbol.Equals(readOnlySpan.OriginalDefinition, _module.Compilation.GetWellKnownType(WellKnownType.System_ReadOnlySpan_T), TypeCompareKind.
ConsiderEverything
));
Compilation\CSharpCompilation.cs (15)
2550
if (attributeLocation == newValue.AttributeLocation && interceptor.Equals(newValue.Interceptor, TypeCompareKind.
ConsiderEverything
))
4417
TypeSymbol.Equals(csharpLeftType, csharpRightType, TypeCompareKind.
ConsiderEverything
))
4430
TypeSymbol.Equals(csharpLeftType, csharpReturnType, TypeCompareKind.
ConsiderEverything
))
4451
TypeSymbol.Equals(csharpLeftType, csharpRightType, TypeCompareKind.
ConsiderEverything
))
4462
TypeSymbol.Equals(csharpLeftType, csharpRightType, TypeCompareKind.
ConsiderEverything
) &&
4463
TypeSymbol.Equals(csharpReturnType, csharpRightType, TypeCompareKind.
ConsiderEverything
))
4476
TypeSymbol.Equals(csharpLeftType, csharpReturnType, TypeCompareKind.
ConsiderEverything
))
4483
TypeSymbol.Equals(csharpRightType, csharpReturnType, TypeCompareKind.
ConsiderEverything
))
4492
TypeSymbol.Equals(csharpLeftType, csharpRightType, TypeCompareKind.
ConsiderEverything
))
4516
TypeSymbol.Equals(csharpLeftType, csharpReturnType, TypeCompareKind.
ConsiderEverything
))
4525
TypeSymbol.Equals(csharpRightType, csharpReturnType, TypeCompareKind.
ConsiderEverything
))
4534
TypeSymbol.Equals(csharpLeftType, csharpReturnType, TypeCompareKind.
ConsiderEverything
))
4543
TypeSymbol.Equals(csharpLeftType, csharpRightType, TypeCompareKind.
ConsiderEverything
))
4626
TypeSymbol.Equals(csharpOperandType, csharpReturnType, TypeCompareKind.
ConsiderEverything
))
4634
TypeSymbol.Equals(csharpOperandType, csharpReturnType, TypeCompareKind.
ConsiderEverything
))
FlowAnalysis\LocalDataFlowPass.cs (1)
172
while (!TypeSymbol.Equals(containingType, symbol.ContainingType, TypeCompareKind.
ConsiderEverything
))
FlowAnalysis\NullableWalker.cs (5)
149
Debug.Assert(TypeSymbol.Equals(RValueType.Type, LValueType.Type, TypeCompareKind.
ConsiderEverything
));
1968
lambdaIsExactMatch = updatedSymbol.Equals(boundLambda.Type!.GetDelegateType(), TypeCompareKind.
ConsiderEverything
);
1976
if (lambdaIsExactMatch || Symbol.Equals(originalSymbol, updatedSymbol, TypeCompareKind.
ConsiderEverything
))
3211
if (!node.Type.Equals(type.Type, TypeCompareKind.
ConsiderEverything
| TypeCompareKind.IgnoreNullableModifiersForReferenceTypes | TypeCompareKind.IgnoreDynamicAndTupleNames))
9596
if (explicitType?.Equals(targetTypeWithNullability, TypeCompareKind.
ConsiderEverything
) == true)
Generated\BoundNodes.xml.Generated.cs (171)
469
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
497
if (receiver != this.Receiver || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
538
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(variableSymbol, this.VariableSymbol) || isDiscardExpression != this.IsDiscardExpression || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
573
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
602
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
637
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
675
if (isNewInstance != this.IsNewInstance || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
710
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
748
if (isEquivalentToThisReference != this.IsEquivalentToThisReference || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
783
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
818
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
853
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
888
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
919
if (refKind != this.RefKind || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
947
if (expression != this.Expression || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
984
if (resultKind != this.ResultKind || symbols != this.Symbols || childBoundNodes != this.ChildBoundNodes || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
1075
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(aliasOpt, this.AliasOpt) || boundContainingTypeOpt != this.BoundContainingTypeOpt || boundDimensionsOpt != this.BoundDimensionsOpt || typeWithAnnotations != this.TypeWithAnnotations || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
1124
if (binder != this.Binder || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(valueSymbol, this.ValueSymbol) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
1207
if (operatorKind != this.OperatorKind || operand != this.Operand || constantValueOpt != this.ConstantValueOpt || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(methodOpt, this.MethodOpt) || !TypeSymbol.Equals(constrainedToTypeOpt, this.ConstrainedToTypeOpt, TypeCompareKind.
ConsiderEverything
) || resultKind != this.ResultKind || originalUserDefinedOperatorsOpt != this.OriginalUserDefinedOperatorsOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
1255
if (operatorKind != this.OperatorKind || operand != this.Operand || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(methodOpt, this.MethodOpt) || !TypeSymbol.Equals(constrainedToTypeOpt, this.ConstrainedToTypeOpt, TypeCompareKind.
ConsiderEverything
) || operandPlaceholder != this.OperandPlaceholder || operandConversion != this.OperandConversion || resultPlaceholder != this.ResultPlaceholder || resultConversion != this.ResultConversion || resultKind != this.ResultKind || originalUserDefinedOperatorsOpt != this.OriginalUserDefinedOperatorsOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
1287
if (operand != this.Operand || isManaged != this.IsManaged || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
1359
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(targetMethod, this.TargetMethod) || !TypeSymbol.Equals(constrainedToTypeOpt, this.ConstrainedToTypeOpt, TypeCompareKind.
ConsiderEverything
) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
1391
if (operand != this.Operand || refersToLocation != this.RefersToLocation || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
1428
if (expression != this.Expression || index != this.Index || @checked != this.Checked || refersToLocation != this.RefersToLocation || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
1465
if (invokedExpression != this.InvokedExpression || arguments != this.Arguments || argumentRefKindsOpt != this.ArgumentRefKindsOpt || resultKind != this.ResultKind || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
1497
if (operand != this.Operand || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(getTypeFromHandle, this.GetTypeFromHandle) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
1527
if (operand != this.Operand || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
1559
if (nullableAnnotation != this.NullableAnnotation || operand != this.Operand || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
1591
if (operand != this.Operand || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(methodOpt, this.MethodOpt) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
1624
if (leftOperandOpt != this.LeftOperandOpt || rightOperandOpt != this.RightOperandOpt || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(methodOpt, this.MethodOpt) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
1681
if (operatorKind != this.OperatorKind || data != this.Data || resultKind != this.ResultKind || left != this.Left || right != this.Right || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
1719
if (left != this.Left || right != this.Right || operatorKind != this.OperatorKind || operators != this.Operators || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
1772
if (operatorKind != this.OperatorKind || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(logicalOperator, this.LogicalOperator) || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(trueOperator, this.TrueOperator) || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(falseOperator, this.FalseOperator) || trueFalseOperandPlaceholder != this.TrueFalseOperandPlaceholder || trueFalseOperandConversion != this.TrueFalseOperandConversion || !TypeSymbol.Equals(constrainedToTypeOpt, this.ConstrainedToTypeOpt, TypeCompareKind.
ConsiderEverything
) || resultKind != this.ResultKind || originalUserDefinedOperatorsOpt != this.OriginalUserDefinedOperatorsOpt || left != this.Left || right != this.Right || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
1819
if (@operator != this.Operator || left != this.Left || right != this.Right || leftPlaceholder != this.LeftPlaceholder || leftConversion != this.LeftConversion || finalPlaceholder != this.FinalPlaceholder || finalConversion != this.FinalConversion || resultKind != this.ResultKind || originalUserDefinedOperatorsOpt != this.OriginalUserDefinedOperatorsOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
1853
if (left != this.Left || right != this.Right || isRef != this.IsRef || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
1888
if (left != this.Left || right != this.Right || isUsed != this.IsUsed || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
1929
if (leftOperand != this.LeftOperand || rightOperand != this.RightOperand || leftPlaceholder != this.LeftPlaceholder || leftConversion != this.LeftConversion || operatorResultKind != this.OperatorResultKind || @checked != this.Checked || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
1960
if (leftOperand != this.LeftOperand || rightOperand != this.RightOperand || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
2043
if (isRef != this.IsRef || condition != this.Condition || consequence != this.Consequence || alternative != this.Alternative || constantValueOpt != this.ConstantValueOpt || !TypeSymbol.Equals(naturalTypeOpt, this.NaturalTypeOpt, TypeCompareKind.
ConsiderEverything
) || wasTargetTyped != this.WasTargetTyped || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
2076
if (expression != this.Expression || indices != this.Indices || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
2135
if (expression != this.Expression || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
2211
if (expression != this.Expression || awaitableInfo != this.AwaitableInfo || debugInfo != this.DebugInfo || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
2264
if (sourceType != this.SourceType || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(getTypeFromHandle, this.GetTypeFromHandle) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
2340
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(method, this.Method) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
2383
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(local, this.Local) || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(hoistedField, this.HoistedField) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
2426
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(parameter, this.Parameter) || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(hoistedField, this.HoistedField) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
2461
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
2496
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
2534
if (analysisKind != this.AnalysisKind || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
2569
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
2604
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
2639
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
2674
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
2714
if (document != this.Document || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
2757
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(method, this.Method) || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(getMethodFromHandle, this.GetMethodFromHandle) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
2800
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(field, this.Field) || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(getFieldFromHandle, this.GetFieldFromHandle) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
2854
if (targetType != this.TargetType || constantValueOpt != this.ConstantValueOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
2889
if (operand != this.Operand || targetType != this.TargetType || conversionKind != this.ConversionKind || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
2926
if (operand != this.Operand || targetType != this.TargetType || operandPlaceholder != this.OperandPlaceholder || operandConversion != this.OperandConversion || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
2958
if (sourceType != this.SourceType || constantValueOpt != this.ConstantValueOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
3004
if (operand != this.Operand || conversion != this.Conversion || isBaseConversion != this.IsBaseConversion || @checked != this.Checked || explicitCastInCode != this.ExplicitCastInCode || constantValueOpt != this.ConstantValueOpt || conversionGroupOpt != this.ConversionGroupOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
3037
if (operand != this.Operand || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(conversionMethod, this.ConversionMethod) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
3072
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
3103
if (arguments != this.Arguments || argumentRefKindsOpt != this.ArgumentRefKindsOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
3142
if (!TypeSymbol.Equals(elementPointerType, this.ElementPointerType, TypeCompareKind.
ConsiderEverything
) || elementPointerPlaceholder != this.ElementPointerPlaceholder || elementPointerConversion != this.ElementPointerConversion || expression != this.Expression || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(getPinnableOpt, this.GetPinnableOpt) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
4311
if (locals != this.Locals || exceptionSourceOpt != this.ExceptionSourceOpt || !TypeSymbol.Equals(exceptionTypeOpt, this.ExceptionTypeOpt, TypeCompareKind.
ConsiderEverything
) || exceptionFilterPrologueOpt != this.ExceptionFilterPrologueOpt || exceptionFilterOpt != this.ExceptionFilterOpt || body != this.Body || isSynthesizedAsyncCatchAll != this.IsSynthesizedAsyncCatchAll)
4342
if (constantValueOpt != this.ConstantValueOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
4382
if (value != this.Value || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
4417
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
4452
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
4487
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
4516
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
4565
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(localSymbol, this.LocalSymbol) || declarationKind != this.DeclarationKind || constantValueOpt != this.ConstantValueOpt || isNullableUnknown != this.IsNullableUnknown || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
4610
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(localSymbol, this.LocalSymbol) || emitExpressions != this.EmitExpressions || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
4643
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(rangeVariableSymbol, this.RangeVariableSymbol) || value != this.Value || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
4683
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(parameterSymbol, this.ParameterSymbol) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
4820
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(label, this.Label) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
4981
if (expression != this.Expression || switchArms != this.SwitchArms || reachabilityDecisionDag != this.ReachabilityDecisionDag || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(defaultLabel, this.DefaultLabel) || reportedNotExhaustive != this.ReportedNotExhaustive || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
5015
if (!TypeSymbol.Equals(naturalTypeOpt, this.NaturalTypeOpt, TypeCompareKind.
ConsiderEverything
) || wasTargetTyped != this.WasTargetTyped || expression != this.Expression || switchArms != this.SwitchArms || reachabilityDecisionDag != this.ReachabilityDecisionDag || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(defaultLabel, this.DefaultLabel) || reportedNotExhaustive != this.ReportedNotExhaustive || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
5240
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
) || source != this.Source || index != this.Index)
5269
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
) || input != this.Input)
5453
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
) || input != this.Input)
5591
if (!TypeSymbol.Equals(indexerType, this.IndexerType, TypeCompareKind.
ConsiderEverything
) || lengthTemp != this.LengthTemp || index != this.Index || indexerAccess != this.IndexerAccess || receiverPlaceholder != this.ReceiverPlaceholder || argumentPlaceholder != this.ArgumentPlaceholder || input != this.Input)
5640
if (!TypeSymbol.Equals(sliceType, this.SliceType, TypeCompareKind.
ConsiderEverything
) || lengthTemp != this.LengthTemp || startIndex != this.StartIndex || endIndex != this.EndIndex || indexerAccess != this.IndexerAccess || receiverPlaceholder != this.ReceiverPlaceholder || argumentPlaceholder != this.ArgumentPlaceholder || input != this.Input)
5776
if (expression != this.Expression || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
5812
if (locals != this.Locals || sideEffects != this.SideEffects || value != this.Value || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
5848
if (locals != this.Locals || sideEffects != this.SideEffects || value != this.Value || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
5887
if (receiver != this.Receiver || typeArgumentsOpt != this.TypeArgumentsOpt || name != this.Name || invoked != this.Invoked || indexed != this.Indexed || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
5940
if (argumentNamesOpt != this.ArgumentNamesOpt || argumentRefKindsOpt != this.ArgumentRefKindsOpt || applicableMethods != this.ApplicableMethods || expression != this.Expression || arguments != this.Arguments || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
5973
if (receiver != this.Receiver || accessExpression != this.AccessExpression || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
6014
if (receiver != this.Receiver || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(hasValueMethodOpt, this.HasValueMethodOpt) || whenNotNull != this.WhenNotNull || whenNullOpt != this.WhenNullOpt || id != this.Id || forceCopyOfNullableValueType != this.ForceCopyOfNullableValueType || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
6052
if (id != this.Id || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
6085
if (valueTypeReceiver != this.ValueTypeReceiver || referenceTypeReceiver != this.ReferenceTypeReceiver || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
6213
if (receiverOpt != this.ReceiverOpt || initialBindingReceiverIsSubjectToCloning != this.InitialBindingReceiverIsSubjectToCloning || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(method, this.Method) || arguments != this.Arguments || argumentNamesOpt != this.ArgumentNamesOpt || argumentRefKindsOpt != this.ArgumentRefKindsOpt || isDelegateCall != this.IsDelegateCall || expanded != this.Expanded || invokedAsExtensionMethod != this.InvokedAsExtensionMethod || argsToParamsOpt != this.ArgsToParamsOpt || defaultArguments != this.DefaultArguments || resultKind != this.ResultKind || originalMethodsOpt != this.OriginalMethodsOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
6252
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(@event, this.Event) || isAddition != this.IsAddition || isDynamic != this.IsDynamic || receiverOpt != this.ReceiverOpt || argument != this.Argument || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
6297
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(constructor, this.Constructor) || constructorArguments != this.ConstructorArguments || constructorArgumentNamesOpt != this.ConstructorArgumentNamesOpt || constructorArgumentsToParamsOpt != this.ConstructorArgumentsToParamsOpt || constructorExpanded != this.ConstructorExpanded || constructorDefaultArguments != this.ConstructorDefaultArguments || namedArguments != this.NamedArguments || resultKind != this.ResultKind || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
6407
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(constructor, this.Constructor) || constructorsGroup != this.ConstructorsGroup || arguments != this.Arguments || argumentNamesOpt != this.ArgumentNamesOpt || argumentRefKindsOpt != this.ArgumentRefKindsOpt || expanded != this.Expanded || argsToParamsOpt != this.ArgsToParamsOpt || defaultArguments != this.DefaultArguments || constantValueOpt != this.ConstantValueOpt || initializerExpressionOpt != this.InitializerExpressionOpt || wasTargetTyped != this.WasTargetTyped || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
6493
if (collectionTypeKind != this.CollectionTypeKind || placeholder != this.Placeholder || collectionCreation != this.CollectionCreation || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(collectionBuilderMethod, this.CollectionBuilderMethod) || collectionBuilderInvocationPlaceholder != this.CollectionBuilderInvocationPlaceholder || collectionBuilderInvocationConversion != this.CollectionBuilderInvocationConversion || wasTargetTyped != this.WasTargetTyped || unconvertedCollectionExpression != this.UnconvertedCollectionExpression || elements != this.Elements || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
6521
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
6606
if (arguments != this.Arguments || argumentNamesOpt != this.ArgumentNamesOpt || inferredNamesOpt != this.InferredNamesOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
6636
if (sourceTuple != this.SourceTuple || wasTargetTyped != this.WasTargetTyped || arguments != this.Arguments || argumentNamesOpt != this.ArgumentNamesOpt || inferredNamesOpt != this.InferredNamesOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
6679
if (name != this.Name || arguments != this.Arguments || argumentNamesOpt != this.ArgumentNamesOpt || argumentRefKindsOpt != this.ArgumentRefKindsOpt || initializerExpressionOpt != this.InitializerExpressionOpt || applicableMethods != this.ApplicableMethods || wasTargetTyped != this.WasTargetTyped || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
6711
if (guidString != this.GuidString || initializerExpressionOpt != this.InitializerExpressionOpt || wasTargetTyped != this.WasTargetTyped || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
6758
if (placeholder != this.Placeholder || initializers != this.Initializers || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
6807
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(memberSymbol, this.MemberSymbol) || arguments != this.Arguments || argumentNamesOpt != this.ArgumentNamesOpt || argumentRefKindsOpt != this.ArgumentRefKindsOpt || expanded != this.Expanded || argsToParamsOpt != this.ArgsToParamsOpt || defaultArguments != this.DefaultArguments || resultKind != this.ResultKind || accessorKind != this.AccessorKind || !TypeSymbol.Equals(receiverType, this.ReceiverType, TypeCompareKind.
ConsiderEverything
) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
6852
if (memberName != this.MemberName || !TypeSymbol.Equals(receiverType, this.ReceiverType, TypeCompareKind.
ConsiderEverything
) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
6880
if (placeholder != this.Placeholder || initializers != this.Initializers || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
6925
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(addMethod, this.AddMethod) || arguments != this.Arguments || implicitReceiverOpt != this.ImplicitReceiverOpt || expanded != this.Expanded || argsToParamsOpt != this.ArgsToParamsOpt || defaultArguments != this.DefaultArguments || invokedAsExtensionMethod != this.InvokedAsExtensionMethod || resultKind != this.ResultKind || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
6957
if (applicableMethods != this.ApplicableMethods || expression != this.Expression || arguments != this.Arguments || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
6992
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
7028
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(constructor, this.Constructor) || arguments != this.Arguments || declarations != this.Declarations || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
7068
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(property, this.Property) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
7098
if (initializerExpressionOpt != this.InitializerExpressionOpt || wasTargetTyped != this.WasTargetTyped || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
7134
if (argument != this.Argument || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(methodOpt, this.MethodOpt) || isExtensionMethod != this.IsExtensionMethod || wasTargetTyped != this.WasTargetTyped || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
7166
if (bounds != this.Bounds || initializerOpt != this.InitializerOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
7243
if (!TypeSymbol.Equals(elementType, this.ElementType, TypeCompareKind.
ConsiderEverything
) || count != this.Count || initializerOpt != this.InitializerOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
7272
if (!TypeSymbol.Equals(elementType, this.ElementType, TypeCompareKind.
ConsiderEverything
) || count != this.Count || initializerOpt != this.InitializerOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
7312
if (receiverOpt != this.ReceiverOpt || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(fieldSymbol, this.FieldSymbol) || constantValueOpt != this.ConstantValueOpt || resultKind != this.ResultKind || isByValue != this.IsByValue || isDeclaration != this.IsDeclaration || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
7352
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(fieldSymbol, this.FieldSymbol) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
7390
if (receiverOpt != this.ReceiverOpt || initialBindingReceiverIsSubjectToCloning != this.InitialBindingReceiverIsSubjectToCloning || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(propertySymbol, this.PropertySymbol) || autoPropertyAccessorKind != this.AutoPropertyAccessorKind || resultKind != this.ResultKind || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
7426
if (receiverOpt != this.ReceiverOpt || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(eventSymbol, this.EventSymbol) || isUsableAsField != this.IsUsableAsField || resultKind != this.ResultKind || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
7477
if (receiverOpt != this.ReceiverOpt || initialBindingReceiverIsSubjectToCloning != this.InitialBindingReceiverIsSubjectToCloning || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(indexer, this.Indexer) || arguments != this.Arguments || argumentNamesOpt != this.ArgumentNamesOpt || argumentRefKindsOpt != this.ArgumentRefKindsOpt || expanded != this.Expanded || accessorKind != this.AccessorKind || argsToParamsOpt != this.ArgsToParamsOpt || defaultArguments != this.DefaultArguments || originalIndexersOpt != this.OriginalIndexersOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
7526
if (receiver != this.Receiver || argument != this.Argument || lengthOrCountAccess != this.LengthOrCountAccess || receiverPlaceholder != this.ReceiverPlaceholder || indexerOrSliceAccess != this.IndexerOrSliceAccess || argumentPlaceholders != this.ArgumentPlaceholders || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
7567
if (expression != this.Expression || argument != this.Argument || isValue != this.IsValue || getItemOrSliceHelper != this.GetItemOrSliceHelper || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
7607
if (receiver != this.Receiver || arguments != this.Arguments || argumentNamesOpt != this.ArgumentNamesOpt || argumentRefKindsOpt != this.ArgumentRefKindsOpt || applicableIndexers != this.ApplicableIndexers || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
7647
if (unboundLambda != this.UnboundLambda || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(symbol, this.Symbol) || body != this.Body || diagnostics != this.Diagnostics || binder != this.Binder || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
7732
if (value != this.Value || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(definedSymbol, this.DefinedSymbol) || operation != this.Operation || cast != this.Cast || binder != this.Binder || unoptimizedForm != this.UnoptimizedForm || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
7795
if (argument != this.Argument || constantValueOpt != this.ConstantValueOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
7837
if (parts != this.Parts || constantValueOpt != this.ConstantValueOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
7865
if (!interpolationData.Equals(this.InterpolationData) || parts != this.Parts || constantValueOpt != this.ConstantValueOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
7893
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
7931
if (argumentIndex != this.ArgumentIndex || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
8008
if (expression != this.Expression || pattern != this.Pattern || isNegated != this.IsNegated || reachabilityDecisionDag != this.ReachabilityDecisionDag || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(whenTrueLabel, this.WhenTrueLabel) || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(whenFalseLabel, this.WhenFalseLabel) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
8073
if (value != this.Value || constantValue != this.ConstantValue || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.
ConsiderEverything
) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.
ConsiderEverything
))
8113
if (!TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.
ConsiderEverything
) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.
ConsiderEverything
))
8166
if (declaredType != this.DeclaredType || isVar != this.IsVar || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(variable, this.Variable) || variableAccess != this.VariableAccess || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.
ConsiderEverything
) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.
ConsiderEverything
))
8207
if (declaredType != this.DeclaredType || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(deconstructMethod, this.DeconstructMethod) || deconstruction != this.Deconstruction || properties != this.Properties || isExplicitNotNullTest != this.IsExplicitNotNullTest || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(variable, this.Variable) || variableAccess != this.VariableAccess || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.
ConsiderEverything
) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.
ConsiderEverything
))
8251
if (subpatterns != this.Subpatterns || hasSlice != this.HasSlice || lengthAccess != this.LengthAccess || indexerAccess != this.IndexerAccess || receiverPlaceholder != this.ReceiverPlaceholder || argumentPlaceholder != this.ArgumentPlaceholder || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(variable, this.Variable) || variableAccess != this.VariableAccess || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.
ConsiderEverything
) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.
ConsiderEverything
))
8290
if (pattern != this.Pattern || indexerAccess != this.IndexerAccess || receiverPlaceholder != this.ReceiverPlaceholder || argumentPlaceholder != this.ArgumentPlaceholder || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.
ConsiderEverything
) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.
ConsiderEverything
))
8330
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(getLengthMethod, this.GetLengthMethod) || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(getItemMethod, this.GetItemMethod) || subpatterns != this.Subpatterns || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.
ConsiderEverything
) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.
ConsiderEverything
))
8434
if (receiver != this.Receiver || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(symbol, this.Symbol) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
8470
if (declaredType != this.DeclaredType || isExplicitNotNullTest != this.IsExplicitNotNullTest || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.
ConsiderEverything
) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.
ConsiderEverything
))
8509
if (disjunction != this.Disjunction || left != this.Left || right != this.Right || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.
ConsiderEverything
) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.
ConsiderEverything
))
8543
if (negated != this.Negated || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.
ConsiderEverything
) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.
ConsiderEverything
))
8582
if (relation != this.Relation || value != this.Value || constantValue != this.ConstantValue || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.
ConsiderEverything
) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.
ConsiderEverything
))
8617
if (nullableAnnotation != this.NullableAnnotation || isInferred != this.IsInferred || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
8645
if (expression != this.Expression || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
8846
if (expression != this.Expression || nullableAnnotation != this.NullableAnnotation || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
8881
if (receiver != this.Receiver || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(cloneMethod, this.CloneMethod) || initializerExpression != this.InitializerExpression || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
Lowering\AsyncRewriter\AsyncRewriter.AsyncIteratorRewriter.cs (1)
216
parameter.Type.Equals(F.Compilation.GetWellKnownType(WellKnownType.System_Threading_CancellationToken), TypeCompareKind.
ConsiderEverything
))
Lowering\BoundTreeToDifferentEnclosingContextRewriter.cs (1)
243
Debug.Assert(node.Type.Equals(VisitType(node.Type), TypeCompareKind.
ConsiderEverything
));
Lowering\ClosureConversion\ClosureConversion.cs (1)
999
while (!TypeSymbol.Equals(oldTypeArg.Type, newTypeArg.Type, TypeCompareKind.
ConsiderEverything
));
Lowering\DiagnosticsPass_Warnings.cs (1)
119
if (TypeSymbol.Equals(baseType, marshalByRefType, TypeCompareKind.
ConsiderEverything
))
Lowering\Instrumentation\ModuleCancellationInstrumenter.cs (2)
132
lastArgumentType.Equals(_throwMethod.ContainingType, TypeCompareKind.
ConsiderEverything
))
190
lastParamType.Equals(_throwMethod.ContainingType, TypeCompareKind.
ConsiderEverything
) &&
Lowering\LocalRewriter\LocalRewriter.cs (1)
842
TypeCompareKind.
ConsiderEverything
))
Lowering\LocalRewriter\LocalRewriter_AsOperator.cs (1)
88
Debug.Assert(result.Type!.Equals(rewrittenType, TypeCompareKind.
ConsiderEverything
));
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (4)
973
if ((!writableOnly && namedType.OriginalDefinition.Equals(_compilation.GetWellKnownType(WellKnownType.System_ReadOnlySpan_T), TypeCompareKind.
ConsiderEverything
))
974
|| namedType.OriginalDefinition.Equals(_compilation.GetWellKnownType(WellKnownType.System_Span_T), TypeCompareKind.
ConsiderEverything
))
981
&& namedType.OriginalDefinition.Equals(_compilation.GetWellKnownType(WellKnownType.System_Collections_Immutable_ImmutableArray_T), TypeCompareKind.
ConsiderEverything
)
988
if (namedType.OriginalDefinition.Equals(_compilation.GetWellKnownType(WellKnownType.System_Collections_Generic_List_T), TypeCompareKind.
ConsiderEverything
)
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (1)
546
TypeCompareKind.
ConsiderEverything
))
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (1)
331
if (_inExpressionLambda || !rewrittenOperand.Type.Equals(rewrittenType, TypeCompareKind.
ConsiderEverything
))
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (7)
122
Debug.Assert(oldNode.Type.Equals(type, TypeCompareKind.
ConsiderEverything
));
477
TypeCompareKind.
ConsiderEverything
))
486
TypeCompareKind.
ConsiderEverything
));
524
TypeCompareKind.
ConsiderEverything
));
719
TypeCompareKind.
ConsiderEverything
));
752
TypeCompareKind.
ConsiderEverything
));
817
TypeCompareKind.
ConsiderEverything
));
Lowering\LocalRewriter\LocalRewriter_ObjectCreationExpression.cs (1)
135
Debug.Assert(receiver.Type!.Equals(type, TypeCompareKind.
ConsiderEverything
));
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (2)
454
Debug.Assert(TypeSymbol.Equals(rangeArgument.Type, _compilation.GetWellKnownType(WellKnownType.System_Range), TypeCompareKind.
ConsiderEverything
));
517
if (TypeSymbol.Equals(implicitIndexer.Argument.Type, _compilation.GetWellKnownType(WellKnownType.System_Index), TypeCompareKind.
ConsiderEverything
))
Symbols\AnonymousTypes\AnonymousTypeDescriptor.cs (2)
64
return this.Equals(desc, TypeCompareKind.
ConsiderEverything
);
90
return obj is AnonymousTypeDescriptor && this.Equals((AnonymousTypeDescriptor)obj, TypeCompareKind.
ConsiderEverything
);
Symbols\AssemblySymbol.cs (1)
986
Debug.Assert(!TypeSymbol.Equals(candidate, result, TypeCompareKind.
ConsiderEverything
));
Symbols\Attributes\AttributeData.cs (1)
116
_lazyIsSecurityAttribute = AttributeClass.IsDerivedFrom(wellKnownType, TypeCompareKind.
ConsiderEverything
, useSiteInfo: ref discardedUseSiteInfo).ToThreeState();
Symbols\Attributes\SourceAttributeData.cs (1)
440
if (!TypeSymbol.Equals(parameterType, lazySystemType, TypeCompareKind.
ConsiderEverything
))
Symbols\Compilation_WellKnownMembers.cs (2)
233
return type.Equals(wkType, TypeCompareKind.
ConsiderEverything
) || type.IsDerivedFrom(wkType, TypeCompareKind.
ConsiderEverything
, useSiteInfo: ref useSiteInfo);
Symbols\ConstraintsHelper.cs (1)
1594
Debug.Assert(!type.ConstructedFrom.Equals(type, TypeCompareKind.
ConsiderEverything
));
Symbols\Metadata\PE\DynamicTypeDecoder.cs (1)
413
if (transformedType.Equals(typeWithAnnotations.Type, TypeCompareKind.
ConsiderEverything
))
Symbols\NamedTypeSymbol.cs (1)
1811
while (Equals(typeToCheck.OriginalDefinition, this.OriginalDefinition, TypeCompareKind.
ConsiderEverything
) && !typeToCheck.IsDefinition);
Symbols\NativeIntegerTypeSymbol.cs (2)
273
Debug.Assert(!symbolA.Equals(symbolB, TypeCompareKind.
ConsiderEverything
));
274
Debug.Assert(!symbolB.Equals(symbolA, TypeCompareKind.
ConsiderEverything
));
Symbols\PublicModel\NamedTypeSymbol.cs (1)
177
return type.Equals(tupleUnderlyingType, TypeCompareKind.
ConsiderEverything
) ?
Symbols\Source\ExtensionGroupingInfo.cs (1)
309
considerDefaultValues: false, TypeCompareKind.
ConsiderEverything
))
Symbols\Source\LocalFunctionOrSourceMemberMethodSymbol.cs (1)
38
Debug.Assert(TypeSymbol.Equals(_lazyIteratorElementType.Value.Type, elementType.Type, TypeCompareKind.
ConsiderEverything
));
Symbols\Source\SourceLocalSymbol.cs (1)
494
originalType.Value.TypeSymbolEquals(newType, TypeCompareKind.
ConsiderEverything
));
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
256
(!implementingMember.ContainingType.Equals(this, TypeCompareKind.
ConsiderEverything
) &&
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
1455
static (m, systemType) => m is FieldSymbol { Type: ArrayTypeSymbol { ElementType: NamedTypeSymbol elementType } } && elementType.Equals(systemType, TypeCompareKind.
ConsiderEverything
),
Symbols\Source\SourceNamedTypeSymbol.cs (1)
606
if (!constraintType1.Equals(constraintType2, TypeCompareKind.
ConsiderEverything
))
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (3)
186
Debug.Assert(!other.Equals(@interface, TypeCompareKind.
ConsiderEverything
));
319
else if ((object)partBase != null && !TypeSymbol.Equals(partBase, baseType, TypeCompareKind.
ConsiderEverything
) && partBase.TypeKind != TypeKind.Error)
561
if (t.Equals(baseType, TypeCompareKind.
ConsiderEverything
))
Symbols\SubstitutedMethodSymbol.cs (1)
426
TypeCompareKind.
ConsiderEverything
))
Symbols\SymbolEqualityComparer.cs (2)
15
internal static readonly EqualityComparer<Symbol> ConsiderEverything = new SymbolEqualityComparer(TypeCompareKind.
ConsiderEverything
);
50
case TypeCompareKind.
ConsiderEverything
:
Symbols\Tuples\TupleTypeSymbol.cs (2)
875
return (namesUnchanged && this.Equals(mergedType, TypeCompareKind.
ConsiderEverything
))
1112
if (TypeSymbol.Equals(underlyingMemberDefinition.ContainingType, TupleUnderlyingType.OriginalDefinition, TypeCompareKind.
ConsiderEverything
))
Symbols\TypeParameterSymbol.cs (1)
658
return Equals(other, TypeCompareKind.
ConsiderEverything
);
Symbols\TypeSymbol.cs (3)
373
/// values are distinct interfaces corresponding to the key, according to <see cref="TypeCompareKind.
ConsiderEverything
"/> rules.
1243
if (implementingAccessor2 is object && !implementingInterface.Equals(implementingAccessor2.ContainingType, TypeCompareKind.
ConsiderEverything
))
1388
if (!containingType.Equals(interfaceType, TypeCompareKind.
ConsiderEverything
))
Symbols\TypeSymbolExtensions.cs (1)
1632
TypeCompareKind.
ConsiderEverything
))
Symbols\TypeUnification.cs (2)
160
if (nt2.Arity != arity || !TypeSymbol.Equals(nt2.OriginalDefinition, nt1.OriginalDefinition, TypeCompareKind.
ConsiderEverything
))
293
return TypeSymbol.Equals(type, typeParam, TypeCompareKind.
ConsiderEverything
);
Symbols\TypeWithAnnotations.cs (4)
392
internal static readonly EqualsComparer ConsiderEverythingComparer = new EqualsComparer(TypeCompareKind.
ConsiderEverything
);
454
if (typeSymbol.Equals(newTypeWithModifiers.Type, TypeCompareKind.
ConsiderEverything
) &&
763
return other is TypeWithAnnotations t && this.Equals(t, TypeCompareKind.
ConsiderEverything
);
1162
if (newUnderlying.Type.Equals(this._underlying.Type, TypeCompareKind.
ConsiderEverything
) &&
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (73)
CodeGen\CodeGenFunctionPointersTests.cs (9)
6307
Assert.True(baseM1.Parameters.Single().Type.Equals(derivedM1.Parameters.Single().Type, TypeCompareKind.
ConsiderEverything
));
6308
Assert.True(baseM2.ReturnType.Equals(derivedM2.ReturnType, TypeCompareKind.
ConsiderEverything
));
6309
Assert.True(baseM3.Parameters.Single().Type.Equals(derivedM3.Parameters.Single().Type, TypeCompareKind.
ConsiderEverything
));
6310
Assert.True(baseM4.ReturnType.Equals(derivedM4.ReturnType, TypeCompareKind.
ConsiderEverything
));
7691
Assert.False(funcPtr.Equals(funcPtrWithTestOnReturn, TypeCompareKind.
ConsiderEverything
));
7693
Assert.False(funcPtrRef.Equals(funcPtrWithTestOnRef, TypeCompareKind.
ConsiderEverything
));
7776
Assert.False(funcPtr.Equals(funcPtrWithTestOnReturn, TypeCompareKind.
ConsiderEverything
));
7778
Assert.False(funcPtrRef.Equals(funcPtrWithTestOnRef, TypeCompareKind.
ConsiderEverything
));
10509
Assert.True(callConvCdecl!.Equals((NamedTypeSymbol)m.GetUnmanagedCallersOnlyAttributeData(forceComplete: true)!.CallingConventionTypes.Single(), TypeCompareKind.
ConsiderEverything
));
CodeGen\CodeGenTupleTest.cs (64)
4520
Assert.False(namedTuple.Equals(namedTuple.TupleUnderlyingType, TypeCompareKind.
ConsiderEverything
));
6640
Assert.True(tuple1.Equals(tuple2, TypeCompareKind.
ConsiderEverything
));
6643
Assert.True(tuple1.Equals(tuple2, TypeCompareKind.
ConsiderEverything
));
6646
Assert.True(tuple1.Equals(tuple2, TypeCompareKind.
ConsiderEverything
));
6649
Assert.True(tuple1.Equals(tuple2, TypeCompareKind.
ConsiderEverything
));
6652
Assert.True(tuple1.Equals(tuple2, TypeCompareKind.
ConsiderEverything
));
6655
Assert.True(tuple1.Equals(tuple2, TypeCompareKind.
ConsiderEverything
));
6658
Assert.True(tuple1.Equals(tuple2, TypeCompareKind.
ConsiderEverything
));
6661
Assert.True(tuple1.Equals(tuple2, TypeCompareKind.
ConsiderEverything
));
6682
Assert.True(tuple1.Equals(tuple2, TypeCompareKind.
ConsiderEverything
));
6685
Assert.True(tuple1.Equals(tuple2, TypeCompareKind.
ConsiderEverything
));
6688
Assert.True(tuple1.Equals(tuple2, TypeCompareKind.
ConsiderEverything
));
6691
Assert.True(tuple1.Equals(tuple2, TypeCompareKind.
ConsiderEverything
));
6694
Assert.True(tuple1.Equals(tuple2, TypeCompareKind.
ConsiderEverything
));
6697
Assert.True(tuple1.Equals(tuple2, TypeCompareKind.
ConsiderEverything
));
6700
Assert.True(tuple1.Equals(tuple2, TypeCompareKind.
ConsiderEverything
));
6703
Assert.True(tuple1.Equals(tuple2, TypeCompareKind.
ConsiderEverything
));
6720
Assert.True(tuple1.Equals(tuple2, TypeCompareKind.
ConsiderEverything
));
6723
Assert.True(tuple1.Equals(tuple2, TypeCompareKind.
ConsiderEverything
));
6726
Assert.True(tuple1.Equals(tuple2, TypeCompareKind.
ConsiderEverything
));
6729
Assert.True(tuple1.Equals(tuple2, TypeCompareKind.
ConsiderEverything
));
6732
Assert.True(tuple1.Equals(tuple2, TypeCompareKind.
ConsiderEverything
));
6735
Assert.True(tuple1.Equals(tuple2, TypeCompareKind.
ConsiderEverything
));
6738
Assert.True(tuple1.Equals(tuple2, TypeCompareKind.
ConsiderEverything
));
6741
Assert.True(tuple1.Equals(tuple2, TypeCompareKind.
ConsiderEverything
));
6761
Assert.True(tuple1.Equals(tuple2, TypeCompareKind.
ConsiderEverything
));
6764
Assert.True(tuple1.Equals(tuple2, TypeCompareKind.
ConsiderEverything
));
6767
Assert.True(tuple1.Equals(tuple2, TypeCompareKind.
ConsiderEverything
));
6770
Assert.True(tuple1.Equals(tuple2, TypeCompareKind.
ConsiderEverything
));
6773
Assert.True(tuple1.Equals(tuple2, TypeCompareKind.
ConsiderEverything
));
6776
Assert.True(tuple1.Equals(tuple2, TypeCompareKind.
ConsiderEverything
));
6779
Assert.True(tuple1.Equals(tuple2, TypeCompareKind.
ConsiderEverything
));
6782
Assert.True(tuple1.Equals(tuple2, TypeCompareKind.
ConsiderEverything
));
6800
Assert.True(tuple1.Equals(tuple2, TypeCompareKind.
ConsiderEverything
));
6808
Assert.True(tuple1.Equals(tuple2, TypeCompareKind.
ConsiderEverything
));
11157
Assert.True(m1Tuple.Equals(m1Tuple.TupleUnderlyingType, TypeCompareKind.
ConsiderEverything
));
11246
Assert.True(m1Item1.ContainingType.OriginalDefinition.TupleElements[0].Equals(m1Item1.OriginalDefinition, TypeCompareKind.
ConsiderEverything
));
11266
Assert.True(m2Item1.ContainingType.OriginalDefinition.TupleElements[0].Equals(m2Item1.OriginalDefinition, TypeCompareKind.
ConsiderEverything
));
11289
Assert.True(m2a2.ContainingType.OriginalDefinition.TupleElements[0].Equals(m1Item1.OriginalDefinition, TypeCompareKind.
ConsiderEverything
));
11427
Assert.True(m1Tuple.TupleUnderlyingType.Equals(m1Tuple, TypeCompareKind.
ConsiderEverything
));
11592
Assert.True(tuple.Equals(tuple, TypeCompareKind.
ConsiderEverything
));
12795
Assert.True(m1Item1.ContainingType.OriginalDefinition.TupleElements[0].Equals(m1Item1.OriginalDefinition, TypeCompareKind.
ConsiderEverything
));
12814
Assert.True(m2Item1.ContainingType.OriginalDefinition.TupleElements[0].Equals(m2Item1.OriginalDefinition, TypeCompareKind.
ConsiderEverything
));
12945
Assert.True(m9Tuple.Equals(m9Tuple.TupleUnderlyingType, TypeCompareKind.
ConsiderEverything
));
15831
Assert.True(m1P1Get.Equals(m1P1.GetMethod, TypeCompareKind.
ConsiderEverything
));
15832
Assert.True(m1P1Set.Equals(m1P1.SetMethod, TypeCompareKind.
ConsiderEverything
));
15838
Assert.True(m1P1.Equals(m1P1Get.AssociatedSymbol, TypeCompareKind.
ConsiderEverything
));
15841
Assert.True(m1P1.Equals(m1P1Set.AssociatedSymbol, TypeCompareKind.
ConsiderEverything
));
15845
Assert.True(m1P1.Equals(m1P1BackingField.AssociatedSymbol, TypeCompareKind.
ConsiderEverything
));
15861
Assert.True(m1thisGet.Equals(m1this.GetMethod, TypeCompareKind.
ConsiderEverything
));
16061
Assert.True(m1E1Add.Equals(m1E1.AddMethod, TypeCompareKind.
ConsiderEverything
));
16062
Assert.True(m1E1Remove.Equals(m1E1.RemoveMethod, TypeCompareKind.
ConsiderEverything
));
16067
Assert.True(m1E1.Equals(m1E1Add.AssociatedSymbol, TypeCompareKind.
ConsiderEverything
));
16070
Assert.True(m1E1.Equals(m1E1Remove.AssociatedSymbol, TypeCompareKind.
ConsiderEverything
));
16076
Assert.True(m1E1.Equals(m1E1BackingField.AssociatedSymbol, TypeCompareKind.
ConsiderEverything
));
16093
Assert.True(m1E2Add.Equals(m1E2.AddMethod, TypeCompareKind.
ConsiderEverything
));
16095
Assert.True(m1E2Remove.Equals(m1E2.RemoveMethod, TypeCompareKind.
ConsiderEverything
));
16102
Assert.True(m1E2.Equals(m1E2Add.AssociatedSymbol, TypeCompareKind.
ConsiderEverything
));
16106
Assert.True(m1E2.Equals(m1E2Remove.AssociatedSymbol, TypeCompareKind.
ConsiderEverything
));
27479
Assert.False(type.Equals(underlyingType, TypeCompareKind.
ConsiderEverything
));
27484
Assert.True(type.Equals(underlyingType, TypeCompareKind.
ConsiderEverything
));
28854
Assert.True(tuple2.TupleUnderlyingType.Equals(tuple1, TypeCompareKind.
ConsiderEverything
));
28885
Assert.True(tuple3.TupleUnderlyingType.Equals(tuple1, TypeCompareKind.
ConsiderEverything
));
28928
Assert.True(tuple4.TupleUnderlyingType.Equals(tuple1, TypeCompareKind.
ConsiderEverything
));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (3)
Attributes\AttributeTests_Nullable.cs (1)
4215
Assert.True(updated.Equals(type, TypeCompareKind.
ConsiderEverything
));
Semantics\PrimaryConstructorTests.cs (1)
871
Assert.True(c.Equals(ctor.Parameters[0].Type, TypeCompareKind.
ConsiderEverything
));
Semantics\RecordTests.cs (1)
12526
Assert.True(method.OverriddenMethod.Parameters[0].TypeWithAnnotations.Equals(parameterType, TypeCompareKind.
ConsiderEverything
));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (32)
Semantics\DelegateTypeTests.cs (3)
15690
Assert.False(functionTypeStringNotNullable.Equals(functionTypeStringNullable, TypeCompareKind.
ConsiderEverything
));
15693
Assert.True(functionTypeNullA.Equals(functionTypeNullA, TypeCompareKind.
ConsiderEverything
));
15694
Assert.False(functionTypeNullA.Equals(functionTypeNullB, TypeCompareKind.
ConsiderEverything
));
Semantics\FunctionPointerTests.cs (2)
1946
Assert.True(declaredSymbol.TypeParameters[0].Equals(functionPointer.Signature.ReturnType, TypeCompareKind.
ConsiderEverything
));
1947
Assert.True(declaredSymbol.TypeParameters[0].Equals(functionPointer.Signature.Parameters[0].Type, TypeCompareKind.
ConsiderEverything
));
Semantics\NativeIntegerTests.cs (4)
382
Assert.False(underlyingType.Equals(nativeIntegerType, TypeCompareKind.
ConsiderEverything
));
383
Assert.False(nativeIntegerType.Equals(underlyingType, TypeCompareKind.
ConsiderEverything
));
558
Assert.False(member.Equals(underlyingMember, TypeCompareKind.
ConsiderEverything
));
605
Assert.NotEqual(containsType(fromMember, useNativeInteger: true), fromMember.Equals(fromUnderlyingMember, TypeCompareKind.
ConsiderEverything
));
Semantics\NullableReferenceTypesTests.cs (22)
12351
Assert.True(ev.TypeWithAnnotations.Equals(ev.AddMethod.Parameters.Last().TypeWithAnnotations, TypeCompareKind.
ConsiderEverything
));
12352
Assert.True(ev.TypeWithAnnotations.Equals(ev.RemoveMethod.Parameters.Last().TypeWithAnnotations, TypeCompareKind.
ConsiderEverything
));
12432
Assert.Equal(expectMatch, member.ReturnTypeWithAnnotations.Equals(member.OverriddenMethod.ReturnTypeWithAnnotations, TypeCompareKind.
ConsiderEverything
));
12433
Assert.Equal(expectMatch, member.Parameters.Single().TypeWithAnnotations.Equals(member.OverriddenMethod.Parameters.Single().TypeWithAnnotations, TypeCompareKind.
ConsiderEverything
));
12719
Assert.True(ev.TypeWithAnnotations.Equals(ev.AddMethod.Parameters.Last().TypeWithAnnotations, TypeCompareKind.
ConsiderEverything
));
12720
Assert.True(ev.TypeWithAnnotations.Equals(ev.RemoveMethod.Parameters.Last().TypeWithAnnotations, TypeCompareKind.
ConsiderEverything
));
12807
Assert.True(ev.TypeWithAnnotations.Equals(ev.AddMethod.Parameters.Last().TypeWithAnnotations, TypeCompareKind.
ConsiderEverything
));
12808
Assert.True(ev.TypeWithAnnotations.Equals(ev.RemoveMethod.Parameters.Last().TypeWithAnnotations, TypeCompareKind.
ConsiderEverything
));
12903
Assert.True(property.TypeWithAnnotations.Equals(property.GetMethod.ReturnTypeWithAnnotations, TypeCompareKind.
ConsiderEverything
));
12904
Assert.True(property.TypeWithAnnotations.Equals(property.SetMethod.Parameters.Last().TypeWithAnnotations, TypeCompareKind.
ConsiderEverything
));
13055
Assert.True(property.TypeWithAnnotations.Equals(property.GetMethod.ReturnTypeWithAnnotations, TypeCompareKind.
ConsiderEverything
));
13056
Assert.True(property.TypeWithAnnotations.Equals(property.SetMethod.Parameters.Last().TypeWithAnnotations, TypeCompareKind.
ConsiderEverything
));
13146
Assert.True(property.TypeWithAnnotations.Equals(property.GetMethod.ReturnTypeWithAnnotations, TypeCompareKind.
ConsiderEverything
));
13147
Assert.True(property.TypeWithAnnotations.Equals(property.SetMethod.Parameters.Last().TypeWithAnnotations, TypeCompareKind.
ConsiderEverything
));
16654
Assert.True(property.TypeWithAnnotations.Equals(property.GetMethod.ReturnTypeWithAnnotations, TypeCompareKind.
ConsiderEverything
));
16655
Assert.True(property.TypeWithAnnotations.Equals(property.SetMethod.Parameters.Last().TypeWithAnnotations, TypeCompareKind.
ConsiderEverything
));
16739
Assert.True(property.TypeWithAnnotations.Equals(property.GetMethod.ReturnTypeWithAnnotations, TypeCompareKind.
ConsiderEverything
));
16740
Assert.True(property.TypeWithAnnotations.Equals(property.SetMethod.Parameters.Last().TypeWithAnnotations, TypeCompareKind.
ConsiderEverything
));
16824
Assert.True(property.TypeWithAnnotations.Equals(property.GetMethod.ReturnTypeWithAnnotations, TypeCompareKind.
ConsiderEverything
));
16825
Assert.True(property.TypeWithAnnotations.Equals(property.SetMethod.Parameters.Last().TypeWithAnnotations, TypeCompareKind.
ConsiderEverything
));
116004
Assert.False(cDefinition.Equals(c4, TypeCompareKind.
ConsiderEverything
));
116012
Assert.False(iDefinition.Equals(i4, TypeCompareKind.
ConsiderEverything
));
Semantics\OperatorTests.cs (1)
6934
OfType<MethodSymbol>().Single(m => m.ParameterTypesWithAnnotations[0].Equals(m.ParameterTypesWithAnnotations[1], TypeCompareKind.
ConsiderEverything
));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (31)
Symbols\CustomModifiersTests.cs (2)
2485
Assert.False(t1.Equals(t2, TypeCompareKind.
ConsiderEverything
));
2486
Assert.False(t2.Equals(t1, TypeCompareKind.
ConsiderEverything
));
Symbols\FunctionPointerTypeSymbolTests.cs (20)
915
Assert.False(ret1.Equals(ret2, TypeCompareKind.
ConsiderEverything
));
924
Assert.Equal(returnEquality == Equality.Equal, ret1.Equals(ret2, TypeCompareKind.
ConsiderEverything
));
935
TypeCompareKind.
ConsiderEverything
));
952
Assert.False(s1.Equals(s2, TypeCompareKind.
ConsiderEverything
));
959
Assert.Equal(eq == Equality.Equal, s1.Equals(s2, TypeCompareKind.
ConsiderEverything
));
984
TypeCompareKind.
ConsiderEverything
| TypeCompareKind.FunctionPointerRefOutInRefReadonlyMatch | TypeCompareKind.IgnoreCustomModifiersAndArraySizesAndLowerBounds);
1063
Assert.False(param1.Type.Equals(param2.Type, TypeCompareKind.
ConsiderEverything
));
1067
Assert.True(param1.Type.Equals(param2.Type, TypeCompareKind.
ConsiderEverything
));
2021
Assert.False(ptr1.NoRef.Equals(ptr2.ByRef, TypeCompareKind.
ConsiderEverything
));
2023
Assert.False(ptr1.ByRef.Equals(ptr2.NoRef, TypeCompareKind.
ConsiderEverything
));
2032
Assert.Equal(expectedFullEquality, ptr1.NoRef.Equals(ptr2.NoRef, TypeCompareKind.
ConsiderEverything
));
2033
Assert.Equal(expectedFullEquality, ptr1.ByRef.Equals(ptr2.ByRef, TypeCompareKind.
ConsiderEverything
));
2091
Assert.False(ptr1.NoRef.Equals(ptr2.ByRef, TypeCompareKind.
ConsiderEverything
));
2093
Assert.False(ptr1.ByRef.Equals(ptr2.NoRef, TypeCompareKind.
ConsiderEverything
));
2099
Assert.Equal(expectedFullEquality, ptr1.NoRef.Equals(ptr2.NoRef, TypeCompareKind.
ConsiderEverything
));
2100
Assert.Equal(expectedFullEquality, ptr1.ByRef.Equals(ptr2.ByRef, TypeCompareKind.
ConsiderEverything
));
2147
Assert.False(ptr1.NoRef.Equals(ptr2.ByRef, TypeCompareKind.
ConsiderEverything
));
2149
Assert.False(ptr1.ByRef.Equals(ptr2.NoRef, TypeCompareKind.
ConsiderEverything
));
2158
Assert.Equal(expectedTypeConventionEquality && !expectedRefConventionEquality, ptr1.NoRef.Equals(ptr2.NoRef, TypeCompareKind.
ConsiderEverything
));
2159
Assert.False(ptr1.ByRef.Equals(ptr2.ByRef, TypeCompareKind.
ConsiderEverything
));
Symbols\Source\RecordTests.cs (9)
139
Assert.True(c.Equals(ctor.Parameters[0].Type, TypeCompareKind.
ConsiderEverything
));
750
Assert.True(ctor.Parameters[0].Type.Equals(c, TypeCompareKind.
ConsiderEverything
));
803
Assert.True(ctor.Parameters[0].Type.Equals(c, TypeCompareKind.
ConsiderEverything
));
900
Assert.True(ctor.Parameters[0].Type.Equals(c, TypeCompareKind.
ConsiderEverything
));
1420
Assert.True(clone2.OverriddenMethod.Equals(clone, TypeCompareKind.
ConsiderEverything
));
1465
Assert.True(clone2.OverriddenMethod.Equals(clone, TypeCompareKind.
ConsiderEverything
));
1476
Assert.True(clone3.OverriddenMethod.Equals(clone2, TypeCompareKind.
ConsiderEverything
));
1487
Assert.True(clone4.OverriddenMethod.Equals(clone3, TypeCompareKind.
ConsiderEverything
));
1498
Assert.True(clone5.OverriddenMethod.Equals(clone4, TypeCompareKind.
ConsiderEverything
));
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\TypeSymbol.vb (1)
195
''' values are distinct interfaces corresponding to the key, according to <see cref="TypeCompareKind.
ConsiderEverything
"/> rules.