Parser icon indicating copy to clipboard operation
Parser copied to clipboard

Visitor trait `visit_arg` is never called

Open jvllmr opened this issue 11 months ago • 0 comments

When using the Visitor trait I realized that the default values of arguments are never visited. This is because the visit_arg function is never actuall called: https://github.com/RustPython/Parser/blob/4588ea5c3e6327009640e7c9c89eb6fa9220358e/ast/src/gen/visitor.rs#L737

I also could not see an implementation for visiting the default value of an arg.

jvllmr avatar Feb 09 '25 18:02 jvllmr