OLD | NEW |
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 /// Singleline doc comment. |
18 @Metadata // This is intentionally the type literal. | 18 @Metadata(null) |
19 // Singleline comment 1. | 19 // Singleline comment 1. |
20 // Singleline comment 2. | 20 // Singleline comment 2. |
21 @Metadata(null) | |
22 @Metadata(true) | 21 @Metadata(true) |
23 @Metadata(false) | 22 @Metadata(false) |
24 @Metadata(0) | 23 @Metadata(0) |
25 @Metadata(1.5) | 24 @Metadata(1.5) |
26 @Metadata("Foo") | 25 @Metadata("Foo") |
27 @Metadata(const ["Foo"]) | 26 @Metadata(const ["Foo"]) |
28 @Metadata(const {'foo':"Foo"}) | 27 @Metadata(const {'foo':"Foo"}) |
29 @metadata | 28 @metadata |
30 /** Multiline doc comment. */ | 29 /** Multiline doc comment. */ |
31 /* Multiline comment. */ class Foo { | 30 /* Multiline comment. */ class Foo { |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 _PrivateClass._privateConstructor(); | 69 _PrivateClass._privateConstructor(); |
71 factory _PrivateClass._privateFactoryConstructor() => null; | 70 factory _PrivateClass._privateFactoryConstructor() => null; |
72 } | 71 } |
73 | 72 |
74 const metadata = const Metadata(null); | 73 const metadata = const Metadata(null); |
75 | 74 |
76 class Metadata { | 75 class Metadata { |
77 final data; | 76 final data; |
78 const Metadata(this.data); | 77 const Metadata(this.data); |
79 } | 78 } |
OLD | NEW |