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

Side by Side Diff: tool/input_sdk/lib/core/annotations.dart

Issue 1152333009: Delete dart2js specific private library code (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 6 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 part of dart.core; 5 part of dart.core;
6 6
7 // TODO(jacobr): move these annotations to a different package. E.g. dart:js 7 // TODO(jacobr): move these annotations to a different package. E.g. dart:js
8 8
9 class JsName { 9 class JsName {
10 /// The JavaScript name. 10 /// The JavaScript name.
11 /// Used for classes and libraries. 11 /// Used for classes and libraries.
12 /// Note that this could be an expression, e.g. `lib.TypeName` in JS, but it 12 /// Note that this could be an expression, e.g. `lib.TypeName` in JS, but it
13 /// should be kept simple, as it will be generated directly into the code. 13 /// should be kept simple, as it will be generated directly into the code.
14 final String name; 14 final String name;
15 const JsName({this.name}); 15 const JsName({this.name});
16 } 16 }
17 17
18 class JsPeerInterface { 18 class JsPeerInterface {
19 /// The JavaScript type that we should match the API of. 19 /// The JavaScript type that we should match the API of.
20 /// Used for classes where Dart subclasses should be callable from JavaScript 20 /// Used for classes where Dart subclasses should be callable from JavaScript
21 /// matching the JavaScript calling conventions. 21 /// matching the JavaScript calling conventions.
22 final String name; 22 final String name;
23 const JsPeerInterface({this.name}); 23 const JsPeerInterface({this.name});
24 } 24 }
25 25
26 /// A Dart interface may only be implemented by a native JavaScript object 26 /// A Dart interface may only be implemented by a native JavaScript object
27 /// if it is marked with this annotation. 27 /// if it is marked with this annotation.
28 class SupportJsExtensionMethod { 28 class SupportJsExtensionMethods {
29 const SupportJsExtensionMethod(); 29 const SupportJsExtensionMethods();
30 } 30 }
31 31
32 /** 32 /**
33 * The annotation `@Deprecated('expires when')` marks a feature as deprecated. 33 * The annotation `@Deprecated('expires when')` marks a feature as deprecated.
34 * 34 *
35 * The annotation `@deprecated` is a shorthand for deprecating until 35 * The annotation `@deprecated` is a shorthand for deprecating until
36 * an unspecified "next release". 36 * an unspecified "next release".
37 * 37 *
38 * The intent of the `@Deprecated` annotation is to inform users of a feature 38 * The intent of the `@Deprecated` annotation is to inform users of a feature
39 * that they should change their code, even if it is currently still working 39 * that they should change their code, even if it is currently still working
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 * 158 *
159 * Tools that understand `@proxy` should tell the user if a class using `@proxy` 159 * Tools that understand `@proxy` should tell the user if a class using `@proxy`
160 * does not override the `noSuchMethod` declared on [Object]. 160 * does not override the `noSuchMethod` declared on [Object].
161 * 161 *
162 * The intent of the `@proxy` notation is to create objects that implement a 162 * The intent of the `@proxy` notation is to create objects that implement a
163 * type (or multiple types) that are not known at compile time. If the types 163 * type (or multiple types) that are not known at compile time. If the types
164 * are known at compile time, a class can be written that implements these 164 * are known at compile time, a class can be written that implements these
165 * types. 165 * types.
166 */ 166 */
167 const Object proxy = const _Proxy(); 167 const Object proxy = const _Proxy();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698