-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Source file info is scarce in AST line numbers #1636
Comments
I can do this, but it actually gets tricky since this does not map neatly to native debug info, which doesn't expect the source file to change on every line. |
I see. But source files that change from function to function are ok, of course. Perhaps one option could be to include the source file everywhere to start with, and filter out unrepresentable changes when using the data to create native debug info? I realize that would mean some extra work on your part, but I'm not sure how I would avoid confusing people who step into macro expansions without this kind of thing. |
Does this seem like a reasonable approach? If you point me in the right direction, I might be able to write the patch myself. |
When I quote an AST in julia, almost no line numbers give the source file. Example:
The only place I've found where the source file is given is for the first line inside a function body.
While that is easier on the eyes when looking at a quoted AST, it does complicate things for my debugger. I've tried to propagate source file info from a block into its nodes, but still
Would it be possible to have this info present in more lines?
Most convenient for my purposes would be if every line included a source file along with the line number. I guess it would go a long way for me if source file info was included at the top line nodes of AST:s produced by quote blocks and used as macro arguments.
The text was updated successfully, but these errors were encountered: