blob: eaec2f3ebcd7e8310d3d7030284db54de70e7361 [file] [log] [blame]
40 columns |
>>> Null literal.
null ;
<<<
null;
>>> Double literal.
12.34;
<<<
12.34;
>>> Parenthesized.
( (
expression
) );
<<<
((expression));
>>> This.
this ;
<<<
this;
>>> Unqualified symbol.
# foo ;
<<<
#foo;
>>> Qualified symbol
# foo . bar . baz ;
<<<
#foo.bar.baz;
>>> Long qualified symbols do not split.
#longComponent.anotherLongComponent.third;
<<<
#longComponent.anotherLongComponent.third;
>>> Yield.
Stream<String> i(String n) async* {
yield i ;
}
<<<
Stream<String> i(String n) async* {
yield i;
}
>>> Yield*.
Stream<int> i(int n) async* {
yield * i ( n - 1 ) ;
}
<<<
Stream<int> i(int n) async* {
yield* i(n - 1);
}
>>> Await.
foo() async {
await i ( 1 + 2 ) ;
}
<<<
foo() async {
await i(1 + 2);
}
>>> Throw.
throw 'error'
;
<<<
throw 'error';
>>> Throw doesn't split after the 'throw' keyword.
throw 'Some extremely long error message.';
<<<
throw 'Some extremely long error message.';
>>> Throw with long string literal.
throw new FormatException('This is a long exception message.');
<<<
throw new FormatException(
'This is a long exception message.',
);