1
0
forked from M-Labs/nac3
nac3/nac3core/src/codegen
David Mak 2b2b2dbf8f [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 18:35:02 +08:00
..
irrt [core] Add codegen_unreachable 2024-08-23 13:10:55 +08:00
builtin_fns.rs [core] Add codegen_unreachable 2024-08-23 13:10:55 +08:00
classes.rs core: Add label name and hooks to gen_for functions 2024-07-26 13:35:40 +08:00
concrete_type.rs core/typecheck/typedef: Add is_vararg_ctx to TTuple 2024-08-06 11:45:54 +08:00
expr.rs [core] Fix resolution of exception names in raise short form 2024-08-26 18:35:02 +08:00
extern_fns.rs apply clippy comment changes 2024-08-21 11:21:10 +08:00
generator.rs [meta] Apply clippy suggestions 2024-08-21 13:07:57 +08:00
llvm_intrinsics.rs [meta] Apply clippy suggestions 2024-08-21 13:07:57 +08:00
mod.rs [core] Add codegen_unreachable 2024-08-23 13:10:55 +08:00
numpy.rs [core] Add codegen_unreachable 2024-08-23 13:10:55 +08:00
stmt.rs [core] Fix resolution of exception names in raise short form 2024-08-26 18:35:02 +08:00
test.rs [core] toplevel/composer: Add lateinit_builtins 2024-08-13 15:19:03 +08:00