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

Issue 10381080: Support for renaming getters and setters (Closed)

Created:
8 years, 7 months ago by scheglov
Modified:
8 years, 7 months ago
Reviewers:
Brian Wilkerson
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Support for renaming getters and setters R=brianwilkerson@google.com BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=7492

Patch Set 1 #

Total comments: 3

Patch Set 2 : If no getter/setter, keep FieldElement #

Messages

Total messages: 4 (0 generated)
scheglov
8 years, 7 months ago (2012-05-10 00:03:59 UTC) #1
Brian Wilkerson
LGTM, assuming that none of my questions require a change https://chromiumcodereview.appspot.com/10381080/diff/1/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java File compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java (right): https://chromiumcodereview.appspot.com/10381080/diff/1/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java#newcode1064 ...
8 years, 7 months ago (2012-05-10 14:09:09 UTC) #2
scheglov
https://chromiumcodereview.appspot.com/10381080/diff/1/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java File compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java (right): https://chromiumcodereview.appspot.com/10381080/diff/1/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java#newcode1064 compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java:1064: MethodElement getter = fieldElement.getGetter(); On 2012/05/10 14:09:09, Brian Wilkerson ...
8 years, 7 months ago (2012-05-10 15:09:53 UTC) #3
Brian Wilkerson
8 years, 7 months ago (2012-05-10 15:27:37 UTC) #4
LGTM

https://chromiumcodereview.appspot.com/10381080/diff/1/compiler/java/com/goog...
File compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java (right):

https://chromiumcodereview.appspot.com/10381080/diff/1/compiler/java/com/goog...
compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java:1064:
MethodElement getter = fieldElement.getGetter();
>   getter/setter can be null only if there is compilation error.

That doesn't match my understanding. I thought the setter, at least, was null
for final fields. In any case, it's taken care of.

Powered by Google App Engine
This is Rietveld 408576698