Skip to content

Commit

Permalink
removed strange duplicated
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgenvinju committed Dec 19, 2024
1 parent 67329e2 commit 172e9cf
Showing 1 changed file with 0 additions and 76 deletions.
76 changes: 0 additions & 76 deletions src/org/rascalmpl/ast/Expression.java
Original file line number Diff line number Diff line change
Expand Up @@ -6394,82 +6394,6 @@ public boolean isTuple() {
return false;
}

static public class Tuple extends Expression {
// Production: sig("Tuple",[arg("java.util.List\<org.rascalmpl.ast.Expression\>","elements")],breakable=false)


private final java.util.List<org.rascalmpl.ast.Expression> elements;

public Tuple(ISourceLocation src, IConstructor node , java.util.List<org.rascalmpl.ast.Expression> elements) {
super(src, node);

this.elements = elements;
}

@Override
public boolean isTuple() {
return true;
}

@Override
public <T> T accept(IASTVisitor<T> visitor) {
return visitor.visitExpressionTuple(this);
}

@Override
protected void addForLineNumber(int $line, java.util.List<AbstractAST> $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<org.rascalmpl.ast.Expression> 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\<org.rascalmpl.ast.Expression\>","elements0")],breakable=false)

Expand Down

0 comments on commit 172e9cf

Please sign in to comment.