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

Side by Side Diff: sdk/lib/_internal/js_runtime/lib/developer_patch.dart

Issue 1302333006: Support metadata on patches. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Remove partial renaming Created 5 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // Patch file for dart:developer library. 5 // Patch file for dart:developer library.
6 6
7 import 'dart:_js_helper' show patch; 7 import 'dart:_js_helper' show patch, ForceInline;
8 import 'dart:_foreign_helper' show JS; 8 import 'dart:_foreign_helper' show JS;
9 9
10 @patch 10 @patch
11 @ForceInline() 11 @ForceInline()
12 bool debugger({bool when: true, String message}) { 12 bool debugger({bool when: true, String message}) {
13 if (when) { 13 if (when) {
14 JS('', 'debugger'); 14 JS('', 'debugger');
15 } 15 }
16 return when; 16 return when;
17 } 17 }
(...skipping 19 matching lines...) Expand all
37 37
38 @patch 38 @patch
39 ServiceExtensionHandler _lookupExtension(String method) { 39 ServiceExtensionHandler _lookupExtension(String method) {
40 return _extensions[method]; 40 return _extensions[method];
41 } 41 }
42 42
43 @patch 43 @patch
44 _registerExtension(String method, ServiceExtensionHandler handler) { 44 _registerExtension(String method, ServiceExtensionHandler handler) {
45 _extensions[method] = handler; 45 _extensions[method] = handler;
46 } 46 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698