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

Unified Diff: compiler/java/com/google/dart/compiler/resolver/Elements.java

Issue 10381080: Support for renaming getters and setters (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: If no getter/setter, keep FieldElement Created 8 years, 7 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 | compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/java/com/google/dart/compiler/resolver/Elements.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/Elements.java b/compiler/java/com/google/dart/compiler/resolver/Elements.java
index 9acdb69a76bd21fe091fce04854ae38733fdbec7..34bbcf020df84e50e5f18a2e4aae2e81aead37d3 100644
--- a/compiler/java/com/google/dart/compiler/resolver/Elements.java
+++ b/compiler/java/com/google/dart/compiler/resolver/Elements.java
@@ -606,7 +606,7 @@ static FieldElementImplementation fieldFromNode(DartField node,
* or if it is on the left hand side of an assignment and uses one of the assignment
* operators other than plain '='.
*/
- public static boolean inGetterContext(DartPropertyAccess node) {
+ public static boolean inGetterContext(DartNode node) {
if (node.getParent() instanceof DartBinaryExpression) {
DartBinaryExpression expr = (DartBinaryExpression) node.getParent();
if (Token.ASSIGN.equals(expr.getOperator()) && expr.getArg1() == node) {
« no previous file with comments | « no previous file | compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698