Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: test/codegen/testing_resolver_utils.dart

Issue 1016913002: pkg/smoke: support latest analyzer version and formatted code (Closed) Base URL: https://github.com/dart-lang/smoke@master
Patch Set: updates Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/codegen/recorder_test.dart ('k') | test/common.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « test/codegen/recorder_test.dart ('k') | test/common.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698