453 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 (309)
Binder\Binder.ValueChecks.cs (5)
992
TypeCompareKind.
ConsiderEverything
))
3487
Debug.Assert(thisParam.Type.Equals(((BoundThisReference)expr).Type, TypeCompareKind.
ConsiderEverything
));
3820
Debug.Assert(thisParam.Type.Equals(((BoundThisReference)expr).Type, TypeCompareKind.
ConsiderEverything
));
4171
Debug.Assert(thisParam.Type.Equals(((BoundThisReference)expr).Type, TypeCompareKind.
ConsiderEverything
));
4902
Debug.Assert(thisParam.Type.Equals(((BoundThisReference)expr).Type, TypeCompareKind.
ConsiderEverything
));
Binder\Binder_Await.cs (1)
262
Debug.Assert(TypeSymbol.Equals(expression.Type, getAwaiterArgument.Type, TypeCompareKind.
ConsiderEverything
));
Binder\Binder_Conversions.cs (12)
220
if (destination.Equals(type, TypeCompareKind.
ConsiderEverything
) && wasCompilerGenerated)
591
readonlySpanType.Equals(method.ReturnType.OriginalDefinition, TypeCompareKind.
ConsiderEverything
));
640
arg.source.Equals(parameter.Type.OriginalDefinition, TypeCompareKind.
ConsiderEverything
) &&
642
arg.destination.Equals(method.ReturnType.OriginalDefinition, TypeCompareKind.
ConsiderEverything
) &&
646
((NamedTypeSymbol)parameter.Type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].Type.Equals(typeArgument.Type, TypeCompareKind.
ConsiderEverything
) &&
648
((NamedTypeSymbol)method.ReturnType).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].Type.Equals(((NamedTypeSymbol)arg.destination).TypeParameters[0], TypeCompareKind.
ConsiderEverything
));
671
method.ReturnType.Equals(readOnlySpanType, TypeCompareKind.
ConsiderEverything
))
709
Debug.Assert(destination.Equals(Compilation.GetWellKnownType(WellKnownType.System_IFormattable), TypeCompareKind.
ConsiderEverything
) ||
710
destination.Equals(Compilation.GetWellKnownType(WellKnownType.System_FormattableString), TypeCompareKind.
ConsiderEverything
));
870
if (targetType.OriginalDefinition.Equals(Compilation.GetWellKnownType(WellKnownType.System_Collections_Immutable_ImmutableArray_T), TypeCompareKind.
ConsiderEverything
))
1948
Debug.Assert(targetTyped || destination.IsErrorType() || destination.Equals(source.Type, TypeCompareKind.
ConsiderEverything
));
1987
Debug.Assert(targetTyped || destination.IsErrorType() || destination.Equals(source.Type, TypeCompareKind.
ConsiderEverything
));
Binder\Binder_Expressions.cs (7)
1961
if (currentType.IsEqualToOrDerivedFrom(declaringType, TypeCompareKind.
ConsiderEverything
, useSiteInfo: ref discardedUseSiteInfo) ||
2308
if (currentType.IsEqualToOrDerivedFrom(declaringType, TypeCompareKind.
ConsiderEverything
, useSiteInfo: ref discardedUseSiteInfo) ||
2382
if ((object)hostObjectType != null && hostObjectType.IsEqualToOrDerivedFrom(memberDeclaringType, TypeCompareKind.
ConsiderEverything
, useSiteInfo: ref discardedUseSiteInfo))
6195
if (!memberSymbol.Equals(requiredMember, TypeCompareKind.
ConsiderEverything
))
9441
{ Code: (int)ErrorCode.ERR_BadIndexLHS, Arguments: [TypeSymbol type] } && type.Equals(expr.Type, TypeCompareKind.
ConsiderEverything
))
10294
TypeSymbol.Equals(argType, Compilation.GetWellKnownType(WellKnownType.System_Index), TypeCompareKind.
ConsiderEverything
) ? ThreeState.True :
10295
TypeSymbol.Equals(argType, Compilation.GetWellKnownType(WellKnownType.System_Range), TypeCompareKind.
ConsiderEverything
) ? ThreeState.False :
Binder\Binder_Invocation.cs (1)
1846
TypeSymbol.Equals(containingMethod.ContainingType, method.ContainingType, TypeCompareKind.
ConsiderEverything
) &&
Binder\Binder_Patterns.cs (2)
1498
memberSymbol.Equals(lengthProperty, TypeCompareKind.
ConsiderEverything
); // If Length and Count are both present, only the former is assumed to be non-negative.
1821
Debug.Assert(spoiler.Equals(bestSoFar, TypeCompareKind.
ConsiderEverything
));
Binder\Binder_Symbols.cs (4)
2080
Debug.Assert(!Symbol.Equals(originalSymbols[best.Index], originalSymbols[secondBest.Index], TypeCompareKind.
ConsiderEverything
) || options.IsAttributeTypeLookup(),
2083
Debug.Assert(!Symbol.Equals(first, second, TypeCompareKind.
ConsiderEverything
) || !Symbol.Equals(originalSymbols[best.Index], originalSymbols[secondBest.Index], TypeCompareKind.
ConsiderEverything
),
2239
!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)
75
(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)
2959
if (!candidate.Equals(candidate2, TypeCompareKind.
ConsiderEverything
) &&
3161
if (TypeSymbol.Equals(currentInterface.OriginalDefinition, target.OriginalDefinition, TypeCompareKind.
ConsiderEverything
))
3167
else if (!TypeSymbol.Equals(matchingInterface, currentInterface, TypeCompareKind.
ConsiderEverything
))
3393
type.SetUnknownNullabilityForReferenceTypes().Equals(type, TypeCompareKind.
ConsiderEverything
));
3426
var comparison = conversions.IncludeNullability ? TypeCompareKind.
ConsiderEverything
: TypeCompareKind.IgnoreNullableModifiersForReferenceTypes;
Binder\Semantics\OverloadResolution\OverloadResolution.cs (4)
1131
if (otherType.IsDerivedFrom(memberContainingType, TypeCompareKind.
ConsiderEverything
, useSiteInfo: ref useSiteInfo))
1386
checkOverrideContainingType && !moreDerivedOverride.ContainingType.IsDerivedFrom(member.ContainingType, TypeCompareKind.
ConsiderEverything
, ref useSiteInfo) ||
1443
if (HidesByName(otherMember) && otherContainingType.IsDerivedFrom(memberContainingType, TypeCompareKind.
ConsiderEverything
, useSiteInfo: ref useSiteInfo))
1653
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)
824
lambdaSymbol.ReturnTypeWithAnnotations.Equals(returnType, TypeCompareKind.
ConsiderEverything
))
1079
if (!other.ParameterTypes[i].Equals(this.ParameterTypes[i], TypeCompareKind.
ConsiderEverything
) ||
1440
=> 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)
2492
if (attributeLocation == newValue.AttributeLocation && interceptor.Equals(newValue.Interceptor, TypeCompareKind.
ConsiderEverything
))
4348
TypeSymbol.Equals(csharpLeftType, csharpRightType, TypeCompareKind.
ConsiderEverything
))
4361
TypeSymbol.Equals(csharpLeftType, csharpReturnType, TypeCompareKind.
ConsiderEverything
))
4382
TypeSymbol.Equals(csharpLeftType, csharpRightType, TypeCompareKind.
ConsiderEverything
))
4393
TypeSymbol.Equals(csharpLeftType, csharpRightType, TypeCompareKind.
ConsiderEverything
) &&
4394
TypeSymbol.Equals(csharpReturnType, csharpRightType, TypeCompareKind.
ConsiderEverything
))
4407
TypeSymbol.Equals(csharpLeftType, csharpReturnType, TypeCompareKind.
ConsiderEverything
))
4414
TypeSymbol.Equals(csharpRightType, csharpReturnType, TypeCompareKind.
ConsiderEverything
))
4423
TypeSymbol.Equals(csharpLeftType, csharpRightType, TypeCompareKind.
ConsiderEverything
))
4447
TypeSymbol.Equals(csharpLeftType, csharpReturnType, TypeCompareKind.
ConsiderEverything
))
4456
TypeSymbol.Equals(csharpRightType, csharpReturnType, TypeCompareKind.
ConsiderEverything
))
4465
TypeSymbol.Equals(csharpLeftType, csharpReturnType, TypeCompareKind.
ConsiderEverything
))
4474
TypeSymbol.Equals(csharpLeftType, csharpRightType, TypeCompareKind.
ConsiderEverything
))
4557
TypeSymbol.Equals(csharpOperandType, csharpReturnType, TypeCompareKind.
ConsiderEverything
))
4565
TypeSymbol.Equals(csharpOperandType, csharpReturnType, TypeCompareKind.
ConsiderEverything
))
FlowAnalysis\LocalDataFlowPass.cs (1)
172
while (!TypeSymbol.Equals(containingType, symbol.ContainingType, TypeCompareKind.
ConsiderEverything
))
FlowAnalysis\NullableWalker.cs (5)
130
Debug.Assert(TypeSymbol.Equals(RValueType.Type, LValueType.Type, TypeCompareKind.
ConsiderEverything
));
1944
lambdaIsExactMatch = updatedSymbol.Equals(boundLambda.Type!.GetDelegateType(), TypeCompareKind.
ConsiderEverything
);
1952
if (lambdaIsExactMatch || Symbol.Equals(originalSymbol, updatedSymbol, TypeCompareKind.
ConsiderEverything
))
3188
if (!node.Type.Equals(type.Type, TypeCompareKind.
ConsiderEverything
| TypeCompareKind.IgnoreNullableModifiersForReferenceTypes | TypeCompareKind.IgnoreDynamicAndTupleNames))
9454
if (explicitType?.Equals(targetTypeWithNullability, TypeCompareKind.
ConsiderEverything
) == true)
Generated\BoundNodes.xml.Generated.cs (171)
469
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
499
if (receiver != this.Receiver || localScopeDepth != this.LocalScopeDepth || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
540
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(variableSymbol, this.VariableSymbol) || isDiscardExpression != this.IsDiscardExpression || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
575
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
604
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
639
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
677
if (isNewInstance != this.IsNewInstance || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
712
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
750
if (isEquivalentToThisReference != this.IsEquivalentToThisReference || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
785
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
820
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
855
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
890
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
921
if (refKind != this.RefKind || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
949
if (expression != this.Expression || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
982
if (resultKind != this.ResultKind || symbols != this.Symbols || childBoundNodes != this.ChildBoundNodes || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
1073
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(aliasOpt, this.AliasOpt) || boundContainingTypeOpt != this.BoundContainingTypeOpt || boundDimensionsOpt != this.BoundDimensionsOpt || typeWithAnnotations != this.TypeWithAnnotations || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
1111
if (data != this.Data || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
1194
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
))
1242
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
))
1274
if (operand != this.Operand || isManaged != this.IsManaged || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
1346
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(targetMethod, this.TargetMethod) || !TypeSymbol.Equals(constrainedToTypeOpt, this.ConstrainedToTypeOpt, TypeCompareKind.
ConsiderEverything
) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
1378
if (operand != this.Operand || refersToLocation != this.RefersToLocation || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
1415
if (expression != this.Expression || index != this.Index || @checked != this.Checked || refersToLocation != this.RefersToLocation || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
1452
if (invokedExpression != this.InvokedExpression || arguments != this.Arguments || argumentRefKindsOpt != this.ArgumentRefKindsOpt || resultKind != this.ResultKind || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
1484
if (operand != this.Operand || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(getTypeFromHandle, this.GetTypeFromHandle) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
1514
if (operand != this.Operand || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
1546
if (nullableAnnotation != this.NullableAnnotation || operand != this.Operand || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
1578
if (operand != this.Operand || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(methodOpt, this.MethodOpt) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
1611
if (leftOperandOpt != this.LeftOperandOpt || rightOperandOpt != this.RightOperandOpt || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(methodOpt, this.MethodOpt) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
1664
if (operatorKind != this.OperatorKind || data != this.Data || resultKind != this.ResultKind || left != this.Left || right != this.Right || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
1702
if (left != this.Left || right != this.Right || operatorKind != this.OperatorKind || operators != this.Operators || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
1755
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
))
1802
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
))
1836
if (left != this.Left || right != this.Right || isRef != this.IsRef || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
1871
if (left != this.Left || right != this.Right || isUsed != this.IsUsed || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
1912
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
))
1943
if (leftOperand != this.LeftOperand || rightOperand != this.RightOperand || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
2026
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
))
2059
if (expression != this.Expression || indices != this.Indices || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
2118
if (expression != this.Expression || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
2186
if (expression != this.Expression || awaitableInfo != this.AwaitableInfo || debugInfo != this.DebugInfo || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
2239
if (sourceType != this.SourceType || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(getTypeFromHandle, this.GetTypeFromHandle) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
2315
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(method, this.Method) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
2358
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(local, this.Local) || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(hoistedField, this.HoistedField) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
2401
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(parameter, this.Parameter) || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(hoistedField, this.HoistedField) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
2436
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
2471
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
2509
if (analysisKind != this.AnalysisKind || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
2544
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
2579
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
2614
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
2649
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
2689
if (document != this.Document || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
2732
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(method, this.Method) || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(getMethodFromHandle, this.GetMethodFromHandle) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
2775
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(field, this.Field) || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(getFieldFromHandle, this.GetFieldFromHandle) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
2829
if (targetType != this.TargetType || constantValueOpt != this.ConstantValueOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
2864
if (operand != this.Operand || targetType != this.TargetType || conversionKind != this.ConversionKind || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
2901
if (operand != this.Operand || targetType != this.TargetType || operandPlaceholder != this.OperandPlaceholder || operandConversion != this.OperandConversion || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
2933
if (sourceType != this.SourceType || constantValueOpt != this.ConstantValueOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
2975
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
))
3008
if (operand != this.Operand || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(conversionMethod, this.ConversionMethod) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
3043
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
3074
if (arguments != this.Arguments || argumentRefKindsOpt != this.ArgumentRefKindsOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
3113
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
))
4280
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)
4311
if (constantValueOpt != this.ConstantValueOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
4351
if (value != this.Value || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
4386
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
4421
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
4456
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
4485
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
4534
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(localSymbol, this.LocalSymbol) || declarationKind != this.DeclarationKind || constantValueOpt != this.ConstantValueOpt || isNullableUnknown != this.IsNullableUnknown || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
4579
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(localSymbol, this.LocalSymbol) || emitExpressions != this.EmitExpressions || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
4612
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(rangeVariableSymbol, this.RangeVariableSymbol) || value != this.Value || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
4652
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(parameterSymbol, this.ParameterSymbol) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
4789
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(label, this.Label) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
4950
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
))
4984
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
))
5209
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
) || source != this.Source || index != this.Index)
5238
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
) || input != this.Input)
5422
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
) || input != this.Input)
5560
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)
5609
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)
5745
if (expression != this.Expression || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
5781
if (locals != this.Locals || sideEffects != this.SideEffects || value != this.Value || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
5817
if (locals != this.Locals || sideEffects != this.SideEffects || value != this.Value || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
5856
if (receiver != this.Receiver || typeArgumentsOpt != this.TypeArgumentsOpt || name != this.Name || invoked != this.Invoked || indexed != this.Indexed || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
5909
if (argumentNamesOpt != this.ArgumentNamesOpt || argumentRefKindsOpt != this.ArgumentRefKindsOpt || applicableMethods != this.ApplicableMethods || expression != this.Expression || arguments != this.Arguments || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
5942
if (receiver != this.Receiver || accessExpression != this.AccessExpression || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
5983
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
))
6021
if (id != this.Id || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
6054
if (valueTypeReceiver != this.ValueTypeReceiver || referenceTypeReceiver != this.ReferenceTypeReceiver || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
6178
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
))
6217
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
))
6262
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
))
6372
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
))
6458
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
))
6486
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
6571
if (arguments != this.Arguments || argumentNamesOpt != this.ArgumentNamesOpt || inferredNamesOpt != this.InferredNamesOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
6601
if (sourceTuple != this.SourceTuple || wasTargetTyped != this.WasTargetTyped || arguments != this.Arguments || argumentNamesOpt != this.ArgumentNamesOpt || inferredNamesOpt != this.InferredNamesOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
6644
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
))
6676
if (guidString != this.GuidString || initializerExpressionOpt != this.InitializerExpressionOpt || wasTargetTyped != this.WasTargetTyped || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
6723
if (placeholder != this.Placeholder || initializers != this.Initializers || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
6772
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
))
6817
if (memberName != this.MemberName || !TypeSymbol.Equals(receiverType, this.ReceiverType, TypeCompareKind.
ConsiderEverything
) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
6845
if (placeholder != this.Placeholder || initializers != this.Initializers || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
6890
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
))
6922
if (applicableMethods != this.ApplicableMethods || expression != this.Expression || arguments != this.Arguments || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
6957
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
6993
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(constructor, this.Constructor) || arguments != this.Arguments || declarations != this.Declarations || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
7033
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(property, this.Property) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
7063
if (initializerExpressionOpt != this.InitializerExpressionOpt || wasTargetTyped != this.WasTargetTyped || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
7099
if (argument != this.Argument || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(methodOpt, this.MethodOpt) || isExtensionMethod != this.IsExtensionMethod || wasTargetTyped != this.WasTargetTyped || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
7131
if (bounds != this.Bounds || initializerOpt != this.InitializerOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
7208
if (!TypeSymbol.Equals(elementType, this.ElementType, TypeCompareKind.
ConsiderEverything
) || count != this.Count || initializerOpt != this.InitializerOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
7237
if (!TypeSymbol.Equals(elementType, this.ElementType, TypeCompareKind.
ConsiderEverything
) || count != this.Count || initializerOpt != this.InitializerOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
7277
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
))
7317
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(fieldSymbol, this.FieldSymbol) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
7355
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
))
7391
if (receiverOpt != this.ReceiverOpt || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(eventSymbol, this.EventSymbol) || isUsableAsField != this.IsUsableAsField || resultKind != this.ResultKind || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
7442
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
))
7491
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
))
7532
if (expression != this.Expression || argument != this.Argument || isValue != this.IsValue || getItemOrSliceHelper != this.GetItemOrSliceHelper || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
7572
if (receiver != this.Receiver || arguments != this.Arguments || argumentNamesOpt != this.ArgumentNamesOpt || argumentRefKindsOpt != this.ArgumentRefKindsOpt || applicableIndexers != this.ApplicableIndexers || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
7612
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
))
7697
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
))
7756
if (argument != this.Argument || constantValueOpt != this.ConstantValueOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
7798
if (parts != this.Parts || constantValueOpt != this.ConstantValueOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
7826
if (!interpolationData.Equals(this.InterpolationData) || parts != this.Parts || constantValueOpt != this.ConstantValueOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
7854
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
7892
if (argumentIndex != this.ArgumentIndex || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
7969
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
))
8034
if (value != this.Value || constantValue != this.ConstantValue || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.
ConsiderEverything
) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.
ConsiderEverything
))
8074
if (!TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.
ConsiderEverything
) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.
ConsiderEverything
))
8127
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
))
8168
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
))
8212
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
))
8251
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
))
8291
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
))
8395
if (receiver != this.Receiver || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(symbol, this.Symbol) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
8431
if (declaredType != this.DeclaredType || isExplicitNotNullTest != this.IsExplicitNotNullTest || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.
ConsiderEverything
) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.
ConsiderEverything
))
8470
if (disjunction != this.Disjunction || left != this.Left || right != this.Right || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.
ConsiderEverything
) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.
ConsiderEverything
))
8504
if (negated != this.Negated || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.
ConsiderEverything
) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.
ConsiderEverything
))
8543
if (relation != this.Relation || value != this.Value || constantValue != this.ConstantValue || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.
ConsiderEverything
) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.
ConsiderEverything
))
8578
if (nullableAnnotation != this.NullableAnnotation || isInferred != this.IsInferred || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
8606
if (expression != this.Expression || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
8807
if (expression != this.Expression || nullableAnnotation != this.NullableAnnotation || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.
ConsiderEverything
))
8842
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)
194
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)
838
TypeCompareKind.
ConsiderEverything
))
Lowering\LocalRewriter\LocalRewriter_AsOperator.cs (1)
88
Debug.Assert(result.Type!.Equals(rewrittenType, TypeCompareKind.
ConsiderEverything
));
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (4)
874
if ((!writableOnly && namedType.OriginalDefinition.Equals(_compilation.GetWellKnownType(WellKnownType.System_ReadOnlySpan_T), TypeCompareKind.
ConsiderEverything
))
875
|| namedType.OriginalDefinition.Equals(_compilation.GetWellKnownType(WellKnownType.System_Span_T), TypeCompareKind.
ConsiderEverything
))
882
&& namedType.OriginalDefinition.Equals(_compilation.GetWellKnownType(WellKnownType.System_Collections_Immutable_ImmutableArray_T), TypeCompareKind.
ConsiderEverything
)
889
if (namedType.OriginalDefinition.Equals(_compilation.GetWellKnownType(WellKnownType.System_Collections_Generic_List_T), TypeCompareKind.
ConsiderEverything
)
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (1)
487
TypeCompareKind.
ConsiderEverything
))
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (1)
331
if (_inExpressionLambda || !rewrittenOperand.Type.Equals(rewrittenType, TypeCompareKind.
ConsiderEverything
))
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (7)
120
Debug.Assert(oldNode.Type.Equals(type, TypeCompareKind.
ConsiderEverything
));
438
TypeCompareKind.
ConsiderEverything
))
447
TypeCompareKind.
ConsiderEverything
));
485
TypeCompareKind.
ConsiderEverything
));
679
TypeCompareKind.
ConsiderEverything
));
712
TypeCompareKind.
ConsiderEverything
));
777
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)
973
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)
229
return type.Equals(wkType, TypeCompareKind.
ConsiderEverything
) || type.IsDerivedFrom(wkType, TypeCompareKind.
ConsiderEverything
, useSiteInfo: ref useSiteInfo);
Symbols\ConstraintsHelper.cs (1)
1596
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)
1677
while (Equals(typeToCheck.OriginalDefinition, this.OriginalDefinition, TypeCompareKind.
ConsiderEverything
) && !typeToCheck.IsDefinition);
Symbols\NativeIntegerTypeSymbol.cs (2)
272
Debug.Assert(!symbolA.Equals(symbolB, TypeCompareKind.
ConsiderEverything
));
273
Debug.Assert(!symbolB.Equals(symbolA, TypeCompareKind.
ConsiderEverything
));
Symbols\PublicModel\NamedTypeSymbol.cs (1)
177
return type.Equals(tupleUnderlyingType, TypeCompareKind.
ConsiderEverything
) ?
Symbols\Source\LocalFunctionOrSourceMemberMethodSymbol.cs (1)
38
Debug.Assert(TypeSymbol.Equals(_lazyIteratorElementType.Value.Type, elementType.Type, TypeCompareKind.
ConsiderEverything
));
Symbols\Source\SourceLocalSymbol.cs (1)
398
originalType.Value.TypeSymbolEquals(newType, TypeCompareKind.
ConsiderEverything
));
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
256
(!implementingMember.ContainingType.Equals(this, TypeCompareKind.
ConsiderEverything
) &&
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
1443
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)
553
if (t.Equals(baseType, TypeCompareKind.
ConsiderEverything
))
Symbols\SubstitutedMethodSymbol.cs (1)
421
TypeCompareKind.
ConsiderEverything
))
Symbols\SymbolEqualityComparer.cs (1)
14
internal static readonly EqualityComparer<Symbol> ConsiderEverything = new SymbolEqualityComparer(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)
660
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.
1255
if (implementingAccessor2 is object && !implementingInterface.Equals(implementingAccessor2.ContainingType, TypeCompareKind.
ConsiderEverything
))
1400
if (!containingType.Equals(interfaceType, TypeCompareKind.
ConsiderEverything
))
Symbols\TypeSymbolExtensions.cs (1)
1622
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
));
7693
Assert.False(funcPtr.Equals(funcPtrWithTestOnReturn, TypeCompareKind.
ConsiderEverything
));
7695
Assert.False(funcPtrRef.Equals(funcPtrWithTestOnRef, TypeCompareKind.
ConsiderEverything
));
7778
Assert.False(funcPtr.Equals(funcPtrWithTestOnReturn, TypeCompareKind.
ConsiderEverything
));
7780
Assert.False(funcPtrRef.Equals(funcPtrWithTestOnRef, TypeCompareKind.
ConsiderEverything
));
10520
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
));
28842
Assert.True(tuple2.TupleUnderlyingType.Equals(tuple1, TypeCompareKind.
ConsiderEverything
));
28873
Assert.True(tuple3.TupleUnderlyingType.Equals(tuple1, TypeCompareKind.
ConsiderEverything
));
28916
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)
741
Assert.True(c.Equals(ctor.Parameters[0].Type, TypeCompareKind.
ConsiderEverything
));
Semantics\RecordTests.cs (1)
12559
Assert.True(method.OverriddenMethod.Parameters[0].TypeWithAnnotations.Equals(parameterType, TypeCompareKind.
ConsiderEverything
));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (32)
Semantics\DelegateTypeTests.cs (3)
15716
Assert.False(functionTypeStringNotNullable.Equals(functionTypeStringNullable, TypeCompareKind.
ConsiderEverything
));
15719
Assert.True(functionTypeNullA.Equals(functionTypeNullA, TypeCompareKind.
ConsiderEverything
));
15720
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)
12347
Assert.True(ev.TypeWithAnnotations.Equals(ev.AddMethod.Parameters.Last().TypeWithAnnotations, TypeCompareKind.
ConsiderEverything
));
12348
Assert.True(ev.TypeWithAnnotations.Equals(ev.RemoveMethod.Parameters.Last().TypeWithAnnotations, TypeCompareKind.
ConsiderEverything
));
12428
Assert.Equal(expectMatch, member.ReturnTypeWithAnnotations.Equals(member.OverriddenMethod.ReturnTypeWithAnnotations, TypeCompareKind.
ConsiderEverything
));
12429
Assert.Equal(expectMatch, member.Parameters.Single().TypeWithAnnotations.Equals(member.OverriddenMethod.Parameters.Single().TypeWithAnnotations, TypeCompareKind.
ConsiderEverything
));
12715
Assert.True(ev.TypeWithAnnotations.Equals(ev.AddMethod.Parameters.Last().TypeWithAnnotations, TypeCompareKind.
ConsiderEverything
));
12716
Assert.True(ev.TypeWithAnnotations.Equals(ev.RemoveMethod.Parameters.Last().TypeWithAnnotations, TypeCompareKind.
ConsiderEverything
));
12803
Assert.True(ev.TypeWithAnnotations.Equals(ev.AddMethod.Parameters.Last().TypeWithAnnotations, TypeCompareKind.
ConsiderEverything
));
12804
Assert.True(ev.TypeWithAnnotations.Equals(ev.RemoveMethod.Parameters.Last().TypeWithAnnotations, TypeCompareKind.
ConsiderEverything
));
12899
Assert.True(property.TypeWithAnnotations.Equals(property.GetMethod.ReturnTypeWithAnnotations, TypeCompareKind.
ConsiderEverything
));
12900
Assert.True(property.TypeWithAnnotations.Equals(property.SetMethod.Parameters.Last().TypeWithAnnotations, TypeCompareKind.
ConsiderEverything
));
13051
Assert.True(property.TypeWithAnnotations.Equals(property.GetMethod.ReturnTypeWithAnnotations, TypeCompareKind.
ConsiderEverything
));
13052
Assert.True(property.TypeWithAnnotations.Equals(property.SetMethod.Parameters.Last().TypeWithAnnotations, TypeCompareKind.
ConsiderEverything
));
13142
Assert.True(property.TypeWithAnnotations.Equals(property.GetMethod.ReturnTypeWithAnnotations, TypeCompareKind.
ConsiderEverything
));
13143
Assert.True(property.TypeWithAnnotations.Equals(property.SetMethod.Parameters.Last().TypeWithAnnotations, TypeCompareKind.
ConsiderEverything
));
16650
Assert.True(property.TypeWithAnnotations.Equals(property.GetMethod.ReturnTypeWithAnnotations, TypeCompareKind.
ConsiderEverything
));
16651
Assert.True(property.TypeWithAnnotations.Equals(property.SetMethod.Parameters.Last().TypeWithAnnotations, TypeCompareKind.
ConsiderEverything
));
16735
Assert.True(property.TypeWithAnnotations.Equals(property.GetMethod.ReturnTypeWithAnnotations, TypeCompareKind.
ConsiderEverything
));
16736
Assert.True(property.TypeWithAnnotations.Equals(property.SetMethod.Parameters.Last().TypeWithAnnotations, TypeCompareKind.
ConsiderEverything
));
16820
Assert.True(property.TypeWithAnnotations.Equals(property.GetMethod.ReturnTypeWithAnnotations, TypeCompareKind.
ConsiderEverything
));
16821
Assert.True(property.TypeWithAnnotations.Equals(property.SetMethod.Parameters.Last().TypeWithAnnotations, TypeCompareKind.
ConsiderEverything
));
115923
Assert.False(cDefinition.Equals(c4, TypeCompareKind.
ConsiderEverything
));
115931
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.FunctionPointerRefMatchesOutInRefReadonly | TypeCompareKind.IgnoreCustomModifiersAndArraySizesAndLowerBounds);
1063
Assert.False(param1.Type.Equals(param2.Type, TypeCompareKind.
ConsiderEverything
));
1067
Assert.True(param1.Type.Equals(param2.Type, TypeCompareKind.
ConsiderEverything
));
2029
Assert.False(ptr1.NoRef.Equals(ptr2.ByRef, TypeCompareKind.
ConsiderEverything
));
2031
Assert.False(ptr1.ByRef.Equals(ptr2.NoRef, TypeCompareKind.
ConsiderEverything
));
2040
Assert.Equal(expectedFullEquality, ptr1.NoRef.Equals(ptr2.NoRef, TypeCompareKind.
ConsiderEverything
));
2041
Assert.Equal(expectedFullEquality, ptr1.ByRef.Equals(ptr2.ByRef, TypeCompareKind.
ConsiderEverything
));
2099
Assert.False(ptr1.NoRef.Equals(ptr2.ByRef, TypeCompareKind.
ConsiderEverything
));
2101
Assert.False(ptr1.ByRef.Equals(ptr2.NoRef, TypeCompareKind.
ConsiderEverything
));
2107
Assert.Equal(expectedFullEquality, ptr1.NoRef.Equals(ptr2.NoRef, TypeCompareKind.
ConsiderEverything
));
2108
Assert.Equal(expectedFullEquality, ptr1.ByRef.Equals(ptr2.ByRef, TypeCompareKind.
ConsiderEverything
));
2155
Assert.False(ptr1.NoRef.Equals(ptr2.ByRef, TypeCompareKind.
ConsiderEverything
));
2157
Assert.False(ptr1.ByRef.Equals(ptr2.NoRef, TypeCompareKind.
ConsiderEverything
));
2166
Assert.Equal(expectedTypeConventionEquality && !expectedRefConventionEquality, ptr1.NoRef.Equals(ptr2.NoRef, TypeCompareKind.
ConsiderEverything
));
2167
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
));
1444
Assert.True(clone2.OverriddenMethod.Equals(clone, TypeCompareKind.
ConsiderEverything
));
1489
Assert.True(clone2.OverriddenMethod.Equals(clone, TypeCompareKind.
ConsiderEverything
));
1500
Assert.True(clone3.OverriddenMethod.Equals(clone2, TypeCompareKind.
ConsiderEverything
));
1511
Assert.True(clone4.OverriddenMethod.Equals(clone3, TypeCompareKind.
ConsiderEverything
));
1522
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.