5 public class SetExpr extends Expr {
9 public SetExpr(SetDescriptor sd) {
17 public Set getRequiredDescriptors() {
18 HashSet v = new HashSet();
23 public void generate(CodeWriter writer, VarDescriptor vd) {
24 throw new IRException("unsupported");
27 public void generate_set(CodeWriter writer, VarDescriptor vd) {
28 writer.outputline("Set " + vd.getSafeSymbol() + " = " + sd.getSafeSymbol() + "_hash;");
31 public void prettyPrint(PrettyPrinter pp) {
32 pp.output(sd.getSafeSymbol());
35 public TypeDescriptor typecheck(SemanticAnalyzer sa) {
36 this.td = sd.getType();