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

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

Issue 11577022: Issue 7093. Support for inlining function references. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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 a7693d39ebf0df2e4736a83688f85cf877b4e3e3..628e45eda972d44efe976a9b29fa707e58265795 100644
--- a/compiler/java/com/google/dart/compiler/ast/DartFunction.java
+++ b/compiler/java/com/google/dart/compiler/ast/DartFunction.java
@@ -12,15 +12,17 @@ import java.util.List;
public class DartFunction extends DartNode {
private final NodeList<DartParameter> parameters = NodeList.create(this);
+ private final int parametersOpenParen;
private final int parametersOptionalOpen;
private final int parametersOptionalClose;
private final int parametersCloseParen;
private DartBlock body;
private DartTypeNode returnTypeNode;
- public DartFunction(List<DartParameter> parameters, int parametersOptionalOpen,
+ public DartFunction(List<DartParameter> parameters, int parametersOpenParen, int parametersOptionalOpen,
int parametersOptionalClose, int parametersCloseParen, DartBlock body,
DartTypeNode returnTypeNode) {
+ this.parametersOpenParen = parametersOpenParen;
this.parametersOptionalOpen = parametersOptionalOpen;
this.parametersOptionalClose = parametersOptionalClose;
if (parameters != null && !parameters.isEmpty()) {
@@ -47,6 +49,10 @@ public class DartFunction extends DartNode {
return parametersOptionalClose;
}
+ public int getParametersOpenParen() {
+ return parametersOpenParen;
+ }
+
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