(self, vm: &VirtualMachine, source_file: &SourceFile)
| 381 | // constructor |
| 382 | impl Node for JoinedStr { |
| 383 | fn ast_to_object(self, vm: &VirtualMachine, source_file: &SourceFile) -> PyObjectRef { |
| 384 | let Self { values, range } = self; |
| 385 | let node = NodeAst |
| 386 | .into_ref_with_type(vm, pyast::NodeExprJoinedStr::static_type().to_owned()) |
| 387 | .unwrap(); |
| 388 | let dict = node.as_object().dict().unwrap(); |
| 389 | dict.set_item( |
| 390 | "values", |
| 391 | BoxedSlice(values).ast_to_object(vm, source_file), |
| 392 | vm, |
| 393 | ) |
| 394 | .unwrap(); |
| 395 | node_add_location(&dict, range, vm, source_file); |
| 396 | node.into() |
| 397 | } |
| 398 | fn ast_from_object( |
| 399 | vm: &VirtualMachine, |
| 400 | source_file: &SourceFile, |
no test coverage detected