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

Side by Side Diff: lib/src/metadata.dart

Issue 615913004: Add @jsify annotation. Support automatically proxying Lists and Maps to Dart in Proxies. Support co… (Closed) Base URL: https://github.com/dart-lang/js-interop.git@master
Patch Set: Created 6 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
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
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();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698