blob: 99123efefc9677e6db23811dd3662b9e08ca3530 [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.',
);
>>> Digit separators.
[
100__000_000__000_000__000_000,
0x4000_0000_0000_0000,
0.000_000_000_01,
0x00_14_22_01_23_45,
555_123_4567,
00_1_00,
-00_99,
0__0__0__0__0,
3.141_592_653,
1__9.7_3_9,
-1.6_1_8,
0__0,
1e3_0,
1_2e3,
1_2.3_4e1,
];
<<<
[
100__000_000__000_000__000_000,
0x4000_0000_0000_0000,
0.000_000_000_01,
0x00_14_22_01_23_45,
555_123_4567,
00_1_00,
-00_99,
0__0__0__0__0,
3.141_592_653,
1__9.7_3_9,
-1.6_1_8,
0__0,
1e3_0,
1_2e3,
1_2.3_4e1,
];