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

Side by Side Diff: pkg/dev_compiler/tool/input_sdk/private/annotations.dart

Issue 2848703003: Fix a batch of DDC SDK compile errors. (Closed)
Patch Set: Revise. Created 3 years, 7 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._js_helper; 5 part of dart._js_helper;
6 6
7 /// Tells the optimizing compiler to always inline the annotated method.
8 class ForceInline {
9 const ForceInline();
10 }
11
7 /// Tells the optimizing compiler that the annotated method cannot throw. 12 /// Tells the optimizing compiler that the annotated method cannot throw.
8 /// Requires @NoInline() to function correctly. 13 /// Requires @NoInline() to function correctly.
9 class NoThrows { 14 class NoThrows {
10 const NoThrows(); 15 const NoThrows();
11 } 16 }
12 17
13 /// Tells the optimizing compiler to not inline the annotated method. 18 /// Tells the optimizing compiler to not inline the annotated method.
14 class NoInline { 19 class NoInline {
15 const NoInline(); 20 const NoInline();
16 } 21 }
(...skipping 10 matching lines...) Expand all
27 /// matching the JavaScript calling conventions. 32 /// matching the JavaScript calling conventions.
28 final String name; 33 final String name;
29 const JsPeerInterface({this.name}); 34 const JsPeerInterface({this.name});
30 } 35 }
31 36
32 /// A Dart interface may only be implemented by a native JavaScript object 37 /// A Dart interface may only be implemented by a native JavaScript object
33 /// if it is marked with this annotation. 38 /// if it is marked with this annotation.
34 class SupportJsExtensionMethods { 39 class SupportJsExtensionMethods {
35 const SupportJsExtensionMethods(); 40 const SupportJsExtensionMethods();
36 } 41 }
OLDNEW
« no previous file with comments | « pkg/dev_compiler/tool/input_sdk/patch/core_patch.dart ('k') | pkg/dev_compiler/tool/sdk_expected_errors.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698