From 7729ae60341781e8f8057046020cf7a265860626 Mon Sep 17 00:00:00 2001 From: Fabrice Foray Date: Thu, 24 Dec 2020 18:00:26 +0100 Subject: [PATCH] Correction on OPERATOR's method --- ILSpy.XSharpLanguage/XSharpOutputVisitor.prg | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ILSpy.XSharpLanguage/XSharpOutputVisitor.prg b/ILSpy.XSharpLanguage/XSharpOutputVisitor.prg index 2a0e070..1c6f3ee 100644 --- a/ILSpy.XSharpLanguage/XSharpOutputVisitor.prg +++ b/ILSpy.XSharpLanguage/XSharpOutputVisitor.prg @@ -1867,12 +1867,12 @@ BEGIN NAMESPACE ILSpy.XSharpLanguage SELF:WriteModifiers(operatorDeclaration:ModifierTokens) IF (operatorDeclaration:OperatorType == OperatorType.Explicit) // - SELF:WriteKeyword(OperatorDeclaration.ExplicitRole) + //SELF:WriteKeyword(OperatorDeclaration.ExplicitRole) ELSE // IF (operatorDeclaration:OperatorType == OperatorType.Implicit) // - SELF:WriteKeyword(OperatorDeclaration.ImplicitRole) + //SELF:WriteKeyword(OperatorDeclaration.ImplicitRole) ELSE // needReturnType := TRUE @@ -1900,6 +1900,11 @@ BEGIN NAMESPACE ILSpy.XSharpLanguage ENDIF // SELF:WriteMethodBody(operatorDeclaration:Body, SELF:policy:MethodBraceStyle) + // + SELF:WriteKeyword( "END" ) + SELF:Space(TRUE) + SELF:WriteKeyword( "OPERATOR" ) + SELF:NewLine() SELF:EndNode(operatorDeclaration) PRIVATE METHOD VisitOptionalNode(optionalNode AS OptionalNode) AS VOID