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

Side by Side Diff: test/dart_codegen/expect/core/expando.dart

Issue 959913003: cleanup patch generation to preseve comments and remove @patch (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
« no previous file with comments | « test/dart_codegen/expect/core/errors.dart ('k') | test/dart_codegen/expect/core/function.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 @patch Expando([String name]) : this.name = name; 5 Expando([String name]) : this.name = name;
6 String toString() => "Expando:$name"; 6 String toString() => "Expando:$name";
7 @patch T operator [](Object object) { 7 T operator [](Object object) {
8 var values = Primitives.getProperty(object, _EXPANDO_PROPERTY_NAME); 8 var values = Primitives.getProperty(object, _EXPANDO_PROPERTY_NAME);
9 return ((__x21) => DDC$RT.cast(__x21, dynamic, T, "CastGeneral", 9 return ((__x21) => DDC$RT.cast(__x21, dynamic, T, "CastGeneral",
10 """line 44, column 12 of dart:core/expando.dart: """, __x21 is T, 10 """line 55, column 12 of dart:core/expando.dart: """, __x21 is T,
11 false))( 11 false))(
12 (values == null) ? null : Primitives.getProperty(values, _getKey())); 12 (values == null) ? null : Primitives.getProperty(values, _getKey()));
13 } 13 }
14 @patch void operator []=(Object object, T value) { 14 void operator []=(Object object, T value) {
15 var values = Primitives.getProperty(object, _EXPANDO_PROPERTY_NAME); 15 var values = Primitives.getProperty(object, _EXPANDO_PROPERTY_NAME);
16 if (values == null) { 16 if (values == null) {
17 values = new Object(); 17 values = new Object();
18 Primitives.setProperty(object, _EXPANDO_PROPERTY_NAME, values); 18 Primitives.setProperty(object, _EXPANDO_PROPERTY_NAME, values);
19 } 19 }
20 Primitives.setProperty(values, _getKey(), value); 20 Primitives.setProperty(values, _getKey(), value);
21 } 21 }
22 } 22 }
OLDNEW
« no previous file with comments | « test/dart_codegen/expect/core/errors.dart ('k') | test/dart_codegen/expect/core/function.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698