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

Unified Diff: runtime/lib/expando_patch.dart

Issue 2220883004: Use metadata annotation @patch for patch classes (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: wip Created 4 years, 4 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
Index: runtime/lib/expando_patch.dart
diff --git a/runtime/lib/expando_patch.dart b/runtime/lib/expando_patch.dart
index df0234d4d8ab0fb01a513ea64094f20852b38e90..abdefabaa5df7e98d9545cf2e10466a878360ea9 100644
--- a/runtime/lib/expando_patch.dart
+++ b/runtime/lib/expando_patch.dart
@@ -2,15 +2,15 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-patch class Expando<T> {
- /* patch */ Expando([String this.name])
+@patch class Expando<T> {
+ /* @patch */ Expando([String this.name])
: _data = new List(_minSize),
_used = 0;
static const _minSize = 8;
static final _deletedEntry = new _WeakProperty(null, null);
- /* patch */ T operator[](Object object) {
+ /* @patch */ T operator[](Object object) {
_checkType(object);
var mask = _size - 1;
@@ -31,7 +31,7 @@ patch class Expando<T> {
return null;
}
- /* patch */ void operator[]=(Object object, T value) {
+ /* @patch */ void operator[]=(Object object, T value) {
_checkType(object);
var mask = _size - 1;

Powered by Google App Engine
This is Rietveld 408576698