[core] Fix resolution of exception names in raise short form #507

Merged
sb10q merged 1 commits from fix/issue-501 into master 2024-08-26 18:35:02 +08:00

1 Commits

Author SHA1 Message Date
552dbc02f1 [core] Fix resolution of exception names in raise short form
Previous implementation fails as `resolver.get_identifier_def` in ARTIQ
would return the exception __init__ function rather than the class.

We fix this by limiting the exception class resolution to only include
raise statements, and to force the exception name to always be treated
as a class.

Fixes #501.
2024-08-26 14:29:14 +08:00