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

Unified Diff: compiler/java/com/google/dart/compiler/ast/DartFunction.java

Issue 10916211: Issue 4752. When convert to getter, remove also () (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use setter in *Info 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 | compiler/java/com/google/dart/compiler/parser/DartParser.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/ast/DartFunction.java
diff --git a/compiler/java/com/google/dart/compiler/ast/DartFunction.java b/compiler/java/com/google/dart/compiler/ast/DartFunction.java
index e51be2a70de7669f6be9afd26513be78c64d5410..2161859cb633d80210f1ad9a26ac2ae1e3457bfe 100644
--- a/compiler/java/com/google/dart/compiler/ast/DartFunction.java
+++ b/compiler/java/com/google/dart/compiler/ast/DartFunction.java
@@ -12,11 +12,13 @@ import java.util.List;
public class DartFunction extends DartNode {
private final NodeList<DartParameter> parameters = NodeList.create(this);
+ private final int parametersCloseParen;
private DartBlock body;
private DartTypeNode returnTypeNode;
- public DartFunction(List<DartParameter> parameters, DartBlock body, DartTypeNode returnTypeNode) {
+ public DartFunction(List<DartParameter> parameters, int parametersCloseParen, DartBlock body, DartTypeNode returnTypeNode) {
this.parameters.addAll(parameters);
+ this.parametersCloseParen = parametersCloseParen;
this.body = becomeParentOf(body);
this.returnTypeNode = becomeParentOf(returnTypeNode);
}
@@ -28,6 +30,10 @@ public class DartFunction extends DartNode {
public List<DartParameter> getParameters() {
return parameters;
}
+
+ public int getParametersCloseParen() {
+ return parametersCloseParen;
+ }
public DartTypeNode getReturnTypeNode() {
return returnTypeNode;
« no previous file with comments | « no previous file | compiler/java/com/google/dart/compiler/parser/DartParser.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698