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 28 matching lines...) Expand all Loading... |
842 new RequestDecoder(request), "params", request.params); | 842 new RequestDecoder(request), "params", request.params); |
843 } | 843 } |
844 | 844 |
845 @override | 845 @override |
846 Map<String, dynamic> toJson() { | 846 Map<String, dynamic> toJson() { |
847 Map<String, dynamic> result = {}; | 847 Map<String, dynamic> result = {}; |
848 result["events"] = events.map((WatchEvent value) => value.toJson()).toList()
; | 848 result["events"] = events.map((WatchEvent value) => value.toJson()).toList()
; |
849 return result; | 849 return result; |
850 } | 850 } |
851 | 851 |
| 852 @override |
852 Request toRequest(String id) { | 853 Request toRequest(String id) { |
853 return new Request(id, "analysis.handleWatchEvents", toJson()); | 854 return new Request(id, "analysis.handleWatchEvents", toJson()); |
854 } | 855 } |
855 | 856 |
856 @override | 857 @override |
857 String toString() => JSON.encode(toJson()); | 858 String toString() => JSON.encode(toJson()); |
858 | 859 |
859 @override | 860 @override |
860 bool operator==(other) { | 861 bool operator==(other) { |
861 if (other is AnalysisHandleWatchEventsParams) { | 862 if (other is AnalysisHandleWatchEventsParams) { |
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1386 | 1387 |
1387 /** | 1388 /** |
1388 * analysis.reanalyze params | 1389 * analysis.reanalyze params |
1389 * | 1390 * |
1390 * { | 1391 * { |
1391 * "roots": optional List<FilePath> | 1392 * "roots": optional List<FilePath> |
1392 * } | 1393 * } |
1393 * | 1394 * |
1394 * Clients may not extend, implement or mix-in this class. | 1395 * Clients may not extend, implement or mix-in this class. |
1395 */ | 1396 */ |
1396 class AnalysisReanalyzeParams implements HasToJson { | 1397 class AnalysisReanalyzeParams implements RequestParams { |
1397 List<String> _roots; | 1398 List<String> _roots; |
1398 | 1399 |
1399 /** | 1400 /** |
1400 * A list of the context roots that are to be re-analyzed. | 1401 * A list of the context roots that are to be re-analyzed. |
1401 * | 1402 * |
1402 * If no context roots are provided, then all current context roots should be | 1403 * If no context roots are provided, then all current context roots should be |
1403 * re-analyzed. | 1404 * re-analyzed. |
1404 */ | 1405 */ |
1405 List<String> get roots => _roots; | 1406 List<String> get roots => _roots; |
1406 | 1407 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1440 | 1441 |
1441 @override | 1442 @override |
1442 Map<String, dynamic> toJson() { | 1443 Map<String, dynamic> toJson() { |
1443 Map<String, dynamic> result = {}; | 1444 Map<String, dynamic> result = {}; |
1444 if (roots != null) { | 1445 if (roots != null) { |
1445 result["roots"] = roots; | 1446 result["roots"] = roots; |
1446 } | 1447 } |
1447 return result; | 1448 return result; |
1448 } | 1449 } |
1449 | 1450 |
| 1451 @override |
1450 Request toRequest(String id) { | 1452 Request toRequest(String id) { |
1451 return new Request(id, "analysis.reanalyze", toJson()); | 1453 return new Request(id, "analysis.reanalyze", toJson()); |
1452 } | 1454 } |
1453 | 1455 |
1454 @override | 1456 @override |
1455 String toString() => JSON.encode(toJson()); | 1457 String toString() => JSON.encode(toJson()); |
1456 | 1458 |
1457 @override | 1459 @override |
1458 bool operator==(other) { | 1460 bool operator==(other) { |
1459 if (other is AnalysisReanalyzeParams) { | 1461 if (other is AnalysisReanalyzeParams) { |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1567 | 1569 |
1568 /** | 1570 /** |
1569 * analysis.setContextBuilderOptions params | 1571 * analysis.setContextBuilderOptions params |
1570 * | 1572 * |
1571 * { | 1573 * { |
1572 * "options": ContextBuilderOptions | 1574 * "options": ContextBuilderOptions |
1573 * } | 1575 * } |
1574 * | 1576 * |
1575 * Clients may not extend, implement or mix-in this class. | 1577 * Clients may not extend, implement or mix-in this class. |
1576 */ | 1578 */ |
1577 class AnalysisSetContextBuilderOptionsParams implements HasToJson { | 1579 class AnalysisSetContextBuilderOptionsParams implements RequestParams { |
1578 ContextBuilderOptions _options; | 1580 ContextBuilderOptions _options; |
1579 | 1581 |
1580 /** | 1582 /** |
1581 * The options used to build the analysis contexts. | 1583 * The options used to build the analysis contexts. |
1582 */ | 1584 */ |
1583 ContextBuilderOptions get options => _options; | 1585 ContextBuilderOptions get options => _options; |
1584 | 1586 |
1585 /** | 1587 /** |
1586 * The options used to build the analysis contexts. | 1588 * The options used to build the analysis contexts. |
1587 */ | 1589 */ |
(...skipping 28 matching lines...) Expand all Loading... |
1616 new RequestDecoder(request), "params", request.params); | 1618 new RequestDecoder(request), "params", request.params); |
1617 } | 1619 } |
1618 | 1620 |
1619 @override | 1621 @override |
1620 Map<String, dynamic> toJson() { | 1622 Map<String, dynamic> toJson() { |
1621 Map<String, dynamic> result = {}; | 1623 Map<String, dynamic> result = {}; |
1622 result["options"] = options.toJson(); | 1624 result["options"] = options.toJson(); |
1623 return result; | 1625 return result; |
1624 } | 1626 } |
1625 | 1627 |
| 1628 @override |
1626 Request toRequest(String id) { | 1629 Request toRequest(String id) { |
1627 return new Request(id, "analysis.setContextBuilderOptions", toJson()); | 1630 return new Request(id, "analysis.setContextBuilderOptions", toJson()); |
1628 } | 1631 } |
1629 | 1632 |
1630 @override | 1633 @override |
1631 String toString() => JSON.encode(toJson()); | 1634 String toString() => JSON.encode(toJson()); |
1632 | 1635 |
1633 @override | 1636 @override |
1634 bool operator==(other) { | 1637 bool operator==(other) { |
1635 if (other is AnalysisSetContextBuilderOptionsParams) { | 1638 if (other is AnalysisSetContextBuilderOptionsParams) { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1676 | 1679 |
1677 /** | 1680 /** |
1678 * analysis.setContextRoots params | 1681 * analysis.setContextRoots params |
1679 * | 1682 * |
1680 * { | 1683 * { |
1681 * "roots": List<ContextRoot> | 1684 * "roots": List<ContextRoot> |
1682 * } | 1685 * } |
1683 * | 1686 * |
1684 * Clients may not extend, implement or mix-in this class. | 1687 * Clients may not extend, implement or mix-in this class. |
1685 */ | 1688 */ |
1686 class AnalysisSetContextRootsParams implements HasToJson { | 1689 class AnalysisSetContextRootsParams implements RequestParams { |
1687 List<ContextRoot> _roots; | 1690 List<ContextRoot> _roots; |
1688 | 1691 |
1689 /** | 1692 /** |
1690 * A list of the context roots that should be analyzed. | 1693 * A list of the context roots that should be analyzed. |
1691 */ | 1694 */ |
1692 List<ContextRoot> get roots => _roots; | 1695 List<ContextRoot> get roots => _roots; |
1693 | 1696 |
1694 /** | 1697 /** |
1695 * A list of the context roots that should be analyzed. | 1698 * A list of the context roots that should be analyzed. |
1696 */ | 1699 */ |
(...skipping 28 matching lines...) Expand all Loading... |
1725 new RequestDecoder(request), "params", request.params); | 1728 new RequestDecoder(request), "params", request.params); |
1726 } | 1729 } |
1727 | 1730 |
1728 @override | 1731 @override |
1729 Map<String, dynamic> toJson() { | 1732 Map<String, dynamic> toJson() { |
1730 Map<String, dynamic> result = {}; | 1733 Map<String, dynamic> result = {}; |
1731 result["roots"] = roots.map((ContextRoot value) => value.toJson()).toList(); | 1734 result["roots"] = roots.map((ContextRoot value) => value.toJson()).toList(); |
1732 return result; | 1735 return result; |
1733 } | 1736 } |
1734 | 1737 |
| 1738 @override |
1735 Request toRequest(String id) { | 1739 Request toRequest(String id) { |
1736 return new Request(id, "analysis.setContextRoots", toJson()); | 1740 return new Request(id, "analysis.setContextRoots", toJson()); |
1737 } | 1741 } |
1738 | 1742 |
1739 @override | 1743 @override |
1740 String toString() => JSON.encode(toJson()); | 1744 String toString() => JSON.encode(toJson()); |
1741 | 1745 |
1742 @override | 1746 @override |
1743 bool operator==(other) { | 1747 bool operator==(other) { |
1744 if (other is AnalysisSetContextRootsParams) { | 1748 if (other is AnalysisSetContextRootsParams) { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1785 | 1789 |
1786 /** | 1790 /** |
1787 * analysis.setPriorityFiles params | 1791 * analysis.setPriorityFiles params |
1788 * | 1792 * |
1789 * { | 1793 * { |
1790 * "files": List<FilePath> | 1794 * "files": List<FilePath> |
1791 * } | 1795 * } |
1792 * | 1796 * |
1793 * Clients may not extend, implement or mix-in this class. | 1797 * Clients may not extend, implement or mix-in this class. |
1794 */ | 1798 */ |
1795 class AnalysisSetPriorityFilesParams implements HasToJson { | 1799 class AnalysisSetPriorityFilesParams implements RequestParams { |
1796 List<String> _files; | 1800 List<String> _files; |
1797 | 1801 |
1798 /** | 1802 /** |
1799 * The files that are to be a priority for analysis. | 1803 * The files that are to be a priority for analysis. |
1800 */ | 1804 */ |
1801 List<String> get files => _files; | 1805 List<String> get files => _files; |
1802 | 1806 |
1803 /** | 1807 /** |
1804 * The files that are to be a priority for analysis. | 1808 * The files that are to be a priority for analysis. |
1805 */ | 1809 */ |
(...skipping 28 matching lines...) Expand all Loading... |
1834 new RequestDecoder(request), "params", request.params); | 1838 new RequestDecoder(request), "params", request.params); |
1835 } | 1839 } |
1836 | 1840 |
1837 @override | 1841 @override |
1838 Map<String, dynamic> toJson() { | 1842 Map<String, dynamic> toJson() { |
1839 Map<String, dynamic> result = {}; | 1843 Map<String, dynamic> result = {}; |
1840 result["files"] = files; | 1844 result["files"] = files; |
1841 return result; | 1845 return result; |
1842 } | 1846 } |
1843 | 1847 |
| 1848 @override |
1844 Request toRequest(String id) { | 1849 Request toRequest(String id) { |
1845 return new Request(id, "analysis.setPriorityFiles", toJson()); | 1850 return new Request(id, "analysis.setPriorityFiles", toJson()); |
1846 } | 1851 } |
1847 | 1852 |
1848 @override | 1853 @override |
1849 String toString() => JSON.encode(toJson()); | 1854 String toString() => JSON.encode(toJson()); |
1850 | 1855 |
1851 @override | 1856 @override |
1852 bool operator==(other) { | 1857 bool operator==(other) { |
1853 if (other is AnalysisSetPriorityFilesParams) { | 1858 if (other is AnalysisSetPriorityFilesParams) { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1894 | 1899 |
1895 /** | 1900 /** |
1896 * analysis.setSubscriptions params | 1901 * analysis.setSubscriptions params |
1897 * | 1902 * |
1898 * { | 1903 * { |
1899 * "subscriptions": Map<AnalysisService, List<FilePath>> | 1904 * "subscriptions": Map<AnalysisService, List<FilePath>> |
1900 * } | 1905 * } |
1901 * | 1906 * |
1902 * Clients may not extend, implement or mix-in this class. | 1907 * Clients may not extend, implement or mix-in this class. |
1903 */ | 1908 */ |
1904 class AnalysisSetSubscriptionsParams implements HasToJson { | 1909 class AnalysisSetSubscriptionsParams implements RequestParams { |
1905 Map<AnalysisService, List<String>> _subscriptions; | 1910 Map<AnalysisService, List<String>> _subscriptions; |
1906 | 1911 |
1907 /** | 1912 /** |
1908 * A table mapping services to a list of the files being subscribed to the | 1913 * A table mapping services to a list of the files being subscribed to the |
1909 * service. | 1914 * service. |
1910 */ | 1915 */ |
1911 Map<AnalysisService, List<String>> get subscriptions => _subscriptions; | 1916 Map<AnalysisService, List<String>> get subscriptions => _subscriptions; |
1912 | 1917 |
1913 /** | 1918 /** |
1914 * A table mapping services to a list of the files being subscribed to the | 1919 * A table mapping services to a list of the files being subscribed to the |
(...skipping 30 matching lines...) Expand all Loading... |
1945 new RequestDecoder(request), "params", request.params); | 1950 new RequestDecoder(request), "params", request.params); |
1946 } | 1951 } |
1947 | 1952 |
1948 @override | 1953 @override |
1949 Map<String, dynamic> toJson() { | 1954 Map<String, dynamic> toJson() { |
1950 Map<String, dynamic> result = {}; | 1955 Map<String, dynamic> result = {}; |
1951 result["subscriptions"] = mapMap(subscriptions, keyCallback: (AnalysisServic
e value) => value.toJson()); | 1956 result["subscriptions"] = mapMap(subscriptions, keyCallback: (AnalysisServic
e value) => value.toJson()); |
1952 return result; | 1957 return result; |
1953 } | 1958 } |
1954 | 1959 |
| 1960 @override |
1955 Request toRequest(String id) { | 1961 Request toRequest(String id) { |
1956 return new Request(id, "analysis.setSubscriptions", toJson()); | 1962 return new Request(id, "analysis.setSubscriptions", toJson()); |
1957 } | 1963 } |
1958 | 1964 |
1959 @override | 1965 @override |
1960 String toString() => JSON.encode(toJson()); | 1966 String toString() => JSON.encode(toJson()); |
1961 | 1967 |
1962 @override | 1968 @override |
1963 bool operator==(other) { | 1969 bool operator==(other) { |
1964 if (other is AnalysisSetSubscriptionsParams) { | 1970 if (other is AnalysisSetSubscriptionsParams) { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2005 | 2011 |
2006 /** | 2012 /** |
2007 * analysis.updateContent params | 2013 * analysis.updateContent params |
2008 * | 2014 * |
2009 * { | 2015 * { |
2010 * "files": Map<FilePath, AddContentOverlay | ChangeContentOverlay | RemoveCon
tentOverlay> | 2016 * "files": Map<FilePath, AddContentOverlay | ChangeContentOverlay | RemoveCon
tentOverlay> |
2011 * } | 2017 * } |
2012 * | 2018 * |
2013 * Clients may not extend, implement or mix-in this class. | 2019 * Clients may not extend, implement or mix-in this class. |
2014 */ | 2020 */ |
2015 class AnalysisUpdateContentParams implements HasToJson { | 2021 class AnalysisUpdateContentParams implements RequestParams { |
2016 Map<String, dynamic> _files; | 2022 Map<String, dynamic> _files; |
2017 | 2023 |
2018 /** | 2024 /** |
2019 * 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 |
2020 * the content change. | 2026 * the content change. |
2021 */ | 2027 */ |
2022 Map<String, dynamic> get files => _files; | 2028 Map<String, dynamic> get files => _files; |
2023 | 2029 |
2024 /** | 2030 /** |
2025 * A table mapping the files whose content has changed to a description of | 2031 * A table mapping the files whose content has changed to a description of |
(...skipping 30 matching lines...) Expand all Loading... |
2056 new RequestDecoder(request), "params", request.params); | 2062 new RequestDecoder(request), "params", request.params); |
2057 } | 2063 } |
2058 | 2064 |
2059 @override | 2065 @override |
2060 Map<String, dynamic> toJson() { | 2066 Map<String, dynamic> toJson() { |
2061 Map<String, dynamic> result = {}; | 2067 Map<String, dynamic> result = {}; |
2062 result["files"] = mapMap(files, valueCallback: (dynamic value) => value.toJs
on()); | 2068 result["files"] = mapMap(files, valueCallback: (dynamic value) => value.toJs
on()); |
2063 return result; | 2069 return result; |
2064 } | 2070 } |
2065 | 2071 |
| 2072 @override |
2066 Request toRequest(String id) { | 2073 Request toRequest(String id) { |
2067 return new Request(id, "analysis.updateContent", toJson()); | 2074 return new Request(id, "analysis.updateContent", toJson()); |
2068 } | 2075 } |
2069 | 2076 |
2070 @override | 2077 @override |
2071 String toString() => JSON.encode(toJson()); | 2078 String toString() => JSON.encode(toJson()); |
2072 | 2079 |
2073 @override | 2080 @override |
2074 bool operator==(other) { | 2081 bool operator==(other) { |
2075 if (other is AnalysisUpdateContentParams) { | 2082 if (other is AnalysisUpdateContentParams) { |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2195 /** | 2202 /** |
2196 * completion.getSuggestions params | 2203 * completion.getSuggestions params |
2197 * | 2204 * |
2198 * { | 2205 * { |
2199 * "file": FilePath | 2206 * "file": FilePath |
2200 * "offset": int | 2207 * "offset": int |
2201 * } | 2208 * } |
2202 * | 2209 * |
2203 * Clients may not extend, implement or mix-in this class. | 2210 * Clients may not extend, implement or mix-in this class. |
2204 */ | 2211 */ |
2205 class CompletionGetSuggestionsParams implements HasToJson { | 2212 class CompletionGetSuggestionsParams implements RequestParams { |
2206 String _file; | 2213 String _file; |
2207 | 2214 |
2208 int _offset; | 2215 int _offset; |
2209 | 2216 |
2210 /** | 2217 /** |
2211 * The file containing the point at which suggestions are to be made. | 2218 * The file containing the point at which suggestions are to be made. |
2212 */ | 2219 */ |
2213 String get file => _file; | 2220 String get file => _file; |
2214 | 2221 |
2215 /** | 2222 /** |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2267 } | 2274 } |
2268 | 2275 |
2269 @override | 2276 @override |
2270 Map<String, dynamic> toJson() { | 2277 Map<String, dynamic> toJson() { |
2271 Map<String, dynamic> result = {}; | 2278 Map<String, dynamic> result = {}; |
2272 result["file"] = file; | 2279 result["file"] = file; |
2273 result["offset"] = offset; | 2280 result["offset"] = offset; |
2274 return result; | 2281 return result; |
2275 } | 2282 } |
2276 | 2283 |
| 2284 @override |
2277 Request toRequest(String id) { | 2285 Request toRequest(String id) { |
2278 return new Request(id, "completion.getSuggestions", toJson()); | 2286 return new Request(id, "completion.getSuggestions", toJson()); |
2279 } | 2287 } |
2280 | 2288 |
2281 @override | 2289 @override |
2282 String toString() => JSON.encode(toJson()); | 2290 String toString() => JSON.encode(toJson()); |
2283 | 2291 |
2284 @override | 2292 @override |
2285 bool operator==(other) { | 2293 bool operator==(other) { |
2286 if (other is CompletionGetSuggestionsParams) { | 2294 if (other is CompletionGetSuggestionsParams) { |
(...skipping 1219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3506 * edit.getAssists params | 3514 * edit.getAssists params |
3507 * | 3515 * |
3508 * { | 3516 * { |
3509 * "file": FilePath | 3517 * "file": FilePath |
3510 * "offset": int | 3518 * "offset": int |
3511 * "length": int | 3519 * "length": int |
3512 * } | 3520 * } |
3513 * | 3521 * |
3514 * Clients may not extend, implement or mix-in this class. | 3522 * Clients may not extend, implement or mix-in this class. |
3515 */ | 3523 */ |
3516 class EditGetAssistsParams implements HasToJson { | 3524 class EditGetAssistsParams implements RequestParams { |
3517 String _file; | 3525 String _file; |
3518 | 3526 |
3519 int _offset; | 3527 int _offset; |
3520 | 3528 |
3521 int _length; | 3529 int _length; |
3522 | 3530 |
3523 /** | 3531 /** |
3524 * The file containing the code for which assists are being requested. | 3532 * The file containing the code for which assists are being requested. |
3525 */ | 3533 */ |
3526 String get file => _file; | 3534 String get file => _file; |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3601 | 3609 |
3602 @override | 3610 @override |
3603 Map<String, dynamic> toJson() { | 3611 Map<String, dynamic> toJson() { |
3604 Map<String, dynamic> result = {}; | 3612 Map<String, dynamic> result = {}; |
3605 result["file"] = file; | 3613 result["file"] = file; |
3606 result["offset"] = offset; | 3614 result["offset"] = offset; |
3607 result["length"] = length; | 3615 result["length"] = length; |
3608 return result; | 3616 return result; |
3609 } | 3617 } |
3610 | 3618 |
| 3619 @override |
3611 Request toRequest(String id) { | 3620 Request toRequest(String id) { |
3612 return new Request(id, "edit.getAssists", toJson()); | 3621 return new Request(id, "edit.getAssists", toJson()); |
3613 } | 3622 } |
3614 | 3623 |
3615 @override | 3624 @override |
3616 String toString() => JSON.encode(toJson()); | 3625 String toString() => JSON.encode(toJson()); |
3617 | 3626 |
3618 @override | 3627 @override |
3619 bool operator==(other) { | 3628 bool operator==(other) { |
3620 if (other is EditGetAssistsParams) { | 3629 if (other is EditGetAssistsParams) { |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3721 * edit.getAvailableRefactorings params | 3730 * edit.getAvailableRefactorings params |
3722 * | 3731 * |
3723 * { | 3732 * { |
3724 * "file": FilePath | 3733 * "file": FilePath |
3725 * "offset": int | 3734 * "offset": int |
3726 * "length": int | 3735 * "length": int |
3727 * } | 3736 * } |
3728 * | 3737 * |
3729 * Clients may not extend, implement or mix-in this class. | 3738 * Clients may not extend, implement or mix-in this class. |
3730 */ | 3739 */ |
3731 class EditGetAvailableRefactoringsParams implements HasToJson { | 3740 class EditGetAvailableRefactoringsParams implements RequestParams { |
3732 String _file; | 3741 String _file; |
3733 | 3742 |
3734 int _offset; | 3743 int _offset; |
3735 | 3744 |
3736 int _length; | 3745 int _length; |
3737 | 3746 |
3738 /** | 3747 /** |
3739 * The file containing the code on which the refactoring would be based. | 3748 * The file containing the code on which the refactoring would be based. |
3740 */ | 3749 */ |
3741 String get file => _file; | 3750 String get file => _file; |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3816 | 3825 |
3817 @override | 3826 @override |
3818 Map<String, dynamic> toJson() { | 3827 Map<String, dynamic> toJson() { |
3819 Map<String, dynamic> result = {}; | 3828 Map<String, dynamic> result = {}; |
3820 result["file"] = file; | 3829 result["file"] = file; |
3821 result["offset"] = offset; | 3830 result["offset"] = offset; |
3822 result["length"] = length; | 3831 result["length"] = length; |
3823 return result; | 3832 return result; |
3824 } | 3833 } |
3825 | 3834 |
| 3835 @override |
3826 Request toRequest(String id) { | 3836 Request toRequest(String id) { |
3827 return new Request(id, "edit.getAvailableRefactorings", toJson()); | 3837 return new Request(id, "edit.getAvailableRefactorings", toJson()); |
3828 } | 3838 } |
3829 | 3839 |
3830 @override | 3840 @override |
3831 String toString() => JSON.encode(toJson()); | 3841 String toString() => JSON.encode(toJson()); |
3832 | 3842 |
3833 @override | 3843 @override |
3834 bool operator==(other) { | 3844 bool operator==(other) { |
3835 if (other is EditGetAvailableRefactoringsParams) { | 3845 if (other is EditGetAvailableRefactoringsParams) { |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3945 /** | 3955 /** |
3946 * edit.getFixes params | 3956 * edit.getFixes params |
3947 * | 3957 * |
3948 * { | 3958 * { |
3949 * "file": FilePath | 3959 * "file": FilePath |
3950 * "offset": int | 3960 * "offset": int |
3951 * } | 3961 * } |
3952 * | 3962 * |
3953 * Clients may not extend, implement or mix-in this class. | 3963 * Clients may not extend, implement or mix-in this class. |
3954 */ | 3964 */ |
3955 class EditGetFixesParams implements HasToJson { | 3965 class EditGetFixesParams implements RequestParams { |
3956 String _file; | 3966 String _file; |
3957 | 3967 |
3958 int _offset; | 3968 int _offset; |
3959 | 3969 |
3960 /** | 3970 /** |
3961 * The file containing the errors for which fixes are being requested. | 3971 * The file containing the errors for which fixes are being requested. |
3962 */ | 3972 */ |
3963 String get file => _file; | 3973 String get file => _file; |
3964 | 3974 |
3965 /** | 3975 /** |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4017 } | 4027 } |
4018 | 4028 |
4019 @override | 4029 @override |
4020 Map<String, dynamic> toJson() { | 4030 Map<String, dynamic> toJson() { |
4021 Map<String, dynamic> result = {}; | 4031 Map<String, dynamic> result = {}; |
4022 result["file"] = file; | 4032 result["file"] = file; |
4023 result["offset"] = offset; | 4033 result["offset"] = offset; |
4024 return result; | 4034 return result; |
4025 } | 4035 } |
4026 | 4036 |
| 4037 @override |
4027 Request toRequest(String id) { | 4038 Request toRequest(String id) { |
4028 return new Request(id, "edit.getFixes", toJson()); | 4039 return new Request(id, "edit.getFixes", toJson()); |
4029 } | 4040 } |
4030 | 4041 |
4031 @override | 4042 @override |
4032 String toString() => JSON.encode(toJson()); | 4043 String toString() => JSON.encode(toJson()); |
4033 | 4044 |
4034 @override | 4045 @override |
4035 bool operator==(other) { | 4046 bool operator==(other) { |
4036 if (other is EditGetFixesParams) { | 4047 if (other is EditGetFixesParams) { |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4138 * "kind": RefactoringKind | 4149 * "kind": RefactoringKind |
4139 * "file": FilePath | 4150 * "file": FilePath |
4140 * "offset": int | 4151 * "offset": int |
4141 * "length": int | 4152 * "length": int |
4142 * "validateOnly": bool | 4153 * "validateOnly": bool |
4143 * "options": optional RefactoringOptions | 4154 * "options": optional RefactoringOptions |
4144 * } | 4155 * } |
4145 * | 4156 * |
4146 * Clients may not extend, implement or mix-in this class. | 4157 * Clients may not extend, implement or mix-in this class. |
4147 */ | 4158 */ |
4148 class EditGetRefactoringParams implements HasToJson { | 4159 class EditGetRefactoringParams implements RequestParams { |
4149 RefactoringKind _kind; | 4160 RefactoringKind _kind; |
4150 | 4161 |
4151 String _file; | 4162 String _file; |
4152 | 4163 |
4153 int _offset; | 4164 int _offset; |
4154 | 4165 |
4155 int _length; | 4166 int _length; |
4156 | 4167 |
4157 bool _validateOnly; | 4168 bool _validateOnly; |
4158 | 4169 |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4313 result["file"] = file; | 4324 result["file"] = file; |
4314 result["offset"] = offset; | 4325 result["offset"] = offset; |
4315 result["length"] = length; | 4326 result["length"] = length; |
4316 result["validateOnly"] = validateOnly; | 4327 result["validateOnly"] = validateOnly; |
4317 if (options != null) { | 4328 if (options != null) { |
4318 result["options"] = options.toJson(); | 4329 result["options"] = options.toJson(); |
4319 } | 4330 } |
4320 return result; | 4331 return result; |
4321 } | 4332 } |
4322 | 4333 |
| 4334 @override |
4323 Request toRequest(String id) { | 4335 Request toRequest(String id) { |
4324 return new Request(id, "edit.getRefactoring", toJson()); | 4336 return new Request(id, "edit.getRefactoring", toJson()); |
4325 } | 4337 } |
4326 | 4338 |
4327 @override | 4339 @override |
4328 String toString() => JSON.encode(toJson()); | 4340 String toString() => JSON.encode(toJson()); |
4329 | 4341 |
4330 @override | 4342 @override |
4331 bool operator==(other) { | 4343 bool operator==(other) { |
4332 if (other is EditGetRefactoringParams) { | 4344 if (other is EditGetRefactoringParams) { |
(...skipping 4017 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8350 hash = JenkinsSmiHash.combine(hash, stackTrace.hashCode); | 8362 hash = JenkinsSmiHash.combine(hash, stackTrace.hashCode); |
8351 return JenkinsSmiHash.finish(hash); | 8363 return JenkinsSmiHash.finish(hash); |
8352 } | 8364 } |
8353 } | 8365 } |
8354 | 8366 |
8355 /** | 8367 /** |
8356 * plugin.shutdown params | 8368 * plugin.shutdown params |
8357 * | 8369 * |
8358 * Clients may not extend, implement or mix-in this class. | 8370 * Clients may not extend, implement or mix-in this class. |
8359 */ | 8371 */ |
8360 class PluginShutdownParams { | 8372 class PluginShutdownParams implements RequestParams { |
| 8373 @override |
| 8374 Map<String, dynamic> toJson() => <String, dynamic>{}; |
| 8375 |
| 8376 @override |
8361 Request toRequest(String id) { | 8377 Request toRequest(String id) { |
8362 return new Request(id, "plugin.shutdown", null); | 8378 return new Request(id, "plugin.shutdown", null); |
8363 } | 8379 } |
8364 | 8380 |
8365 @override | 8381 @override |
8366 bool operator==(other) { | 8382 bool operator==(other) { |
8367 if (other is PluginShutdownParams) { | 8383 if (other is PluginShutdownParams) { |
8368 return true; | 8384 return true; |
8369 } | 8385 } |
8370 return false; | 8386 return false; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8407 /** | 8423 /** |
8408 * plugin.versionCheck params | 8424 * plugin.versionCheck params |
8409 * | 8425 * |
8410 * { | 8426 * { |
8411 * "byteStorePath": String | 8427 * "byteStorePath": String |
8412 * "version": String | 8428 * "version": String |
8413 * } | 8429 * } |
8414 * | 8430 * |
8415 * Clients may not extend, implement or mix-in this class. | 8431 * Clients may not extend, implement or mix-in this class. |
8416 */ | 8432 */ |
8417 class PluginVersionCheckParams implements HasToJson { | 8433 class PluginVersionCheckParams implements RequestParams { |
8418 String _byteStorePath; | 8434 String _byteStorePath; |
8419 | 8435 |
8420 String _version; | 8436 String _version; |
8421 | 8437 |
8422 /** | 8438 /** |
8423 * The path to the directory containing the on-disk byte store that is to be | 8439 * The path to the directory containing the on-disk byte store that is to be |
8424 * used by any analysis drivers that are created. | 8440 * used by any analysis drivers that are created. |
8425 */ | 8441 */ |
8426 String get byteStorePath => _byteStorePath; | 8442 String get byteStorePath => _byteStorePath; |
8427 | 8443 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8483 } | 8499 } |
8484 | 8500 |
8485 @override | 8501 @override |
8486 Map<String, dynamic> toJson() { | 8502 Map<String, dynamic> toJson() { |
8487 Map<String, dynamic> result = {}; | 8503 Map<String, dynamic> result = {}; |
8488 result["byteStorePath"] = byteStorePath; | 8504 result["byteStorePath"] = byteStorePath; |
8489 result["version"] = version; | 8505 result["version"] = version; |
8490 return result; | 8506 return result; |
8491 } | 8507 } |
8492 | 8508 |
| 8509 @override |
8493 Request toRequest(String id) { | 8510 Request toRequest(String id) { |
8494 return new Request(id, "plugin.versionCheck", toJson()); | 8511 return new Request(id, "plugin.versionCheck", toJson()); |
8495 } | 8512 } |
8496 | 8513 |
8497 @override | 8514 @override |
8498 String toString() => JSON.encode(toJson()); | 8515 String toString() => JSON.encode(toJson()); |
8499 | 8516 |
8500 @override | 8517 @override |
8501 bool operator==(other) { | 8518 bool operator==(other) { |
8502 if (other is PluginVersionCheckParams) { | 8519 if (other is PluginVersionCheckParams) { |
(...skipping 2192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10695 } | 10712 } |
10696 } | 10713 } |
10697 throw jsonDecoder.mismatch(jsonPath, "WatchEventType", json); | 10714 throw jsonDecoder.mismatch(jsonPath, "WatchEventType", json); |
10698 } | 10715 } |
10699 | 10716 |
10700 @override | 10717 @override |
10701 String toString() => "WatchEventType.$name"; | 10718 String toString() => "WatchEventType.$name"; |
10702 | 10719 |
10703 String toJson() => name; | 10720 String toJson() => name; |
10704 } | 10721 } |
OLD | NEW |