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

Merged
merged 10 commits into from
Jul 29, 2025

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

@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

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>
@JonatanWaern JonatanWaern force-pushed the references-within-methods branch from 94955cd to 532be13 Compare July 28, 2025 09:13
Signed-off-by: Jonatan Waern <jonatan.waern@intel.com>
@JonatanWaern JonatanWaern force-pushed the references-within-methods branch from 532be13 to c7a299b Compare July 28, 2025 09:17
Copy link

@TSonono TSonono left a 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>
@JonatanWaern JonatanWaern merged commit 97ed446 into main Jul 29, 2025
4 checks passed
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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy