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

Method cmpop_with_temp_args

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

Source from the content-addressed store, hash-verified

92 }
93
94 pub(crate) fn cmpop_with_temp_args(
95 op: CmpOp,
96 lhs: &Expr,
97 rhs: &Expr,
98 lhs_temp: &BTreeMap<usize, String>,
99 rhs_temp: &BTreeMap<usize, String>,
100 ) -> Self {
101 PyExpr {
102 inner: Expr::Compare(op, Box::new(lhs.clone()), Box::new(rhs.clone())),
103 name: None,
104 temp_args: merge_temp_args(lhs_temp, rhs_temp),
105 }
106 }
107
108 pub(crate) fn unary_with_temp_args(
109 op: UnaryOp,

Callers

nothing calls this directly

Calls 1

merge_temp_argsFunction · 0.85

Tested by

no test coverage detected