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