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

Side by Side Diff: packages/dart_style/test/comments/mixed.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 >>> block comment
3 library foo;
4 /* A long
5 * Comment
6 */
7
8 /* And
9 * another...
10 */
11
12 // Mixing it up
13
14 class C /* is cool */ {
15 /* int */ foo() => 42;
16 }
17 <<<
18 library foo;
19 /* A long
20 * Comment
21 */
22
23 /* And
24 * another...
25 */
26
27 // Mixing it up
28
29 class C /* is cool */ {
30 /* int */ foo() => 42;
31 }
32 >>> mixed doc and line comments
33 /// Copyright info
34
35 library foo;
36 /// Class comment
37 //TODO: implement
38 class C {
39 }
40 <<<
41 /// Copyright info
42
43 library foo;
44
45 /// Class comment
46 //TODO: implement
47 class C {}
48 >>> mixed comments
49 library foo;
50
51
52 /* Comment 1 */
53
54 // Comment 2
55
56 /* Comment 3 */
57
58
59 class C {}
60 <<<
61 library foo;
62
63 /* Comment 1 */
64
65 // Comment 2
66
67 /* Comment 3 */
68
69 class C {}
70 >>> multiline comment inside nested blocks
71 main() {
72 inner() {
73 function(/*
74 comment */argument);
75 }
76 }
77 <<<
78 main() {
79 inner() {
80 function(/*
81 comment */
82 argument);
83 }
84 }
85 >>> line doc comments are indented even if flush left
86 class C {
87 /// doc
88 method() {}
89 }
90 <<<
91 class C {
92 /// doc
93 method() {}
94 }
95 >>> commented out comments are not mistaken for doc comments
96 class C {
97 //// not a doc comment
98 //commentedOut() {}
99 method() {}
100 }
101 <<<
102 class C {
103 //// not a doc comment
104 //commentedOut() {}
105 method() {}
106 }
OLDNEW
« no previous file with comments | « packages/dart_style/test/comments/maps.stmt ('k') | packages/dart_style/test/comments/statements.stmt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698