Closed youknowone closed 1 year ago
With code
let parsed = parse(code, path, Mode::Exec)
The result parsed is always ast::ModModule. But it currently returns ast::Mod::Module.
parsed
ast::ModModule
ast::Mod::Module
suggestion:
let parsed = ast::ModModule::parse(code, path)
previous parse_* functions can remains for CPython friendly API
parse_*
With code
The result
parsed
is alwaysast::ModModule
. But it currently returnsast::Mod::Module
.suggestion:
previous
parse_*
functions can remains for CPython friendly API