Index: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/ElementResolver.java |
=================================================================== |
--- editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/ElementResolver.java (revision 22658) |
+++ editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/ElementResolver.java (working copy) |
@@ -727,6 +727,15 @@ |
// TODO(brianwilkerson) Report this error. |
return null; |
} |
+ if (element instanceof PropertyAccessorElement && identifier.inSetterContext()) { |
+ PropertyInducingElement variable = ((PropertyAccessorElement) element).getVariable(); |
+ if (variable != null) { |
+ PropertyAccessorElement setter = variable.getSetter(); |
+ if (setter != null) { |
+ element = setter; |
+ } |
+ } |
+ } |
// TODO(brianwilkerson) The prefix needs to be resolved to the element for the import that |
// defines the prefix, not the prefix's element. |
recordResolution(identifier, element); |