summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjkohnlein2008-03-13 10:03:19 (EDT)
committer jkohnlein2008-03-13 10:03:19 (EDT)
commit91f48116208fc393ff67eeaedb6eee8a409f05f0 (patch)
tree8f7ca7f0a204172fbdaf4e5c63c74279cb21fa58
parent9111ff462b07b2407fc521b9679e8dd881114fde (diff)
downloadorg.eclipse.xpand-91f48116208fc393ff67eeaedb6eee8a409f05f0.zip
org.eclipse.xpand-91f48116208fc393ff67eeaedb6eee8a409f05f0.tar.gz
org.eclipse.xpand-91f48116208fc393ff67eeaedb6eee8a409f05f0.tar.bz2
Fixed copyright entries
-rw-r--r--plugins/org.eclipse.xpand3.parser/src/org/eclipse/xpand3/parser/node2ast/Node2AstTransformer.java18
-rw-r--r--plugins/org.eclipse.xpand3.parser/src/org/eclipse/xpand3/parser/node2ast/Node2AstUtil.java16
-rw-r--r--plugins/org.eclipse.xpand3.parser/src/org/eclipse/xpand3/parser/node2ast/TransformationException.java16
-rw-r--r--plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/util/ClassLoaderLoaderImpl.java16
-rw-r--r--plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/util/Loader.java15
-rw-r--r--tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/AbstractXpand3NodeParserTest.java16
-rw-r--r--tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/AllTests.java20
-rw-r--r--tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/ExpressionNodeParserTest.java16
-rw-r--r--tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/StatementNodeParserTest.java8
-rw-r--r--tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/SyntaxUtil.java18
-rw-r--r--tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/Xpand3NodeParserTest.java16
-rw-r--r--tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/XpandLexerTest.java3
-rw-r--r--tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/node2ast/Node2AstTest.java16
-rw-r--r--tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/node2ast/ParseStuff.java17
-rw-r--r--tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/node2ast/TreetestInterpreterTest.java20
-rw-r--r--tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/node2ast/statement.ttst7
16 files changed, 231 insertions, 7 deletions
diff --git a/plugins/org.eclipse.xpand3.parser/src/org/eclipse/xpand3/parser/node2ast/Node2AstTransformer.java b/plugins/org.eclipse.xpand3.parser/src/org/eclipse/xpand3/parser/node2ast/Node2AstTransformer.java
index 9a1ff3e..08516e1 100644
--- a/plugins/org.eclipse.xpand3.parser/src/org/eclipse/xpand3/parser/node2ast/Node2AstTransformer.java
+++ b/plugins/org.eclipse.xpand3.parser/src/org/eclipse/xpand3/parser/node2ast/Node2AstTransformer.java
@@ -1,3 +1,16 @@
+/*******************************************************************************
+ * <copyright>
+ * Copyright (c) 2008 itemis AG and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * committers of openArchitectureWare - initial API and implementation
+ * </copyright>
+ *******************************************************************************/
+
package org.eclipse.xpand3.parser.node2ast;
import org.eclipse.emf.common.util.EList;
@@ -93,6 +106,9 @@ import org.eclipse.xpand3.statement.IfStatement;
import org.eclipse.xpand3.statement.StatementFactory;
import org.eclipse.xpand3.statement.TextStatement;
+/**
+ * @author Jan Köhnlein
+ */
public class Node2AstTransformer extends
AbstractXpand3NodeSwitch<SyntaxElement, TransformationException> {
@@ -248,6 +264,8 @@ public class Node2AstTransformer extends
.setConstraint((AbstractExpression) doSwitch(node
.getConstraint()));
check.setMsg((AbstractExpression) doSwitch(node.getMessage()));
+ createAndAddImplicitlyDeclaredThisParameter(node.getType(), check
+ .getParams());
return check;
}
diff --git a/plugins/org.eclipse.xpand3.parser/src/org/eclipse/xpand3/parser/node2ast/Node2AstUtil.java b/plugins/org.eclipse.xpand3.parser/src/org/eclipse/xpand3/parser/node2ast/Node2AstUtil.java
index 8aa876a..2444eee 100644
--- a/plugins/org.eclipse.xpand3.parser/src/org/eclipse/xpand3/parser/node2ast/Node2AstUtil.java
+++ b/plugins/org.eclipse.xpand3.parser/src/org/eclipse/xpand3/parser/node2ast/Node2AstUtil.java
@@ -1,3 +1,16 @@
+/*******************************************************************************
+ * <copyright>
+ * Copyright (c) 2008 itemis AG and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * committers of openArchitectureWare - initial API and implementation
+ * </copyright>
+ *******************************************************************************/
+
package org.eclipse.xpand3.parser.node2ast;
import java.util.List;
@@ -9,6 +22,9 @@ import org.eclipse.xpand3.expression.AbstractExpression;
import org.eclipse.xpand3.expression.BinaryOperation;
import org.eclipse.xpand3.expression.ExpressionFactory;
+/**
+ * @author Jan Köhnlein
+ */
public class Node2AstUtil {
public static SyntaxElement createBinaryOperationChainFromList(
diff --git a/plugins/org.eclipse.xpand3.parser/src/org/eclipse/xpand3/parser/node2ast/TransformationException.java b/plugins/org.eclipse.xpand3.parser/src/org/eclipse/xpand3/parser/node2ast/TransformationException.java
index bffd7ae..6314deb 100644
--- a/plugins/org.eclipse.xpand3.parser/src/org/eclipse/xpand3/parser/node2ast/TransformationException.java
+++ b/plugins/org.eclipse.xpand3.parser/src/org/eclipse/xpand3/parser/node2ast/TransformationException.java
@@ -1,7 +1,23 @@
+/*******************************************************************************
+ * <copyright>
+ * Copyright (c) 2008 itemis AG and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * committers of openArchitectureWare - initial API and implementation
+ * </copyright>
+ *******************************************************************************/
+
package org.eclipse.xpand3.parser.node2ast;
import org.eclipse.tmf.common.node.Node;
+/**
+ * @author Jan Köhnlein
+ */
public class TransformationException extends RuntimeException {
private Node node;
diff --git a/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/util/ClassLoaderLoaderImpl.java b/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/util/ClassLoaderLoaderImpl.java
index 718922c..7f9ec44 100644
--- a/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/util/ClassLoaderLoaderImpl.java
+++ b/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/util/ClassLoaderLoaderImpl.java
@@ -1,3 +1,18 @@
+/**
+ * <copyright>
+ *
+ * Copyright (c) 2002-2007 itemis AG and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * itemis AG - Initial API and implementation
+ *
+ * </copyright>
+ *
+ */
package org.eclipse.xpand3.util;
import java.io.IOException;
@@ -5,7 +20,6 @@ import java.io.InputStream;
import java.net.URL;
import java.util.Enumeration;
-
/**
* @author Sven Efftinge
*
diff --git a/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/util/Loader.java b/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/util/Loader.java
index 979bfa1..1670f1c 100644
--- a/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/util/Loader.java
+++ b/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/util/Loader.java
@@ -1,3 +1,18 @@
+/**
+ * <copyright>
+ *
+ * Copyright (c) 2002-2007 itemis AG and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * itemis AG - Initial API and implementation
+ *
+ * </copyright>
+ *
+ */
package org.eclipse.xpand3.util;
import java.io.InputStream;
diff --git a/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/AbstractXpand3NodeParserTest.java b/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/AbstractXpand3NodeParserTest.java
index b6eb754..de58a14 100644
--- a/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/AbstractXpand3NodeParserTest.java
+++ b/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/AbstractXpand3NodeParserTest.java
@@ -1,3 +1,16 @@
+/*******************************************************************************
+ * <copyright>
+ * Copyright (c) 2008 itemis AG and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * committers of openArchitectureWare - initial API and implementation
+ * </copyright>
+ *******************************************************************************/
+
package org.eclipse.xpand3.parser;
import java.util.List;
@@ -9,6 +22,9 @@ import org.eclipse.tmf.common.node.LeafNode;
import org.eclipse.tmf.common.node.LexedToken;
import org.eclipse.tmf.common.node.Node;
+/**
+ * @author Jan Köhnlein
+ */
public abstract class AbstractXpand3NodeParserTest extends TestCase {
public static final char LG = '\u00AB';
diff --git a/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/AllTests.java b/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/AllTests.java
index 3b749c6..0d92b4c 100644
--- a/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/AllTests.java
+++ b/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/AllTests.java
@@ -1,19 +1,35 @@
+/*******************************************************************************
+ * <copyright>
+ * Copyright (c) 2008 itemis AG and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * committers of openArchitectureWare - initial API and implementation
+ * </copyright>
+ *******************************************************************************/
+
package org.eclipse.xpand3.parser;
import junit.framework.Test;
import junit.framework.TestSuite;
+/**
+ * @author Jan Köhnlein
+ */
public class AllTests {
public static Test suite() {
TestSuite suite = new TestSuite("Test for org.eclipse.xpand3.parser");
- //$JUnit-BEGIN$
+ // $JUnit-BEGIN$
suite.addTestSuite(XpandLexerTest.class);
suite.addTestSuite(ExpressionNodeParserTest.class);
suite.addTestSuite(Xpand3ScannerTest.class);
suite.addTestSuite(Xpand3NodeParserTest.class);
suite.addTestSuite(StatementNodeParserTest.class);
- //$JUnit-END$
+ // $JUnit-END$
return suite;
}
diff --git a/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/ExpressionNodeParserTest.java b/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/ExpressionNodeParserTest.java
index b7d8eae..f4beb1f 100644
--- a/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/ExpressionNodeParserTest.java
+++ b/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/ExpressionNodeParserTest.java
@@ -1,3 +1,16 @@
+/*******************************************************************************
+ * <copyright>
+ * Copyright (c) 2008 itemis AG and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * committers of openArchitectureWare - initial API and implementation
+ * </copyright>
+ *******************************************************************************/
+
package org.eclipse.xpand3.parser;
import org.antlr.runtime.ANTLRStringStream;
@@ -5,6 +18,9 @@ import org.antlr.runtime.CommonTokenStream;
import org.eclipse.tmf.common.node.CompositeNode;
import org.eclipse.tmf.common.node.Node;
+/**
+ * @author Jan Köhnlein
+ */
public class ExpressionNodeParserTest extends AbstractXpand3NodeParserTest {
public final void testSimple() throws Exception {
diff --git a/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/StatementNodeParserTest.java b/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/StatementNodeParserTest.java
index 6e03568..53f3a0e 100644
--- a/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/StatementNodeParserTest.java
+++ b/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/StatementNodeParserTest.java
@@ -1,12 +1,14 @@
/*******************************************************************************
- * Copyright (c) 2005, 2007 committers of openArchitectureWare and others.
+ * <copyright>
+ * Copyright (c) 2008 itemis AG and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
- * committers of openArchitectureWare - initial API and implementation
+ * committers of openArchitectureWare - initial API and implementation
+ * </copyright>
*******************************************************************************/
package org.eclipse.xpand3.parser;
@@ -17,7 +19,7 @@ import org.eclipse.tmf.common.node.CompositeNode;
import org.eclipse.tmf.common.node.Node;
/**
- * @author Jan Kšhnlein
+ * @author Jan Köhnlein
*/
public class StatementNodeParserTest extends AbstractXpand3NodeParserTest {
private CompositeNode parse(String s) throws Exception {
diff --git a/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/SyntaxUtil.java b/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/SyntaxUtil.java
index 645b728..8adc306 100644
--- a/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/SyntaxUtil.java
+++ b/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/SyntaxUtil.java
@@ -1,6 +1,22 @@
+/*******************************************************************************
+ * <copyright>
+ * Copyright (c) 2008 itemis AG and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * committers of openArchitectureWare - initial API and implementation
+ * </copyright>
+ *******************************************************************************/
+
package org.eclipse.xpand3.parser;
+/**
+ * @author Jan Köhnlein
+ */
public class SyntaxUtil {
public static final String LG = "\u00AB";
public static final String RG = "\u00BB";
-}
+}
diff --git a/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/Xpand3NodeParserTest.java b/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/Xpand3NodeParserTest.java
index f02e481..bd258eb 100644
--- a/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/Xpand3NodeParserTest.java
+++ b/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/Xpand3NodeParserTest.java
@@ -1,3 +1,16 @@
+/*******************************************************************************
+ * <copyright>
+ * Copyright (c) 2008 itemis AG and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * committers of openArchitectureWare - initial API and implementation
+ * </copyright>
+ *******************************************************************************/
+
package org.eclipse.xpand3.parser;
import static org.eclipse.xpand3.parser.SyntaxUtil.LG;
@@ -8,6 +21,9 @@ import org.antlr.runtime.ANTLRStringStream;
import org.antlr.runtime.CommonTokenStream;
import org.eclipse.tmf.common.node.Node;
+/**
+ * @author Jan Köhnlein
+ */
public class Xpand3NodeParserTest extends TestCase {
private Node parse(String s) throws Exception {
diff --git a/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/XpandLexerTest.java b/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/XpandLexerTest.java
index fec987a..3eab26a 100644
--- a/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/XpandLexerTest.java
+++ b/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/XpandLexerTest.java
@@ -16,6 +16,9 @@ import org.antlr.runtime.ANTLRStringStream;
import org.antlr.runtime.CommonToken;
import org.antlr.runtime.CommonTokenStream;
+/**
+ * @author Jan Köhnlein
+ */
public class XpandLexerTest extends AbstractXpand3NodeParserTest {
public void testComments() throws Exception {
diff --git a/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/node2ast/Node2AstTest.java b/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/node2ast/Node2AstTest.java
index 3436f4d..d73173f 100644
--- a/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/node2ast/Node2AstTest.java
+++ b/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/node2ast/Node2AstTest.java
@@ -1,3 +1,16 @@
+/*******************************************************************************
+ * <copyright>
+ * Copyright (c) 2008 itemis AG and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * committers of openArchitectureWare - initial API and implementation
+ * </copyright>
+ *******************************************************************************/
+
package org.eclipse.xpand3.parser.node2ast;
import junit.framework.TestCase;
@@ -13,6 +26,9 @@ import org.eclipse.xpand3.SyntaxElement;
import org.eclipse.xpand3.parser.Xpand3NodeLexer;
import org.eclipse.xpand3.parser.Xpand3NodeParser;
+/**
+ * @author Jan Köhnlein
+ */
public class Node2AstTest extends TestCase {
private SyntaxElement parseAndTransform(String s) throws Exception {
diff --git a/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/node2ast/ParseStuff.java b/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/node2ast/ParseStuff.java
index 7c34a3d..e63b0ce 100644
--- a/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/node2ast/ParseStuff.java
+++ b/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/node2ast/ParseStuff.java
@@ -1,3 +1,16 @@
+/*******************************************************************************
+ * <copyright>
+ * Copyright (c) 2008 itemis AG and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * committers of openArchitectureWare - initial API and implementation
+ * </copyright>
+ *******************************************************************************/
+
package org.eclipse.xpand3.parser.node2ast;
import java.io.StringReader;
@@ -10,6 +23,10 @@ import org.eclipse.xpand3.parser.Xpand3NodeLexer;
import org.eclipse.xpand3.parser.Xpand3NodeParser;
import org.openarchitectureware.xtend.parser.ParseFacade;
+/**
+ * @author Sven Efftinge
+ * @author Jan Köhnlein
+ */
public class ParseStuff {
private static boolean useNodeParser;
diff --git a/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/node2ast/TreetestInterpreterTest.java b/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/node2ast/TreetestInterpreterTest.java
index 013a1ef..9ae8f2e 100644
--- a/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/node2ast/TreetestInterpreterTest.java
+++ b/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/node2ast/TreetestInterpreterTest.java
@@ -1,3 +1,16 @@
+/*******************************************************************************
+ * <copyright>
+ * Copyright (c) 2008 itemis AG and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * committers of openArchitectureWare - initial API and implementation
+ * </copyright>
+ *******************************************************************************/
+
package org.eclipse.xpand3.parser.node2ast;
import java.io.UnsupportedEncodingException;
@@ -11,10 +24,17 @@ import org.eclipse.tmf.common.treetest.AbstractEcoreTreeTestInterpreter;
import org.eclipse.xpand3.parser.Xpand3NodeLexer;
import org.eclipse.xpand3.parser.Xpand3NodeParser;
+/**
+ * @author Jan Köhnlein
+ */
public class TreetestInterpreterTest extends AbstractEcoreTreeTestInterpreter {
private boolean parseExpression;
+ public TreetestInterpreterTest() {
+ super("MM");
+ }
+
public void testStatement() throws Throwable {
parseExpression = false;
test("org/eclipse/xpand3/parser/node2ast/statement.ttst");
diff --git a/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/node2ast/statement.ttst b/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/node2ast/statement.ttst
index 3d2196c..b9d1bdc 100644
--- a/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/node2ast/statement.ttst
+++ b/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/parser/node2ast/statement.ttst
@@ -303,4 +303,11 @@ expected
guard=BinaryOperation
msg=BinaryOperation
constraint=BinaryOperation
+ guard=BinaryOperation
+ params=[
+ DeclaredParameter {
+ name=Identifier(value="this")
+ type=Identifier(value="EObject")
+ }
+ ]
} \ No newline at end of file