MCPcopy Create free account
hub / github.com/YuminosukeSato/ironkernel / binop_with_temp_args

Method binop_with_temp_args

src/python/py_expr.rs:80–92  ·  view source on GitHub ↗
(
        op: BinaryOp,
        lhs: &Expr,
        rhs: &Expr,
        lhs_temp: &BTreeMap<usize, String>,
        rhs_temp: &BTreeMap<usize, String>,
    )

Source from the content-addressed store, hash-verified

78 }
79
80 pub(crate) fn binop_with_temp_args(
81 op: BinaryOp,
82 lhs: &Expr,
83 rhs: &Expr,
84 lhs_temp: &BTreeMap<usize, String>,
85 rhs_temp: &BTreeMap<usize, String>,
86 ) -> Self {
87 PyExpr {
88 inner: Expr::Binary(op, Box::new(lhs.clone()), Box::new(rhs.clone())),
89 name: None,
90 temp_args: merge_temp_args(lhs_temp, rhs_temp),
91 }
92 }
93
94 pub(crate) fn cmpop_with_temp_args(
95 op: CmpOp,

Callers

nothing calls this directly

Calls 1

merge_temp_argsFunction · 0.85

Tested by

no test coverage detected