@@ -358,7 +358,7 @@ internal class Parser(DiagnosticReporter context, InvocationExpressionSyntax nod
358
358
Location = x . GetLocation ( ) ,
359
359
HasDefaultValue = hasDefault ,
360
360
DefaultValue = defaultValue ,
361
- CustomParserType = customParserType == null ? null : new EquatableTypeSymbol ( customParserType ) ,
361
+ CustomParserType = customParserType ? . ToEquatable ( ) ,
362
362
HasValidation = hasValidation ,
363
363
IsCancellationToken = isCancellationToken ,
364
364
IsFromServices = isFromServices ,
@@ -520,7 +520,7 @@ internal class Parser(DiagnosticReporter context, InvocationExpressionSyntax nod
520
520
Type = new EquatableTypeSymbol ( x . Type ) ,
521
521
HasDefaultValue = x . HasExplicitDefaultValue ,
522
522
DefaultValue = x . HasExplicitDefaultValue ? x . ExplicitDefaultValue : null ,
523
- CustomParserType = null ,
523
+ CustomParserType = customParserType ? . AttributeClass ? . ToEquatable ( ) ,
524
524
IsCancellationToken = isCancellationToken ,
525
525
IsFromServices = hasFromServices ,
526
526
HasValidation = hasValidation ,
0 commit comments