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

Unified Diff: pkg/analyzer/test/src/dart/analysis/base.dart

Issue 2995553002: Implement type inference for asserts in constructor initializers. (Closed)
Patch Set: Created 3 years, 4 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 | « no previous file | pkg/analyzer/test/src/task/strong/front_end_inference_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « no previous file | pkg/analyzer/test/src/task/strong/front_end_inference_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698