Ejemplo n.º 1
0
 private static void setResult(
     Object[] temp, DynamicScope currDynScope, Variable resultVar, Object result) {
   if (resultVar instanceof TemporaryVariable) {
     temp[((TemporaryVariable) resultVar).offset] = result;
   } else {
     LocalVariable lv = (LocalVariable) resultVar;
     currDynScope.setValue((IRubyObject) result, lv.getLocation(), lv.getScopeDepth());
   }
 }