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

Unified Diff: lib/compiler/implementation/resolution/members.dart

Issue 11267039: Make unresolved access to top-level member a dynamic error. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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 | tests/co19/co19-dart2js.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/resolution/members.dart
diff --git a/lib/compiler/implementation/resolution/members.dart b/lib/compiler/implementation/resolution/members.dart
index a6577afc5f3b0f359739cd5e11fc8b6205c58640..32f9bfbd4465ac9b2483e71ab16977c426e0c3dc 100644
--- a/lib/compiler/implementation/resolution/members.dart
+++ b/lib/compiler/implementation/resolution/members.dart
@@ -1557,7 +1557,9 @@ class ResolverVisitor extends CommonResolverVisitor<Element> {
PrefixElement prefix = resolvedReceiver;
target = prefix.lookupLocalMember(name);
if (target == null) {
- error(node, MessageKind.NO_SUCH_LIBRARY_MEMBER, [prefix.name, name]);
+ return warnAndCreateErroneousElement(
+ node, name, MessageKind.NO_SUCH_LIBRARY_MEMBER,
+ [prefix.name, name]);
}
}
return target;
« no previous file with comments | « no previous file | tests/co19/co19-dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698