(
vm: &VirtualMachine,
_source_file: &SourceFile,
object: PyObjectRef,
)
| 9 | } |
| 10 | |
| 11 | fn ast_from_object( |
| 12 | vm: &VirtualMachine, |
| 13 | _source_file: &SourceFile, |
| 14 | object: PyObjectRef, |
| 15 | ) -> PyResult<Self> { |
| 16 | let py_str = PyUtf8StrRef::try_from_object(vm, object)?; |
| 17 | Ok(Self::new(py_str.as_str(), TextRange::default())) |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | impl Node for ast::Int { |