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

Method list_index

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

Source from the content-addressed store, hash-verified

254 }
255
256 pub fn list_index(
257 &mut self,
258 s: S,
259 d: D,
260 this_id: NodeID,
261 parent_id: NodeID,
262 name: &str,
263 index: &Expr,
264 ) -> io::Result<()> {
265 let index_id = self.id.new_id();
266 self.begin_node(Node::new("data_itemoflist", this_id).parent_id(parent_id))?;
267 self.begin_inputs()?;
268 self.input(s, d, "INDEX", index, index_id)?;
269 self.end_obj()?; // inputs
270 self.single_field_id("LIST", name)?;
271 self.end_obj()?; // node
272 self.expr(s, d, index, index_id, this_id)
273 }
274
275 pub fn list_contains(
276 &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