| Index: pkg/analyzer_experimental/lib/src/generated/sdk_io.dart
|
| diff --git a/pkg/analyzer_experimental/lib/src/generated/sdk_io.dart b/pkg/analyzer_experimental/lib/src/generated/sdk_io.dart
|
| index 09ac253da2506bb63b73cf9f70405b282e4c6be8..9c40c3bcd466da404fd98bbb8223514384b77191 100644
|
| --- a/pkg/analyzer_experimental/lib/src/generated/sdk_io.dart
|
| +++ b/pkg/analyzer_experimental/lib/src/generated/sdk_io.dart
|
| @@ -164,6 +164,7 @@ class DirectoryBasedDartSdk implements DartSdk {
|
| }
|
| _analysisContext.applyChanges(changeSet);
|
| }
|
| + Source fromEncoding(ContentCache contentCache, UriKind kind, Uri uri) => new FileBasedSource.con2(contentCache, new JavaFile.fromUri(uri), kind);
|
| AnalysisContext get context => _analysisContext;
|
| /**
|
| * Return the file containing the Dartium executable, or {@code null} if it does not exist.
|
| @@ -277,7 +278,7 @@ class DirectoryBasedDartSdk implements DartSdk {
|
| if (library == null) {
|
| return null;
|
| }
|
| - return new FileBasedSource.con2(contentCache, new JavaFile.relative(libraryDirectory, library.path), true);
|
| + return new FileBasedSource.con2(contentCache, new JavaFile.relative(libraryDirectory, library.path), UriKind.DART_URI);
|
| }
|
| /**
|
| * Ensure that the dart VM is executable. If it is not, make it executable and log that it was
|
| @@ -361,7 +362,7 @@ class SdkLibrariesReader {
|
| LibraryMap readFrom(JavaFile librariesFile, String libraryFileContents) {
|
| List<bool> foundError = [false];
|
| AnalysisErrorListener errorListener = new AnalysisErrorListener_10(foundError);
|
| - Source source = new FileBasedSource.con2(null, librariesFile, false);
|
| + Source source = new FileBasedSource.con2(null, librariesFile, UriKind.FILE_URI);
|
| StringScanner scanner = new StringScanner(source, libraryFileContents, errorListener);
|
| Parser parser = new Parser(source, errorListener);
|
| CompilationUnit unit = parser.parseCompilationUnit(scanner.tokenize());
|
|
|