plcopen/variables_infos.ysl2
changeset 3868 e9807c28a788
parent 3802 8616ffd7c29d
--- 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»