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

Unified Diff: pkg/analyzer/test/src/task/strong/strong_test_helper.dart

Issue 1462133005: Downwards inference. This adds support to the resolver for downwards (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Minor fixes Created 5 years, 1 month 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
Index: pkg/analyzer/test/src/task/strong/strong_test_helper.dart
diff --git a/pkg/analyzer/test/src/task/strong/strong_test_helper.dart b/pkg/analyzer/test/src/task/strong/strong_test_helper.dart
index 330801f07f1f3f92c7a761a9ab9b4f7683810665..38bb0b8e63917cf2bcb10a9c62b796397c3fbd9c 100644
--- a/pkg/analyzer/test/src/task/strong/strong_test_helper.dart
+++ b/pkg/analyzer/test/src/task/strong/strong_test_helper.dart
@@ -92,6 +92,13 @@ void testChecker(String name, Map<String, String> testFiles) {
var librarySource = context.getLibrariesContaining(source).single;
var resolved = context.resolveCompilationUnit2(source, librarySource);
+ var analyzerErrors = context
+ .getErrors(source)
+ .errors
+ .where((error) =>
+ error.errorCode.name.startsWith('dev_compiler.InferredType'))
+ .toList();
+ errors.addAll(analyzerErrors);
checker.visitCompilationUnit(resolved);
new _ExpectedErrorVisitor(errors).validate(resolved);
@@ -395,6 +402,7 @@ final Map<String, String> mockSdkSources = {
class String {
String operator +(String other) {}
+ String substring(int len) {}
}
class bool {}
class num {

Powered by Google App Engine
This is Rietveld 408576698