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

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

Issue 155703004: Support parameter metadata. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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
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
(...skipping 11 matching lines...) Expand all
22 @Metadata(true) 22 @Metadata(true)
23 @Metadata(false) 23 @Metadata(false)
24 @Metadata(0) 24 @Metadata(0)
25 @Metadata(1.5) 25 @Metadata(1.5)
26 @Metadata("Foo") 26 @Metadata("Foo")
27 @Metadata(const ["Foo"]) 27 @Metadata(const ["Foo"])
28 @Metadata(const {'foo':"Foo"}) 28 @Metadata(const {'foo':"Foo"})
29 @metadata 29 @metadata
30 /** Multiline doc comment. */ 30 /** Multiline doc comment. */
31 /* Multiline comment. */ class Foo { 31 /* Multiline comment. */ class Foo {
32 32 m(@metadata a) {}
33 } 33 }
34 34
35 35
36 abstract class Bar<E> { 36 abstract class Bar<E> {
37 37
38 } 38 }
39 39
40 class Baz<E,F extends Foo> implements Bar<E> { 40 class Baz<E,F extends Foo> implements Bar<E> {
41 Baz(); 41 Baz();
42 const Baz.named(); 42 const Baz.named();
(...skipping 26 matching lines...) Expand all
69 _PrivateClass._privateConstructor(); 69 _PrivateClass._privateConstructor();
70 factory _PrivateClass._privateFactoryConstructor() => new _PrivateClass(); 70 factory _PrivateClass._privateFactoryConstructor() => new _PrivateClass();
71 } 71 }
72 72
73 const metadata = const Metadata(null); 73 const metadata = const Metadata(null);
74 74
75 class Metadata { 75 class Metadata {
76 final data; 76 final data;
77 const Metadata(this.data); 77 const Metadata(this.data);
78 } 78 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698