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

Unified Diff: pkg/serialization/lib/src/basic_rule.dart

Issue 13967003: EAKING CHANGE: Rename InstanceMIrror.invoke, .getField, .setField to invokeAsync, getFieldAsync, se… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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 | « no previous file | runtime/lib/mirrors_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/serialization/lib/src/basic_rule.dart
===================================================================
--- pkg/serialization/lib/src/basic_rule.dart (revision 21177)
+++ pkg/serialization/lib/src/basic_rule.dart (working copy)
@@ -375,7 +375,7 @@
}
valueIn(InstanceMirror mirror) =>
- deprecatedFutureValue(mirror.getField(name)).reflectee;
+ deprecatedFutureValue(mirror.getFieldAsync(name)).reflectee;
/** Return the function to use to set our value. */
Function get setter =>
@@ -383,7 +383,7 @@
/** Return a default setter function. */
void defaultSetter(InstanceMirror object, value) {
- object.setField(name, reflect(value));
+ object.setFieldAsync(name, reflect(value));
}
String toString() => 'Field($name)';
@@ -615,7 +615,7 @@
// TODO(alanknight): Handle named parameters
Iterable inflated = fieldNumbers.map(
(x) => (x is int) ? reflect(r.inflateReference(state[x])) : reflect(x));
- var result = type.newInstance(name, inflated.toList());
+ var result = type.newInstanceAsync(name, inflated.toList());
return deprecatedFutureValue(result);
}
}
« no previous file with comments | « no previous file | runtime/lib/mirrors_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698