| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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:collection'; | 5 import 'dart:collection'; |
| 6 import 'dart:convert' hide JsonDecoder; | 6 import 'dart:convert' hide JsonDecoder; |
| 7 | 7 |
| 8 import 'package:analyzer_plugin/protocol/protocol.dart'; | 8 import 'package:analyzer_plugin/protocol/protocol.dart'; |
| 9 import 'package:analyzer_plugin/protocol/protocol_common.dart'; | 9 import 'package:analyzer_plugin/protocol/protocol_common.dart'; |
| 10 import 'package:analyzer_plugin/protocol/protocol_generated.dart'; | 10 import 'package:analyzer_plugin/protocol/protocol_generated.dart'; |
| (...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 return new Exception('Missing key $key at $jsonPath'); | 510 return new Exception('Missing key $key at $jsonPath'); |
| 511 } | 511 } |
| 512 } | 512 } |
| 513 | 513 |
| 514 /** | 514 /** |
| 515 * The result data associated with a response. | 515 * The result data associated with a response. |
| 516 */ | 516 */ |
| 517 abstract class ResponseResult implements HasToJson { | 517 abstract class ResponseResult implements HasToJson { |
| 518 /** | 518 /** |
| 519 * Return a response whose result data is this object for the request with the | 519 * Return a response whose result data is this object for the request with the |
| 520 * given [id]. | 520 * given [id], where the request was received at the given [requestTime]. |
| 521 */ | 521 */ |
| 522 Response toResponse(String id); | 522 Response toResponse(String id, int requestTime); |
| 523 } | 523 } |
| OLD | NEW |