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

Side by Side 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 unified diff | Download patch
OLDNEW
1 part of dart.core; 1 part of dart.core;
2 2
3 class Expando<T> { 3 class Expando<T> {
4 final String name; 4 final String name;
5 Expando([String name]) : this.name = name; 5 external Expando([String name]);
6 String toString() => "Expando:$name"; 6 String toString() => "Expando:$name";
7 T operator [](Object object) { 7 external T operator [](Object object);
8 var values = Primitives.getProperty(object, _EXPANDO_PROPERTY_NAME); 8 external void operator []=(Object object, T value);
9 return ((__x21) => DDC$RT.cast(__x21, dynamic, T, "CastGeneral",
10 """line 55, column 12 of dart:core/expando.dart: """, __x21 is T,
11 false))(
12 (values == null) ? null : Primitives.getProperty(values, _getKey()));
13 }
14 void operator []=(Object object, T value) {
15 var values = Primitives.getProperty(object, _EXPANDO_PROPERTY_NAME);
16 if (values == null) {
17 values = new Object();
18 Primitives.setProperty(object, _EXPANDO_PROPERTY_NAME, values);
19 }
20 Primitives.setProperty(values, _getKey(), value);
21 }
22 } 9 }
OLDNEW
« 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