88 references to IncludeNullability
Microsoft.AspNetCore.Http.RequestDelegateGenerator (4)
StaticRouteHandlerModel\EndpointParameter.cs (3)
594SymbolEqualityComparer.IncludeNullability.Equals(other.Type, Type) && 599SymbolEqualityComparer.IncludeNullability.Equals(other.Type, Type) && 610hashCode.Add(Type, SymbolEqualityComparer.IncludeNullability);
StaticRouteHandlerModel\Model\EndpointParameterExtensions.cs (1)
22if (SymbolEqualityComparer.IncludeNullability.Equals(handlerParameterType, bindAsyncReturnType))
Microsoft.CodeAnalysis (1)
Symbols\SymbolEqualityComparer.cs (1)
20/// Comparing <c>string</c> and <c>string?</c> will return equal. Use <see cref="IncludeNullability"/> if you don't want them to be considered equal.
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\Simplifiers\AbstractMemberAccessExpressionSimplifier.cs (1)
67if (!symbolInfo.Symbol.Equals(newSymbolInfo.Symbol, SymbolEqualityComparer.IncludeNullability))
Microsoft.CodeAnalysis.CSharp.CodeStyle (11)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryLambdaExpression\CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (1)
253if (method1 is not null && !method1.Equals(method2, SymbolEqualityComparer.IncludeNullability))
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
534parameter.Type.Equals(member.GetMemberType(), SymbolEqualityComparer.IncludeNullability))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
356!type.Equals(symbol, SymbolEqualityComparer.IncludeNullability))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (8)
532if (originalConvertedType.Equals(rewrittenConvertedType, SymbolEqualityComparer.IncludeNullability)) 545rewrittenConvertedType.Equals(targetType, SymbolEqualityComparer.IncludeNullability)) 621if (originalConvertedType.Equals(castedType, SymbolEqualityComparer.IncludeNullability)) 636if (!originalNamedConvertedType.TypeArguments[0].Equals(namedCastedType.TypeArguments[0], SymbolEqualityComparer.IncludeNullability)) 815if (!originalConvertedType.Equals(rewrittenBitwiseNotConversionType, SymbolEqualityComparer.IncludeNullability)) 875if (!originalConditionalTypeInfo.ConvertedType!.Equals(rewrittenConditionalTypeInfo.ConvertedType, SymbolEqualityComparer.IncludeNullability)) 885if (castType.Equals(rewrittenConditionalOperation.Type, SymbolEqualityComparer.IncludeNullability)) 890castType.Equals(conditionalParentConversion.Type, SymbolEqualityComparer.IncludeNullability))
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndNullCheckCodeFixProvider.cs (1)
149!SymbolEqualityComparer.IncludeNullability.Equals(localType, asType))
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenTupleTest.cs (2)
6815Assert.False(tuple1.Equals(tuple2, SymbolEqualityComparer.IncludeNullability)); 6884Assert.False(tuple1.Equals(tuple2, SymbolEqualityComparer.IncludeNullability));
Microsoft.CodeAnalysis.CSharp.Features (3)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryLambdaExpression\CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (1)
253if (method1 is not null && !method1.Equals(method2, SymbolEqualityComparer.IncludeNullability))
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
534parameter.Type.Equals(member.GetMemberType(), SymbolEqualityComparer.IncludeNullability))
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndNullCheckCodeFixProvider.cs (1)
149!SymbolEqualityComparer.IncludeNullability.Equals(localType, asType))
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (18)
Semantics\FunctionPointerTests.cs (1)
3967Assert.Equal(semanticInfo.Type, semanticInfo.ConvertedType, SymbolEqualityComparer.IncludeNullability);
Semantics\NativeIntegerTests.cs (1)
269Assert.False(underlyingType.Equals(nativeIntegerType, SymbolEqualityComparer.IncludeNullability));
Semantics\NullableReferenceTypesTests.cs (16)
113142Assert.True(method1.Equals(method2, SymbolEqualityComparer.IncludeNullability.CompareKind)); 113143Assert.True(method2.Equals(method1, SymbolEqualityComparer.IncludeNullability.CompareKind)); 113147Assert.False(method1.Equals(method2, SymbolEqualityComparer.IncludeNullability.CompareKind)); 113148Assert.False(method2.Equals(method1, SymbolEqualityComparer.IncludeNullability.CompareKind)); 157590Assert.False(field2.Equals(field3, SymbolEqualityComparer.IncludeNullability)); 157592Assert.False(field3.Equals(field2, SymbolEqualityComparer.IncludeNullability)); 157596Assert.False(field1.Equals(field2, SymbolEqualityComparer.IncludeNullability)); 157598Assert.False(field2.Equals(field1, SymbolEqualityComparer.IncludeNullability)); 157602Assert.True(field1.Equals(field3, SymbolEqualityComparer.IncludeNullability)); 157604Assert.True(field3.Equals(field1, SymbolEqualityComparer.IncludeNullability)); 157642Assert.False(method2.Equals(method3, SymbolEqualityComparer.IncludeNullability)); 157644Assert.False(method3.Equals(method2, SymbolEqualityComparer.IncludeNullability)); 157648Assert.False(method1.Equals(method2, SymbolEqualityComparer.IncludeNullability)); 157650Assert.False(method2.Equals(method1, SymbolEqualityComparer.IncludeNullability)); 157654Assert.True(method1.Equals(method3, SymbolEqualityComparer.IncludeNullability)); 157656Assert.True(method3.Equals(method1, SymbolEqualityComparer.IncludeNullability));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (34)
Symbols\Source\NullablePublicAPITests.cs (28)
2844Assert.False(event1.Equals(event2, SymbolEqualityComparer.IncludeNullability)); 3509Assert.Equal(mSymbol, lambdaSymbol.ContainingSymbol, SymbolEqualityComparer.IncludeNullability); 3547Assert.Equal(lambdaSymbol, innerLambdaSymbol.ContainingSymbol, SymbolEqualityComparer.IncludeNullability); 3570Assert.Equal(innerLambdaSymbol, o2Symbol.ContainingSymbol, SymbolEqualityComparer.IncludeNullability); 3608Assert.Equal(lambdaSymbol, innerLambdaSymbol.ContainingSymbol, SymbolEqualityComparer.IncludeNullability); 3631Assert.Equal(innerLambdaSymbol, o2Symbol.ContainingSymbol, SymbolEqualityComparer.IncludeNullability); 3670Assert.Equal(lambdaSymbol, localFunctionSymbol.ContainingSymbol, SymbolEqualityComparer.IncludeNullability); 3671Assert.Equal(localFunctionSymbol, o2Symbol.ContainingSymbol, SymbolEqualityComparer.IncludeNullability); 3784Assert.Equal(parameterSymbol, info.Symbol, SymbolEqualityComparer.IncludeNullability); 3812Assert.Equal(lambdaSymbol, paramSymbol.ContainingSymbol, SymbolEqualityComparer.IncludeNullability); 3866Assert.Equal(o2Symbol, o2Ref.Symbol, SymbolEqualityComparer.IncludeNullability); 3880Assert.Equal(localFunctionSymbol, model.GetDeclaredSymbol(o8Declaration).ContainingSymbol, SymbolEqualityComparer.IncludeNullability); 3884Assert.Equal(lambdaSymbol, model.GetDeclaredSymbol(node).ContainingSymbol, SymbolEqualityComparer.IncludeNullability); 3924Assert.Equal(fieldLambdaSymbol, o1Symbol.ContainingSymbol, SymbolEqualityComparer.IncludeNullability); 3925Assert.Equal(fieldLambdaSymbol, o2Symbol.ContainingSymbol, SymbolEqualityComparer.IncludeNullability); 3938Assert.Equal(propertyLambdaSymbol, o3Symbol.ContainingSymbol, SymbolEqualityComparer.IncludeNullability); 3939Assert.Equal(propertyLambdaSymbol, o4Symbol.ContainingSymbol, SymbolEqualityComparer.IncludeNullability); 3983Assert.Equal(lambdaSymbol, innerLambdaSymbol1.ContainingSymbol, SymbolEqualityComparer.IncludeNullability); 3993Assert.Equal(lambdaSymbol, innerLambdaSymbol1.ContainingSymbol, SymbolEqualityComparer.IncludeNullability); 4059Assert.Equal(o1Symbol, o1RefSymbol, SymbolEqualityComparer.IncludeNullability); 4060Assert.Equal(o2Symbol, o2RefSymbol, SymbolEqualityComparer.IncludeNullability); 4067Assert.Equal(o2Symbol, speculativeModel.GetSymbolInfo(speculativeO2Ref).Symbol, SymbolEqualityComparer.IncludeNullability); 4072Assert.Equal(o1Symbol, speculativeModel.GetSymbolInfo(speculativeO1Ref).Symbol, SymbolEqualityComparer.IncludeNullability); 4126Assert.Equal(lambdaSymbol, o2Result.ContainingSymbol, SymbolEqualityComparer.IncludeNullability); 4127Assert.Equal(localFunctionSymbol, o8Result.ContainingSymbol, SymbolEqualityComparer.IncludeNullability); 4131Assert.Equal(lambdaSymbol, o1Result.ContainingSymbol, SymbolEqualityComparer.IncludeNullability); 4132Assert.Equal(localFunctionSymbol, oResult.ContainingSymbol, SymbolEqualityComparer.IncludeNullability); 4135Assert.Equal(localFunctionSymbol, localFunctionResult, SymbolEqualityComparer.IncludeNullability);
Symbols\SymbolEqualityTests.cs (6)
986Assert.True(symbol1.Equals(symbol1, SymbolEqualityComparer.IncludeNullability)); 987Assert.True(symbol2.Equals(symbol2, SymbolEqualityComparer.IncludeNullability)); 988Assert.Equal(expectedIncludeNullability, symbol1.Equals(symbol2, SymbolEqualityComparer.IncludeNullability)); 989Assert.Equal(expectedIncludeNullability, symbol2.Equals(symbol1, SymbolEqualityComparer.IncludeNullability)); 994Assert.Equal(SymbolEqualityComparer.IncludeNullability.GetHashCode(symbol1), SymbolEqualityComparer.IncludeNullability.GetHashCode(symbol2));
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
FunctionPointerUtilities.cs (2)
162Assert.Equal(semanticInfo.Type, semanticInfo.ConvertedType, SymbolEqualityComparer.IncludeNullability); 256Assert.Equal(semanticInfo.Type, semanticInfo.ConvertedType, SymbolEqualityComparer.IncludeNullability);
Microsoft.CodeAnalysis.CSharp.Workspaces (9)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
356!type.Equals(symbol, SymbolEqualityComparer.IncludeNullability))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (8)
532if (originalConvertedType.Equals(rewrittenConvertedType, SymbolEqualityComparer.IncludeNullability)) 545rewrittenConvertedType.Equals(targetType, SymbolEqualityComparer.IncludeNullability)) 621if (originalConvertedType.Equals(castedType, SymbolEqualityComparer.IncludeNullability)) 636if (!originalNamedConvertedType.TypeArguments[0].Equals(namedCastedType.TypeArguments[0], SymbolEqualityComparer.IncludeNullability)) 815if (!originalConvertedType.Equals(rewrittenBitwiseNotConversionType, SymbolEqualityComparer.IncludeNullability)) 875if (!originalConditionalTypeInfo.ConvertedType!.Equals(rewrittenConditionalTypeInfo.ConvertedType, SymbolEqualityComparer.IncludeNullability)) 885if (castType.Equals(rewrittenConditionalOperation.Type, SymbolEqualityComparer.IncludeNullability)) 890castType.Equals(conditionalParentConversion.Type, SymbolEqualityComparer.IncludeNullability))
Microsoft.CodeAnalysis.Features (1)
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (1)
138SymbolEqualityComparer.IncludeNullability.Equals(parameter.Type, getMethod.ReturnType) &&
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\Simplifiers\AbstractMemberAccessExpressionSimplifier.cs (1)
67if (!symbolInfo.Symbol.Equals(newSymbolInfo.Symbol, SymbolEqualityComparer.IncludeNullability))