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/generated_protocol.dart'; | |
9 import 'package:analyzer_plugin/protocol/protocol.dart'; | 8 import 'package:analyzer_plugin/protocol/protocol.dart'; |
| 9 import 'package:analyzer_plugin/protocol/protocol_generated.dart'; |
10 | 10 |
11 final Map<String, RefactoringKind> REQUEST_ID_REFACTORING_KINDS = | 11 final Map<String, RefactoringKind> REQUEST_ID_REFACTORING_KINDS = |
12 new HashMap<String, RefactoringKind>(); | 12 new HashMap<String, RefactoringKind>(); |
13 | 13 |
14 /** | 14 /** |
15 * Adds the given [sourceEdits] to the list in [sourceFileEdit]. | 15 * Adds the given [sourceEdits] to the list in [sourceFileEdit]. |
16 */ | 16 */ |
17 void addAllEditsForSource( | 17 void addAllEditsForSource( |
18 SourceFileEdit sourceFileEdit, Iterable<SourceEdit> edits) { | 18 SourceFileEdit sourceFileEdit, Iterable<SourceEdit> edits) { |
19 edits.forEach(sourceFileEdit.add); | 19 edits.forEach(sourceFileEdit.add); |
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
513 /** | 513 /** |
514 * The result data associated with a response. | 514 * The result data associated with a response. |
515 */ | 515 */ |
516 abstract class ResponseResult implements HasToJson { | 516 abstract class ResponseResult implements HasToJson { |
517 /** | 517 /** |
518 * Return a response whose result data is this object for the request with the | 518 * Return a response whose result data is this object for the request with the |
519 * given [id]. | 519 * given [id]. |
520 */ | 520 */ |
521 Response toResponse(String id); | 521 Response toResponse(String id); |
522 } | 522 } |
OLD | NEW |