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 import 'dart:convert' hide JsonDecoder; | 9 import 'dart:convert' hide JsonDecoder; |
10 | 10 |
(...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
793 | 793 |
794 /** | 794 /** |
795 * analysis.handleWatchEvents params | 795 * analysis.handleWatchEvents params |
796 * | 796 * |
797 * { | 797 * { |
798 * "events": List<WatchEvent> | 798 * "events": List<WatchEvent> |
799 * } | 799 * } |
800 * | 800 * |
801 * Clients may not extend, implement or mix-in this class. | 801 * Clients may not extend, implement or mix-in this class. |
802 */ | 802 */ |
803 class AnalysisHandleWatchEventsParams implements HasToJson { | 803 class AnalysisHandleWatchEventsParams implements RequestParams { |
804 List<WatchEvent> _events; | 804 List<WatchEvent> _events; |
805 | 805 |
806 /** | 806 /** |
807 * The watch events that the plugin should handle. | 807 * The watch events that the plugin should handle. |
808 */ | 808 */ |
809 List<WatchEvent> get events => _events; | 809 List<WatchEvent> get events => _events; |
810 | 810 |
811 /** | 811 /** |
812 * The watch events that the plugin should handle. | 812 * The watch events that the plugin should handle. |
813 */ | 813 */ |
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1386 | 1386 |
1387 /** | 1387 /** |
1388 * analysis.reanalyze params | 1388 * analysis.reanalyze params |
1389 * | 1389 * |
1390 * { | 1390 * { |
1391 * "roots": optional List<FilePath> | 1391 * "roots": optional List<FilePath> |
1392 * } | 1392 * } |
1393 * | 1393 * |
1394 * Clients may not extend, implement or mix-in this class. | 1394 * Clients may not extend, implement or mix-in this class. |
1395 */ | 1395 */ |
1396 class AnalysisReanalyzeParams implements HasToJson { | 1396 class AnalysisReanalyzeParams implements RequestParams { |
1397 List<String> _roots; | 1397 List<String> _roots; |
1398 | 1398 |
1399 /** | 1399 /** |
1400 * A list of the context roots that are to be re-analyzed. | 1400 * A list of the context roots that are to be re-analyzed. |
1401 * | 1401 * |
1402 * If no context roots are provided, then all current context roots should be | 1402 * If no context roots are provided, then all current context roots should be |
1403 * re-analyzed. | 1403 * re-analyzed. |
1404 */ | 1404 */ |
1405 List<String> get roots => _roots; | 1405 List<String> get roots => _roots; |
1406 | 1406 |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1567 | 1567 |
1568 /** | 1568 /** |
1569 * analysis.setContextBuilderOptions params | 1569 * analysis.setContextBuilderOptions params |
1570 * | 1570 * |
1571 * { | 1571 * { |
1572 * "options": ContextBuilderOptions | 1572 * "options": ContextBuilderOptions |
1573 * } | 1573 * } |
1574 * | 1574 * |
1575 * Clients may not extend, implement or mix-in this class. | 1575 * Clients may not extend, implement or mix-in this class. |
1576 */ | 1576 */ |
1577 class AnalysisSetContextBuilderOptionsParams implements HasToJson { | 1577 class AnalysisSetContextBuilderOptionsParams implements RequestParams { |
1578 ContextBuilderOptions _options; | 1578 ContextBuilderOptions _options; |
1579 | 1579 |
1580 /** | 1580 /** |
1581 * The options used to build the analysis contexts. | 1581 * The options used to build the analysis contexts. |
1582 */ | 1582 */ |
1583 ContextBuilderOptions get options => _options; | 1583 ContextBuilderOptions get options => _options; |
1584 | 1584 |
1585 /** | 1585 /** |
1586 * The options used to build the analysis contexts. | 1586 * The options used to build the analysis contexts. |
1587 */ | 1587 */ |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1676 | 1676 |
1677 /** | 1677 /** |
1678 * analysis.setContextRoots params | 1678 * analysis.setContextRoots params |
1679 * | 1679 * |
1680 * { | 1680 * { |
1681 * "roots": List<ContextRoot> | 1681 * "roots": List<ContextRoot> |
1682 * } | 1682 * } |
1683 * | 1683 * |
1684 * Clients may not extend, implement or mix-in this class. | 1684 * Clients may not extend, implement or mix-in this class. |
1685 */ | 1685 */ |
1686 class AnalysisSetContextRootsParams implements HasToJson { | 1686 class AnalysisSetContextRootsParams implements RequestParams { |
1687 List<ContextRoot> _roots; | 1687 List<ContextRoot> _roots; |
1688 | 1688 |
1689 /** | 1689 /** |
1690 * A list of the context roots that should be analyzed. | 1690 * A list of the context roots that should be analyzed. |
1691 */ | 1691 */ |
1692 List<ContextRoot> get roots => _roots; | 1692 List<ContextRoot> get roots => _roots; |
1693 | 1693 |
1694 /** | 1694 /** |
1695 * A list of the context roots that should be analyzed. | 1695 * A list of the context roots that should be analyzed. |
1696 */ | 1696 */ |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1785 | 1785 |
1786 /** | 1786 /** |
1787 * analysis.setPriorityFiles params | 1787 * analysis.setPriorityFiles params |
1788 * | 1788 * |
1789 * { | 1789 * { |
1790 * "files": List<FilePath> | 1790 * "files": List<FilePath> |
1791 * } | 1791 * } |
1792 * | 1792 * |
1793 * Clients may not extend, implement or mix-in this class. | 1793 * Clients may not extend, implement or mix-in this class. |
1794 */ | 1794 */ |
1795 class AnalysisSetPriorityFilesParams implements HasToJson { | 1795 class AnalysisSetPriorityFilesParams implements RequestParams { |
1796 List<String> _files; | 1796 List<String> _files; |
1797 | 1797 |
1798 /** | 1798 /** |
1799 * The files that are to be a priority for analysis. | 1799 * The files that are to be a priority for analysis. |
1800 */ | 1800 */ |
1801 List<String> get files => _files; | 1801 List<String> get files => _files; |
1802 | 1802 |
1803 /** | 1803 /** |
1804 * The files that are to be a priority for analysis. | 1804 * The files that are to be a priority for analysis. |
1805 */ | 1805 */ |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1894 | 1894 |
1895 /** | 1895 /** |
1896 * analysis.setSubscriptions params | 1896 * analysis.setSubscriptions params |
1897 * | 1897 * |
1898 * { | 1898 * { |
1899 * "subscriptions": Map<AnalysisService, List<FilePath>> | 1899 * "subscriptions": Map<AnalysisService, List<FilePath>> |
1900 * } | 1900 * } |
1901 * | 1901 * |
1902 * Clients may not extend, implement or mix-in this class. | 1902 * Clients may not extend, implement or mix-in this class. |
1903 */ | 1903 */ |
1904 class AnalysisSetSubscriptionsParams implements HasToJson { | 1904 class AnalysisSetSubscriptionsParams implements RequestParams { |
1905 Map<AnalysisService, List<String>> _subscriptions; | 1905 Map<AnalysisService, List<String>> _subscriptions; |
1906 | 1906 |
1907 /** | 1907 /** |
1908 * A table mapping services to a list of the files being subscribed to the | 1908 * A table mapping services to a list of the files being subscribed to the |
1909 * service. | 1909 * service. |
1910 */ | 1910 */ |
1911 Map<AnalysisService, List<String>> get subscriptions => _subscriptions; | 1911 Map<AnalysisService, List<String>> get subscriptions => _subscriptions; |
1912 | 1912 |
1913 /** | 1913 /** |
1914 * A table mapping services to a list of the files being subscribed to the | 1914 * A table mapping services to a list of the files being subscribed to the |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2005 | 2005 |
2006 /** | 2006 /** |
2007 * analysis.updateContent params | 2007 * analysis.updateContent params |
2008 * | 2008 * |
2009 * { | 2009 * { |
2010 * "files": Map<FilePath, AddContentOverlay | ChangeContentOverlay | RemoveCon
tentOverlay> | 2010 * "files": Map<FilePath, AddContentOverlay | ChangeContentOverlay | RemoveCon
tentOverlay> |
2011 * } | 2011 * } |
2012 * | 2012 * |
2013 * Clients may not extend, implement or mix-in this class. | 2013 * Clients may not extend, implement or mix-in this class. |
2014 */ | 2014 */ |
2015 class AnalysisUpdateContentParams implements HasToJson { | 2015 class AnalysisUpdateContentParams implements RequestParams { |
2016 Map<String, dynamic> _files; | 2016 Map<String, dynamic> _files; |
2017 | 2017 |
2018 /** | 2018 /** |
2019 * A table mapping the files whose content has changed to a description of | 2019 * A table mapping the files whose content has changed to a description of |
2020 * the content change. | 2020 * the content change. |
2021 */ | 2021 */ |
2022 Map<String, dynamic> get files => _files; | 2022 Map<String, dynamic> get files => _files; |
2023 | 2023 |
2024 /** | 2024 /** |
2025 * A table mapping the files whose content has changed to a description of | 2025 * A table mapping the files whose content has changed to a description of |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2195 /** | 2195 /** |
2196 * completion.getSuggestions params | 2196 * completion.getSuggestions params |
2197 * | 2197 * |
2198 * { | 2198 * { |
2199 * "file": FilePath | 2199 * "file": FilePath |
2200 * "offset": int | 2200 * "offset": int |
2201 * } | 2201 * } |
2202 * | 2202 * |
2203 * Clients may not extend, implement or mix-in this class. | 2203 * Clients may not extend, implement or mix-in this class. |
2204 */ | 2204 */ |
2205 class CompletionGetSuggestionsParams implements HasToJson { | 2205 class CompletionGetSuggestionsParams implements RequestParams { |
2206 String _file; | 2206 String _file; |
2207 | 2207 |
2208 int _offset; | 2208 int _offset; |
2209 | 2209 |
2210 /** | 2210 /** |
2211 * The file containing the point at which suggestions are to be made. | 2211 * The file containing the point at which suggestions are to be made. |
2212 */ | 2212 */ |
2213 String get file => _file; | 2213 String get file => _file; |
2214 | 2214 |
2215 /** | 2215 /** |
(...skipping 1290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3506 * edit.getAssists params | 3506 * edit.getAssists params |
3507 * | 3507 * |
3508 * { | 3508 * { |
3509 * "file": FilePath | 3509 * "file": FilePath |
3510 * "offset": int | 3510 * "offset": int |
3511 * "length": int | 3511 * "length": int |
3512 * } | 3512 * } |
3513 * | 3513 * |
3514 * Clients may not extend, implement or mix-in this class. | 3514 * Clients may not extend, implement or mix-in this class. |
3515 */ | 3515 */ |
3516 class EditGetAssistsParams implements HasToJson { | 3516 class EditGetAssistsParams implements RequestParams { |
3517 String _file; | 3517 String _file; |
3518 | 3518 |
3519 int _offset; | 3519 int _offset; |
3520 | 3520 |
3521 int _length; | 3521 int _length; |
3522 | 3522 |
3523 /** | 3523 /** |
3524 * The file containing the code for which assists are being requested. | 3524 * The file containing the code for which assists are being requested. |
3525 */ | 3525 */ |
3526 String get file => _file; | 3526 String get file => _file; |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3721 * edit.getAvailableRefactorings params | 3721 * edit.getAvailableRefactorings params |
3722 * | 3722 * |
3723 * { | 3723 * { |
3724 * "file": FilePath | 3724 * "file": FilePath |
3725 * "offset": int | 3725 * "offset": int |
3726 * "length": int | 3726 * "length": int |
3727 * } | 3727 * } |
3728 * | 3728 * |
3729 * Clients may not extend, implement or mix-in this class. | 3729 * Clients may not extend, implement or mix-in this class. |
3730 */ | 3730 */ |
3731 class EditGetAvailableRefactoringsParams implements HasToJson { | 3731 class EditGetAvailableRefactoringsParams implements RequestParams { |
3732 String _file; | 3732 String _file; |
3733 | 3733 |
3734 int _offset; | 3734 int _offset; |
3735 | 3735 |
3736 int _length; | 3736 int _length; |
3737 | 3737 |
3738 /** | 3738 /** |
3739 * The file containing the code on which the refactoring would be based. | 3739 * The file containing the code on which the refactoring would be based. |
3740 */ | 3740 */ |
3741 String get file => _file; | 3741 String get file => _file; |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3945 /** | 3945 /** |
3946 * edit.getFixes params | 3946 * edit.getFixes params |
3947 * | 3947 * |
3948 * { | 3948 * { |
3949 * "file": FilePath | 3949 * "file": FilePath |
3950 * "offset": int | 3950 * "offset": int |
3951 * } | 3951 * } |
3952 * | 3952 * |
3953 * Clients may not extend, implement or mix-in this class. | 3953 * Clients may not extend, implement or mix-in this class. |
3954 */ | 3954 */ |
3955 class EditGetFixesParams implements HasToJson { | 3955 class EditGetFixesParams implements RequestParams { |
3956 String _file; | 3956 String _file; |
3957 | 3957 |
3958 int _offset; | 3958 int _offset; |
3959 | 3959 |
3960 /** | 3960 /** |
3961 * The file containing the errors for which fixes are being requested. | 3961 * The file containing the errors for which fixes are being requested. |
3962 */ | 3962 */ |
3963 String get file => _file; | 3963 String get file => _file; |
3964 | 3964 |
3965 /** | 3965 /** |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4138 * "kind": RefactoringKind | 4138 * "kind": RefactoringKind |
4139 * "file": FilePath | 4139 * "file": FilePath |
4140 * "offset": int | 4140 * "offset": int |
4141 * "length": int | 4141 * "length": int |
4142 * "validateOnly": bool | 4142 * "validateOnly": bool |
4143 * "options": optional RefactoringOptions | 4143 * "options": optional RefactoringOptions |
4144 * } | 4144 * } |
4145 * | 4145 * |
4146 * Clients may not extend, implement or mix-in this class. | 4146 * Clients may not extend, implement or mix-in this class. |
4147 */ | 4147 */ |
4148 class EditGetRefactoringParams implements HasToJson { | 4148 class EditGetRefactoringParams implements RequestParams { |
4149 RefactoringKind _kind; | 4149 RefactoringKind _kind; |
4150 | 4150 |
4151 String _file; | 4151 String _file; |
4152 | 4152 |
4153 int _offset; | 4153 int _offset; |
4154 | 4154 |
4155 int _length; | 4155 int _length; |
4156 | 4156 |
4157 bool _validateOnly; | 4157 bool _validateOnly; |
4158 | 4158 |
(...skipping 4191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8350 hash = JenkinsSmiHash.combine(hash, stackTrace.hashCode); | 8350 hash = JenkinsSmiHash.combine(hash, stackTrace.hashCode); |
8351 return JenkinsSmiHash.finish(hash); | 8351 return JenkinsSmiHash.finish(hash); |
8352 } | 8352 } |
8353 } | 8353 } |
8354 | 8354 |
8355 /** | 8355 /** |
8356 * plugin.shutdown params | 8356 * plugin.shutdown params |
8357 * | 8357 * |
8358 * Clients may not extend, implement or mix-in this class. | 8358 * Clients may not extend, implement or mix-in this class. |
8359 */ | 8359 */ |
8360 class PluginShutdownParams { | 8360 class PluginShutdownParams implements RequestParams { |
8361 Request toRequest(String id) { | 8361 Request toRequest(String id) { |
8362 return new Request(id, "plugin.shutdown", null); | 8362 return new Request(id, "plugin.shutdown", null); |
8363 } | 8363 } |
8364 | 8364 |
8365 @override | 8365 @override |
8366 bool operator==(other) { | 8366 bool operator==(other) { |
8367 if (other is PluginShutdownParams) { | 8367 if (other is PluginShutdownParams) { |
8368 return true; | 8368 return true; |
8369 } | 8369 } |
8370 return false; | 8370 return false; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8407 /** | 8407 /** |
8408 * plugin.versionCheck params | 8408 * plugin.versionCheck params |
8409 * | 8409 * |
8410 * { | 8410 * { |
8411 * "byteStorePath": String | 8411 * "byteStorePath": String |
8412 * "version": String | 8412 * "version": String |
8413 * } | 8413 * } |
8414 * | 8414 * |
8415 * Clients may not extend, implement or mix-in this class. | 8415 * Clients may not extend, implement or mix-in this class. |
8416 */ | 8416 */ |
8417 class PluginVersionCheckParams implements HasToJson { | 8417 class PluginVersionCheckParams implements RequestParams { |
8418 String _byteStorePath; | 8418 String _byteStorePath; |
8419 | 8419 |
8420 String _version; | 8420 String _version; |
8421 | 8421 |
8422 /** | 8422 /** |
8423 * The path to the directory containing the on-disk byte store that is to be | 8423 * The path to the directory containing the on-disk byte store that is to be |
8424 * used by any analysis drivers that are created. | 8424 * used by any analysis drivers that are created. |
8425 */ | 8425 */ |
8426 String get byteStorePath => _byteStorePath; | 8426 String get byteStorePath => _byteStorePath; |
8427 | 8427 |
(...skipping 2267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10695 } | 10695 } |
10696 } | 10696 } |
10697 throw jsonDecoder.mismatch(jsonPath, "WatchEventType", json); | 10697 throw jsonDecoder.mismatch(jsonPath, "WatchEventType", json); |
10698 } | 10698 } |
10699 | 10699 |
10700 @override | 10700 @override |
10701 String toString() => "WatchEventType.$name"; | 10701 String toString() => "WatchEventType.$name"; |
10702 | 10702 |
10703 String toJson() => name; | 10703 String toJson() => name; |
10704 } | 10704 } |
OLD | NEW |