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

Unified Diff: test/dart_codegen/expect/core/expando.dart

Issue 961493003: don't run dart gen on JS patch code (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/dart_codegen/expect/core/exceptions.dart ('k') | test/dart_codegen/expect/core/function.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/dart_codegen/expect/core/expando.dart
diff --git a/test/dart_codegen/expect/core/expando.dart b/test/dart_codegen/expect/core/expando.dart
index 7afe768f5d8e28256dd5a502e7d5ad2adf37f4b4..48a5fc77dcabdbeb8ebc7a982525dba4c8c42b14 100644
--- a/test/dart_codegen/expect/core/expando.dart
+++ b/test/dart_codegen/expect/core/expando.dart
@@ -2,21 +2,8 @@ part of dart.core;
class Expando<T> {
final String name;
- Expando([String name]) : this.name = name;
+ external Expando([String name]);
String toString() => "Expando:$name";
- T operator [](Object object) {
- var values = Primitives.getProperty(object, _EXPANDO_PROPERTY_NAME);
- return ((__x21) => DDC$RT.cast(__x21, dynamic, T, "CastGeneral",
- """line 55, column 12 of dart:core/expando.dart: """, __x21 is T,
- false))(
- (values == null) ? null : Primitives.getProperty(values, _getKey()));
- }
- void operator []=(Object object, T value) {
- var values = Primitives.getProperty(object, _EXPANDO_PROPERTY_NAME);
- if (values == null) {
- values = new Object();
- Primitives.setProperty(object, _EXPANDO_PROPERTY_NAME, values);
- }
- Primitives.setProperty(values, _getKey(), value);
- }
+ external T operator [](Object object);
+ external void operator []=(Object object, T value);
}
« no previous file with comments | « test/dart_codegen/expect/core/exceptions.dart ('k') | test/dart_codegen/expect/core/function.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698