diff --git a/src/org/rascalmpl/ast/Expression.java b/src/org/rascalmpl/ast/Expression.java index bd10196a59..7ae910eed6 100644 --- a/src/org/rascalmpl/ast/Expression.java +++ b/src/org/rascalmpl/ast/Expression.java @@ -6394,82 +6394,6 @@ public boolean isTuple() { return false; } - static public class Tuple extends Expression { - // Production: sig("Tuple",[arg("java.util.List\","elements")],breakable=false) - - - private final java.util.List elements; - - public Tuple(ISourceLocation src, IConstructor node , java.util.List elements) { - super(src, node); - - this.elements = elements; - } - - @Override - public boolean isTuple() { - return true; - } - - @Override - public T accept(IASTVisitor visitor) { - return visitor.visitExpressionTuple(this); - } - - @Override - protected void addForLineNumber(int $line, java.util.List $result) { - if (getLocation().getBeginLine() == $line) { - $result.add(this); - } - ISourceLocation $l; - - for (AbstractAST $elem : elements) { - $l = $elem.getLocation(); - if ($l.hasLineColumn() && $l.getBeginLine() <= $line && $l.getEndLine() >= $line) { - $elem.addForLineNumber($line, $result); - } - if ($l.getBeginLine() > $line) { - return; - } - - } - } - - @Override - public boolean equals(Object o) { - if (!(o instanceof Tuple)) { - return false; - } - Tuple tmp = (Tuple) o; - return true && tmp.elements.equals(this.elements) ; - } - - @Override - public int hashCode() { - return 599 + 863 * elements.hashCode() ; - } - - - @Override - public java.util.List getElements() { - return this.elements; - } - - @Override - public boolean hasElements() { - return true; - } - - @Override - public Object clone() { - return newInstance(getClass(), src, (IConstructor) null , clone(elements)); - } - - } - public boolean isTuple() { - return false; - } - static public class Tuple extends Expression { // Production: sig("Tuple",[arg("java.util.List\","elements0")],breakable=false)