@@ -358,7 +358,7 @@ internal class Parser(DiagnosticReporter context, InvocationExpressionSyntax nod
358358 Location = x . GetLocation ( ) ,
359359 HasDefaultValue = hasDefault ,
360360 DefaultValue = defaultValue ,
361- CustomParserType = customParserType == null ? null : new EquatableTypeSymbol ( customParserType ) ,
361+ CustomParserType = customParserType ? . ToEquatable ( ) ,
362362 HasValidation = hasValidation ,
363363 IsCancellationToken = isCancellationToken ,
364364 IsFromServices = isFromServices ,
@@ -520,7 +520,7 @@ internal class Parser(DiagnosticReporter context, InvocationExpressionSyntax nod
520520 Type = new EquatableTypeSymbol ( x . Type ) ,
521521 HasDefaultValue = x . HasExplicitDefaultValue ,
522522 DefaultValue = x . HasExplicitDefaultValue ? x . ExplicitDefaultValue : null ,
523- CustomParserType = null ,
523+ CustomParserType = customParserType ? . AttributeClass ? . ToEquatable ( ) ,
524524 IsCancellationToken = isCancellationToken ,
525525 IsFromServices = hasFromServices ,
526526 HasValidation = hasValidation ,
0 commit comments