Skip to content

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.

3 participants