JuliaSyntax.jl icon indicating copy to clipboard operation
JuliaSyntax.jl copied to clipboard

Any guides for upgrading code from JuliaSyntax 0.4 to 1.0

Open fingolfin opened this issue 3 months ago • 1 comments

Are there any guides or notes on upgrading code written against JuliaSyntax 0.4 to use 1.x?

I thought I could maybe look at the documentation website to compare between 0.4 and 1.0, but discovered that the website only has dev docs, no release docs (see issue #596).

Background: it'd be nice to have Cthulu.jl working with JuliaSyntax 1.x, and there is https://github.com/JuliaDebug/Cthulhu.jl/pull/661 but that is stalled. I'd try to contribute but without a place to start, this is difficult (as described on the linked PR, the current issues is an access to an args field of a GreenNode which apparently no longer exists in 1.x).

fingolfin avatar Sep 13 '25 20:09 fingolfin

For me, .args just became .children:

https://github.com/JuliaTesting/ExplicitImports.jl/pull/110/files#diff-b8efdab12511a421cb933fefe9c2f24ee91d19cca2ed0cec7469f7a60b6ad750R371

ericphanson avatar Sep 13 '25 23:09 ericphanson