diff --git a/idl/idl_api.ysl2 b/idl/idl_api.ysl2 index a808735..532ce83 100644 --- a/idl/idl_api.ysl2 +++ b/idl/idl_api.ysl2 @@ -30,6 +30,16 @@ def "func:idl_typekind_is_generic" { result "func:exists(/pEpACIDLang/idl/typekinds/generics/*[name()=$typekind])" } +def "func:idl_type_is_defined" { + param "idltype"; + choose { + when "func:idl_type_get_typekind_of_type($idltype)" + result "true()"; + otherwise + result "false()"; + } +} + def "func:idl_type_is_of_typekind_basetype" { param "idltype"; result "func:exists(/pEpACIDLang/idl/basetypes/*[name()=$idltype])"; @@ -55,16 +65,6 @@ def "func:idl_type_is_of_typekind_list" { result "false()"; } -def "func:idl_type_is_defined" { - param "idltype"; - choose { - when "func:idl_type_get_typekind_of_type($idltype)" - result "true()"; - otherwise - result "false()"; - } -} - def "func:idl_type_get_typekind_of_type" { param "idltype"; choose {