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

Unified Diff: runtime/lib/regexp_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/regexp_patch.dart
diff --git a/runtime/lib/regexp_patch.dart b/runtime/lib/regexp_patch.dart
index d8e622aa7e0f7db3aac22e1f7e4f1d769521f812..9b23430b3e93f30a46cf1dbebc6af2eb4e58f4a1 100644
--- a/runtime/lib/regexp_patch.dart
+++ b/runtime/lib/regexp_patch.dart
@@ -4,10 +4,10 @@
import "dart:collection" show LinkedList, LinkedListEntry;
-patch class RegExp {
- /* patch */ factory RegExp(String source,
- {bool multiLine: false,
- bool caseSensitive: true}) {
+@patch class RegExp {
+ /* @patch */ factory RegExp(String source,
+ {bool multiLine: false,
+ bool caseSensitive: true}) {
_RegExpHashKey key = new _RegExpHashKey(
source, multiLine, caseSensitive);
_RegExpHashValue value = _cache[key];

Powered by Google App Engine
This is Rietveld 408576698