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

Issue 2220883004: Use metadata annotation @patch for patch classes (Closed)

Created:
4 years, 4 months ago by hausner
Modified:
4 years, 4 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Use metadata annotation @patch for patch classes Annotate patch classes and top-level patch functions with @patch instead of the pseudo-keyword patch. This allows the analyzer to read patch files, and matches the syntax that dart2js uses. The deprecated syntax is still supported, but a warning is printed when detected. BUG= Committed: https://github.com/dart-lang/sdk/commit/e11ca24053e7e3e55499ca65a66d80f6cdb18d8a

Patch Set 1 #

Patch Set 2 : wip #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+416 lines, -389 lines) Patch
M runtime/bin/common_patch.dart View 1 chunk +2 lines, -2 lines 3 comments Download
M runtime/bin/directory_patch.dart View 1 chunk +12 lines, -12 lines 0 comments Download
M runtime/bin/eventhandler_patch.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/bin/file_patch.dart View 4 chunks +19 lines, -19 lines 0 comments Download
M runtime/bin/file_system_entity_patch.dart View 1 chunk +6 lines, -6 lines 0 comments Download
M runtime/bin/filter_patch.dart View 1 chunk +9 lines, -9 lines 0 comments Download
M runtime/bin/io_service_patch.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/bin/platform_patch.dart View 1 chunk +13 lines, -13 lines 0 comments Download
M runtime/bin/process_patch.dart View 5 chunks +18 lines, -18 lines 0 comments Download
M runtime/bin/secure_socket_patch.dart View 2 chunks +10 lines, -10 lines 0 comments Download
M runtime/bin/socket_patch.dart View 5 chunks +21 lines, -21 lines 0 comments Download
M runtime/bin/stdio_patch.dart View 4 chunks +11 lines, -11 lines 0 comments Download
M runtime/lib/array_patch.dart View 1 4 chunks +5 lines, -5 lines 0 comments Download
M runtime/lib/async_patch.dart View 1 chunk +1 line, -1 line 0 comments Download
M runtime/lib/bool_patch.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/lib/collection_patch.dart View 7 chunks +19 lines, -19 lines 0 comments Download
M runtime/lib/convert_patch.dart View 4 chunks +6 lines, -6 lines 0 comments Download
M runtime/lib/core_patch.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/lib/date_patch.dart View 5 chunks +22 lines, -22 lines 0 comments Download
M runtime/lib/deferred_load_patch.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/lib/developer.dart View 2 chunks +13 lines, -13 lines 0 comments Download
M runtime/lib/double_patch.dart View 2 chunks +3 lines, -3 lines 0 comments Download
M runtime/lib/errors_patch.dart View 5 chunks +12 lines, -12 lines 0 comments Download
M runtime/lib/expando_patch.dart View 2 chunks +4 lines, -4 lines 0 comments Download
M runtime/lib/function_patch.dart View 1 chunk +4 lines, -4 lines 0 comments Download
M runtime/lib/identical_patch.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/lib/integers_patch.dart View 2 chunks +3 lines, -3 lines 0 comments Download
M runtime/lib/internal_patch.dart View 2 chunks +3 lines, -3 lines 0 comments Download
M runtime/lib/isolate_patch.dart View 17 chunks +23 lines, -23 lines 0 comments Download
M runtime/lib/map_patch.dart View 2 chunks +3 lines, -3 lines 0 comments Download
M runtime/lib/math_patch.dart View 5 chunks +15 lines, -15 lines 0 comments Download
M runtime/lib/mirrors_patch.dart View 4 chunks +8 lines, -8 lines 0 comments Download
M runtime/lib/null_patch.dart View 1 chunk +1 line, -1 line 0 comments Download
M runtime/lib/object_patch.dart View 5 chunks +6 lines, -6 lines 0 comments Download
M runtime/lib/print_patch.dart View 1 chunk +1 line, -1 line 0 comments Download
M runtime/lib/profiler.dart View 2 chunks +4 lines, -4 lines 0 comments Download
M runtime/lib/regexp_patch.dart View 1 chunk +4 lines, -4 lines 0 comments Download
M runtime/lib/resource_patch.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/lib/schedule_microtask_patch.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/lib/stopwatch_patch.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M runtime/lib/string_buffer_patch.dart View 4 chunks +9 lines, -9 lines 0 comments Download
M runtime/lib/string_patch.dart View 2 chunks +6 lines, -6 lines 0 comments Download
M runtime/lib/symbol_patch.dart View 2 chunks +4 lines, -4 lines 0 comments Download
M runtime/lib/timeline.dart View 1 chunk +23 lines, -23 lines 0 comments Download
M runtime/lib/timer_patch.dart View 2 chunks +3 lines, -3 lines 0 comments Download
M runtime/lib/uri_patch.dart View 1 chunk +7 lines, -7 lines 0 comments Download
M runtime/lib/vmservice_patch.dart View 2 chunks +12 lines, -12 lines 0 comments Download
M runtime/vm/method_recognizer.h View 4 chunks +21 lines, -21 lines 0 comments Download
M runtime/vm/parser.h View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/parser.cc View 4 chunks +30 lines, -4 lines 2 comments Download

