614 references to Default
Aspire.Hosting.Analyzers (6)
ConfigurationSchemaGenerator (46)
RuntimeSource\Configuration.Binder\ConfigurationBindingGenerator.Parser.cs (29)
26private readonly Dictionary<ITypeSymbol, TypeSpec> _createdTypeSpecs = new(SymbolEqualityComparer.Default);
88if (SymbolEqualityComparer.Default.Equals(candidateBinderType, _typeSymbols.ConfigurationBinder))
92else if (SymbolEqualityComparer.Default.Equals(candidateBinderType, _typeSymbols.OptionsBuilderConfigurationExtensions))
96else if (SymbolEqualityComparer.Default.Equals(candidateBinderType, _typeSymbols.OptionsConfigurationServiceCollectionExtensions))
201else if (SymbolEqualityComparer.Default.Equals(type, _typeSymbols.IConfigurationSection))
295if (SymbolEqualityComparer.Default.Equals(type, _typeSymbols.CultureInfo))
299else if (SymbolEqualityComparer.Default.Equals(type, _typeSymbols.DateTimeOffset) ||
300SymbolEqualityComparer.Default.Equals(type, _typeSymbols.DateOnly) ||
301SymbolEqualityComparer.Default.Equals(type, _typeSymbols.TimeOnly) ||
302SymbolEqualityComparer.Default.Equals(type, _typeSymbols.TimeSpan))
306else if (SymbolEqualityComparer.Default.Equals(type, _typeSymbols.Int128) ||
307SymbolEqualityComparer.Default.Equals(type, _typeSymbols.Half) ||
308SymbolEqualityComparer.Default.Equals(type, _typeSymbols.UInt128))
312else if (SymbolEqualityComparer.Default.Equals(type, _typeSymbols.Uri))
316else if (SymbolEqualityComparer.Default.Equals(type, _typeSymbols.Version) ||
317SymbolEqualityComparer.Default.Equals(type, _typeSymbols.Guid))
547if (SymbolEqualityComparer.Default.Equals(_typeSymbols.IntPtr, type) ||
548SymbolEqualityComparer.Default.Equals(_typeSymbols.UIntPtr, type) ||
549SymbolEqualityComparer.Default.Equals(_typeSymbols.SerializationInfo, type) ||
550SymbolEqualityComparer.Default.Equals(_typeSymbols.ParameterInfo, type) ||
674AttributeData? attributeData = property.GetAttributes().FirstOrDefault(a => SymbolEqualityComparer.Default.Equals(a.AttributeClass, _typeSymbols.ConfigurationKeyNameAttribute));
810&& SymbolEqualityComparer.Default.Equals(unbound, @interface));
813return type.AllInterfaces.FirstOrDefault(candidate => SymbolEqualityComparer.Default.Equals(candidate, @interface));
826return SymbolEqualityComparer.Default.Equals(unbound, @interface);
829return SymbolEqualityComparer.Default.Equals(type, @interface);
861SymbolEqualityComparer.Default.Equals(element, method.Parameters[0].Type)))
877SymbolEqualityComparer.Default.Equals(key, method.Parameters[0].Type) &&
878SymbolEqualityComparer.Default.Equals(element, method.Parameters[1].Type)))
963&& secondParam.Name == "paramName" && secondParam.Type.Equals(_typeSymbols.String, SymbolEqualityComparer.Default))
ILLink.RoslynAnalyzer (24)
Microsoft.Analyzers.Extra (34)
Microsoft.Analyzers.Local (14)
Microsoft.AspNetCore.Analyzers (7)
Microsoft.AspNetCore.App.Analyzers (68)
Authorization\AddAuthorizationBuilderAnalyzer.cs (13)
57if (SymbolEqualityComparer.Default.Equals(invocation.TargetMethod, addAuthorizationMethod)
58&& SymbolEqualityComparer.Default.Equals(invocation.TargetMethod.ContainingType, policyServiceCollectionExtensions)
148&& SymbolEqualityComparer.Default.Equals(propertyReferenceContainingType, authorizationOptionsTypes.AuthorizationOptions))
154&& SymbolEqualityComparer.Default.Equals(invokedMethodContainingType, authorizationOptionsTypes.AuthorizationOptions))
180&& SymbolEqualityComparer.Default.Equals(property, targetProperty.Property))
185&& SymbolEqualityComparer.Default.Equals(property, valueProperty.Property))
193if (SymbolEqualityComparer.Default.Equals(property, authorizationOptionsTypes.DefaultPolicy)
194|| SymbolEqualityComparer.Default.Equals(property, authorizationOptionsTypes.FallbackPolicy)
195|| SymbolEqualityComparer.Default.Equals(property, authorizationOptionsTypes.InvokeHandlersAfterFailure))
207&& SymbolEqualityComparer.Default.Equals(methodReferenceOperation.Member, authorizationOptionsTypes.GetPolicy)
208&& SymbolEqualityComparer.Default.Equals(methodReferenceOperation.Member.ContainingType, authorizationOptionsTypes.AuthorizationOptions))
214&& SymbolEqualityComparer.Default.Equals(invocationOperation.TargetMethod, authorizationOptionsTypes.GetPolicy)
215&& SymbolEqualityComparer.Default.Equals(invocationOperation.TargetMethod.ContainingType, authorizationOptionsTypes.AuthorizationOptions))
RouteHandlers\DetectAmbiguousRoutes.cs (12)
97if (SymbolEqualityComparer.Default.Equals(method.ContainingType, wellKnownTypes.Get(WellKnownType.Microsoft_AspNetCore_Builder_RoutingEndpointConventionBuilderExtensions)))
109else if (SymbolEqualityComparer.Default.Equals(method.ContainingType, wellKnownTypes.Get(WellKnownType.Microsoft_AspNetCore_Builder_AuthorizationEndpointConventionBuilderExtensions)))
113else if (SymbolEqualityComparer.Default.Equals(method.ContainingType, wellKnownTypes.Get(WellKnownType.Microsoft_AspNetCore_Http_OpenApiRouteHandlerBuilderExtensions)))
128else if (SymbolEqualityComparer.Default.Equals(method.ContainingType, wellKnownTypes.Get(WellKnownType.Microsoft_AspNetCore_Builder_CorsEndpointConventionBuilderExtensions)))
132else if (SymbolEqualityComparer.Default.Equals(method.ContainingType, wellKnownTypes.Get(WellKnownType.Microsoft_Extensions_DependencyInjection_OutputCacheConventionBuilderExtensions)))
136else if (SymbolEqualityComparer.Default.Equals(method.ContainingType, wellKnownTypes.Get(WellKnownType.Microsoft_AspNetCore_Builder_RateLimiterEndpointConventionBuilderExtensions)))
185return SymbolEqualityComparer.Default.Equals(local.Local, otherLocal.Local);
191return SymbolEqualityComparer.Default.Equals(parameter.Parameter, otherParameter.Parameter);
198SymbolEqualityComparer.Default.Equals(invocation.TargetMethod, otherInvocation.TargetMethod) &&
244if (!SymbolEqualityComparer.Default.Equals(local.Local, otherLocal.Local))
251if (!SymbolEqualityComparer.Default.Equals(parameter.Parameter, otherParameter.Parameter))
275if (SymbolEqualityComparer.Default.Equals(arguments[i].Parameter, parameter))
src\Shared\RoslynUtils\ParsabilityHelper.cs (12)
33if (SymbolEqualityComparer.Default.Equals(typeSymbol, wellKnownTypes.Get(WellKnownType.System_Uri)))
111SymbolEqualityComparer.Default.Equals(methodSymbol.Parameters[1].Type, wellKnownTypes.Get(WellKnownType.System_IFormatProvider)) &&
119i => SymbolEqualityComparer.Default.Equals(i.ConstructedFrom, iParsableTypeSymbol)
128i => SymbolEqualityComparer.Default.Equals(i.ConstructedFrom, iBindableFromHttpContextTypeSymbol)
131SymbolEqualityComparer.Default.Equals(constructedTypeSymbol.TypeArguments[0].UnwrapTypeSymbol(unwrapNullable: true), typeSymbol);
139SymbolEqualityComparer.Default.Equals(methodSymbol.Parameters[0].Type, wellKnownTypes.Get(WellKnownType.Microsoft_AspNetCore_Http_HttpContext)) &&
141SymbolEqualityComparer.Default.Equals(returnType.ConstructedFrom, wellKnownTypes.Get(WellKnownType.System_Threading_Tasks_ValueTask_T)) &&
142SymbolEqualityComparer.Default.Equals(returnType.TypeArguments[0], typeSymbol);
150SymbolEqualityComparer.Default.Equals(methodSymbol.Parameters[0].Type, wellKnownTypes.Get(WellKnownType.Microsoft_AspNetCore_Http_HttpContext)) &&
151SymbolEqualityComparer.Default.Equals(methodSymbol.Parameters[1].Type, wellKnownTypes.Get(WellKnownType.System_Reflection_ParameterInfo)) &&
158return SymbolEqualityComparer.Default.Equals(returnType.ConstructedFrom, wellKnownTypes.Get(WellKnownType.System_Threading_Tasks_ValueTask_T)) &&
159SymbolEqualityComparer.Default.Equals(returnType.TypeArguments[0].UnwrapTypeSymbol(unwrapNullable: true), containingType);
Microsoft.AspNetCore.App.CodeFixes (3)
Microsoft.AspNetCore.Components.Analyzers (8)
Microsoft.AspNetCore.Components.SdkAnalyzers (7)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (50)
src\Shared\RoslynUtils\ParsabilityHelper.cs (12)
33if (SymbolEqualityComparer.Default.Equals(typeSymbol, wellKnownTypes.Get(WellKnownType.System_Uri)))
111SymbolEqualityComparer.Default.Equals(methodSymbol.Parameters[1].Type, wellKnownTypes.Get(WellKnownType.System_IFormatProvider)) &&
119i => SymbolEqualityComparer.Default.Equals(i.ConstructedFrom, iParsableTypeSymbol)
128i => SymbolEqualityComparer.Default.Equals(i.ConstructedFrom, iBindableFromHttpContextTypeSymbol)
131SymbolEqualityComparer.Default.Equals(constructedTypeSymbol.TypeArguments[0].UnwrapTypeSymbol(unwrapNullable: true), typeSymbol);
139SymbolEqualityComparer.Default.Equals(methodSymbol.Parameters[0].Type, wellKnownTypes.Get(WellKnownType.Microsoft_AspNetCore_Http_HttpContext)) &&
141SymbolEqualityComparer.Default.Equals(returnType.ConstructedFrom, wellKnownTypes.Get(WellKnownType.System_Threading_Tasks_ValueTask_T)) &&
142SymbolEqualityComparer.Default.Equals(returnType.TypeArguments[0], typeSymbol);
150SymbolEqualityComparer.Default.Equals(methodSymbol.Parameters[0].Type, wellKnownTypes.Get(WellKnownType.Microsoft_AspNetCore_Http_HttpContext)) &&
151SymbolEqualityComparer.Default.Equals(methodSymbol.Parameters[1].Type, wellKnownTypes.Get(WellKnownType.System_Reflection_ParameterInfo)) &&
158return SymbolEqualityComparer.Default.Equals(returnType.ConstructedFrom, wellKnownTypes.Get(WellKnownType.System_Threading_Tasks_ValueTask_T)) &&
159SymbolEqualityComparer.Default.Equals(returnType.TypeArguments[0].UnwrapTypeSymbol(unwrapNullable: true), containingType);
StaticRouteHandlerModel\EndpointParameter.cs (19)
95if (SymbolEqualityComparer.Default.Equals(Type, wellKnownTypes.Get(WellKnownType.Microsoft_AspNetCore_Http_IFormFileCollection)))
100else if (SymbolEqualityComparer.Default.Equals(Type, wellKnownTypes.Get(WellKnownType.Microsoft_AspNetCore_Http_IFormFile)))
105else if (SymbolEqualityComparer.Default.Equals(Type, wellKnownTypes.Get(WellKnownType.Microsoft_AspNetCore_Http_IFormCollection)))
129if (SymbolEqualityComparer.Default.Equals(Type, wellKnownTypes.Get(WellKnownType.System_IO_Stream)))
134else if (SymbolEqualityComparer.Default.Equals(Type, wellKnownTypes.Get(WellKnownType.System_IO_Pipelines_PipeReader)))
196else if (SymbolEqualityComparer.Default.Equals(Type, wellKnownTypes.Get(WellKnownType.Microsoft_AspNetCore_Http_IFormFileCollection)))
203else if (SymbolEqualityComparer.Default.Equals(Type, wellKnownTypes.Get(WellKnownType.Microsoft_AspNetCore_Http_IFormFile)))
210else if (SymbolEqualityComparer.Default.Equals(Type, wellKnownTypes.Get(WellKnownType.Microsoft_AspNetCore_Http_IFormCollection)))
234else if (SymbolEqualityComparer.Default.Equals(Type, wellKnownTypes.Get(WellKnownType.Microsoft_Extensions_Primitives_StringValues)))
260=> SymbolEqualityComparer.Default.Equals(Type, wellKnownTypes.Get(WellKnownType.Microsoft_Extensions_Primitives_StringValues))
361else if (SymbolEqualityComparer.Default.Equals(parameterType, wellKnownTypes.Get(WellKnownType.System_DateTimeOffset)))
365else if (SymbolEqualityComparer.Default.Equals(parameterType, wellKnownTypes.Get(WellKnownType.System_DateOnly)))
383if (SymbolEqualityComparer.Default.Equals(type, wellKnownTypes.Get(WellKnownType.Microsoft_AspNetCore_Http_HttpContext)))
388if (SymbolEqualityComparer.Default.Equals(type, wellKnownTypes.Get(WellKnownType.Microsoft_AspNetCore_Http_HttpRequest)))
393if (SymbolEqualityComparer.Default.Equals(type, wellKnownTypes.Get(WellKnownType.Microsoft_AspNetCore_Http_HttpResponse)))
398if (SymbolEqualityComparer.Default.Equals(type, wellKnownTypes.Get(WellKnownType.System_IO_Pipelines_PipeReader)))
403if (SymbolEqualityComparer.Default.Equals(type, wellKnownTypes.Get(WellKnownType.System_IO_Stream)))
408if (SymbolEqualityComparer.Default.Equals(type, wellKnownTypes.Get(WellKnownType.System_Security_Claims_ClaimsPrincipal)))
413if (SymbolEqualityComparer.Default.Equals(type, wellKnownTypes.Get(WellKnownType.System_Threading_CancellationToken)))
StaticRouteHandlerModel\EndpointResponse.cs (9)
53if (returnType.OriginalDefinition.Equals(taskOfT, SymbolEqualityComparer.Default) ||
54returnType.OriginalDefinition.Equals(valueTaskOfT, SymbolEqualityComparer.Default))
61if (returnType.OriginalDefinition.Equals(task, SymbolEqualityComparer.Default) ||
62returnType.OriginalDefinition.Equals(valueTask, SymbolEqualityComparer.Default))
83SymbolEqualityComparer.Default.Equals(ResponseType, resultType);
104SymbolEqualityComparer.Default.Equals(otherEndpointResponse.ResponseType, ResponseType) &&
105SymbolEqualityComparer.Default.Equals(otherEndpointResponse.WrappedResponseType, WrappedResponseType) &&
114HashCode.Combine(SymbolEqualityComparer.Default.GetHashCode(ResponseType), SymbolEqualityComparer.Default.GetHashCode(WrappedResponseType), WrappedResponseTypeDisplayName, IsAwaitable, HasNoResponse, IsIResult, ContentType);
Microsoft.AspNetCore.Mvc.Analyzers (9)
Microsoft.AspNetCore.Mvc.Api.Analyzers (12)
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (3)
Microsoft.CodeAnalysis (1)
Microsoft.CodeAnalysis.CodeStyle (11)
Microsoft.CodeAnalysis.CodeStyle.Fixes (6)
Microsoft.CodeAnalysis.CSharp (5)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Features (4)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (14)
Semantics\NullableReferenceTypesTests.cs (13)
115898Assert.True(c.Equals(c2, SymbolEqualityComparer.Default.CompareKind));
157589Assert.True(field2.Equals(field3, SymbolEqualityComparer.Default));
157591Assert.True(field3.Equals(field2, SymbolEqualityComparer.Default));
157595Assert.True(field1.Equals(field2, SymbolEqualityComparer.Default));
157597Assert.True(field2.Equals(field1, SymbolEqualityComparer.Default));
157601Assert.True(field1.Equals(field3, SymbolEqualityComparer.Default));
157603Assert.True(field3.Equals(field1, SymbolEqualityComparer.Default));
157641Assert.False(method2.Equals(method3, SymbolEqualityComparer.Default));
157643Assert.False(method3.Equals(method2, SymbolEqualityComparer.Default));
157647Assert.False(method1.Equals(method2, SymbolEqualityComparer.Default));
157649Assert.False(method2.Equals(method1, SymbolEqualityComparer.Default));
157653Assert.True(method1.Equals(method3, SymbolEqualityComparer.Default));
157655Assert.True(method3.Equals(method1, SymbolEqualityComparer.Default));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (15)
Symbols\SymbolEqualityTests.cs (14)
380Assert.False(SymbolEqualityComparer.Default.Equals(symbol1, symbol2));
381Assert.False(SymbolEqualityComparer.Default.Equals(symbol2, symbol1));
382Assert.NotEqual(SymbolEqualityComparer.Default.GetHashCode(symbol1), SymbolEqualityComparer.Default.GetHashCode(symbol2));
387Assert.True(SymbolEqualityComparer.Default.Equals(symbol2, symbol3));
388Assert.True(SymbolEqualityComparer.Default.Equals(symbol3, symbol2));
389Assert.Equal(SymbolEqualityComparer.Default.GetHashCode(symbol2), SymbolEqualityComparer.Default.GetHashCode(symbol3));
980Assert.True(symbol1.Equals(symbol1, SymbolEqualityComparer.Default));
981Assert.True(symbol2.Equals(symbol2, SymbolEqualityComparer.Default));
982Assert.True(symbol1.Equals(symbol2, SymbolEqualityComparer.Default));
983Assert.True(symbol2.Equals(symbol1, SymbolEqualityComparer.Default));
993Assert.Equal(SymbolEqualityComparer.Default.GetHashCode(symbol1), SymbolEqualityComparer.Default.GetHashCode(symbol2));
Microsoft.CodeAnalysis.CSharp.Test.Utilities (5)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Microsoft.CodeAnalysis.Features (26)
Microsoft.CodeAnalysis.VisualBasic (1)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic.Features (1)
Microsoft.CodeAnalysis.Workspaces (13)
Microsoft.DotNet.CodeAnalysis (1)
Microsoft.Extensions.Logging.Generators (2)
Microsoft.Extensions.Options.SourceGeneration (21)
Parser.cs (19)
29private readonly Dictionary<ITypeSymbol, ValidatorType> _synthesizedValidators = new(SymbolEqualityComparer.Default);
30private readonly HashSet<ITypeSymbol> _visitedModelTypes = new(SymbolEqualityComparer.Default);
205&& SymbolEqualityComparer.Default.Equals(m.Parameters[1].Type, modelType));
249if (SymbolEqualityComparer.Default.Equals(type.OriginalDefinition, _symbolHolder.GenericIEnumerableSymbol))
257if (SymbolEqualityComparer.Default.Equals(implementingInterface.OriginalDefinition, _compilation.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerable_T)))
355if (SymbolEqualityComparer.Default.Equals(attributeType, _symbolHolder.ValidateObjectMembersAttributeSymbol))
408else if (SymbolEqualityComparer.Default.Equals(attributeType, _symbolHolder.ValidateEnumeratedItemsAttributeSymbol))
480if (SymbolEqualityComparer.Default.Equals(attributeType, _symbolHolder.MaxLengthAttributeSymbol) ||
481SymbolEqualityComparer.Default.Equals(attributeType, _symbolHolder.MinLengthAttributeSymbol) ||
482(_symbolHolder.LengthAttributeSymbol is not null && SymbolEqualityComparer.Default.Equals(attributeType, _symbolHolder.LengthAttributeSymbol)))
489else if (SymbolEqualityComparer.Default.Equals(attributeType, _symbolHolder.CompareAttributeSymbol))
493else if (SymbolEqualityComparer.Default.Equals(attributeType, _symbolHolder.RangeAttributeSymbol))
668else if (SymbolEqualityComparer.Default.Equals(namedTypeSymbol, _symbolHolder.TimeSpanSymbol) &&
669(SymbolEqualityComparer.Default.Equals(typeSymbol, _symbolHolder.TimeSpanSymbol) || typeSymbol.SpecialType == SpecialType.System_String))
738if (SymbolEqualityComparer.Default.Equals(implementingInterface.OriginalDefinition, _symbolHolder.IValidatableObjectSymbol))
752if (SymbolEqualityComparer.Default.Equals(implementingInterface.OriginalDefinition, _symbolHolder.ValidateOptionsSymbol))
765if (SymbolEqualityComparer.Default.Equals(implementingInterface.OriginalDefinition, _symbolHolder.ValidateOptionsSymbol))
768if (SymbolEqualityComparer.Default.Equals(modelType, t))
816if (SymbolEqualityComparer.Default.Equals(type, _symbolHolder.TypeSymbol) &&
Microsoft.Gen.ComplianceReports (1)
Microsoft.Gen.ContextualOptions (6)
Microsoft.Gen.Logging (17)
Microsoft.Gen.Logging.Unit.Tests (1)
Microsoft.Gen.Metrics (9)
Microsoft.Gen.MetricsReports (9)
Microsoft.Interop.ComInterfaceGenerator (21)
Microsoft.Interop.JavaScript.JSImportGenerator (1)
Microsoft.Interop.LibraryImportGenerator (21)
Analyzers\CustomMarshallerAttributeAnalyzer.cs (12)
646&& attrCreation.Type.Equals(_customMarshallerAttribute, SymbolEqualityComparer.Default))
894if (!SymbolEqualityComparer.Default.Equals(methods.UnmanagedValuesDestination.Parameters[0].Type, unmanagedType))
903if (!SymbolEqualityComparer.Default.Equals(methods.ToUnmanaged.ReturnType, methods.ToUnmanagedWithBuffer.ReturnType))
915if (unmanagedType is not null && !SymbolEqualityComparer.Default.Equals(unmanagedType, toManagedMethod.Parameters[0].Type))
925if (!SymbolEqualityComparer.Default.Equals(methods.UnmanagedValuesSource.Parameters[0].Type, unmanagedType))
934if (!SymbolEqualityComparer.Default.Equals(methods.ToManaged.Parameters[1].Type, methods.ToManagedFinally.Parameters[1].Type))
949&& !SymbolEqualityComparer.Default.Equals(sourceElementType, destinationElementType))
967&& !SymbolEqualityComparer.Default.Equals(sourceElementType, expectedElementType))
998if (SymbolEqualityComparer.Default.Equals(spanTypeMaybe.OriginalDefinition, _spanOfT) || SymbolEqualityComparer.Default.Equals(spanTypeMaybe.OriginalDefinition, _readOnlySpanOfT))
1213if (unmanagedType is not null && !SymbolEqualityComparer.Default.Equals(unmanagedType, fromUnmanagedMethod.Parameters[0].Type))
1237&& !SymbolEqualityComparer.Default.Equals(sourceElementType, destinationElementType))
Microsoft.Interop.LibraryImportGenerator.Downlevel (2)
Microsoft.Interop.SourceGeneration (45)
MarshallerShape.cs (35)
221&& SymbolEqualityComparer.Default.Equals(m.Parameters[0].Type, managedType));
228if (!SymbolEqualityComparer.Default.Equals(spanOfT, namedType.ConstructedFrom) || namedType.TypeArguments.Length != 1)
242&& SymbolEqualityComparer.Default.Equals(currentType.TypeArguments[i], typeArgument))
263&& SymbolEqualityComparer.Default.Equals(managedType, m.Parameters[0].Type));
275&& SymbolEqualityComparer.Default.Equals(managedType, m.Parameters[0].Type));
294&& SymbolEqualityComparer.Default.Equals(managedType, m.ReturnType));
303&& SymbolEqualityComparer.Default.Equals(managedType, m.ReturnType));
348&& SymbolEqualityComparer.Default.Equals(readOnlySpanOfT, returnType.ConstructedFrom));
358&& SymbolEqualityComparer.Default.Equals(spanOfT, returnType.ConstructedFrom));
388&& SymbolEqualityComparer.Default.Equals(spanOfT, returnType.ConstructedFrom));
398&& SymbolEqualityComparer.Default.Equals(readOnlySpanOfT, returnType.ConstructedFrom));
429return SymbolEqualityComparer.Default.Equals(method, FromManaged)
430|| SymbolEqualityComparer.Default.Equals(method, FromManagedWithBuffer)
431|| SymbolEqualityComparer.Default.Equals(method, ToManaged)
432|| SymbolEqualityComparer.Default.Equals(method, ToManagedGuaranteed)
433|| SymbolEqualityComparer.Default.Equals(method, FromUnmanaged)
434|| SymbolEqualityComparer.Default.Equals(method, ToUnmanaged)
435|| SymbolEqualityComparer.Default.Equals(method, Free)
436|| SymbolEqualityComparer.Default.Equals(method, OnInvoked)
437|| SymbolEqualityComparer.Default.Equals(method, StatelessGetPinnableReference)
438|| SymbolEqualityComparer.Default.Equals(method, StatefulGetPinnableReference)
439|| SymbolEqualityComparer.Default.Equals(method, ManagedValuesSource)
440|| SymbolEqualityComparer.Default.Equals(method, UnmanagedValuesDestination)
441|| SymbolEqualityComparer.Default.Equals(method, ManagedValuesDestination)
442|| SymbolEqualityComparer.Default.Equals(method, UnmanagedValuesSource);
566&& SymbolEqualityComparer.Default.Equals(managedType, m.Parameters[0].Type));
577&& SymbolEqualityComparer.Default.Equals(managedType, m.Parameters[0].Type));
595&& SymbolEqualityComparer.Default.Equals(managedType, m.ReturnType));
603&& SymbolEqualityComparer.Default.Equals(managedType, m.ReturnType));
641if (SymbolEqualityComparer.Default.Equals(candidates[0].Parameters[0].Type, unmanagedType))
672&& SymbolEqualityComparer.Default.Equals(m.Parameters[0].Type, managedType));
691&& SymbolEqualityComparer.Default.Equals(readOnlySpanOfT, returnType.ConstructedFrom));
700&& SymbolEqualityComparer.Default.Equals(spanOfT, returnType.ConstructedFrom));
710&& SymbolEqualityComparer.Default.Equals(spanOfT, returnType.ConstructedFrom));
720&& SymbolEqualityComparer.Default.Equals(readOnlySpanOfT, returnType.ConstructedFrom));
TypeSymbolExtensions.cs (5)
34return IsBlittableWorker(type, ImmutableHashSet.Create<ITypeSymbol>(SymbolEqualityComparer.Default), compilation: null!, &IsConsideredBlittableWorker);
59return IsBlittableWorker(type, ImmutableHashSet.Create<ITypeSymbol>(SymbolEqualityComparer.Default), compilation, &IsStrictlyBlittableWorker);
83if (t.ContainingAssembly.Equals(compilation.GetSpecialType(SpecialType.System_Object).ContainingAssembly, SymbolEqualityComparer.Default))
210(INamedTypeSymbol namedType, INamedTypeSymbol namedOther) => SymbolEqualityComparer.Default.Equals(namedType.ConstructedFrom, namedOther.ConstructedFrom),
211_ => SymbolEqualityComparer.Default.Equals(type, other)
Microsoft.Maui.Controls.SourceGen (3)
System.Private.CoreLib.Generators (14)
System.Text.Json.SourceGeneration (33)
JsonSourceGenerator.Parser.cs (25)
47private readonly Dictionary<ITypeSymbol, TypeGenerationSpec> _generatedTypes = new(SymbolEqualityComparer.Default);
244if (SymbolEqualityComparer.Default.Equals(attributeClass, _knownSymbols.JsonSerializableAttributeType))
254else if (SymbolEqualityComparer.Default.Equals(attributeClass, _knownSymbols.JsonSourceGenerationOptionsAttributeType))
703if (SymbolEqualityComparer.Default.Equals(attributeType, _knownSymbols.JsonNumberHandlingAttributeType))
708else if (SymbolEqualityComparer.Default.Equals(attributeType, _knownSymbols.JsonUnmappedMemberHandlingAttributeType))
713else if (SymbolEqualityComparer.Default.Equals(attributeType, _knownSymbols.JsonObjectCreationHandlingAttributeType))
724if (SymbolEqualityComparer.Default.Equals(attributeType, _knownSymbols.JsonDerivedTypeAttributeType))
755if (SymbolEqualityComparer.Default.Equals(type.OriginalDefinition, _knownSymbols.MemoryType))
757Debug.Assert(!SymbolEqualityComparer.Default.Equals(type, _knownSymbols.MemoryByteType));
763if (SymbolEqualityComparer.Default.Equals(type.OriginalDefinition, _knownSymbols.ReadOnlyMemoryType))
765Debug.Assert(!SymbolEqualityComparer.Default.Equals(type, _knownSymbols.ReadOnlyMemoryByteType));
819needsRuntimeType = SymbolEqualityComparer.Default.Equals(type, actualTypeToConvert);
826needsRuntimeType = SymbolEqualityComparer.Default.Equals(type, actualTypeToConvert);
878needsRuntimeType = SymbolEqualityComparer.Default.Equals(type, actualTypeToConvert);
1022SymbolEqualityComparer.Default.Equals(property.Type, ignoredMember.GetMemberType());
1096if (SymbolEqualityComparer.Default.Equals(type, _knownSymbols.JsonObjectType))
1107return SymbolEqualityComparer.Default.Equals(actualDictionaryType.TypeArguments[0], _knownSymbols.StringType) &&
1108(SymbolEqualityComparer.Default.Equals(actualDictionaryType.TypeArguments[1], _knownSymbols.ObjectType) ||
1109SymbolEqualityComparer.Default.Equals(actualDictionaryType.TypeArguments[1], _knownSymbols.JsonElementType));
1566if (!SymbolEqualityComparer.Default.Equals(attributeData.AttributeClass, _knownSymbols.JsonConverterAttributeType))
1668SymbolEqualityComparer cmp = SymbolEqualityComparer.Default;
1787SymbolEqualityComparer.Default.Equals(_knownSymbols.SerializationInfoType, type) ||
1788SymbolEqualityComparer.Default.Equals(_knownSymbols.IntPtrType, type) ||
1789SymbolEqualityComparer.Default.Equals(_knownSymbols.UIntPtrType, type) ||
1811HashSet<ITypeSymbol> builtInSupportTypes = new(SymbolEqualityComparer.Default);
System.Text.RegularExpressions.Generator (5)
System.Windows.Forms.PrivateSourceGenerators (2)