public boolean setup2(XTreeCompiler compiler, XCodeGen code) {
		result = scope.get(ident, ident.name, access);
		switch(result.r){
		case DUPLICATED:
			compiler.addDiagnostic(ident, "duplicated.var", ident.name, result.var.t.position.position.line);
			break;
		case FOUND:
			break;
		case DECLARED:
			if(result.var.getClass()==XVar.class)
				code.addInstruction(t, result.var);
			break;
		case NOT_FOUND:
			compiler.addDiagnostic(ident, "var.not.found", ident.name);
			return false;
		default:
			break;
		}
		if(result.var instanceof XClassAttr){
			return true;
		}else if(result.var instanceof XClosureVar){
			return true;
		}
		return false;
	}