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

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

Issue 1497253002: Align strong-mode error codes with analyzer conv. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: doc_fix_cont Created 5 years 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 | « pkg/analyzer/test/src/task/strong/inferred_type_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ea5c52e1da866a611b121a851e302b4e54002aad..360f6c1dd711bee896446541d5562fd640a32c03 100644
--- a/pkg/analyzer/test/src/task/strong/strong_test_helper.dart
+++ b/pkg/analyzer/test/src/task/strong/strong_test_helper.dart
@@ -97,7 +97,7 @@ void testChecker(String name, Map<String, String> testFiles) {
.getErrors(source)
.errors
.where((error) =>
- error.errorCode.name.startsWith('dev_compiler.InferredType'))
+ error.errorCode.name.startsWith('STRONG_MODE_INFERRED_TYPE'))
.toList();
errors.addAll(analyzerErrors);
checker.visitCompilationUnit(resolved);
@@ -483,7 +483,7 @@ List<LibraryElement> reachableLibraries(LibraryElement start) {
String errorCodeName(ErrorCode errorCode) {
var name = errorCode.name;
- final prefix = 'dev_compiler.';
+ final prefix = 'STRONG_MODE_';
if (name.startsWith(prefix)) {
return name.substring(prefix.length);
} else {
« no previous file with comments | « pkg/analyzer/test/src/task/strong/inferred_type_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698