There should be a way to move these out, while at the same time allowing other users of the dfrontend-as-a-library to add their own information into the AST classes.
See https://github.com/dlang/dmd/pull/5501
Comment #1 by robert.schadek — 2024-12-13T18:51:34Z