예제 #1
0
 public static byte[] Eval_val_or(
     Xop_ctx ctx,
     byte[] src,
     Xot_invk caller,
     Xot_invk self,
     int self_args_len,
     int i,
     byte[] or) {
   if (i >= self_args_len) return or;
   Bry_bfr bfr = Bry_bfr_.New();
   Arg_nde_tkn nde = self.Args_get_by_idx(i);
   nde.Val_tkn().Tmpl_evaluate(ctx, src, caller, bfr);
   return bfr.To_bry_and_clear_and_trim();
 }
예제 #2
0
 public static byte[] Eval_arg_or(
     Xop_ctx ctx,
     byte[] src,
     Xot_invk caller,
     Xot_invk self,
     int self_args_len,
     int i,
     byte[] or) {
   if (i >= self_args_len) return or;
   Arg_nde_tkn nde = self.Args_get_by_idx(i);
   Bry_bfr bfr = Bry_bfr_.New();
   Eval_arg_or(bfr, ctx, src, caller, self, nde, or);
   return bfr.To_bry_and_clear_and_trim();
 }