(self, vm: &VirtualMachine, source_file: &SourceFile)
| 17 | |
| 18 | impl<T: Node> Node for Vec<T> { |
| 19 | fn ast_to_object(self, vm: &VirtualMachine, source_file: &SourceFile) -> PyObjectRef { |
| 20 | vm.ctx |
| 21 | .new_list( |
| 22 | self.into_iter() |
| 23 | .map(|node| node.ast_to_object(vm, source_file)) |
| 24 | .collect(), |
| 25 | ) |
| 26 | .into() |
| 27 | } |
| 28 | |
| 29 | fn ast_from_object( |
| 30 | vm: &VirtualMachine, |