| 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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 .then((result) { | 233 .then((result) { |
| 234 ResponseDecoder decoder = new ResponseDecoder(null); | 234 ResponseDecoder decoder = new ResponseDecoder(null); |
| 235 return new AnalysisGetHoverResult.fromJson(decoder, 'result', result); | 235 return new AnalysisGetHoverResult.fromJson(decoder, 'result', result); |
| 236 }); | 236 }); |
| 237 } | 237 } |
| 238 | 238 |
| 239 /** | 239 /** |
| 240 * Return library dependency information for use in client-side indexing and | 240 * Return library dependency information for use in client-side indexing and |
| 241 * package URI resolution. | 241 * package URI resolution. |
| 242 * | 242 * |
| 243 * Clients that are only using the libraries field should consider using the |
| 244 * analyzedFiles notification instead. |
| 245 * |
| 243 * Returns | 246 * Returns |
| 244 * | 247 * |
| 245 * libraries ( List<FilePath> ) | 248 * libraries ( List<FilePath> ) |
| 246 * | 249 * |
| 247 * A list of the paths of library elements referenced by files in existing | 250 * A list of the paths of library elements referenced by files in existing |
| 248 * analysis roots. | 251 * analysis roots. |
| 249 * | 252 * |
| 250 * packageMap ( Map<String, Map<String, List<FilePath>>> ) | 253 * packageMap ( Map<String, Map<String, List<FilePath>>> ) |
| 251 * | 254 * |
| 252 * A mapping from context source roots to package maps which map package | 255 * A mapping from context source roots to package maps which map package |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 Future sendAnalysisSetAnalysisRoots(List<String> included, List<String> exclud
ed, {Map<String, String> packageRoots}) { | 409 Future sendAnalysisSetAnalysisRoots(List<String> included, List<String> exclud
ed, {Map<String, String> packageRoots}) { |
| 407 var params = new AnalysisSetAnalysisRootsParams(included, excluded, packageR
oots: packageRoots).toJson(); | 410 var params = new AnalysisSetAnalysisRootsParams(included, excluded, packageR
oots: packageRoots).toJson(); |
| 408 return server.send("analysis.setAnalysisRoots", params) | 411 return server.send("analysis.setAnalysisRoots", params) |
| 409 .then((result) { | 412 .then((result) { |
| 410 expect(result, isNull); | 413 expect(result, isNull); |
| 411 return null; | 414 return null; |
| 412 }); | 415 }); |
| 413 } | 416 } |
| 414 | 417 |
| 415 /** | 418 /** |
| 419 * Subscribe for general services (that is, services that are not specific to |
| 420 * individual files). All previous subscriptions are replaced by the given |
| 421 * set of services. |
| 422 * |
| 423 * It is an error if any of the elements in the list are not valid services. |
| 424 * If there is an error, then the current subscriptions will remain |
| 425 * unchanged. |
| 426 * |
| 427 * Parameters |
| 428 * |
| 429 * subscriptions ( List<GeneralAnalysisService> ) |
| 430 * |
| 431 * A list of the services being subscribed to. |
| 432 */ |
| 433 Future sendAnalysisSetGeneralSubscriptions(List<GeneralAnalysisService> subscr
iptions) { |
| 434 var params = new AnalysisSetGeneralSubscriptionsParams(subscriptions).toJson
(); |
| 435 return server.send("analysis.setGeneralSubscriptions", params) |
| 436 .then((result) { |
| 437 expect(result, isNull); |
| 438 return null; |
| 439 }); |
| 440 } |
| 441 |
| 442 /** |
| 416 * Set the priority files to the files in the given list. A priority file is | 443 * Set the priority files to the files in the given list. A priority file is |
| 417 * a file that is given priority when scheduling which analysis work to do | 444 * a file that is given priority when scheduling which analysis work to do |
| 418 * first. The list typically contains those files that are visible to the | 445 * first. The list typically contains those files that are visible to the |
| 419 * user and those for which analysis results will have the biggest impact on | 446 * user and those for which analysis results will have the biggest impact on |
| 420 * the user experience. The order of the files within the list is | 447 * the user experience. The order of the files within the list is |
| 421 * significant: the first file will be given higher priority than the second, | 448 * significant: the first file will be given higher priority than the second, |
| 422 * the second higher priority than the third, and so on. | 449 * the second higher priority than the third, and so on. |
| 423 * | 450 * |
| 424 * Note that this request determines the set of requested priority files. The | 451 * Note that this request determines the set of requested priority files. The |
| 425 * actual set of priority files is the intersection of the requested set of | 452 * actual set of priority files is the intersection of the requested set of |
| (...skipping 14 matching lines...) Expand all Loading... |
| 440 Future sendAnalysisSetPriorityFiles(List<String> files) { | 467 Future sendAnalysisSetPriorityFiles(List<String> files) { |
| 441 var params = new AnalysisSetPriorityFilesParams(files).toJson(); | 468 var params = new AnalysisSetPriorityFilesParams(files).toJson(); |
| 442 return server.send("analysis.setPriorityFiles", params) | 469 return server.send("analysis.setPriorityFiles", params) |
| 443 .then((result) { | 470 .then((result) { |
| 444 expect(result, isNull); | 471 expect(result, isNull); |
| 445 return null; | 472 return null; |
| 446 }); | 473 }); |
| 447 } | 474 } |
| 448 | 475 |
| 449 /** | 476 /** |
| 450 * Subscribe for services. All previous subscriptions are replaced by the | 477 * Subscribe for services that are specific to individual files. All previous |
| 451 * current set of subscriptions. If a given service is not included as a key | 478 * subscriptions are replaced by the current set of subscriptions. If a given |
| 452 * in the map then no files will be subscribed to the service, exactly as if | 479 * service is not included as a key in the map then no files will be |
| 453 * the service had been included in the map with an explicit empty list of | 480 * subscribed to the service, exactly as if the service had been included in |
| 454 * files. | 481 * the map with an explicit empty list of files. |
| 455 * | 482 * |
| 456 * Note that this request determines the set of requested subscriptions. The | 483 * Note that this request determines the set of requested subscriptions. The |
| 457 * actual set of subscriptions at any given time is the intersection of this | 484 * actual set of subscriptions at any given time is the intersection of this |
| 458 * set with the set of files currently subject to analysis. The files | 485 * set with the set of files currently subject to analysis. The files |
| 459 * currently subject to analysis are the set of files contained within an | 486 * currently subject to analysis are the set of files contained within an |
| 460 * actual analysis root but not excluded, plus all of the files transitively | 487 * actual analysis root but not excluded, plus all of the files transitively |
| 461 * reachable from those files via import, export and part directives. (See | 488 * reachable from those files via import, export and part directives. (See |
| 462 * analysis.setAnalysisRoots for an explanation of how the actual analysis | 489 * analysis.setAnalysisRoots for an explanation of how the actual analysis |
| 463 * roots are determined.) When the actual analysis roots change, the actual | 490 * roots are determined.) When the actual analysis roots change, the actual |
| 464 * set of subscriptions is automatically updated, but the set of requested | 491 * set of subscriptions is automatically updated, but the set of requested |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 Future sendAnalysisUpdateOptions(AnalysisOptions options) { | 556 Future sendAnalysisUpdateOptions(AnalysisOptions options) { |
| 530 var params = new AnalysisUpdateOptionsParams(options).toJson(); | 557 var params = new AnalysisUpdateOptionsParams(options).toJson(); |
| 531 return server.send("analysis.updateOptions", params) | 558 return server.send("analysis.updateOptions", params) |
| 532 .then((result) { | 559 .then((result) { |
| 533 expect(result, isNull); | 560 expect(result, isNull); |
| 534 return null; | 561 return null; |
| 535 }); | 562 }); |
| 536 } | 563 } |
| 537 | 564 |
| 538 /** | 565 /** |
| 566 * Reports the paths of the files that are being analyzed. |
| 567 * |
| 568 * This notification is not subscribed to by default. Clients can subscribe |
| 569 * by including the value "ANALYZED_FILES" in the list of services passed in |
| 570 * an analysis.setGeneralSubscriptions request. |
| 571 * |
| 572 * Parameters |
| 573 * |
| 574 * directories ( List<FilePath> ) |
| 575 * |
| 576 * A list of the paths of the files that are being analyzed. |
| 577 */ |
| 578 Stream<AnalysisAnalyzedFilesParams> onAnalysisAnalyzedFiles; |
| 579 |
| 580 /** |
| 581 * Stream controller for [onAnalysisAnalyzedFiles]. |
| 582 */ |
| 583 StreamController<AnalysisAnalyzedFilesParams> _onAnalysisAnalyzedFiles; |
| 584 |
| 585 /** |
| 539 * Reports the errors associated with a given file. The set of errors | 586 * Reports the errors associated with a given file. The set of errors |
| 540 * included in the notification is always a complete list that supersedes any | 587 * included in the notification is always a complete list that supersedes any |
| 541 * previously reported errors. | 588 * previously reported errors. |
| 542 * | 589 * |
| 543 * It is only possible to unsubscribe from this notification by using the | 590 * It is only possible to unsubscribe from this notification by using the |
| 544 * command-line flag --no-error-notification. | 591 * command-line flag --no-error-notification. |
| 545 * | 592 * |
| 546 * Parameters | 593 * Parameters |
| 547 * | 594 * |
| 548 * file ( FilePath ) | 595 * file ( FilePath ) |
| (...skipping 956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1505 * Initialize the fields in InttestMixin, and ensure that notifications will | 1552 * Initialize the fields in InttestMixin, and ensure that notifications will |
| 1506 * be handled. | 1553 * be handled. |
| 1507 */ | 1554 */ |
| 1508 void initializeInttestMixin() { | 1555 void initializeInttestMixin() { |
| 1509 _onServerConnected = new StreamController<ServerConnectedParams>(sync: true)
; | 1556 _onServerConnected = new StreamController<ServerConnectedParams>(sync: true)
; |
| 1510 onServerConnected = _onServerConnected.stream.asBroadcastStream(); | 1557 onServerConnected = _onServerConnected.stream.asBroadcastStream(); |
| 1511 _onServerError = new StreamController<ServerErrorParams>(sync: true); | 1558 _onServerError = new StreamController<ServerErrorParams>(sync: true); |
| 1512 onServerError = _onServerError.stream.asBroadcastStream(); | 1559 onServerError = _onServerError.stream.asBroadcastStream(); |
| 1513 _onServerStatus = new StreamController<ServerStatusParams>(sync: true); | 1560 _onServerStatus = new StreamController<ServerStatusParams>(sync: true); |
| 1514 onServerStatus = _onServerStatus.stream.asBroadcastStream(); | 1561 onServerStatus = _onServerStatus.stream.asBroadcastStream(); |
| 1562 _onAnalysisAnalyzedFiles = new StreamController<AnalysisAnalyzedFilesParams>
(sync: true); |
| 1563 onAnalysisAnalyzedFiles = _onAnalysisAnalyzedFiles.stream.asBroadcastStream(
); |
| 1515 _onAnalysisErrors = new StreamController<AnalysisErrorsParams>(sync: true); | 1564 _onAnalysisErrors = new StreamController<AnalysisErrorsParams>(sync: true); |
| 1516 onAnalysisErrors = _onAnalysisErrors.stream.asBroadcastStream(); | 1565 onAnalysisErrors = _onAnalysisErrors.stream.asBroadcastStream(); |
| 1517 _onAnalysisFlushResults = new StreamController<AnalysisFlushResultsParams>(s
ync: true); | 1566 _onAnalysisFlushResults = new StreamController<AnalysisFlushResultsParams>(s
ync: true); |
| 1518 onAnalysisFlushResults = _onAnalysisFlushResults.stream.asBroadcastStream(); | 1567 onAnalysisFlushResults = _onAnalysisFlushResults.stream.asBroadcastStream(); |
| 1519 _onAnalysisFolding = new StreamController<AnalysisFoldingParams>(sync: true)
; | 1568 _onAnalysisFolding = new StreamController<AnalysisFoldingParams>(sync: true)
; |
| 1520 onAnalysisFolding = _onAnalysisFolding.stream.asBroadcastStream(); | 1569 onAnalysisFolding = _onAnalysisFolding.stream.asBroadcastStream(); |
| 1521 _onAnalysisHighlights = new StreamController<AnalysisHighlightsParams>(sync:
true); | 1570 _onAnalysisHighlights = new StreamController<AnalysisHighlightsParams>(sync:
true); |
| 1522 onAnalysisHighlights = _onAnalysisHighlights.stream.asBroadcastStream(); | 1571 onAnalysisHighlights = _onAnalysisHighlights.stream.asBroadcastStream(); |
| 1523 _onAnalysisInvalidate = new StreamController<AnalysisInvalidateParams>(sync:
true); | 1572 _onAnalysisInvalidate = new StreamController<AnalysisInvalidateParams>(sync:
true); |
| 1524 onAnalysisInvalidate = _onAnalysisInvalidate.stream.asBroadcastStream(); | 1573 onAnalysisInvalidate = _onAnalysisInvalidate.stream.asBroadcastStream(); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 1550 _onServerConnected.add(new ServerConnectedParams.fromJson(decoder, 'para
ms', params)); | 1599 _onServerConnected.add(new ServerConnectedParams.fromJson(decoder, 'para
ms', params)); |
| 1551 break; | 1600 break; |
| 1552 case "server.error": | 1601 case "server.error": |
| 1553 expect(params, isServerErrorParams); | 1602 expect(params, isServerErrorParams); |
| 1554 _onServerError.add(new ServerErrorParams.fromJson(decoder, 'params', par
ams)); | 1603 _onServerError.add(new ServerErrorParams.fromJson(decoder, 'params', par
ams)); |
| 1555 break; | 1604 break; |
| 1556 case "server.status": | 1605 case "server.status": |
| 1557 expect(params, isServerStatusParams); | 1606 expect(params, isServerStatusParams); |
| 1558 _onServerStatus.add(new ServerStatusParams.fromJson(decoder, 'params', p
arams)); | 1607 _onServerStatus.add(new ServerStatusParams.fromJson(decoder, 'params', p
arams)); |
| 1559 break; | 1608 break; |
| 1609 case "analysis.analyzedFiles": |
| 1610 expect(params, isAnalysisAnalyzedFilesParams); |
| 1611 _onAnalysisAnalyzedFiles.add(new AnalysisAnalyzedFilesParams.fromJson(de
coder, 'params', params)); |
| 1612 break; |
| 1560 case "analysis.errors": | 1613 case "analysis.errors": |
| 1561 expect(params, isAnalysisErrorsParams); | 1614 expect(params, isAnalysisErrorsParams); |
| 1562 _onAnalysisErrors.add(new AnalysisErrorsParams.fromJson(decoder, 'params
', params)); | 1615 _onAnalysisErrors.add(new AnalysisErrorsParams.fromJson(decoder, 'params
', params)); |
| 1563 break; | 1616 break; |
| 1564 case "analysis.flushResults": | 1617 case "analysis.flushResults": |
| 1565 expect(params, isAnalysisFlushResultsParams); | 1618 expect(params, isAnalysisFlushResultsParams); |
| 1566 _onAnalysisFlushResults.add(new AnalysisFlushResultsParams.fromJson(deco
der, 'params', params)); | 1619 _onAnalysisFlushResults.add(new AnalysisFlushResultsParams.fromJson(deco
der, 'params', params)); |
| 1567 break; | 1620 break; |
| 1568 case "analysis.folding": | 1621 case "analysis.folding": |
| 1569 expect(params, isAnalysisFoldingParams); | 1622 expect(params, isAnalysisFoldingParams); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1604 case "execution.launchData": | 1657 case "execution.launchData": |
| 1605 expect(params, isExecutionLaunchDataParams); | 1658 expect(params, isExecutionLaunchDataParams); |
| 1606 _onExecutionLaunchData.add(new ExecutionLaunchDataParams.fromJson(decode
r, 'params', params)); | 1659 _onExecutionLaunchData.add(new ExecutionLaunchDataParams.fromJson(decode
r, 'params', params)); |
| 1607 break; | 1660 break; |
| 1608 default: | 1661 default: |
| 1609 fail('Unexpected notification: $event'); | 1662 fail('Unexpected notification: $event'); |
| 1610 break; | 1663 break; |
| 1611 } | 1664 } |
| 1612 } | 1665 } |
| 1613 } | 1666 } |
| OLD | NEW |