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

Unified Diff: runtime/lib/mirrors_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/math_patch.dart ('k') | runtime/lib/object_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/mirrors_patch.dart
diff --git a/runtime/lib/mirrors_patch.dart b/runtime/lib/mirrors_patch.dart
index d66ce8245c6ec9b7a7ab3fd397835fb932ce0949..2e2da5ba8923e29c34cff9b8c4bc23904c1a7499 100644
--- a/runtime/lib/mirrors_patch.dart
+++ b/runtime/lib/mirrors_patch.dart
@@ -36,7 +36,7 @@ import "dart:_internal" as internal;
}
@patch class MirrorSystem {
- /* @patch */ LibraryMirror findLibrary(Symbol libraryName) {
+ @patch LibraryMirror findLibrary(Symbol libraryName) {
var candidates =
libraries.values.where((lib) => lib.simpleName == libraryName);
if (candidates.length == 1) {
@@ -50,11 +50,11 @@ import "dart:_internal" as internal;
throw new Exception("There is no library named '${getName(libraryName)}'");
}
- /* @patch */ static String getName(Symbol symbol) {
+ @patch static String getName(Symbol symbol) {
return internal.Symbol.getUnmangledName(symbol);
}
- /* @patch */ static Symbol getSymbol(String name, [LibraryMirror library]) {
+ @patch static Symbol getSymbol(String name, [LibraryMirror library]) {
if ((library != null && library is! _LocalLibraryMirror) ||
((name.length > 0) && (name[0] == '_') && (library == null))) {
throw new ArgumentError(library);
« no previous file with comments | « runtime/lib/math_patch.dart ('k') | runtime/lib/object_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698