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

Unified Diff: pkg/analyzer/lib/src/task/strong/info.dart

Issue 1622763002: Don't include node in downcast error message. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Tweak error message. Created 4 years, 11 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/task/strong/info.dart
diff --git a/pkg/analyzer/lib/src/task/strong/info.dart b/pkg/analyzer/lib/src/task/strong/info.dart
index d9c912600eaab412ce05292c1655c62663fd9cc3..6bd02e2d73a8272a7a53b8e06bf17cd201311ae9 100644
--- a/pkg/analyzer/lib/src/task/strong/info.dart
+++ b/pkg/analyzer/lib/src/task/strong/info.dart
@@ -96,14 +96,14 @@ abstract class DownCast extends CoercionInfo {
}
@override
- List<Object> get arguments => [node, baseType, convertedType];
+ List<Object> get arguments => [baseType, convertedType];
Cast get cast => _cast;
DartType get convertedType => _cast.toType;
+
@override
- String get message => '{0} ({1}) will need runtime check '
- 'to cast to type {2}';
+ String get message => 'Unsound implicit cast from {0} to {1}';
// Factory to create correct DownCast variant.
static StaticInfo create(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698