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

Unified Diff: runtime/lib/integers_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/integers_patch.dart
diff --git a/runtime/lib/integers_patch.dart b/runtime/lib/integers_patch.dart
index 19cc7876e6b7f917583d296fea80f67b45edff58..6aa072b8744aecc465afc0e3f1e8210d7ed30201 100644
--- a/runtime/lib/integers_patch.dart
+++ b/runtime/lib/integers_patch.dart
@@ -7,9 +7,9 @@
import 'dart:_internal' as internal;
-patch class int {
+@patch class int {
- /* patch */ const factory int.fromEnvironment(String name,
+ /* @patch */ const factory int.fromEnvironment(String name,
{int defaultValue})
native "Integer_fromEnvironment";
@@ -42,7 +42,7 @@ patch class int {
return sign * result;
}
- /* patch */ static int parse(String source,
+ /* @patch */ static int parse(String source,
{ int radix,
int onError(String str) }) {
if (source == null) throw new ArgumentError("The source must not be null");

Powered by Google App Engine
This is Rietveld 408576698