Fix .packages file discovery on Windows.

The _discoverPackagespec() method was trying to convert its "root"
argument to a directory URI (one ending in a "/") by calling "new
Uri.directory(root.path)".  This was causing confusion on Windows,
since root.path is in posix-style but the Uri.directory constructor
expects a native OS path.

Fortunately, the caller always passes a directory URI anyhow, so no
conversion is necessary.  We can just use the URI as is.
1 file changed
tree: 555c213621708dddb63691057f9028dbf46982fd
  1. bin/
  2. lib/
  3. test/
  4. tool/
  5. .gitignore
  6. .test_config
  7. .travis.yml
  8. AUTHORS
  9. CHANGELOG.md
  10. codereview.settings
  11. LICENSE
  12. pubspec.yaml
  13. README.md
README.md

analyzer_cli

Command line interface for the Dart analyzer library package.

Build Status Coverage Status

Features and bugs

Please file feature requests and bugs at the issue tracker.