Closed youknowone closed 1 year ago
u32
ruff_python_ast::SourceLocation
ast::<Node>
ast::located::<Node>
located
SourceLocator
source-code
Unfortunately, Python symbols are containing line numbers regardless it has source or not. RustPython may be able to defer the actual transform to symbol table and compile error. But I decide not to do it right now to avoid even larger diff.
u32
ruff_python_ast::SourceLocation
for Python source location. Deleted our own Location.ast::<Node>
s for TextSize located ast.ast::located::<Node>
for Python source located ast.located
to refer only python location related interfaces.SourceLocator
to convert locations.source-code
features of to disable python locations when unnecessary.Unfortunately, Python symbols are containing line numbers regardless it has source or not. RustPython may be able to defer the actual transform to symbol table and compile error. But I decide not to do it right now to avoid even larger diff.