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

Unified Diff: test/generated_sdk/lib/core/expando.dart

Issue 955513007: merge class extensions from patch files (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 10 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 | « test/generated_sdk/lib/collection/linked_hash_map.dart ('k') | test/generated_sdk/lib/core/function.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/generated_sdk/lib/core/expando.dart
diff --git a/test/generated_sdk/lib/core/expando.dart b/test/generated_sdk/lib/core/expando.dart
index 99f6f64b63307a77c3e30b07da7625938066da68..26577ad274bf86c758f273fff307f41f26bf952d 100644
--- a/test/generated_sdk/lib/core/expando.dart
+++ b/test/generated_sdk/lib/core/expando.dart
@@ -71,4 +71,19 @@ class Expando<T> {
Primitives.setProperty(values, _getKey(), value);
}
+ String _getKey() {
+ String key = Primitives.getProperty(this, _KEY_PROPERTY_NAME);
+ if (key == null) {
+ key = "expando\$key\$${_keyCount++}";
+ Primitives.setProperty(this, _KEY_PROPERTY_NAME, key);
+ }
+ return key;
+ }
+
+ static const String _KEY_PROPERTY_NAME = 'expando\$key';
+
+ static const String _EXPANDO_PROPERTY_NAME = 'expando\$values';
+
+ static int _keyCount = 0;
+
}
« no previous file with comments | « test/generated_sdk/lib/collection/linked_hash_map.dart ('k') | test/generated_sdk/lib/core/function.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698