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

Unified Diff: runtime/lib/integers_patch.dart

Issue 2230383003: Implement @patch annotation for patch class members (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
« no previous file with comments | « runtime/lib/function_patch.dart ('k') | runtime/lib/isolate_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/integers_patch.dart
diff --git a/runtime/lib/integers_patch.dart b/runtime/lib/integers_patch.dart
index 6aa072b8744aecc465afc0e3f1e8210d7ed30201..67db1767ecce9f7de10cab4bfaf1e8867e2f4476 100644
--- a/runtime/lib/integers_patch.dart
+++ b/runtime/lib/integers_patch.dart
@@ -9,8 +9,8 @@ import 'dart:_internal' as internal;
@patch class int {
- /* @patch */ const factory int.fromEnvironment(String name,
- {int defaultValue})
+ @patch const factory int.fromEnvironment(String name,
+ {int defaultValue})
native "Integer_fromEnvironment";
@@ -42,9 +42,9 @@ import 'dart:_internal' as internal;
return sign * result;
}
- /* @patch */ static int parse(String source,
- { int radix,
- int onError(String str) }) {
+ @patch static int parse(String source,
+ { int radix,
+ int onError(String str) }) {
if (source == null) throw new ArgumentError("The source must not be null");
if (source.isEmpty) return _throwFormatException(onError, source, 0, radix);
if (radix == null || radix == 10) {
« no previous file with comments | « runtime/lib/function_patch.dart ('k') | runtime/lib/isolate_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698