diff --git a/CSharpTranslator/antlr2/Translator/CSharpTranslator.g b/CSharpTranslator/antlr2/Translator/CSharpTranslator.g index 0d7a6bf..78963a7 100644 --- a/CSharpTranslator/antlr2/Translator/CSharpTranslator.g +++ b/CSharpTranslator/antlr2/Translator/CSharpTranslator.g @@ -1424,12 +1424,18 @@ staticConstructorBody [Object w] : body[w] ; -destructorDeclaration [Object w] +destructorDeclaration! [Object w] : #( DTOR_DECL attributes[w] modifiers[w] identifier[w] - destructorBody[w] - ) + b:destructorBody[w] + ) + { ## = #( [METHOD_DECL], + #( [MODIFIERS], [PROTECTED, "protected"] ), + #( [TYPE], [VOID, "void"], #( [ARRAY_RANKS] ) ), + #( [IDENTIFIER, "finalize"]) , + #( [FORMAL_PARAMETER_LIST] ), #( [THROWS, "throws"], [IDENTIFIER, "Throwable"] ), + astFactory.dupTree(#b) ); } ; - + destructorBody [Object w] : body[w] ;