510eaae73a
nac3core: Add test for toplevel::composer::build_constructor_lookup
a6bd6d5567
nac3core: src/toplevel/composer.rs fix the constructor propagation bug in function build_constructor_lookup
7d68efc599
nac3core: Add field constructor_lookup(HashMap) to the TopLevelComposer and the function build_constructor_lookup to build the HashMap
71308ae5d4
nac3core: Add field constructor_lookup(HashMap) to the TopLevelComposer and the function build_constructor_lookup to build the HashMap
11af619455
nac3artiq: add class name to the error message when rpc decorator found in __init__ function
cc99085403
move the changes to nac3artiq
74d39be59c
add comment to the code block
z78078
deleted branch 221-fix-classes-without-__init__-should-be-valid from M-Labs/nac3
2022-07-07 15:57:49 +08:00
return error when constructor __init__ decorate with decorator rpc
df9df84879
update function analyze_single_class_methods_fields in file nac3core/src/toplevel/composer.rs to throw error "class <class-name> constructor __init__ (at <location>) must not be decorated with rpc" when the constructor __init__ is decorated with decorator rpc
z78078
pushed to 221-fix-classes-without-__init__-should-be-valid at M-Labs/nac3
2022-07-07 15:29:55 +08:00
450ecb80b7
fix indentation
z78078
pushed to 221-fix-classes-without-__init__-should-be-valid at M-Labs/nac3
2022-07-07 15:27:05 +08:00
0dcb702d3e
Merge branch 'master' of git.m-labs.hk:M-Labs/nac3 into 221-fix-classes-without-__init__-should-be-valid
ebd25af38b
nac3standalone: allow classes without explicit init (#221)
z78078
pushed to 221-fix-classes-without-__init__-should-be-valid at M-Labs/nac3
2022-07-07 15:24:55 +08:00
ddc3012701
update nac3core/src/toplevel/composer.rs function analzer_single_class_method_fields to return Error "class <class-name> constructor __init__ (at <location>) must not be decorated with rpc" when the constructor __init__ decorate with decorator rpc.