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

This commit is contained in:
Ian Hickson
2016-06-13 19:19:35 -07:00
committed by GitHub
parent f21b140115
commit 2b2d782503

View File

@@ -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() {