3dcef185d6
Most clients of _PhysicalFile read the file by translating it into a Source object using createSource() and then reading it using FileBasedSource.contentsFromFile, which normalizes newlines using FileBasedSource.fileReadMode. However, a few clients read the file directly using _PhysicalFile.readAsStringSync(), which wasn't doing the normalization. This CL adds the normalization to that code path. One such client was the code generation logic for summaries; this caused code generation to produce different results on Windows, which led to a test failure. Fixes #25470. R=brianwilkerson@google.com Review URL: https://codereview.chromium.org/1584313010 .