| Index: pkg/analyzer_experimental/lib/src/generated/source_io.dart
|
| diff --git a/pkg/analyzer_experimental/lib/src/generated/source_io.dart b/pkg/analyzer_experimental/lib/src/generated/source_io.dart
|
| index d57574f673501137c5abd4dd3c3eb1c1530e397c..470a12b9c254f60e5981c19663df6852eb05b80e 100644
|
| --- a/pkg/analyzer_experimental/lib/src/generated/source_io.dart
|
| +++ b/pkg/analyzer_experimental/lib/src/generated/source_io.dart
|
| @@ -8,7 +8,8 @@ import 'dart:io';
|
| import 'dart:uri';
|
| import 'java_core.dart';
|
| import 'java_io.dart';
|
| -import 'package:analyzer_experimental/src/generated/sdk.dart' show DartSdk;
|
| +import 'sdk.dart' show DartSdk;
|
| +import 'engine.dart' show AnalysisContext;
|
| export 'source.dart';
|
|
|
| /**
|
| @@ -36,10 +37,10 @@ class FileBasedSource implements Source {
|
| * @param file the file represented by this source
|
| */
|
| FileBasedSource.con1(SourceFactory factory, JavaFile file) {
|
| - _jtd_constructor_296_impl(factory, file);
|
| + _jtd_constructor_298_impl(factory, file);
|
| }
|
| - _jtd_constructor_296_impl(SourceFactory factory, JavaFile file) {
|
| - _jtd_constructor_297_impl(factory, file, false);
|
| + _jtd_constructor_298_impl(SourceFactory factory, JavaFile file) {
|
| + _jtd_constructor_299_impl(factory, file, false);
|
| }
|
| /**
|
| * Initialize a newly created source object.
|
| @@ -48,15 +49,16 @@ class FileBasedSource implements Source {
|
| * @param inSystemLibrary {@code true} if this source is in one of the system libraries
|
| */
|
| FileBasedSource.con2(SourceFactory factory2, JavaFile file3, bool inSystemLibrary2) {
|
| - _jtd_constructor_297_impl(factory2, file3, inSystemLibrary2);
|
| + _jtd_constructor_299_impl(factory2, file3, inSystemLibrary2);
|
| }
|
| - _jtd_constructor_297_impl(SourceFactory factory2, JavaFile file3, bool inSystemLibrary2) {
|
| + _jtd_constructor_299_impl(SourceFactory factory2, JavaFile file3, bool inSystemLibrary2) {
|
| this._factory = factory2;
|
| this._file = file3;
|
| this._inSystemLibrary = inSystemLibrary2;
|
| }
|
| bool operator ==(Object object) => object != null && identical(this.runtimeType, object.runtimeType) && _file == ((object as FileBasedSource))._file;
|
| bool exists() => _file.exists();
|
| + AnalysisContext get context => _factory.context;
|
| void getContents(Source_ContentReceiver receiver) {
|
| {
|
| String contents = _factory.getContents(this);
|
| @@ -133,6 +135,9 @@ class DartUriResolver extends UriResolver {
|
| return null;
|
| }
|
| JavaFile resolvedFile = _sdk.mapDartUri(uri.toString());
|
| + if (resolvedFile == null) {
|
| + return null;
|
| + }
|
| return new FileBasedSource.con2(factory, resolvedFile, true);
|
| }
|
| }
|
| @@ -216,19 +221,19 @@ class DirectoryBasedSourceContainer implements SourceContainer {
|
| * @param directory the directory (not {@code null})
|
| */
|
| DirectoryBasedSourceContainer.con1(JavaFile directory) {
|
| - _jtd_constructor_294_impl(directory);
|
| + _jtd_constructor_296_impl(directory);
|
| }
|
| - _jtd_constructor_294_impl(JavaFile directory) {
|
| - _jtd_constructor_295_impl(directory.getPath());
|
| + _jtd_constructor_296_impl(JavaFile directory) {
|
| + _jtd_constructor_297_impl(directory.getPath());
|
| }
|
| /**
|
| * Construct a container representing the specified path and containing any sources whose{@link Source#getFullName()} starts with the specified path.
|
| * @param path the path (not {@code null} and not empty)
|
| */
|
| DirectoryBasedSourceContainer.con2(String path3) {
|
| - _jtd_constructor_295_impl(path3);
|
| + _jtd_constructor_297_impl(path3);
|
| }
|
| - _jtd_constructor_295_impl(String path3) {
|
| + _jtd_constructor_297_impl(String path3) {
|
| this._path = appendFileSeparator(path3);
|
| }
|
| bool contains(Source source) => source.fullName.startsWith(_path);
|
|
|