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

Side by Side Diff: tests/compiler/dart2js/mirrors_helper.dart

Issue 11726005: Dartdoc comments retrieved as metadata through dart2js mirrors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 7 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 | Annotate | Revision Log
« no previous file with comments | « sdk/lib/mirrors/mirrors_impl.dart ('k') | tests/compiler/dart2js/mirrors_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /** 5 /**
6 * This file is read by 'mirrors_test.dart'. 6 * This file is read by 'mirrors_test.dart'.
7 */ 7 */
8 8
9 library mirrors_helper; 9 library mirrors_helper;
10 10
11 typedef E Func<E,F extends Foo>(F f); 11 typedef E Func<E,F extends Foo>(F f);
12 12
13 main() { 13 main() {
14 14
15 } 15 }
16 16
17 /// Singleline doc comment.
17 @Metadata // This is intentionally the type literal. 18 @Metadata // This is intentionally the type literal.
19 // Singleline comment 1.
20 // Singleline comment 2.
18 @Metadata(null) 21 @Metadata(null)
19 @Metadata(true) 22 @Metadata(true)
20 @Metadata(false) 23 @Metadata(false)
21 @Metadata(0) 24 @Metadata(0)
22 @Metadata(1.5) 25 @Metadata(1.5)
23 @Metadata("Foo") 26 @Metadata("Foo")
24 @Metadata(const ["Foo"]) 27 @Metadata(const ["Foo"])
25 @Metadata(const {'foo':"Foo"}) 28 @Metadata(const {'foo':"Foo"})
26 @metadata 29 @metadata
27 class Foo { 30 /** Multiline doc comment. */
31 /* Multiline comment. */ class Foo {
28 32
29 } 33 }
30 34
35
31 abstract class Bar<E> { 36 abstract class Bar<E> {
32 37
33 } 38 }
34 39
35 class Baz<E,F extends Foo> implements Bar<E> { 40 class Baz<E,F extends Foo> implements Bar<E> {
36 Baz(); 41 Baz();
37 const Baz.named(); 42 const Baz.named();
38 factory Baz.factory() => new Baz<E,F>(); 43 factory Baz.factory() => new Baz<E,F>();
39 44
40 static method1(e) {} 45 static method1(e) {}
(...skipping 23 matching lines...) Expand all
64 _PrivateClass._privateConstructor(); 69 _PrivateClass._privateConstructor();
65 factory _PrivateClass._privateFactoryConstructor() => new _PrivateClass(); 70 factory _PrivateClass._privateFactoryConstructor() => new _PrivateClass();
66 } 71 }
67 72
68 const metadata = const Metadata(null); 73 const metadata = const Metadata(null);
69 74
70 class Metadata { 75 class Metadata {
71 final data; 76 final data;
72 const Metadata(this.data); 77 const Metadata(this.data);
73 } 78 }
OLDNEW
« no previous file with comments | « sdk/lib/mirrors/mirrors_impl.dart ('k') | tests/compiler/dart2js/mirrors_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698