16 references to RemoveNullableIfPresent
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\UsePatternCombinators\CSharpUsePatternCombinatorsCodeFixProvider.cs (1)
139var governingType = semanticModel.GetTypeInfo(p.Target.Syntax).Type.RemoveNullableIfPresent();
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
Recommendations\CSharpRecommendationServiceRunner.cs (1)
938foreach (var member in container.RemoveNullableIfPresent().GetAccessibleMembersInThisAndBaseTypes<IPropertySymbol>(containingType))
Recommendations\CSharpRecommendationServiceRunner_Conversions.cs (1)
137if (container.RemoveNullableIfPresent() is INamedTypeSymbol namedType)
Recommendations\CSharpRecommendationServiceRunner_Operators.cs (1)
21var containerWithoutNullable = container.RemoveNullableIfPresent();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (3)
169if (Equals(enumType, parentCastType.RemoveNullableIfPresent())) 236conversionOperation.Type.RemoveNullableIfPresent() is var type1 && 237conversionOperation.Operand.Type.RemoveNullableIfPresent() is var type2 &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpTypeStyleHelper.State.cs (1)
128type = type.RemoveNullableIfPresent();
Microsoft.CodeAnalysis.Features (7)
src\Analyzers\Core\Analyzers\PopulateSwitch\AbstractPopulateSwitchDiagnosticAnalyzer.cs (3)
82var typeWithoutNullable = type.RemoveNullableIfPresent(); 105if (type.RemoveNullableIfPresent() is not { SpecialType: SpecialType.System_Boolean }) 122if (type.RemoveNullableIfPresent()?.TypeKind != TypeKind.Enum)
src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchExpressionHelpers.cs (1)
109var underlyingType = type.RemoveNullableIfPresent();
src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchStatementHelpers.cs (1)
186var underlyingType = type.RemoveNullableIfPresent();
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.SignatureInfo.cs (1)
50type = type.RemoveNullableIfPresent();
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
452inferredType = inferredType.RemoveNullableIfPresent();
Microsoft.CodeAnalysis.Workspaces (1)
Recommendations\AbstractRecommendationServiceRunner.cs (1)
379namespaceOrType = typeSymbol.RemoveNullableIfPresent();