Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
carlossanlop committed Feb 7, 2025
1 parent 7f855a1 commit a1110f7
Showing 1 changed file with 16 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,22 @@ private SyntaxNode Visit(SyntaxNode namedTypeNode, INamedTypeSymbol namedType)
continue;
}

SyntaxNode memberDeclaration = _syntaxGenerator
.DeclarationExt(member, _symbolFilter)
.AddMemberAttributes(_syntaxGenerator, member, _attributeDataSymbolFilter);
SyntaxNode memberDeclaration;
try
{
memberDeclaration = _syntaxGenerator
.DeclarationExt(member, _symbolFilter)
.AddMemberAttributes(_syntaxGenerator, member, _attributeDataSymbolFilter);
}
catch (ArgumentException ex)
{
// Workaround as .NET 8 can't handle this kind of method
if (member.ToDisplayString().Contains("explicit operator checked"))
{
continue;
}
throw new ArgumentException(ex.Message, innerException: ex);
}

if (member is INamedTypeSymbol nestedTypeSymbol)
{
Expand Down

0 comments on commit a1110f7

Please sign in to comment.