MCPcopy Create free account
hub / github.com/aspizu/goboscript / list_contains

Method list_contains

src/codegen/expr.rs:275–292  ·  view source on GitHub ↗
(
        &mut self,
        s: S,
        d: D,
        this_id: NodeID,
        parent_id: NodeID,
        name: &str,
        item: &Expr,
    )

Source from the content-addressed store, hash-verified

273 }
274
275 pub fn list_contains(
276 &mut self,
277 s: S,
278 d: D,
279 this_id: NodeID,
280 parent_id: NodeID,
281 name: &str,
282 item: &Expr,
283 ) -> io::Result<()> {
284 let index_id = self.id.new_id();
285 self.begin_node(Node::new("data_itemnumoflist", this_id).parent_id(parent_id))?;
286 self.begin_inputs()?;
287 self.input(s, d, "ITEM", item, index_id)?;
288 self.end_obj()?; // inputs
289 self.single_field_id("LIST", name)?;
290 self.end_obj()?; // node
291 self.expr(s, d, item, index_id, this_id)
292 }
293
294 fn list_length(
295 &mut self,

Callers 1

bin_opMethod · 0.80

Calls 9

newFunction · 0.85
new_idMethod · 0.80
begin_nodeMethod · 0.80
parent_idMethod · 0.80
begin_inputsMethod · 0.80
end_objMethod · 0.80
single_field_idMethod · 0.80
exprMethod · 0.80
inputMethod · 0.45

Tested by

no test coverage detected