-
Notifications
You must be signed in to change notification settings - Fork 5
Add support for reference lookups within methods #118
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
Conversation
JonatanWaern
commented
Jul 2, 2025
- Add declaration spans to methods
- Make fields of structure statements public
- Fix declarations in for loops headers
- Do not discard if-statements without elses
- Allow objects_to_symbols to report errors
- Use try-lock to detect lookup loops
- Macro for internal errors
- Special handling of lookups on method contexts
@TSonono Would be very useful if you could check out and build this locally to test it on your devices a bit. I will be doing some edge-case testing myself (I think, already, I can see declarations leaking through scopes in some cases) |
Scope-escaping should be less now, though turning off reference caching for lookups within methods is certainly not ideal. |
b158e03
to
f73d3af
Compare
Sure |
f73d3af
to
ee459ae
Compare
ee459ae
to
94955cd
Compare
Signed-off-by: Jonatan Waern <jonatan.waern@intel.com>
Were missing 'saved', 'session', and the ability to multi-declare Signed-off-by: Jonatan Waern <jonatan.waern@intel.com>
Luckily, we do not use structural statement information for anything yet. So this did not cause any errors. Signed-off-by: Jonatan Waern <jonatan.waern@intel.com>
Also get rid of the double-errors list Signed-off-by: Jonatan Waern <jonatan.waern@gmail.com>
Avoids mistakes in writing "internal error" prefix Signed-off-by: Jonatan Waern <jonatan.waern@intel.com>
Signed-off-by: Jonatan Waern <jonatan.waern@intel.com>
94955cd
to
532be13
Compare
Signed-off-by: Jonatan Waern <jonatan.waern@intel.com>
Signed-off-by: Jonatan Waern
532be13
to
c7a299b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work with this Jonatan!
Signed-off-by: Jonatan Waern <jonatan.waern@intel.com>