@@ -1873,39 +1873,35 @@ BEGIN NAMESPACE ILSpy.XSharpLanguage
1873
1873
SELF :StartNode (operatorDeclaration)
1874
1874
SELF :WriteAttributes (operatorDeclaration :Attributes )
1875
1875
SELF :WriteModifiers (operatorDeclaration :ModifierTokens )
1876
+ //
1877
+ SELF :Space (TRUE )
1878
+ SELF :WriteKeyword (OperatorDeclaration.OperatorKeywordRole)
1879
+ SELF :Space (TRUE )
1880
+ //
1876
1881
IF (operatorDeclaration :OperatorType == OperatorType.Explicit)
1877
1882
//
1878
- // SELF:WriteKeyword(OperatorDeclaration.ExplicitRole)
1883
+ SELF :WriteKeyword (OperatorDeclaration.ExplicitRole)
1879
1884
ELSE
1880
1885
//
1881
1886
IF (operatorDeclaration :OperatorType == OperatorType.Implicit)
1882
1887
//
1883
- // SELF:WriteKeyword(OperatorDeclaration.ImplicitRole)
1888
+ SELF :WriteKeyword (OperatorDeclaration.ImplicitRole)
1884
1889
ELSE
1885
1890
//
1886
1891
needReturnType := TRUE
1887
-
1888
1892
ENDIF
1889
1893
ENDIF
1890
- SELF :Space (TRUE )
1891
- SELF :WriteKeyword (OperatorDeclaration.OperatorKeywordRole)
1892
- SELF :Space (TRUE )
1893
- IF ((operatorDeclaration :OperatorType == OperatorType.Explicit) .OR. (operatorDeclaration :OperatorType == OperatorType.Implicit))
1894
- //
1895
- operatorDeclaration :ReturnType :AcceptVisitor (SELF )
1896
- ELSE
1894
+ IF needReturnType
1897
1895
//
1898
1896
SELF :WriteToken (OperatorDeclaration.GetToken (operatorDeclaration :OperatorType ), OperatorDeclaration.GetRole (operatorDeclaration :OperatorType ))
1899
1897
ENDIF
1900
1898
SELF :Space (SELF :policy :SpaceBeforeMethodDeclarationParentheses )
1901
1899
SELF :WriteCommaSeparatedListInParenthesis ((System.Collections.Generic.IEnumerable< AstNode> )operatorDeclaration :Parameters , SELF :policy :SpaceWithinMethodDeclarationParentheses )
1902
1900
//
1903
- IF ( needReturnType )
1904
- SELF :Space (TRUE )
1905
- SELF :WriteKeyword ( "AS" )
1906
- SELF :Space (TRUE )
1907
- operatorDeclaration :ReturnType :AcceptVisitor (SELF )
1908
- ENDIF
1901
+ SELF :Space (TRUE )
1902
+ SELF :WriteKeyword ( "AS" )
1903
+ SELF :Space (TRUE )
1904
+ operatorDeclaration :ReturnType :AcceptVisitor (SELF )
1909
1905
//
1910
1906
SELF :WriteMethodBody (operatorDeclaration :Body , SELF :policy :MethodBraceStyle )
1911
1907
//
0 commit comments