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

Unified Diff: lib/compiler/implementation/ssa/builder.dart

Issue 10968010: Import scope rules updated. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments Created 8 years, 3 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 | « lib/compiler/implementation/scanner/scanner_task.dart ('k') | lib/compiler/implementation/warnings.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/ssa/builder.dart
diff --git a/lib/compiler/implementation/ssa/builder.dart b/lib/compiler/implementation/ssa/builder.dart
index 92046ead3b1d1c72981d817855e689f571f51720..f3783d8e2ccf281f417e91c218988316d8a7eee5 100644
--- a/lib/compiler/implementation/ssa/builder.dart
+++ b/lib/compiler/implementation/ssa/builder.dart
@@ -2946,13 +2946,13 @@ class SsaBuilder extends ResolvedVisitor implements Visitor {
Element element = elements[node.send];
if (Elements.isErroneousElement(element)) {
ErroneousElement error = element;
- Message message = error.errorMessage;
- if (message.kind == MessageKind.CANNOT_FIND_CONSTRUCTOR) {
+ if (error.messageKind == MessageKind.CANNOT_FIND_CONSTRUCTOR) {
generateThrowNoSuchMethod(node.send,
getTargetName(error, 'constructor'),
node.send.arguments);
- } else if (message.kind == MessageKind.CANNOT_RESOLVE) {
- generateRuntimeError(node.send, message.message);
+ } else if (error.messageKind == MessageKind.CANNOT_RESOLVE) {
+ Message message = error.messageKind.message(error.messageArguments);
+ generateRuntimeError(node.send, message.toString());
} else {
compiler.internalError('unexpected unresolved constructor call',
node: node);
« no previous file with comments | « lib/compiler/implementation/scanner/scanner_task.dart ('k') | lib/compiler/implementation/warnings.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698