package com.semmle.js.ast;
import java.util.List;
/** An old-style let expression of the form let (vardecls) expr. */
public class LetExpression extends Expression {
private final List head;
private final Expression body;
public LetExpression(SourceLocation loc, List head, Expression body) {
super("LetExpression", loc);
this.head = head;
this.body = body;
}
@Override
public R accept(Visitor v, C c) {
return v.visit(this, c);
}
public List getHead() {
return head;
}
public Expression getBody() {
return body;
}
}