Messages

Total messages: 12 (4 generated)
hausner
4 years, 4 months ago (2016-08-08 21:44:05 UTC) #3
Vyacheslav Egorov (Google)
This looks very nice! https://codereview.chromium.org/2220883004/diff/20001/runtime/bin/common_patch.dart File runtime/bin/common_patch.dart (right): https://codereview.chromium.org/2220883004/diff/20001/runtime/bin/common_patch.dart#newcode6 runtime/bin/common_patch.dart:6: /* @patch */ static Uint8List ...
4 years, 4 months ago (2016-08-09 11:31:06 UTC) #4
kasperl
DBC https://codereview.chromium.org/2220883004/diff/20001/runtime/vm/parser.cc File runtime/vm/parser.cc (right): https://codereview.chromium.org/2220883004/diff/20001/runtime/vm/parser.cc#newcode4556 runtime/vm/parser.cc:4556: ReportWarning("deprecated use of patch annotation"); patch annotation -> ...
4 years, 4 months ago (2016-08-09 11:48:09 UTC) #6
hausner
https://codereview.chromium.org/2220883004/diff/20001/runtime/bin/common_patch.dart File runtime/bin/common_patch.dart (right): https://codereview.chromium.org/2220883004/diff/20001/runtime/bin/common_patch.dart#newcode6 runtime/bin/common_patch.dart:6: /* @patch */ static Uint8List getRandomBytes(int count) On 2016/08/09 ...
4 years, 4 months ago (2016-08-09 15:48:45 UTC) #7
Vyacheslav Egorov (Google)
https://codereview.chromium.org/2220883004/diff/20001/runtime/bin/common_patch.dart File runtime/bin/common_patch.dart (right): https://codereview.chromium.org/2220883004/diff/20001/runtime/bin/common_patch.dart#newcode6 runtime/bin/common_patch.dart:6: /* @patch */ static Uint8List getRandomBytes(int count) > Would ...
4 years, 4 months ago (2016-08-09 16:15:27 UTC) #8
hausner
Can I interpret that as an lgtm?
4 years, 4 months ago (2016-08-09 16:23:09 UTC) #9
hausner
Committed patchset #2 (id:20001) manually as e11ca24053e7e3e55499ca65a66d80f6cdb18d8a (presubmit successful).
4 years, 4 months ago (2016-08-09 16:48:10 UTC) #11
Vyacheslav Egorov (Google)
4 years, 4 months ago (2016-08-09 20:04:16 UTC) #12
Message was sent while issue was closed.
LGTM

Powered by Google App Engine
This is Rietveld 408576698