eclipse-archived / ceylon.formatter

A formatter for the Ceylon programming language, written in Ceylon.
Apache License 2.0
14 stars 11 forks source link

Error when formatting negated exists #111

Closed bjansen closed 9 years ago

bjansen commented 9 years ago

The following code can't be formatted:

shared void run(String? foo) {
if (!exists foo) {

}
}

Suppressed: ceylon.language.Exception "Unexpected token 'exists' ([@​20,62:67='exists',<42>,3:5]), expected '' instead" at ceylon.formatter.FormattingWriter$13.$call$(FormattingWriter.ceylon:641) at ceylon.formatter.FormattingWriter$13.$call$(FormattingWriter.ceylon:617) at ceylon.formatter.FormattingWriter.fastForward$priv$(FormattingWriter.ceylon:1120) at ceylon.formatter.FormattingWriter.writeToken$canonical$(FormattingWriter.ceylon:617) at ceylon.formatter.FormattingWriter.writeToken(FormattingWriter.ceylon:507) at ceylon.formatter.FormattingWriter.destroy(FormattingWriter.ceylon:1192) at ceylon.formatter.FormattingVisitor.destroy(FormattingVisitor.ceylon:2231) at ceylon.formatter.format_.format(format.ceylon:71)