~icefox/garnetc#16: 
Add location info to AST/HIR

Add file+span to hir::ExprNode, then trace back through the parser and such to populate them and forward into passes to make them propagate through transforms. Then we can make our error messages Actually Heckin' Work past the parser, instead of panicking uglily everywhere.

No error info should ever be needed past typeck, so the more invasive code transformations of TckPass shouldn't need to preserve that info.

Status
RESOLVED CLOSED
Submitter
~icefox
Assigned to
No-one
Submitted
2 years ago
Updated
11 months ago
Labels
T-TODO

~icefox REPORTED CLOSED 11 months ago

Done in f75091a59067 . Not actually filled out or used much though. Continue work in #2.

Register here or Log in to comment, or comment via email.