Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(212)

Side by Side Diff: pkg/analysis_server/test/integration/integration_test_methods.dart

Issue 1491013002: Analysis request `getReachableSources` (#24893). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: spec_bump Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 Future<AnalysisGetHoverResult> sendAnalysisGetHover(String file, int offset) { 231 Future<AnalysisGetHoverResult> sendAnalysisGetHover(String file, int offset) {
232 var params = new AnalysisGetHoverParams(file, offset).toJson(); 232 var params = new AnalysisGetHoverParams(file, offset).toJson();
233 return server.send("analysis.getHover", params) 233 return server.send("analysis.getHover", params)
234 .then((result) { 234 .then((result) {
235 ResponseDecoder decoder = new ResponseDecoder(null); 235 ResponseDecoder decoder = new ResponseDecoder(null);
236 return new AnalysisGetHoverResult.fromJson(decoder, 'result', result); 236 return new AnalysisGetHoverResult.fromJson(decoder, 'result', result);
237 }); 237 });
238 } 238 }
239 239
240 /** 240 /**
241 * Return the transitive closure of reachable sources for a given file.
242 *
243 * If a request is made for a file which does not exist, or which is not
244 * currently subject to analysis (e.g. because it is not associated with any
245 * analysis root specified to analysis.setAnalysisRoots), an error of type
246 * GET_REACHABLE_SOURCES_INVALID_FILE will be generated.
247 *
248 * Parameters
249 *
250 * file ( FilePath )
251 *
252 * The file for which reachable source information is being requested.
253 *
254 * Returns
255 *
256 * sources ( Map<String, List<String>> )
257 *
258 * A mapping from source URIs to directly reachable source URIs. For
259 * example, a file "foo.dart" that imports "bar.dart" would have the
260 * corresponding mapping { "file:///foo.dart" : ["file:///bar.dart"] }. If
261 * "bar.dart" has further imports (or exports) there will be a mapping from
262 * the URI "file:///bar.dart" to them. To check if a specific URI is
263 * reachable from a given file, clients can check for its presence in the
264 * resulting key set.
265 */
266 Future<AnalysisGetReachableSourcesResult> sendAnalysisGetReachableSources(Stri ng file) {
267 var params = new AnalysisGetReachableSourcesParams(file).toJson();
268 return server.send("analysis.getReachableSources", params)
269 .then((result) {
270 ResponseDecoder decoder = new ResponseDecoder(null);
271 return new AnalysisGetReachableSourcesResult.fromJson(decoder, 'result', r esult);
272 });
273 }
274
275 /**
241 * Return library dependency information for use in client-side indexing and 276 * Return library dependency information for use in client-side indexing and
242 * package URI resolution. 277 * package URI resolution.
243 * 278 *
244 * Clients that are only using the libraries field should consider using the 279 * Clients that are only using the libraries field should consider using the
245 * analyzedFiles notification instead. 280 * analyzedFiles notification instead.
246 * 281 *
247 * Returns 282 * Returns
248 * 283 *
249 * libraries ( List<FilePath> ) 284 * libraries ( List<FilePath> )
250 * 285 *
(...skipping 1509 matching lines...) Expand 10 before | Expand all | Expand 10 after
1760 case "execution.launchData": 1795 case "execution.launchData":
1761 expect(params, isExecutionLaunchDataParams); 1796 expect(params, isExecutionLaunchDataParams);
1762 _onExecutionLaunchData.add(new ExecutionLaunchDataParams.fromJson(decode r, 'params', params)); 1797 _onExecutionLaunchData.add(new ExecutionLaunchDataParams.fromJson(decode r, 'params', params));
1763 break; 1798 break;
1764 default: 1799 default:
1765 fail('Unexpected notification: $event'); 1800 fail('Unexpected notification: $event');
1766 break; 1801 break;
1767 } 1802 }
1768 } 1803 }
1769 } 1804 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/domain_analysis_test.dart ('k') | pkg/analysis_server/test/integration/protocol_matchers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698