OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <meta charset="UTF-8"/> | 4 <meta charset="UTF-8"/> |
5 <title>Analysis Server API Specification</title> | 5 <title>Analysis Server API Specification</title> |
6 </head> | 6 </head> |
7 <body> | 7 <body> |
8 <h1>Analysis Server API Specification</h1> | 8 <h1>Analysis Server API Specification</h1> |
9 <h1 style="color:#999999">Version <version>1.14.0</version></h1> | 9 <h1 style="color:#999999">Version <version>1.14.0</version></h1> |
10 <p> | 10 <p> |
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
608 A list of the files and directories within the | 608 A list of the files and directories within the |
609 included directories that should not be analyzed. | 609 included directories that should not be analyzed. |
610 </p> | 610 </p> |
611 </field> | 611 </field> |
612 <field name="packageRoots" optional="true"> | 612 <field name="packageRoots" optional="true"> |
613 <map> | 613 <map> |
614 <key><ref>FilePath</ref></key> | 614 <key><ref>FilePath</ref></key> |
615 <value><ref>FilePath</ref></value> | 615 <value><ref>FilePath</ref></value> |
616 </map> | 616 </map> |
617 <p> | 617 <p> |
618 A mapping from source directories to target directories | 618 A mapping from source directories to package roots |
619 that should override the normal package: URI resolution | 619 that should override the normal package: URI resolution |
620 mechanism. The analyzer will behave as though each | 620 mechanism. |
| 621 </p> |
| 622 <p> |
| 623 If a package root is a directory, then |
| 624 the analyzer will behave as though the associated |
621 source directory in the map contains a special | 625 source directory in the map contains a special |
622 pubspec.yaml file which resolves any package: URI to the | 626 pubspec.yaml file which resolves any package: URI to the |
623 corresponding path within the target directory. The | 627 corresponding path within that package root directory. The |
624 effect is the same as specifying the target directory as | 628 effect is the same as specifying the package root directory as |
625 a "--package_root" parameter to the Dart VM when | 629 a "--package_root" parameter to the Dart VM when |
626 executing any Dart file inside the source directory. | 630 executing any Dart file inside the source directory. |
627 </p> | 631 </p> |
628 <p> | 632 <p> |
| 633 If a package root is a file, then the analyzer |
| 634 will behave as though that file is a ".packages" file in the |
| 635 source directory. The effect is the same as specifying the file |
| 636 as a "--packages" parameter to the Dart VM when |
| 637 executing any Dart file inside the source directory. |
| 638 </p> |
| 639 <p> |
629 Files in any directories that are not overridden by this | 640 Files in any directories that are not overridden by this |
630 mapping have their package: URI's resolved using the | 641 mapping have their package: URI's resolved using the |
631 normal pubspec.yaml mechanism. If this field is absent, | 642 normal pubspec.yaml mechanism. If this field is absent, |
632 or the empty map is specified, that indicates that the | 643 or the empty map is specified, that indicates that the |
633 normal pubspec.yaml mechanism should always be used. | 644 normal pubspec.yaml mechanism should always be used. |
634 </p> | 645 </p> |
635 </field> | 646 </field> |
636 </params> | 647 </params> |
637 </request> | 648 </request> |
638 <request method="setGeneralSubscriptions"> | 649 <request method="setGeneralSubscriptions"> |
(...skipping 3842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4481 This section contains a list of all of the errors that are | 4492 This section contains a list of all of the errors that are |
4482 produced by the server and the data that is returned with each. | 4493 produced by the server and the data that is returned with each. |
4483 </p> | 4494 </p> |
4484 <p> | 4495 <p> |
4485 TBD | 4496 TBD |
4486 </p> | 4497 </p> |
4487 <h2 class="domain"><a name="index">Index</a></h2> | 4498 <h2 class="domain"><a name="index">Index</a></h2> |
4488 <index></index> | 4499 <index></index> |
4489 </body> | 4500 </body> |
4490 </html> | 4501 </html> |
OLD | NEW |