(
&mut self,
s: S,
d: D,
this_id: NodeID,
parent_id: NodeID,
name: &str,
index: &Expr,
)
| 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, |
no test coverage detected