@@ -24,9 +24,9 @@ USING Mono.Cecil
24
24
BEGIN NAMESPACE ILSpy.XSharpLanguage
25
25
26
26
/// <summary>
27
- /// The XSharpOutputVisitor class.
28
- /// Visit/Walk all elements generated by the CSharpDecompiler, but generate the corresponding X# code
29
- /// See the XSharpLocalVisitor for LOCALs declaration
27
+ /// The XSharpOutputVisitor class.
28
+ /// Visit/Walk all elements generated by the CSharpDecompiler, but generate the corresponding X# code
29
+ /// See the XSharpLocalVisitor for LOCALs declaration
30
30
/// </summary>
31
31
CLASS XSharpOutputVisitor IMPLEMENTS IAstVisitor
32
32
// Fields
@@ -314,10 +314,10 @@ BEGIN NAMESPACE ILSpy.XSharpLanguage
314
314
LOCAL i AS LONG
315
315
//
316
316
nextSibling := node :NextSibling
317
- // WHILE (((nextSibling IS WhitespaceNode) .OR. (nextSibling IS NewLineNode)))
318
- // //
319
- // nextSibling := nextSibling:NextSibling
320
- // ENDDO
317
+ // WHILE (((nextSibling IS WhitespaceNode) .OR. (nextSibling IS NewLineNode)))
318
+ // //
319
+ // nextSibling := nextSibling:NextSibling
320
+ // ENDDO
321
321
IF (((node IS UsingDeclaration) .OR. (node IS UsingAliasDeclaration)) .AND. (! (nextSibling IS UsingDeclaration) .AND. ! (nextSibling IS UsingAliasDeclaration)))
322
322
//
323
323
i := 0
@@ -1408,7 +1408,7 @@ BEGIN NAMESPACE ILSpy.XSharpLanguage
1408
1408
ENDIF
1409
1409
//SELF:WriteToken(Roles.LChevron)
1410
1410
SELF :WriteCommaSeparatedList (;
1411
- functionPointerType :Parameters :Concat< AstNode> (< AstNode> { functionPointerType :ReturnType }))
1411
+ functionPointerType :Parameters :Concat< AstNode> (< AstNode> { functionPointerType :ReturnType }))
1412
1412
//SELF:WriteToken(Roles.RChevron)
1413
1413
SELF :EndNode (functionPointerType)
1414
1414
@@ -1655,17 +1655,17 @@ BEGIN NAMESPACE ILSpy.XSharpLanguage
1655
1655
1656
1656
VIRTUAL METHOD VisitLocalFunctionDeclarationStatement (localFunctionDeclarationStatement AS LocalFunctionDeclarationStatement ) AS VOID
1657
1657
SELF :StartNode (localFunctionDeclarationStatement)
1658
- // SELF:WriteModifiers(localFunctionDeclarationStatement:ModifierTokens)
1659
- // localFunctionDeclarationStatement:ReturnType:AcceptVisitor(SELF)
1660
- // SELF:Space()
1661
- // SELF:WriteIdentifier(localFunctionDeclarationStatement:NameToken)
1662
- // SELF:WriteTypeParameters(localFunctionDeclarationStatement:TypeParameters)
1663
- // SELF:Space(SELF:policy:SpaceBeforeMethodDeclarationParentheses)
1664
- // SELF:WriteCommaSeparatedListInParenthesis(localFunctionDeclarationStatement:Parameters, SELF:policy:SpaceWithinMethodDeclarationParentheses)
1665
- // FOREACH constraint AS Constraint IN localFunctionDeclarationStatement:Constraints
1666
- // constraint:AcceptVisitor(SELF)
1667
- // NEXT
1668
- // SELF:WriteMethodBody(localFunctionDeclarationStatement:Body, SELF:policy:MethodBraceStyle)
1658
+ // SELF:WriteModifiers(localFunctionDeclarationStatement:ModifierTokens)
1659
+ // localFunctionDeclarationStatement:ReturnType:AcceptVisitor(SELF)
1660
+ // SELF:Space()
1661
+ // SELF:WriteIdentifier(localFunctionDeclarationStatement:NameToken)
1662
+ // SELF:WriteTypeParameters(localFunctionDeclarationStatement:TypeParameters)
1663
+ // SELF:Space(SELF:policy:SpaceBeforeMethodDeclarationParentheses)
1664
+ // SELF:WriteCommaSeparatedListInParenthesis(localFunctionDeclarationStatement:Parameters, SELF:policy:SpaceWithinMethodDeclarationParentheses)
1665
+ // FOREACH constraint AS Constraint IN localFunctionDeclarationStatement:Constraints
1666
+ // constraint:AcceptVisitor(SELF)
1667
+ // NEXT
1668
+ // SELF:WriteMethodBody(localFunctionDeclarationStatement:Body, SELF:policy:MethodBraceStyle)
1669
1669
localFunctionDeclarationStatement :Declaration :AcceptVisitor (SELF )
1670
1670
SELF :EndNode (localFunctionDeclarationStatement)
1671
1671
@@ -1729,7 +1729,7 @@ BEGIN NAMESPACE ILSpy.XSharpLanguage
1729
1729
SELF :WriteKeyword ("METHOD" , NULL )
1730
1730
SELF :Space (TRUE )
1731
1731
//
1732
- SELF :WritePrivateImplementationType (methodDeclaration :PrivateImplementationType )
1732
+ SELF :WritePrivateImplementationType (methodDeclaration :PrivateImplementationType )
1733
1733
SELF :WriteIdentifier (methodDeclaration :NameToken )
1734
1734
SELF :WriteTypeParameters (methodDeclaration :TypeParameters )
1735
1735
SELF :Space (SELF :policy :SpaceBeforeMethodDeclarationParentheses )
@@ -1804,7 +1804,7 @@ BEGIN NAMESPACE ILSpy.XSharpLanguage
1804
1804
SELF :NewLine ()
1805
1805
SELF :EndNode (namespaceDeclaration)
1806
1806
1807
- //VIRTUAL METHOD VisitNewLine(newLineNode AS NewLineNode) AS VOID
1807
+ //VIRTUAL METHOD VisitNewLine(newLineNode AS NewLineNode) AS VOID
1808
1808
1809
1809
1810
1810
PRIVATE METHOD VisitNodeInPattern (childNode AS INode) AS VOID
@@ -2043,12 +2043,12 @@ BEGIN NAMESPACE ILSpy.XSharpLanguage
2043
2043
VIRTUAL METHOD VisitPrimitiveExpression (primitiveExpression AS PrimitiveExpression) AS VOID
2044
2044
//
2045
2045
SELF :StartNode (primitiveExpression)
2046
- // SELF:writer:WritePrimitiveValue(primitiveExpression:Value, primitiveExpression:UnsafeLiteralValue)
2047
- // // Store Parameters Name
2048
- // IF ( SELF:inMethodAttributes == ClipperState.Attribute) .AND. SELF:isClipper
2049
- // SELF:paramsList:Add( primitiveExpression:Value:ToString() )
2050
- // ENDIF
2051
- // //
2046
+ // SELF:writer:WritePrimitiveValue(primitiveExpression:Value, primitiveExpression:UnsafeLiteralValue)
2047
+ // // Store Parameters Name
2048
+ // IF ( SELF:inMethodAttributes == ClipperState.Attribute) .AND. SELF:isClipper
2049
+ // SELF:paramsList:Add( primitiveExpression:Value:ToString() )
2050
+ // ENDIF
2051
+ // //
2052
2052
SELF :writer :WritePrimitiveValue(primitiveExpression :Value , primitiveExpression :Format )
2053
2053
SELF :isAfterSpace := FALSE
2054
2054
SELF :EndNode (primitiveExpression)
@@ -2353,7 +2353,10 @@ BEGIN NAMESPACE ILSpy.XSharpLanguage
2353
2353
SELF :WriteTypeArguments (simpleType :TypeArguments )
2354
2354
SELF :EndNode (simpleType)
2355
2355
2356
- VIRTUAL METHOD VisitSingleVariableDesignation ( singleVariableDesignation AS SingleVariableDesignation ) AS VOID
2356
+ VIRTUAL METHOD VisitSingleVariableDesignation ( singleVariableDesignation AS SingleVariableDesignation ) AS VOID
2357
+ SELF :StartNode (singleVariableDesignation)
2358
+ SELF :WriteIdentifier (singleVariableDesignation :IdentifierToken )
2359
+ SELF :EndNode (singleVariableDesignation)
2357
2360
2358
2361
VIRTUAL METHOD VisitSizeOfExpression (sizeOfExpression AS SizeOfExpression) AS VOID
2359
2362
//
@@ -2467,7 +2470,7 @@ BEGIN NAMESPACE ILSpy.XSharpLanguage
2467
2470
SELF :MaybeNewLinesAfterUsings (node)
2468
2471
NEXT
2469
2472
2470
- //VIRTUAL METHOD VisitText(textNode AS TextNode) AS VOID
2473
+ //VIRTUAL METHOD VisitText(textNode AS TextNode) AS VOID
2471
2474
2472
2475
2473
2476
VIRTUAL METHOD VisitThisReferenceExpression (thisReferenceExpression AS ThisReferenceExpression) AS VOID
@@ -2885,7 +2888,7 @@ BEGIN NAMESPACE ILSpy.XSharpLanguage
2885
2888
SELF :NewLine ()
2886
2889
SELF :EndNode (whileStatement)
2887
2890
2888
- //VIRTUAL METHOD VisitWhitespace(whitespaceNode AS WhitespaceNode) AS VOID
2891
+ //VIRTUAL METHOD VisitWhitespace(whitespaceNode AS WhitespaceNode) AS VOID
2889
2892
2890
2893
2891
2894
VIRTUAL METHOD VisitYieldBreakStatement (yieldBreakStatement AS YieldBreakStatement) AS VOID
@@ -3250,7 +3253,7 @@ BEGIN NAMESPACE ILSpy.XSharpLanguage
3250
3253
SELF :WriteKeyword ( "SELF" )
3251
3254
SELF :WriteToken ( ":" )
3252
3255
ENDIF
3253
- ELSE
3256
+ ELSE
3254
3257
ENDIF
3255
3258
ENDIF
3256
3259
0 commit comments