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

Unified Diff: sdk/lib/_internal/lib/internal_patch.dart

Issue 338103004: Use metadata for patching. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/_internal/lib/core_patch.dart ('k') | sdk/lib/_internal/lib/io_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/lib/internal_patch.dart
diff --git a/sdk/lib/_internal/lib/internal_patch.dart b/sdk/lib/_internal/lib/internal_patch.dart
index 485c8956de4fc8e34a10d138e0906fc50f142893..16afd5f3aa6332ec62190bdf31b5ff3455f4f898 100644
--- a/sdk/lib/_internal/lib/internal_patch.dart
+++ b/sdk/lib/_internal/lib/internal_patch.dart
@@ -3,19 +3,23 @@
// BSD-style license that can be found in the LICENSE file.
import 'dart:_js_primitives' show printString;
-import 'dart:_js_helper' show JS;
+import 'dart:_js_helper' show JS, patch;
import 'dart:_interceptors' show JSArray;
-patch class Symbol implements core.Symbol {
- patch const Symbol(String name)
+@patch
+class Symbol implements core.Symbol {
+ @patch
+ const Symbol(String name)
: this._name = name;
}
-patch void printToConsole(String line) {
+@patch
+void printToConsole(String line) {
printString('$line');
}
-patch List makeListFixedLength(List growableList) {
+@patch
+List makeListFixedLength(List growableList) {
JSArray.markFixedList(growableList);
return growableList;
}
« no previous file with comments | « sdk/lib/_internal/lib/core_patch.dart ('k') | sdk/lib/_internal/lib/io_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698