Skip to content

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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

JonatanWaern
Copy link
Contributor

  • 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

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]>
Avoids mistakes in writing "internal error" prefix

Signed-off-by: Jonatan Waern <[email protected]>
@JonatanWaern JonatanWaern requested a review from TSonono July 2, 2025 14:52
@JonatanWaern
Copy link
Contributor Author

@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)

@JonatanWaern
Copy link
Contributor Author

Scope-escaping should be less now, though turning off reference caching for lookups within methods is certainly not ideal.

@TSonono
Copy link

TSonono commented Jul 14, 2025

@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)

Sure

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.

2 participants