summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjkohnlein2008-03-20 06:32:21 (EDT)
committer jkohnlein2008-03-20 06:32:21 (EDT)
commit9686f1a4462775ed8d05487b33ca7731ad5e308a (patch)
tree763d8061df808a832d2312a2ad9f01a8447dce9c
parent3b4ac12deb097551f4ed4a9a116d77758fbe4691 (diff)
downloadorg.eclipse.xpand-9686f1a4462775ed8d05487b33ca7731ad5e308a.zip
org.eclipse.xpand-9686f1a4462775ed8d05487b33ca7731ad5e308a.tar.gz
org.eclipse.xpand-9686f1a4462775ed8d05487b33ca7731ad5e308a.tar.bz2
fixed mapping of operation call
-rw-r--r--plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/middlend/Expression2Backend.java11
1 files changed, 4 insertions, 7 deletions
diff --git a/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/middlend/Expression2Backend.java b/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/middlend/Expression2Backend.java
index e6527b8..45fa3c0 100644
--- a/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/middlend/Expression2Backend.java
+++ b/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/middlend/Expression2Backend.java
@@ -53,6 +53,7 @@ import org.eclipse.xpand3.util.SyntaxConstants;
import org.eclipse.xtend.backend.common.ExpressionBase;
import org.eclipse.xtend.backend.common.SourcePos;
import org.eclipse.xtend.backend.expr.CreateUncachedExpression;
+import org.eclipse.xtend.backend.expr.InvocationOnObjectExpression;
import org.eclipse.xtend.backend.expr.InvocationOnWhateverExpression;
import org.eclipse.xtend.backend.expr.ListLiteralExpression;
import org.eclipse.xtend.backend.expr.LiteralExpression;
@@ -167,18 +168,14 @@ public class Expression2Backend extends ExpressionSwitch<ExpressionBase> {
ExpressionBase targetExpression = doSwitch(object.getTarget());
List<ExpressionBase> beParams = new ArrayList<ExpressionBase>(object
.getParams().size());
- // TODO: Find out the difference between InvocationOnWhatever and
- // InvocationOnObject
beParams.add(targetExpression);
for (AbstractExpression param : object.getParams()) {
beParams.add(doSwitch(param));
}
if (targetExpression instanceof LocalVarEvalExpression) {
- // return new InvocationOnObjectExpression(
- // object.getName().getValue(), beParams, false,
- // getSourcePos(object));
- return new InvocationOnWhateverExpression(object.getName()
- .getValue(), beParams, true, getSourcePos(object));
+ return new InvocationOnObjectExpression(
+ object.getName().getValue(), beParams, false,
+ getSourcePos(object));
} else {
return new InvocationOnWhateverExpression(object.getName()
.getValue(), beParams, true, getSourcePos(object));