From bdfe0797b0795c6d33557bbf066f52803d91acbf Mon Sep 17 00:00:00 2001 From: heck Date: Fri, 16 Jun 2023 13:19:11 +0200 Subject: [PATCH] idl-api: reorder funcs --- idl/idl_api.ysl2 | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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 {