diff -r a070a9681961 -r e9807c28a788 plcopen/variables_infos.ysl2 --- a/plcopen/variables_infos.ysl2 Mon Oct 16 23:35:47 2023 +0200 +++ b/plcopen/variables_infos.ysl2 Mon Oct 16 23:50:58 2023 +0200 @@ -117,6 +117,11 @@ template "ppx:dataType", mode="var_type" { apply "ppx:baseType", mode="var_type"; } + + template "*[self::ppx:type or self::ppx:baseType or self::ppx:returnType]/*", mode="var_type" { + variable "name" > «local-name()» + value "ns:SetType($name)"; + } template "*[self::ppx:type or self::ppx:baseType or self::ppx:returnType]/ppx:struct", mode="var_type" { apply "ppx:variable", mode="var_type"; @@ -152,10 +157,6 @@ value "ns:SetType($name)"; } - template "*[self::ppx:type or self::ppx:baseType or self::ppx:returnType]/*", mode="var_type", priority="-1.0" { - variable "name" > «local-name()» - value "ns:SetType($name)"; - } template "*[self::ppx:type or self::ppx:baseType or self::ppx:returnType]/ppx:derived", mode="var_edit" { variable "type_name" > «@name»