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

Unified Diff: lib/compiler/implementation/resolver.dart

Issue 10905062: Fix issue 4361 by checking in the resolver if the getter/setter exists. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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 | « no previous file | lib/compiler/implementation/warnings.dart » ('j') | lib/compiler/implementation/warnings.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/resolver.dart
===================================================================
--- lib/compiler/implementation/resolver.dart (revision 11766)
+++ lib/compiler/implementation/resolver.dart (working copy)
@@ -1329,6 +1329,9 @@
&& target.kind == ElementKind.ABSTRACT_FIELD) {
AbstractFieldElement field = target;
target = field.getter;
+ if (Element.isInvalid(target) && !inInstanceContext) {
+ error(node.selector, MessageKind.CANNOT_RESOLVE_GETTER);
kasperl 2012/09/04 05:50:07 This should definitely be coordinated with Karl, b
ngeoffray 2012/09/04 08:32:14 Done.
+ }
}
bool resolvedArguments = false;
@@ -1394,6 +1397,9 @@
AbstractFieldElement field = target;
setter = field.setter;
getter = field.getter;
+ if (Element.isInvalid(setter) && !inInstanceContext) {
+ error(node.selector, MessageKind.CANNOT_RESOLVE_SETTER);
+ }
}
visit(node.argumentsNode);
« no previous file with comments | « no previous file | lib/compiler/implementation/warnings.dart » ('j') | lib/compiler/implementation/warnings.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698