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

Unified Diff: lib/compiler/implementation/lib/core_patch.dart

Issue 10905305: Patch refactoring. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased. Created 8 years, 2 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
Index: lib/compiler/implementation/lib/core_patch.dart
diff --git a/lib/compiler/implementation/lib/core_patch.dart b/lib/compiler/implementation/lib/core_patch.dart
index 55a9019eb506811fa5cba9ebe19aa1491e7133a8..87ce0edfa71f25a3454b9af9d13f2fb0eacae920 100644
--- a/lib/compiler/implementation/lib/core_patch.dart
+++ b/lib/compiler/implementation/lib/core_patch.dart
@@ -5,11 +5,11 @@
// Patch file for dart:core classes.
// Patch for 'print' function.
-patch void print(var obj) {
- if (obj is String) {
- Primitives.printString(obj);
+patch void print(var object) {
+ if (object is String) {
+ Primitives.printString(object);
} else {
- Primitives.printString(obj.toString());
+ Primitives.printString(object.toString());
}
}
@@ -32,7 +32,7 @@ patch class Object {
// Patch for Expando implementation.
patch class Expando<T> {
- patch Expando([this.name]);
+ patch Expando([String name]) : this.name = name;
patch T operator[](Object object) {
var values = Primitives.getProperty(object, _EXPANDO_PROPERTY_NAME);
@@ -63,11 +63,11 @@ patch class Expando<T> {
}
patch class int {
- patch static int parse(String string) => Primitives.parseInt(string);
+ patch static int parse(String source) => Primitives.parseInt(source);
}
patch class double {
- patch static double parse(String string) => Primitives.parseDouble(string);
+ patch static double parse(String source) => Primitives.parseDouble(source);
}
patch class NoSuchMethodError {

Powered by Google App Engine
This is Rietveld 408576698