mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 00:39:49 +00:00
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:
parent
765a78d44e
commit
e4671346ac
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue