5 references to RemoveNullableIfPresent
Microsoft.CodeAnalysis.CodeStyle (5)
src\Analyzers\Core\Analyzers\PopulateSwitch\AbstractPopulateSwitchDiagnosticAnalyzer.cs (3)
84
var typeWithoutNullable = type.
RemoveNullableIfPresent
();
102
if (type.
RemoveNullableIfPresent
() is not { SpecialType: SpecialType.System_Boolean })
119
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
();