Index: pkg/analyzer/test/src/dart/analysis/base.dart |
diff --git a/pkg/analyzer/test/src/dart/analysis/base.dart b/pkg/analyzer/test/src/dart/analysis/base.dart |
index 9e1b76a4a38bd7a7eb5e57d8f1a715b893adc850..23ae5c420f443910eeff631d1605213955dba7cb 100644 |
--- a/pkg/analyzer/test/src/dart/analysis/base.dart |
+++ b/pkg/analyzer/test/src/dart/analysis/base.dart |
@@ -92,13 +92,15 @@ class BaseAnalysisDriverTest { |
}), |
new ResourceUriResolver(provider) |
], null, provider), |
- new AnalysisOptionsImpl() |
- ..strongMode = true |
- ..enableUriInPartOf = true, |
+ createAnalysisOptions(), |
disableChangesAndCacheAllResults: disableChangesAndCacheAllResults, |
externalSummaries: externalSummaries); |
} |
+ AnalysisOptionsImpl createAnalysisOptions() => new AnalysisOptionsImpl() |
+ ..strongMode = true |
+ ..enableUriInPartOf = true; |
+ |
int findOffset(String search) { |
int offset = testCode.indexOf(search); |
if (offset < 0) { |