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 // 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 690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
701 var params = new EditGetRefactoringParams( | 701 var params = new EditGetRefactoringParams( |
702 kind, file, offset, length, validateOnly, | 702 kind, file, offset, length, validateOnly, |
703 options: options) | 703 options: options) |
704 .toJson(); | 704 .toJson(); |
705 var result = await server.send("edit.getRefactoring", params); | 705 var result = await server.send("edit.getRefactoring", params); |
706 ResponseDecoder decoder = new ResponseDecoder(kind); | 706 ResponseDecoder decoder = new ResponseDecoder(kind); |
707 return new EditGetRefactoringResult.fromJson(decoder, 'result', result); | 707 return new EditGetRefactoringResult.fromJson(decoder, 'result', result); |
708 } | 708 } |
709 | 709 |
710 /** | 710 /** |
| 711 * Return the list of KytheEntry objects for some file, given the current |
| 712 * state of the file system populated by "analysis.updateContent". |
| 713 * |
| 714 * Parameters |
| 715 * |
| 716 * file: FilePath |
| 717 * |
| 718 * The file containing the code for which the Kythe Entry objects are being |
| 719 * requested. |
| 720 * |
| 721 * Returns |
| 722 * |
| 723 * entries: List<KytheEntry> |
| 724 * |
| 725 * The list of KytheEntry objects for the queried file. |
| 726 * |
| 727 * files: List<FilePath> |
| 728 * |
| 729 * The set of files paths that were required, but not in the file system, |
| 730 * to give a complete and accurate Kythe graph for the file. This could be |
| 731 * due to a referenced file that does not exist or generated files not |
| 732 * being generated or passed before the call to "getKytheEntries". |
| 733 */ |
| 734 Future<KytheGetKytheEntriesResult> sendKytheGetKytheEntries( |
| 735 String file) async { |
| 736 var params = new KytheGetKytheEntriesParams(file).toJson(); |
| 737 var result = await server.send("kythe.getKytheEntries", params); |
| 738 ResponseDecoder decoder = new ResponseDecoder(null); |
| 739 return new KytheGetKytheEntriesResult.fromJson(decoder, 'result', result); |
| 740 } |
| 741 |
| 742 /** |
711 * Initialize the fields in InttestMixin, and ensure that notifications will | 743 * Initialize the fields in InttestMixin, and ensure that notifications will |
712 * be handled. | 744 * be handled. |
713 */ | 745 */ |
714 void initializeInttestMixin() { | 746 void initializeInttestMixin() { |
715 _onPluginError = new StreamController<PluginErrorParams>(sync: true); | 747 _onPluginError = new StreamController<PluginErrorParams>(sync: true); |
716 onPluginError = _onPluginError.stream.asBroadcastStream(); | 748 onPluginError = _onPluginError.stream.asBroadcastStream(); |
717 _onAnalysisErrors = new StreamController<AnalysisErrorsParams>(sync: true); | 749 _onAnalysisErrors = new StreamController<AnalysisErrorsParams>(sync: true); |
718 onAnalysisErrors = _onAnalysisErrors.stream.asBroadcastStream(); | 750 onAnalysisErrors = _onAnalysisErrors.stream.asBroadcastStream(); |
719 _onAnalysisFolding = | 751 _onAnalysisFolding = |
720 new StreamController<AnalysisFoldingParams>(sync: true); | 752 new StreamController<AnalysisFoldingParams>(sync: true); |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
774 outOfTestExpect(params, isAnalysisOutlineParams); | 806 outOfTestExpect(params, isAnalysisOutlineParams); |
775 _onAnalysisOutline | 807 _onAnalysisOutline |
776 .add(new AnalysisOutlineParams.fromJson(decoder, 'params', params)); | 808 .add(new AnalysisOutlineParams.fromJson(decoder, 'params', params)); |
777 break; | 809 break; |
778 default: | 810 default: |
779 fail('Unexpected notification: $event'); | 811 fail('Unexpected notification: $event'); |
780 break; | 812 break; |
781 } | 813 } |
782 } | 814 } |
783 } | 815 } |
OLD | NEW |