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

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

Issue 10916268: New 'Clean Up' to convert old optional parameters to the new optional named where possible. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 2161859cb633d80210f1ad9a26ac2ae1e3457bfe..09e644a9af280bd0acaece32fc457a1b6635b3d3 100644
--- a/compiler/java/com/google/dart/compiler/ast/DartFunction.java
+++ b/compiler/java/com/google/dart/compiler/ast/DartFunction.java
@@ -12,11 +12,17 @@ import java.util.List;
public class DartFunction extends DartNode {
private final NodeList<DartParameter> parameters = NodeList.create(this);
+ private final int parametersOptionalOpen;
+ private final int parametersOptionalClose;
private final int parametersCloseParen;
private DartBlock body;
private DartTypeNode returnTypeNode;
- public DartFunction(List<DartParameter> parameters, int parametersCloseParen, DartBlock body, DartTypeNode returnTypeNode) {
+ public DartFunction(List<DartParameter> parameters, int parametersOptionalOpen,
+ int parametersOptionalClose, int parametersCloseParen, DartBlock body,
+ DartTypeNode returnTypeNode) {
+ this.parametersOptionalOpen = parametersOptionalOpen;
+ this.parametersOptionalClose = parametersOptionalClose;
this.parameters.addAll(parameters);
this.parametersCloseParen = parametersCloseParen;
this.body = becomeParentOf(body);
@@ -30,6 +36,14 @@ public class DartFunction extends DartNode {
public List<DartParameter> getParameters() {
return parameters;
}
+
+ public int getParametersOptionalOpen() {
+ return parametersOptionalOpen;
+ }
+
+ public int getParametersOptionalClose() {
+ return parametersOptionalClose;
+ }
public int getParametersCloseParen() {
return parametersCloseParen;
« 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