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

Unified Diff: runtime/lib/double_patch.dart

Issue 2612043002: Fixes to patch files necessary to use the analyzer (Closed)
Patch Set: Created 3 years, 11 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: runtime/lib/double_patch.dart
diff --git a/runtime/lib/double_patch.dart b/runtime/lib/double_patch.dart
index b0b7054f784fd62c012177502fcb5b98f627d48c..2b9fb28cad3bbc91b3abc266957029e4e247c8d7 100644
--- a/runtime/lib/double_patch.dart
+++ b/runtime/lib/double_patch.dart
@@ -101,12 +101,12 @@
return _nativeParse(str, start, end);
}
- @patch static double parse(String str,
- [double onError(String str)]) {
- var result = _parse(str);
+ @patch
+ static double parse(String source, [double onError(String source)]) {
+ var result = _parse(source);
if (result == null) {
- if (onError == null) throw new FormatException("Invalid double", str);
- return onError(str);
+ if (onError == null) throw new FormatException("Invalid double", source);
+ return onError(source);
}
return result;
}

Powered by Google App Engine
This is Rietveld 408576698