Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Commit

Permalink
Support type constructors
Browse files Browse the repository at this point in the history
Closes #108.
  • Loading branch information
lucaswerkmeister committed Aug 26, 2015
1 parent 725985d commit 05b9985
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions source/ceylon/formatter/FormattingVisitor.ceylon
Original file line number Diff line number Diff line change
Expand Up @@ -2055,6 +2055,19 @@ shared class FormattingVisitor(
CeylonIterable(that.typeConstraints)*.visit(this);
}

shared actual void visitTypeConstructor(TypeConstructor that) {
that.typeParameterList.visit(this);
that.typeConstraintList?.visit(this);
fWriter.writeToken {
"=>"; // not in the AST
spaceBefore = true;
spaceAfter = true;
lineBreaksBefore = 0..1;
lineBreaksAfter = noLineBreak;
};
that.type.visit(this);
}

shared actual void visitTypedDeclaration(TypedDeclaration that) {
that.annotationList?.visit(this);
that.type.visit(this);
Expand Down

0 comments on commit 05b9985

Please sign in to comment.