OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 library contains the annotations used in js.dart separately so they can | 6 * This library contains the annotations used in js.dart separately so they can |
7 * be imported into the VM. | 7 * be imported into the VM. |
8 */ | 8 */ |
9 library js.metadata; | 9 library js.metadata; |
10 | 10 |
(...skipping 20 matching lines...) Expand all Loading... |
31 * JsInterface. | 31 * JsInterface. |
32 * | 32 * |
33 * Classes annotated with @JsProxy() are transformed to add an impementation of | 33 * Classes annotated with @JsProxy() are transformed to add an impementation of |
34 * all abstract methods defined on superclasses that extend JsInterface. | 34 * all abstract methods defined on superclasses that extend JsInterface. |
35 */ | 35 */ |
36 class JsProxy { | 36 class JsProxy { |
37 final String constructor; | 37 final String constructor; |
38 final bool global; | 38 final bool global; |
39 const JsProxy({this.constructor, this.global: false}); | 39 const JsProxy({this.constructor, this.global: false}); |
40 } | 40 } |
| 41 |
| 42 |
| 43 class Jsify { |
| 44 const Jsify(); |
| 45 } |
| 46 |
| 47 const jsify = const Jsify(); |
OLD | NEW |