| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 // This file has been automatically generated. Please do not edit it manually. | 5 // This file has been automatically generated. Please do not edit it manually. |
| 6 // To regenerate the file, use the script | 6 // To regenerate the file, use the script |
| 7 // "pkg/analysis_server/tool/spec/generate_files". | 7 // "pkg/analysis_server/tool/spec/generate_files". |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * Convenience methods for running integration tests | 10 * Convenience methods for running integration tests |
| (...skipping 1619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1630 | 1630 |
| 1631 /** | 1631 /** |
| 1632 * Return server diagnostics. | 1632 * Return server diagnostics. |
| 1633 * | 1633 * |
| 1634 * Returns | 1634 * Returns |
| 1635 * | 1635 * |
| 1636 * contexts ( List<ContextData> ) | 1636 * contexts ( List<ContextData> ) |
| 1637 * | 1637 * |
| 1638 * The list of analysis contexts. | 1638 * The list of analysis contexts. |
| 1639 */ | 1639 */ |
| 1640 Future<ExperimentalGetDiagnosticsResult> sendExperimentalGetDiagnostics() { | 1640 Future<DiagnosticGetDiagnosticsResult> sendDiagnosticGetDiagnostics() { |
| 1641 return server.send("experimental.getDiagnostics", null) | 1641 return server.send("diagnostic.getDiagnostics", null) |
| 1642 .then((result) { | 1642 .then((result) { |
| 1643 ResponseDecoder decoder = new ResponseDecoder(null); | 1643 ResponseDecoder decoder = new ResponseDecoder(null); |
| 1644 return new ExperimentalGetDiagnosticsResult.fromJson(decoder, 'result', re
sult); | 1644 return new DiagnosticGetDiagnosticsResult.fromJson(decoder, 'result', resu
lt); |
| 1645 }); | 1645 }); |
| 1646 } | 1646 } |
| 1647 | 1647 |
| 1648 /** | 1648 /** |
| 1649 * Initialize the fields in InttestMixin, and ensure that notifications will | 1649 * Initialize the fields in InttestMixin, and ensure that notifications will |
| 1650 * be handled. | 1650 * be handled. |
| 1651 */ | 1651 */ |
| 1652 void initializeInttestMixin() { | 1652 void initializeInttestMixin() { |
| 1653 _onServerConnected = new StreamController<ServerConnectedParams>(sync: true)
; | 1653 _onServerConnected = new StreamController<ServerConnectedParams>(sync: true)
; |
| 1654 onServerConnected = _onServerConnected.stream.asBroadcastStream(); | 1654 onServerConnected = _onServerConnected.stream.asBroadcastStream(); |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1760 case "execution.launchData": | 1760 case "execution.launchData": |
| 1761 expect(params, isExecutionLaunchDataParams); | 1761 expect(params, isExecutionLaunchDataParams); |
| 1762 _onExecutionLaunchData.add(new ExecutionLaunchDataParams.fromJson(decode
r, 'params', params)); | 1762 _onExecutionLaunchData.add(new ExecutionLaunchDataParams.fromJson(decode
r, 'params', params)); |
| 1763 break; | 1763 break; |
| 1764 default: | 1764 default: |
| 1765 fail('Unexpected notification: $event'); | 1765 fail('Unexpected notification: $event'); |
| 1766 break; | 1766 break; |
| 1767 } | 1767 } |
| 1768 } | 1768 } |
| 1769 } | 1769 } |
| OLD | NEW |