| Index: pkg/analyzer/lib/src/generated/source_io.dart
|
| diff --git a/pkg/analyzer/lib/src/generated/source_io.dart b/pkg/analyzer/lib/src/generated/source_io.dart
|
| index 58aee2498df05d15d00f7cc7e1f07cfe1fcf04bd..ba147e3a6113b31d8dbda099adc31c92f00e8c6f 100644
|
| --- a/pkg/analyzer/lib/src/generated/source_io.dart
|
| +++ b/pkg/analyzer/lib/src/generated/source_io.dart
|
| @@ -87,6 +87,12 @@ class DirectoryBasedSourceContainer implements SourceContainer {
|
| * Instances of the class `FileBasedSource` implement a source that represents a file.
|
| */
|
| class FileBasedSource implements Source {
|
| +
|
| + /**
|
| + * A function that changes the way that files are read off of disk.
|
| + */
|
| + static Function fileReadMode = (String s) => s;
|
| +
|
| /**
|
| * The URI from which this source was originally derived.
|
| */
|
| @@ -146,7 +152,7 @@ class FileBasedSource implements Source {
|
| TimestampedData<String> get contentsFromFile {
|
| return new TimestampedData<String>(
|
| file.lastModified(),
|
| - file.readAsStringSync());
|
| + fileReadMode(file.readAsStringSync()));
|
| }
|
|
|
| @override
|
|
|