Skip to content

Commit

Permalink
Correction: SUPER is now generated instead of Base at CONSTRUCTOR time
Browse files Browse the repository at this point in the history
  • Loading branch information
fforay committed Dec 17, 2020
1 parent bfd4507 commit 3df4957
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ILSpy.XSharpLanguage/XSharpOutputVisitor.prg
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,8 @@ BEGIN NAMESPACE ILSpy.XSharpLanguage
SELF:WriteCommaSeparatedListInParenthesis((System.Collections.Generic.IEnumerable<AstNode>)ctorDeclaration:Parameters , SELF:policy:SpaceWithinMethodDeclarationParentheses)
IF (! ctorDeclaration:Initializer:IsNull)
// Continue on Next Line
SELF:WriteToken(XSRoles.Semicolon)
// Yes, but not in XSharp
// SELF:WriteToken(XSRoles.Semicolon)
SELF:NewLine()
SELF:writer:Indent()
ctorDeclaration:Initializer:AcceptVisitor(SELF)
Expand All @@ -989,7 +990,8 @@ BEGIN NAMESPACE ILSpy.XSharpLanguage
SELF:WriteKeyword("SELF")
ELSE
//
SELF:WriteKeyword(ConstructorInitializer.BaseKeywordRole)
SELF:WriteKeyword("SUPER")
//SELF:WriteKeyword(ConstructorInitializer.BaseKeywordRole)
ENDIF
SELF:Space(SELF:policy:SpaceBeforeMethodCallParentheses)
SELF:WriteCommaSeparatedListInParenthesis((System.Collections.Generic.IEnumerable<AstNode>)constructorInitializer:Arguments , SELF:policy:SpaceWithinMethodCallParentheses)
Expand Down

0 comments on commit 3df4957

Please sign in to comment.