Closed externl closed 10 months ago
Yes, I guess it never mattered because in the compilers, we never attempt to run the visitors unless we know the AST is in a completely patched state.
But I agree, it would be nice to be able to at least partially visit things, even if parts of the AST are broken.
Visiting a file where the AST has a struct with an unpatched field (maybe there are others too) causes the compiler to crash.
Some options:
visit_with
main.rs:
run main: