Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(190)

Side by Side Diff: test/splitting/type_arguments.stmt

Issue 2844573002: Preserve type arguments in generic invocation expressions. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/regression/0600/0621.stmt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 40 columns | 1 40 columns |
2 >>> all fit on one line 2 >>> all fit on one line
3 new Foo<A,B,C,D>(); 3 new Foo<A,B,C,D>();
4 <<< 4 <<<
5 new Foo<A, B, C, D>(); 5 new Foo<A, B, C, D>();
6 >>> prefer to split between args even when they all fit on next line 6 >>> prefer to split between args even when they all fit on next line
7 new LongClassName<First, Second, Third>(); 7 new LongClassName<First, Second, Third>();
8 <<< 8 <<<
9 new LongClassName<First, Second, 9 new LongClassName<First, Second,
10 Third>(); 10 Third>();
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 eighth); 58 eighth);
59 >>> newline before typed collection should not force <> to split 59 >>> newline before typed collection should not force <> to split
60 { 60 {
61 <int>[]; 61 <int>[];
62 <int>[]; 62 <int>[];
63 } 63 }
64 <<< 64 <<<
65 { 65 {
66 <int>[]; 66 <int>[];
67 <int>[]; 67 <int>[];
68 } 68 }
69 >>> type arguments on invocation expressions, all on one line
70 (fn)<T, S>(1, 2);
71 <<<
72 (fn)<T, S>(1, 2);
73 >>> type arguments on invocation, prefer to not split at type args
74 (longFunction)<TypeArgument>(valueArgument);
75 <<<
76 (longFunction)<TypeArgument>(
77 valueArgument);
78 >>> type arguments on invocation expressions split both type and value arguments
79 (longFunction)<First, Second, Third, Fourth, Fifth, Sixth, Seventh, Eighth>(firs t, second, third, fourth, fifth, sixth, seventh, eighth);
80 <<<
81 (longFunction)<
82 First,
83 Second,
84 Third,
85 Fourth,
86 Fifth,
87 Sixth,
88 Seventh,
89 Eighth>(
90 first,
91 second,
92 third,
93 fourth,
94 fifth,
95 sixth,
96 seventh,
97 eighth);
OLDNEW
« no previous file with comments | « test/regression/0600/0621.stmt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698