public Tree Select(Tree qual, Name name) { Symbol sym = qual.type.lookup(name); assert (sym.kind != NONE && sym != Symbol.ERROR) : name + " from " + qual.type; return Select(qual, sym);
public Tree Select(int pos, Tree qual, Symbol sym) { assert sym.kind != NONE; Global.instance.nextPhase(); Type symtype = qual.type.memberType(sym); Global.instance.prevPhase(); if (sym.kind == VAL && qual.type.isStable() && symtype.isObjectType()) symtype = Type.singleType(qual.type, sym); return make.Select(pos, qual, sym.name) .setSymbol(sym).setType(symtype);
    public Tree Select(Tree qual, Name name) {	Symbol sym = qual.type.lookup(name);	assert (sym.kind != NONE && sym != Symbol.ERROR) : name + " from " + qual.type;	return Select(qual, sym);    }