Chromium Code Reviews
DescriptionProperly translate file: URIs to paths on Windows.
Uri.path returns the path component of the URI in raw form. This
works on MacOS and Linux, but on Windows we need for drive letters to
be handled and for '/' to be converted to '\'. To do this, we have to
use Uri.toFilePath(windows: ...).
This was preventing the index from being able to find source files,
which in turn prevented search.getTypeHierarchy from traversing
subclasses (since it finds subclasses using the index).
BUG=dartbug.com/20436
R=scheglov@google.com
Committed: https://code.google.com/p/dart/source/detail?r=39105
Patch Set 1 #Patch Set 2 : Use fromUri to avoid depending on dart:io #Messages
Total messages: 3 (0 generated)
|