0a09f96271
It will wrap on spaces with the lowest priority first, and if required - on the next priority, etc. R=brianwilkerson@google.com, pquitslund@google.com BUG= Review URL: https://codereview.chromium.org//381663004 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38109 260f80e4-7a28-3924-810f-c04153c831b5
96 lines
2.7 KiB
Plaintext
96 lines
2.7 KiB
Plaintext
>>> list literal
|
|
main() {
|
|
List<String> values = <String>[a0123456789012345, b0123456789012345, c0123456789012345, d0123456789012345];
|
|
}
|
|
<<<
|
|
main() {
|
|
List<String> values = <String>[
|
|
a0123456789012345,
|
|
b0123456789012345,
|
|
c0123456789012345,
|
|
d0123456789012345];
|
|
}
|
|
>>> operators
|
|
main() {
|
|
int result = a0123456789012345 * b0123456789012345 + c0123456789012345 * d0123456789012345;
|
|
}
|
|
<<<
|
|
main() {
|
|
int result =
|
|
a0123456789012345 * b0123456789012345 +
|
|
c0123456789012345 * d0123456789012345;
|
|
}
|
|
>>> arguments
|
|
main() {
|
|
myFunction(a0123456789012345 * b0123456789012345, c0123456789012345 * d0123456789012345);
|
|
}
|
|
<<<
|
|
main() {
|
|
myFunction(
|
|
a0123456789012345 * b0123456789012345,
|
|
c0123456789012345 * d0123456789012345);
|
|
}
|
|
>>> arguments, nested
|
|
main() {
|
|
someFunctionOne(a012345678901234567890123456789,
|
|
someFunctionTwo(ba01234567890123456789, bb01234567890123456789, bc01234567890123456789),
|
|
someFunctionTwo(ca01234567890123456789, cb01234567890123456789, cc01234567890123456789),
|
|
d012345678901234567890123456789, e012345678901234567890123456789);
|
|
}
|
|
<<<
|
|
main() {
|
|
someFunctionOne(
|
|
a012345678901234567890123456789,
|
|
someFunctionTwo(
|
|
ba01234567890123456789,
|
|
bb01234567890123456789,
|
|
bc01234567890123456789),
|
|
someFunctionTwo(
|
|
ca01234567890123456789,
|
|
cb01234567890123456789,
|
|
cc01234567890123456789),
|
|
d012345678901234567890123456789,
|
|
e012345678901234567890123456789);
|
|
}
|
|
>>> conditions, same operator
|
|
main() {
|
|
if (a012345678901234567890123456789 || b012345678901234567890123456789 || c012345678901234567890123456789
|
|
|| d012345678901234567890123456789) {
|
|
}
|
|
}
|
|
<<<
|
|
main() {
|
|
if (a012345678901234567890123456789 ||
|
|
b012345678901234567890123456789 ||
|
|
c012345678901234567890123456789 ||
|
|
d012345678901234567890123456789) {
|
|
}
|
|
}
|
|
>>> conditions, different operators
|
|
main() {
|
|
if (a012345678901234567890123456789 && b012345678901234567890123456789 || c012345678901234567890123456789
|
|
&& d012345678901234567890123456789) {
|
|
}
|
|
}
|
|
<<<
|
|
main() {
|
|
if (a012345678901234567890123456789 && b012345678901234567890123456789 ||
|
|
c012345678901234567890123456789 && d012345678901234567890123456789) {
|
|
}
|
|
}
|
|
>>> conditional expression
|
|
main() {
|
|
MatchKind kind = element != null ? a012345678901234567890123456789 : b012345678901234567890123456789;
|
|
}
|
|
<<<
|
|
main() {
|
|
MatchKind kind = element != null ?
|
|
a012345678901234567890123456789 :
|
|
b012345678901234567890123456789;
|
|
}
|
|
>>> expression function body
|
|
myFunction() => a012345678901234567890123456789 + b012345678901234567890123456789;
|
|
<<<
|
|
myFunction() =>
|
|
a012345678901234567890123456789 + b012345678901234567890123456789;
|