Skip to content

Compiler :add more locations#5595

Closed
asterite wants to merge 1 commit into
crystal-lang:masterfrom
asterite:bug/5593-no-debug-info
Closed

Compiler :add more locations#5595
asterite wants to merge 1 commit into
crystal-lang:masterfrom
asterite:bug/5593-no-debug-info

Conversation

@asterite
Copy link
Copy Markdown
Member

Fixes #5593

This adds more missing locations, plus on the codegen phase it sets the location to the current node if the node has a location.

In theory all nodes should have a location. I tried to fix most of them but many are still missing (but they can be done later). One easy way to check this is to puts a pp node in here and slowly fix those cases (but I don't have time for that now).

@asterite
Copy link
Copy Markdown
Member Author

Nevermind, this seems wrong. I guess the best way to fix this is to rewrite it from scratch, the code is a mess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compiler bug caused by Benchmark.bm

1 participant