| Index: pkg/analyzer/lib/src/generated/sdk_io.dart
|
| diff --git a/pkg/analyzer/lib/src/generated/sdk_io.dart b/pkg/analyzer/lib/src/generated/sdk_io.dart
|
| index 018b65561b0097cf6fcccb4499c58ca9b4efc139..9c32e6f83cc16eb4e893389f7792b11de4195134 100644
|
| --- a/pkg/analyzer/lib/src/generated/sdk_io.dart
|
| +++ b/pkg/analyzer/lib/src/generated/sdk_io.dart
|
| @@ -450,11 +450,21 @@ class SdkLibrariesReader {
|
| /**
|
| * Return the library map read from the given source.
|
| *
|
| + * @param file the [File] of the library file
|
| + * @param libraryFileContents the contents from the library file
|
| * @return the library map read from the given source
|
| */
|
| - LibraryMap readFrom(JavaFile librariesFile, String libraryFileContents) {
|
| + LibraryMap readFrom(JavaFile file, String libraryFileContents) => readFrom2(new FileBasedSource.con2(null, file, UriKind.FILE_URI), libraryFileContents);
|
| +
|
| + /**
|
| + * Return the library map read from the given source.
|
| + *
|
| + * @param source the source of the library file
|
| + * @param libraryFileContents the contents from the library file
|
| + * @return the library map read from the given source
|
| + */
|
| + LibraryMap readFrom2(Source source, String libraryFileContents) {
|
| BooleanErrorListener errorListener = new BooleanErrorListener();
|
| - Source source = new FileBasedSource.con2(null, librariesFile, UriKind.FILE_URI);
|
| Scanner scanner = new Scanner(source, new CharSequenceReader(new CharSequence(libraryFileContents)), errorListener);
|
| Parser parser = new Parser(source, errorListener);
|
| CompilationUnit unit = parser.parseCompilationUnit(scanner.tokenize());
|
|
|