OLD | NEW |
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 import 'dart:isolate'; | 5 import 'dart:isolate'; |
6 | 6 |
7 @patch bool debugger({bool when: true, | 7 @patch bool debugger({bool when: true, |
8 String message}) native "Developer_debugger"; | 8 String message}) native "Developer_debugger"; |
9 | 9 |
10 @patch Object inspect(Object object) native "Developer_inspect"; | 10 @patch Object inspect(Object object) native "Developer_inspect"; |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 sb.write('"result":'); | 141 sb.write('"result":'); |
142 } | 142 } |
143 sb.write('${response._toString()},'); | 143 sb.write('${response._toString()},'); |
144 if (id is String) { | 144 if (id is String) { |
145 sb.write('"id":"$id"}'); | 145 sb.write('"id":"$id"}'); |
146 } else { | 146 } else { |
147 sb.write('"id":$id}'); | 147 sb.write('"id":$id}'); |
148 } | 148 } |
149 replyPort.send(sb.toString()); | 149 replyPort.send(sb.toString()); |
150 } | 150 } |
| 151 |
| 152 @patch int _getServiceMajorVersion() native "Developer_getServiceMajorVersion"; |
| 153 |
| 154 @patch int _getServiceMinorVersion() native "Developer_getServiceMinorVersion"; |
| 155 |
| 156 @patch void _getServerInfo(SendPort sp) native "Developer_getServerInfo"; |
| 157 |
| 158 @patch void _webServerControl(SendPort sp, bool enable) |
| 159 native "Developer_webServerControl"; |
OLD | NEW |