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

Side by Side Diff: packages/dart_style/test/comments/functions.unit

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years, 2 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
OLDNEW
(Empty)
1 40 columns |
2 >>> indented line comment (dartbug.com/16383)
3 main() {
4 // comment
5 }
6 <<<
7 main() {
8 // comment
9 }
10 >>> line comment on opening line
11 main() { // comment
12 }
13 <<<
14 main() {
15 // comment
16 }
17 >>> indented block comment
18 main() {
19 /* comment */
20 }
21 <<<
22 main() {
23 /* comment */
24 }
25 >>> block comment with trailing newline
26 main() {/* comment */
27 }
28 <<<
29 main() {
30 /* comment */
31 }
32 >>> block comment with leading newline
33 main() {
34 /* comment */}
35 <<<
36 main() {
37 /* comment */
38 }
39 >>> inline block comment
40 main() { /* comment */ }
41 <<<
42 main() {/* comment */}
43 >>> multiple comments on opening line
44 main() { /* first */ // second
45 }
46 <<<
47 main() {
48 /* first */ // second
49 }
50 >>> multiple inline block comments
51 main() { /* 1 */ /* 2 */ /* 3 */ }
52 <<<
53 main() {/* 1 */ /* 2 */ /* 3 */}
54 >>> multiline trailing block comment
55 main() { /* comment
56 */ }
57 <<<
58 main() {
59 /* comment
60 */
61 }
62 >>> line comments at the start of the line in a function
63 main() {
64 // print(1);
65 // print(2);
66 print(3);
67 }
68 <<<
69 main() {
70 // print(1);
71 // print(2);
72 print(3);
73 }
74 >>> before "," in param list
75 main(a/* c */,b) {}
76 <<<
77 main(a /* c */, b) {}
78 >>> after "," in param list
79 main(a,/* c */b) {}
80 <<<
81 main(a, /* c */ b) {}
82 >>> before "[" in param list
83 main(/* c */[arg]) {}
84 <<<
85 main(/* c */ [arg]) {}
86 >>> after "[" in param list
87 main([/* c */arg]) {}
88 <<<
89 main([/* c */ arg]) {}
90 >>> before "]" in param list
91 main([arg/* c */]) {}
92 <<<
93 main([arg /* c */]) {}
94 >>> after "]" in param list
95 main([arg]/* c */) {}
96 <<<
97 main([arg] /* c */) {}
98 >>> before "{" in param list
99 main(/* c */{arg}) {}
100 <<<
101 main(/* c */ {arg}) {}
102 >>> after "{" in param list
103 main({/* c */arg}) {}
104 <<<
105 main({/* c */ arg}) {}
106 >>> before "}" in param list
107 main({arg/* c */}) {}
108 <<<
109 main({arg /* c */}) {}
110 >>> after "{" in param list
111 main({arg}/* c */) {}
112 <<<
113 main({arg} /* c */) {}
114 >>>
115 longFunction(/* a very long block comment */) {}
116 <<<
117 longFunction(
118 /* a very long block comment */) {}
119 >>> remove blank line before beginning of body
120 main() {
121
122
123
124 // comment
125 }
126 <<<
127 main() {
128 // comment
129 }
OLDNEW
« no previous file with comments | « packages/dart_style/test/comments/expressions.stmt ('k') | packages/dart_style/test/comments/lists.stmt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698