Store by-ref type annotation in trap and add tests

This commit is contained in:
Tamas Vajk
2021-01-11 22:11:55 +01:00
parent 2804f5cba9
commit 727412b26b
12 changed files with 1863 additions and 37 deletions

View File

@@ -1753,6 +1753,7 @@ cil_field(
@cil_member = @cil_method | @cil_type | @cil_field | @cil_property | @cil_event;
@cil_custom_modifier_receiver = @cil_method | @cil_property | @cil_parameter | @cil_field | @cil_function_pointer_type;
@cil_parameterizable = @cil_method | @cil_function_pointer_type;
@cil_has_type_annotation = @cil_stack_variable | @cil_property | @cil_method | @cil_function_pointer_type;
#keyset[parameterizable, index]
cil_parameter(
@@ -1773,6 +1774,10 @@ cil_custom_modifiers(
int modifier: @cil_type ref,
int kind: int ref); // modreq: 1, modopt: 0
cil_type_annotation(
int id: @cil_has_type_annotation ref,
int annotation: int ref);
cil_getter(unique int prop: @cil_property ref,
int method: @cil_method ref);