1
+ using Funcky . Analyzers . CodeAnalysisExtensions ;
1
2
using Microsoft . CodeAnalysis ;
2
3
using Microsoft . CodeAnalysis . Operations ;
3
- using static Funcky . Analyzers . ConstantFunctionMatching ;
4
4
using static Funcky . Analyzers . FunckyWellKnownMemberNames ;
5
- using static Funcky . Analyzers . IdentityFunctionMatching ;
5
+ using static Funcky . Analyzers . Functions . ConstantFunctionMatching ;
6
+ using static Funcky . Analyzers . Functions . IdentityFunctionMatching ;
6
7
7
- namespace Funcky . Analyzers ;
8
+ namespace Funcky . Analyzers . AlternativeMonad ;
8
9
9
10
public partial class AlternativeMonadAnalyzer
10
11
{
@@ -29,13 +30,13 @@ private static bool IsToNullableEquivalent(
29
30
30
31
bool IsToNullableReferenceType ( )
31
32
=> itemType . IsReferenceType
32
- && SymbolEqualityComparer . Default . Equals ( receiverType . TypeArguments . Single ( ) , matchInvocation . Type )
33
+ && SymbolEquals ( receiverType . TypeArguments . Single ( ) , matchInvocation . Type )
33
34
&& IsNullOrNullFunction ( noneArgument . Value )
34
35
&& IsIdentityFunction ( someArgument . Value ) ;
35
36
36
37
bool IsToNullableValueType ( )
37
38
=> itemType . IsValueType
38
- && SymbolEqualityComparer . Default . Equals ( matchInvocation . SemanticModel ? . NullableOfT ( itemType ) , matchInvocation . Type )
39
+ && SymbolEquals ( matchInvocation . SemanticModel ? . NullableOfT ( itemType ) , matchInvocation . Type )
39
40
&& IsNullOrNullFunction ( noneArgument . Value )
40
41
&& IsIdentityFunctionWithNullConversion ( someArgument . Value ) ;
41
42
0 commit comments