| Index: test/codegen/testing_resolver_utils.dart
|
| diff --git a/test/codegen/testing_resolver_utils.dart b/test/codegen/testing_resolver_utils.dart
|
| index 1a0e6e85c22434ae335f9b48487ef9b6eb1bdb61..1ce5d464c9d60a0cc51e4e6b88f7fe78a23da841 100644
|
| --- a/test/codegen/testing_resolver_utils.dart
|
| +++ b/test/codegen/testing_resolver_utils.dart
|
| @@ -26,9 +26,9 @@ class LibraryProvider {
|
| LibraryProvider initAnalyzer(Map<String, String> contents) {
|
| var analyzer = AnalysisEngine.instance.createAnalysisContext();
|
| var options = new AnalysisOptionsImpl()
|
| - ..cacheSize = 256
|
| - ..preserveComments = false
|
| - ..analyzeFunctionBodies = false;
|
| + ..cacheSize = 256
|
| + ..preserveComments = false
|
| + ..analyzeFunctionBodies = false;
|
| analyzer.analysisOptions = options;
|
| var sdk = new DirectoryBasedDartSdk(new JavaFile(testingDartSdkDirectory));
|
| sdk.context.analysisOptions = options;
|
| @@ -41,9 +41,8 @@ LibraryProvider initAnalyzer(Map<String, String> contents) {
|
| });
|
| analyzer.applyChanges(changes);
|
|
|
| - analyzer.sourceFactory = new SourceFactory([
|
| - new DartUriResolver(sdk),
|
| - new _SimpleUriResolver(allSources)]);
|
| + analyzer.sourceFactory = new SourceFactory(
|
| + [new DartUriResolver(sdk), new _SimpleUriResolver(allSources)]);
|
|
|
| return new LibraryProvider(analyzer, allSources);
|
| }
|
| @@ -70,8 +69,8 @@ class _SimpleSource extends Source {
|
| _SimpleSource(this.path, this.rawContents, this.allSources)
|
| : uri = Uri.parse('file:///path');
|
|
|
| - operator ==(other) => other is _SimpleSource &&
|
| - rawContents == other.rawContents;
|
| + operator ==(other) =>
|
| + other is _SimpleSource && rawContents == other.rawContents;
|
| int get hashCode => rawContents.hashCode;
|
|
|
| bool exists() => true;
|
|
|