We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae05d07 commit 7973475Copy full SHA for 7973475
1 file changed
CSharpToJavaScript/WithoutSemanticRewriter.cs
@@ -407,6 +407,12 @@ public WithoutSemanticRewriter(CSTOJSOptions options)
407
408
return obj;
409
}
410
+ public override SyntaxNode? VisitCatchDeclaration(CatchDeclarationSyntax node)
411
+ {
412
+ node = (CatchDeclarationSyntax)base.VisitCatchDeclaration(node)!;
413
+ node = node.ReplaceNode(node.Type, SyntaxFactory.IdentifierName(""));
414
+ return node;
415
+ }
416
public override SyntaxNode? VisitCastExpression(CastExpressionSyntax node)
417
{
418
return node.Expression;
0 commit comments