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

Unified Diff: runtime/lib/convert_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/convert_patch.dart
diff --git a/runtime/lib/convert_patch.dart b/runtime/lib/convert_patch.dart
index d4acc18a55dae6fd2575946215a18f1f4ad6ca23..6bf0a2c4a6835538f8d5453fa67566aa2b1847ca 100644
--- a/runtime/lib/convert_patch.dart
+++ b/runtime/lib/convert_patch.dart
@@ -6,7 +6,7 @@ import "dart:_internal" show POWERS_OF_TEN;
// JSON conversion.
-patch _parseJson(String json, reviver(var key, var value)) {
+@patch _parseJson(String json, reviver(var key, var value)) {
_BuildJsonListener listener;
if (reviver == null) {
listener = new _BuildJsonListener();
@@ -21,8 +21,8 @@ patch _parseJson(String json, reviver(var key, var value)) {
return listener.result;
}
-patch class Utf8Decoder {
- /* patch */
+@patch class Utf8Decoder {
+ /* @patch */
Converter<List<int>, dynamic/*=T*/> fuse/*<T>*/(
Converter<String, dynamic/*=T*/> next) {
if (next is JsonDecoder) {
@@ -34,7 +34,7 @@ patch class Utf8Decoder {
}
// Allow intercepting of UTF-8 decoding when built-in lists are passed.
- /* patch */
+ /* @patch */
static String _convertIntercepted(
bool allowMalformed, List<int> codeUnits, int start, int end) {
return null; // This call was not intercepted.
@@ -1376,8 +1376,8 @@ class _JsonStringParser extends _ChunkedJsonParser {
}
}
-patch class JsonDecoder {
- /* patch */ StringConversionSink startChunkedConversion(Sink<Object> sink) {
+@patch class JsonDecoder {
+ /* @patch */ StringConversionSink startChunkedConversion(Sink<Object> sink) {
return new _JsonStringDecoderSink(this._reviver, sink);
}
}

Powered by Google App Engine
This is Rietveld 408576698