OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 1044 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1055 * | 1055 * |
1056 * file ( FilePath ) | 1056 * file ( FilePath ) |
1057 * | 1057 * |
1058 * The file containing the declaration or reference to the type for which a | 1058 * The file containing the declaration or reference to the type for which a |
1059 * hierarchy is being requested. | 1059 * hierarchy is being requested. |
1060 * | 1060 * |
1061 * offset ( int ) | 1061 * offset ( int ) |
1062 * | 1062 * |
1063 * The offset of the name of the type within the file. | 1063 * The offset of the name of the type within the file. |
1064 * | 1064 * |
| 1065 * superOnly ( optional bool ) |
| 1066 * |
| 1067 * True if the client is only requesting superclasses and interfaces |
| 1068 * hierarchy. |
| 1069 * |
1065 * Returns | 1070 * Returns |
1066 * | 1071 * |
1067 * hierarchyItems ( optional List<TypeHierarchyItem> ) | 1072 * hierarchyItems ( optional List<TypeHierarchyItem> ) |
1068 * | 1073 * |
1069 * A list of the types in the requested hierarchy. The first element of the | 1074 * A list of the types in the requested hierarchy. The first element of the |
1070 * list is the item representing the type for which the hierarchy was | 1075 * list is the item representing the type for which the hierarchy was |
1071 * requested. The index of other elements of the list is unspecified, but | 1076 * requested. The index of other elements of the list is unspecified, but |
1072 * correspond to the integers used to reference supertype and subtype items | 1077 * correspond to the integers used to reference supertype and subtype items |
1073 * within the items. | 1078 * within the items. |
1074 * | 1079 * |
1075 * This field will be absent if the code at the given file and offset does | 1080 * This field will be absent if the code at the given file and offset does |
1076 * not represent a type, or if the file has not been sufficiently analyzed | 1081 * not represent a type, or if the file has not been sufficiently analyzed |
1077 * to allow a type hierarchy to be produced. | 1082 * to allow a type hierarchy to be produced. |
1078 */ | 1083 */ |
1079 Future<SearchGetTypeHierarchyResult> sendSearchGetTypeHierarchy(String file, i
nt offset) { | 1084 Future<SearchGetTypeHierarchyResult> sendSearchGetTypeHierarchy(String file, i
nt offset, {bool superOnly}) { |
1080 var params = new SearchGetTypeHierarchyParams(file, offset).toJson(); | 1085 var params = new SearchGetTypeHierarchyParams(file, offset, superOnly: super
Only).toJson(); |
1081 return server.send("search.getTypeHierarchy", params) | 1086 return server.send("search.getTypeHierarchy", params) |
1082 .then((result) { | 1087 .then((result) { |
1083 ResponseDecoder decoder = new ResponseDecoder(null); | 1088 ResponseDecoder decoder = new ResponseDecoder(null); |
1084 return new SearchGetTypeHierarchyResult.fromJson(decoder, 'result', result
); | 1089 return new SearchGetTypeHierarchyResult.fromJson(decoder, 'result', result
); |
1085 }); | 1090 }); |
1086 } | 1091 } |
1087 | 1092 |
1088 /** | 1093 /** |
1089 * Reports some or all of the results of performing a requested search. | 1094 * Reports some or all of the results of performing a requested search. |
1090 * Unlike other notifications, this notification contains search results that | 1095 * Unlike other notifications, this notification contains search results that |
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1690 case "execution.launchData": | 1695 case "execution.launchData": |
1691 expect(params, isExecutionLaunchDataParams); | 1696 expect(params, isExecutionLaunchDataParams); |
1692 _onExecutionLaunchData.add(new ExecutionLaunchDataParams.fromJson(decode
r, 'params', params)); | 1697 _onExecutionLaunchData.add(new ExecutionLaunchDataParams.fromJson(decode
r, 'params', params)); |
1693 break; | 1698 break; |
1694 default: | 1699 default: |
1695 fail('Unexpected notification: $event'); | 1700 fail('Unexpected notification: $event'); |
1696 break; | 1701 break; |
1697 } | 1702 } |
1698 } | 1703 } |
1699 } | 1704 } |
OLD | NEW |