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

Unified Diff: runtime/vm/parser.cc

Issue 1752203002: Fix issues in name resolution (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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 | « runtime/vm/object.cc ('k') | tests/language/language.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/parser.cc
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc
index 78ca6a57c348da51d155fcd4752deebd29d194d8..9cb7dd44626b9803403ba5409e620abfb7dbc75d 100644
--- a/runtime/vm/parser.cc
+++ b/runtime/vm/parser.cc
@@ -11632,7 +11632,14 @@ AstNode* Parser::ParseClosurization(AstNode* primary) {
// In the pathological case where a library imports itself with
// a prefix, the name mangling does not help in hiding the private
// name, so we explicitly prevent lookup of private names here.
- obj = prefix.LookupObject(extractor_name);
+ if (is_setter_name) {
+ String& setter_name =
+ String::Handle(Z, Field::SetterName(extractor_name));
+ obj = prefix.LookupObject(setter_name);
+ }
+ if (obj.IsNull()) {
+ obj = prefix.LookupObject(extractor_name);
+ }
}
if (!prefix.is_loaded() && (parsed_function() != NULL)) {
// Remember that this function depends on an import prefix of an
« no previous file with comments | « runtime/vm/object.cc ('k') | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698