-
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
base: main
Are you sure you want to change the base?
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
Signed-off-by: Jonatan Waern <[email protected]>
Were missing 'saved', 'session', and the ability to multi-declare Signed-off-by: Jonatan Waern <[email protected]>
Luckily, we do not use structural statement information for anything yet. So this did not cause any errors. Signed-off-by: Jonatan Waern <[email protected]>
Also get rid of the double-errors list Signed-off-by: Jonatan Waern <[email protected]>
Signed-off-by: Jonatan Waern <[email protected]>
Avoids mistakes in writing "internal error" prefix Signed-off-by: Jonatan Waern <[email protected]>
@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. |
Signed-off-by: Jonatan Waern <[email protected]>
Signed-off-by: Jonatan Waern
b158e03
to
f73d3af
Compare
Sure |