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

Side by Side Diff: test/comments/generic_methods.unit

Issue 1583203003: Don't put spaces around magic generic method annotation comments. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: Created 4 years, 11 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 | « lib/src/chunk_builder.dart ('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
(Empty)
1 40 columns |
2 >>> function declaration
3 int f/*<S, T>*/(int x) => 3;
4 <<<
5 int f/*<S, T>*/(int x) => 3;
6 >>> type bounds
7 int f/*<S extends Set<S>>*/(int x) => 3;
8 <<<
9 int f/*<S extends Set<S>>*/(int x) => 3;
10 >>> method
11 class C {
12 static int f/*<S, T>*/(int x) => 3;
13 int m/*<S, T>*/(int x) => 3;
14 }
15 <<<
16 class C {
17 static int f/*<S, T>*/(int x) => 3;
18 int m/*<S, T>*/(int x) => 3;
19 }
20 >>> function type parameter
21 void foo(int f/*<S>*/(int x)) {}
22 <<<
23 void foo(int f/*<S>*/(int x)) {}
24 >>> variable
25 var x = /*<S>*/(int x) => x;
26 <<<
27 var x = /*<S>*/(int x) => x;
28 >>> parameter type
29 foo/*<S>*/(dynamic/*=S*/ x) => x;
30 <<<
31 foo/*<S>*/(dynamic/*=S*/ x) => x;
32 >>> return type
33 dynamic/*=S*/ foo/*<S>*/() => x;
34 <<<
35 dynamic/*=S*/ foo/*<S>*/() => x;
36 >>> without dynamic
37 main() {
38 /*=S*/ foo/*<S>*/(/*=S*/ x) {return x;}
39 }
40 <<<
41 main() {
42 /*=S*/ foo/*<S>*/(/*=S*/ x) {
43 return x;
44 }
45 }
46 >>> var
47 void foo/*<S>*/(var /*=S*/ x) {
48 var /*=S*/ y = x;
49 }
50 <<<
51 void foo/*<S>*/(var/*=S*/ x) {
52 var/*=S*/ y = x;
53 }
OLDNEW
« no previous file with comments | « lib/src/chunk_builder.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698