Skip to content

Commit 7729ae6

Browse files
committed
Correction on OPERATOR's method
1 parent 48115a3 commit 7729ae6

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

ILSpy.XSharpLanguage/XSharpOutputVisitor.prg

+7-2
Original file line numberDiff line numberDiff line change
@@ -1867,12 +1867,12 @@ BEGIN NAMESPACE ILSpy.XSharpLanguage
18671867
SELF:WriteModifiers(operatorDeclaration:ModifierTokens)
18681868
IF (operatorDeclaration:OperatorType == OperatorType.Explicit)
18691869
//
1870-
SELF:WriteKeyword(OperatorDeclaration.ExplicitRole)
1870+
//SELF:WriteKeyword(OperatorDeclaration.ExplicitRole)
18711871
ELSE
18721872
//
18731873
IF (operatorDeclaration:OperatorType == OperatorType.Implicit)
18741874
//
1875-
SELF:WriteKeyword(OperatorDeclaration.ImplicitRole)
1875+
//SELF:WriteKeyword(OperatorDeclaration.ImplicitRole)
18761876
ELSE
18771877
//
18781878
needReturnType := TRUE
@@ -1900,6 +1900,11 @@ BEGIN NAMESPACE ILSpy.XSharpLanguage
19001900
ENDIF
19011901
//
19021902
SELF:WriteMethodBody(operatorDeclaration:Body, SELF:policy:MethodBraceStyle)
1903+
//
1904+
SELF:WriteKeyword( "END" )
1905+
SELF:Space(TRUE)
1906+
SELF:WriteKeyword( "OPERATOR" )
1907+
SELF:NewLine()
19031908
SELF:EndNode(operatorDeclaration)
19041909

19051910
PRIVATE METHOD VisitOptionalNode(optionalNode AS OptionalNode) AS VOID

0 commit comments

Comments
 (0)