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

Unified Diff: runtime/lib/double_patch.dart

Issue 2220883004: Use metadata annotation @patch for patch classes (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: wip Created 4 years, 4 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 f33122ac763da4de7ff8611918fa8aa8d5c5a204..cc3c6054e0c3923914b6e196d9f85e89542e777c 100644
--- a/runtime/lib/double_patch.dart
+++ b/runtime/lib/double_patch.dart
@@ -5,7 +5,7 @@
// VM implementation of double.
-patch class double {
+@patch class double {
static double _nativeParse(String str,
int start, int end) native "Double_parse";
@@ -101,8 +101,8 @@ patch class double {
return _nativeParse(str, start, end);
}
- /* patch */ static double parse(String str,
- [double onError(String str)]) {
+ /* @patch */ static double parse(String str,
+ [double onError(String str)]) {
var result = _parse(str);
if (result == null) {
if (onError == null) throw new FormatException("Invalid double", str);

Powered by Google App Engine
This is Rietveld 408576698