Fix build mode to convert input paths to absolute and normalized before giving them to Analyzer.

R=brianwilkerson@google.com

Change-Id: Ib317c13bb159c2de6f6b77500378ac002ebff746
Reviewed-on: https://dart-review.googlesource.com/77461
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
This commit is contained in:
Konstantin Shcheglov 2018-10-01 18:18:02 +00:00 committed by commit-bot@chromium.org
parent 765a78d44e
commit e4671346ac

View file

@ -450,6 +450,8 @@ class BuildMode extends Object with HasContextMixin {
}
Uri uri = Uri.parse(sourceFile.substring(0, pipeIndex));
String path = sourceFile.substring(pipeIndex + 1);
path = resourceProvider.pathContext.absolute(path);
path = resourceProvider.pathContext.normalize(path);
uriToFileMap[uri] = resourceProvider.getFile(path);
}
return uriToFileMap;