Commit 2b2d7825 authored by Ian Hickson's avatar Ian Hickson Committed by GitHub

"--watch --flutter-repo" wasn't analyzing flutter (#4548)

parent f21b1401
......@@ -266,13 +266,18 @@ class FlutterCommandRunner extends CommandRunner {
/// Get the entry-points we want to analyze in the Flutter repo.
List<Directory> getRepoAnalysisEntryPoints() {
String rootPath = path.absolute(Cache.flutterRoot);
return <Directory>[
final String rootPath = path.absolute(Cache.flutterRoot);
final List<Directory> result = <Directory>[
// not bin, and not the root
new Directory(path.join(rootPath, 'dev')),
new Directory(path.join(rootPath, 'examples')),
new Directory(path.join(rootPath, 'packages')),
];
// And since analyzer refuses to look at paths that end in "packages/":
result.addAll(
_gatherProjectPaths(path.join(rootPath, 'packages'))
.map/*<Directory>*/((String path) => new Directory(path))
);
return result;
}
bool _checkFlutterCopy() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment