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

Unified Diff: sdk/lib/_internal/compiler/implementation/compile_time_constants.dart

Issue 346553002: Cleanup argument mismatch message. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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
Index: sdk/lib/_internal/compiler/implementation/compile_time_constants.dart
diff --git a/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart b/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart
index d71ba6fbc57c52eb367262c14ad4101660e66b40..c1e255f12b569388538ae8a978c16db96ec20489 100644
--- a/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart
+++ b/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart
@@ -629,9 +629,12 @@ class CompileTimeConstantEvaluator extends Visitor {
compileConstant,
compiler);
if (!succeeded) {
+ String name = Elements.constructorNameForDiagnostics(
+ target.enclosingClass.name, target.name);
compiler.reportFatalError(
node,
- MessageKind.INVALID_ARGUMENTS, {'methodName': target.name});
+ MessageKind.INVALID_CONSTRUCTOR_ARGUMENTS,
+ {'constructorName': name});
}
return compiledArguments;
}

Powered by Google App Engine
This is Rietveld 408576698