diff --git a/idl/test_api/test_api.ysl2 b/idl/test_api/test_api.ysl2 index cf4e355..e208f44 100644 --- a/idl/test_api/test_api.ysl2 +++ b/idl/test_api/test_api.ysl2 @@ -15,17 +15,33 @@ tstylesheet { «func:typeinfo('size')» «func:typeinfo('bool')» «func:typeinfo('opaque')» - // deftype basetype - «func:typeinfo('deftype1')» - «func:typeinfo('deftype2')» - // deftype generic - «func:typeinfo('stringlist')» + // enum «func:typeinfo('enum1')» + // struct «func:typeinfo('struct1')» + + // deftypes basetype + «func:typeinfo('dt_int')» + «func:typeinfo('dt_string')» + + // deftype enum + «func:typeinfo('dt_enum')» + + // deftype struct + «func:typeinfo('dt_struct')» + + // deftypes generics + «func:typeinfo('dt_list_of_string')» + «func:typeinfo('dt_pair_int_string')» + + // deftypes recursive + «func:typeinfo('dt_dt_list_of_string')» + «func:typeinfo('dt_dt_dt_list_of_string')» + // undefined - «func:typeinfo('undefined')» + «func:typeinfo('undefined garbage')» || } @@ -37,15 +53,18 @@ tstylesheet { function "typeinfo" { param "idltype"; || - idltype: «$idltype» + type: «$idltype» idl_type_is_defined: «func:idl_type_is_defined($idltype)» + idl_type_is_generic: «func:idl_type_is_generic($idltype)» idl_type_get_typekind_of_type: «func:idl_type_get_typekind_of_type($idltype)» - idl_type_get_resolved_typekind: «func:idl_type_get_resolved_typekind($idltype)» - idl_type_get_resolved_type: «func:idl_type_get_resolved_type($idltype)» - idl_type_is_of_typekind_basetype: «func:idl_type_is_of_typekind_basetype($idltype)» - idl_type_is_of_typekind_deftype: «func:idl_type_is_of_typekind_deftype($idltype)» - idl_type_is_of_typekind_enum: «func:idl_type_is_of_typekind_enum($idltype)» - idl_type_is_of_typekind_struct: «func:idl_type_is_of_typekind_struct($idltype)» + || + const "resolved_type", "func:idl_type_get_resolved_type($idltype)"; + || + resolved type: «$resolved_type» + idl_type_is_defined: «func:idl_type_is_defined($resolved_type)» + idl_type_is_generic: «func:idl_type_is_generic($resolved_type)» + idl_type_get_typekind_of_type: «func:idl_type_get_typekind_of_type($resolved_type)» + || }