You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

53 lines
1.7 KiB

include yslt.yml2
tstylesheet {
include standardlib.ysl2
include idl_api.ysl2
template "api" document "output/typesys.out", "text" {
||
// basetypes
«func:typeinfo('string')»
«func:typeinfo('binary')»
«func:typeinfo('int')»
«func:typeinfo('uint')»
«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')»
// undefined
«func:typeinfo('undefined')»
||
}
def "func:typeinfo" {
param "idltype";
result call "typeinfo" with "idltype", "$idltype";
};
function "typeinfo" {
param "idltype";
||
idltype: «$idltype»
idl_type_is_defined: «func:idl_type_is_defined($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)»
||
}
}