@lcap/nasl 3.4.0-alpha.2 → 3.4.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (296) hide show
  1. package/out/common/BaseNode.d.ts +14 -11
  2. package/out/common/BaseNode.js +72 -52
  3. package/out/common/BaseNode.js.map +1 -1
  4. package/out/concepts/Anchor__.js +3 -1
  5. package/out/concepts/Anchor__.js.map +1 -1
  6. package/out/concepts/AnonymousFunction__.js +10 -3
  7. package/out/concepts/AnonymousFunction__.js.map +1 -1
  8. package/out/concepts/App__.js +69 -18
  9. package/out/concepts/App__.js.map +1 -1
  10. package/out/concepts/Argument__.js +3 -1
  11. package/out/concepts/Argument__.js.map +1 -1
  12. package/out/concepts/Assignee__.js +18 -5
  13. package/out/concepts/Assignee__.js.map +1 -1
  14. package/out/concepts/AssignmentLine__.js +6 -2
  15. package/out/concepts/AssignmentLine__.js.map +1 -1
  16. package/out/concepts/Assignment__.js +6 -2
  17. package/out/concepts/Assignment__.js.map +1 -1
  18. package/out/concepts/Attribute__.js +3 -1
  19. package/out/concepts/Attribute__.js.map +1 -1
  20. package/out/concepts/AuthLogicForCallInterface__.js +4 -1
  21. package/out/concepts/AuthLogicForCallInterface__.js.map +1 -1
  22. package/out/concepts/AuthLogic__.js.map +1 -1
  23. package/out/concepts/BackendVariable__.js +3 -1
  24. package/out/concepts/BackendVariable__.js.map +1 -1
  25. package/out/concepts/Backend__.js +4 -1
  26. package/out/concepts/Backend__.js.map +1 -1
  27. package/out/concepts/BatchAssignment__.js +11 -3
  28. package/out/concepts/BatchAssignment__.js.map +1 -1
  29. package/out/concepts/BinaryExpression__.js +6 -2
  30. package/out/concepts/BinaryExpression__.js.map +1 -1
  31. package/out/concepts/BindAttribute__.js +20 -6
  32. package/out/concepts/BindAttribute__.js.map +1 -1
  33. package/out/concepts/BindDirective__.js +7 -2
  34. package/out/concepts/BindDirective__.js.map +1 -1
  35. package/out/concepts/BindEvent__.js +8 -2
  36. package/out/concepts/BindEvent__.js.map +1 -1
  37. package/out/concepts/BindStyle__.js +7 -2
  38. package/out/concepts/BindStyle__.js.map +1 -1
  39. package/out/concepts/CallAuthInterface__.js +4 -1
  40. package/out/concepts/CallAuthInterface__.js.map +1 -1
  41. package/out/concepts/CallFunction__.js +8 -2
  42. package/out/concepts/CallFunction__.js.map +1 -1
  43. package/out/concepts/CallInterface__.d.ts +2 -1
  44. package/out/concepts/CallInterface__.js +51 -13
  45. package/out/concepts/CallInterface__.js.map +1 -1
  46. package/out/concepts/CallLogic__.js +11 -3
  47. package/out/concepts/CallLogic__.js.map +1 -1
  48. package/out/concepts/CallQueryComponent__.js +34 -10
  49. package/out/concepts/CallQueryComponent__.js.map +1 -1
  50. package/out/concepts/CompletionProperty__.js +3 -1
  51. package/out/concepts/CompletionProperty__.js.map +1 -1
  52. package/out/concepts/ConfigGroup__.js +4 -1
  53. package/out/concepts/ConfigGroup__.js.map +1 -1
  54. package/out/concepts/ConfigProperty__.js +4 -1
  55. package/out/concepts/ConfigProperty__.js.map +1 -1
  56. package/out/concepts/Configuration__.js +4 -1
  57. package/out/concepts/Configuration__.js.map +1 -1
  58. package/out/concepts/Connection__.js +4 -1
  59. package/out/concepts/Connection__.js.map +1 -1
  60. package/out/concepts/Connector__.js +26 -7
  61. package/out/concepts/Connector__.js.map +1 -1
  62. package/out/concepts/Constant__.js +3 -1
  63. package/out/concepts/Constant__.js.map +1 -1
  64. package/out/concepts/DataSource__.js +4 -1
  65. package/out/concepts/DataSource__.js.map +1 -1
  66. package/out/concepts/Destination__.js +7 -2
  67. package/out/concepts/Destination__.js.map +1 -1
  68. package/out/concepts/EntityIndex__.js +3 -1
  69. package/out/concepts/EntityIndex__.js.map +1 -1
  70. package/out/concepts/EntityProperty__.js +9 -3
  71. package/out/concepts/EntityProperty__.js.map +1 -1
  72. package/out/concepts/Entity__.js +8 -2
  73. package/out/concepts/Entity__.js.map +1 -1
  74. package/out/concepts/Enum__.js +4 -1
  75. package/out/concepts/Enum__.js.map +1 -1
  76. package/out/concepts/Event__.js +4 -1
  77. package/out/concepts/Event__.js.map +1 -1
  78. package/out/concepts/ExternalDestination__.js +6 -2
  79. package/out/concepts/ExternalDestination__.js.map +1 -1
  80. package/out/concepts/ForEachStatement__.js +19 -6
  81. package/out/concepts/ForEachStatement__.js.map +1 -1
  82. package/out/concepts/FrontendLibrary__.js +8 -2
  83. package/out/concepts/FrontendLibrary__.js.map +1 -1
  84. package/out/concepts/Frontend__.js +19 -5
  85. package/out/concepts/Frontend__.js.map +1 -1
  86. package/out/concepts/Function__.js +19 -5
  87. package/out/concepts/Function__.js.map +1 -1
  88. package/out/concepts/IfStatement__.js +11 -3
  89. package/out/concepts/IfStatement__.js.map +1 -1
  90. package/out/concepts/Integration__.js +7 -2
  91. package/out/concepts/Integration__.js.map +1 -1
  92. package/out/concepts/InterfaceParam__.js +3 -1
  93. package/out/concepts/InterfaceParam__.js.map +1 -1
  94. package/out/concepts/Interface__.js +11 -3
  95. package/out/concepts/Interface__.js.map +1 -1
  96. package/out/concepts/Logic__.js +46 -46
  97. package/out/concepts/Logic__.js.map +1 -1
  98. package/out/concepts/MatchCase__.js +8 -2
  99. package/out/concepts/MatchCase__.js.map +1 -1
  100. package/out/concepts/Match__.js +7 -2
  101. package/out/concepts/Match__.js.map +1 -1
  102. package/out/concepts/MemberExpression__.js +6 -2
  103. package/out/concepts/MemberExpression__.js.map +1 -1
  104. package/out/concepts/Module__.js +55 -14
  105. package/out/concepts/Module__.js.map +1 -1
  106. package/out/concepts/MsgTriggerEvent__.js +4 -1
  107. package/out/concepts/MsgTriggerEvent__.js.map +1 -1
  108. package/out/concepts/MsgTriggerLauncher__.js +4 -1
  109. package/out/concepts/MsgTriggerLauncher__.js.map +1 -1
  110. package/out/concepts/Namespace__.js +48 -12
  111. package/out/concepts/Namespace__.js.map +1 -1
  112. package/out/concepts/NewComposite__.js +15 -4
  113. package/out/concepts/NewComposite__.js.map +1 -1
  114. package/out/concepts/NewList__.js +7 -2
  115. package/out/concepts/NewList__.js.map +1 -1
  116. package/out/concepts/NewMap__.js +11 -3
  117. package/out/concepts/NewMap__.js.map +1 -1
  118. package/out/concepts/NumericLiteral__.js +3 -1
  119. package/out/concepts/NumericLiteral__.js.map +1 -1
  120. package/out/concepts/OqlQueryComponent__.js +3 -1
  121. package/out/concepts/OqlQueryComponent__.js.map +1 -1
  122. package/out/concepts/OverriddenLogic__.js +28 -8
  123. package/out/concepts/OverriddenLogic__.js.map +1 -1
  124. package/out/concepts/Param__.js +3 -1
  125. package/out/concepts/Param__.js.map +1 -1
  126. package/out/concepts/ProcessComponent__.js +8 -2
  127. package/out/concepts/ProcessComponent__.js.map +1 -1
  128. package/out/concepts/ProcessElement__.js +30 -8
  129. package/out/concepts/ProcessElement__.js.map +1 -1
  130. package/out/concepts/ProcessOutcomes__.js +3 -1
  131. package/out/concepts/ProcessOutcomes__.js.map +1 -1
  132. package/out/concepts/Process__.js +20 -5
  133. package/out/concepts/Process__.js.map +1 -1
  134. package/out/concepts/QueryAggregateExpression__.js +3 -1
  135. package/out/concepts/QueryAggregateExpression__.js.map +1 -1
  136. package/out/concepts/QueryFromExpression__.js +4 -1
  137. package/out/concepts/QueryFromExpression__.js.map +1 -1
  138. package/out/concepts/QueryGroupByExpression__.js +3 -1
  139. package/out/concepts/QueryGroupByExpression__.js.map +1 -1
  140. package/out/concepts/QueryJoinExpression__.js +8 -2
  141. package/out/concepts/QueryJoinExpression__.js.map +1 -1
  142. package/out/concepts/QueryLimitExpression__.js +6 -2
  143. package/out/concepts/QueryLimitExpression__.js.map +1 -1
  144. package/out/concepts/QueryOrderByExpression__.js +6 -2
  145. package/out/concepts/QueryOrderByExpression__.js.map +1 -1
  146. package/out/concepts/QuerySelectExpression__.js +4 -1
  147. package/out/concepts/QuerySelectExpression__.js.map +1 -1
  148. package/out/concepts/Return__.js +3 -1
  149. package/out/concepts/Return__.js.map +1 -1
  150. package/out/concepts/SelectMembers__.js +7 -2
  151. package/out/concepts/SelectMembers__.js.map +1 -1
  152. package/out/concepts/Slot__.js +3 -1
  153. package/out/concepts/Slot__.js.map +1 -1
  154. package/out/concepts/SqlQueryComponent__.js +3 -1
  155. package/out/concepts/SqlQueryComponent__.js.map +1 -1
  156. package/out/concepts/StringInterpolation__.js +4 -1
  157. package/out/concepts/StringInterpolation__.js.map +1 -1
  158. package/out/concepts/StructureProperty__.js +3 -1
  159. package/out/concepts/StructureProperty__.js.map +1 -1
  160. package/out/concepts/Structure__.js +8 -2
  161. package/out/concepts/Structure__.js.map +1 -1
  162. package/out/concepts/SwitchCase__.js +7 -2
  163. package/out/concepts/SwitchCase__.js.map +1 -1
  164. package/out/concepts/SwitchStatement__.js +4 -1
  165. package/out/concepts/SwitchStatement__.js.map +1 -1
  166. package/out/concepts/TriggerEvent__.js +4 -1
  167. package/out/concepts/TriggerEvent__.js.map +1 -1
  168. package/out/concepts/TypeAnnotation__.js +12 -3
  169. package/out/concepts/TypeAnnotation__.js.map +1 -1
  170. package/out/concepts/UnaryExpression__.js +3 -1
  171. package/out/concepts/UnaryExpression__.js.map +1 -1
  172. package/out/concepts/ValidationRule__.js +10 -3
  173. package/out/concepts/ValidationRule__.js.map +1 -1
  174. package/out/concepts/Variable__.js +3 -1
  175. package/out/concepts/Variable__.js.map +1 -1
  176. package/out/concepts/ViewComponent__.js +24 -6
  177. package/out/concepts/ViewComponent__.js.map +1 -1
  178. package/out/concepts/ViewElement__.js +24 -7
  179. package/out/concepts/ViewElement__.js.map +1 -1
  180. package/out/concepts/View__.js +27 -7
  181. package/out/concepts/View__.js.map +1 -1
  182. package/out/concepts/WhileStatement__.js +7 -2
  183. package/out/concepts/WhileStatement__.js.map +1 -1
  184. package/out/concepts/types__.d.ts +2 -3
  185. package/out/decorators/index.d.ts +3 -3
  186. package/out/decorators/index.js +3 -1
  187. package/out/decorators/index.js.map +1 -1
  188. package/out/natural/genNaturalTS.js +1 -1
  189. package/out/natural/genNaturalTS.js.map +1 -1
  190. package/out/server/formatTsUtils.d.ts +3 -3
  191. package/out/server/getMemberIdentifier.d.ts +4 -4
  192. package/out/server/naslServer.d.ts +1 -1
  193. package/out/server/naslServer.js +4 -2
  194. package/out/server/naslServer.js.map +1 -1
  195. package/out/translator/utils.js +24 -28
  196. package/out/translator/utils.js.map +1 -1
  197. package/package.json +1 -1
  198. package/src/common/BaseNode.ts +92 -68
  199. package/src/concepts/Anchor__.ts +3 -1
  200. package/src/concepts/AnonymousFunction__.ts +10 -3
  201. package/src/concepts/App__.ts +69 -18
  202. package/src/concepts/Argument__.ts +3 -1
  203. package/src/concepts/Assignee__.ts +18 -5
  204. package/src/concepts/AssignmentLine__.ts +6 -2
  205. package/src/concepts/Assignment__.ts +6 -2
  206. package/src/concepts/Attribute__.ts +3 -1
  207. package/src/concepts/AuthLogicForCallInterface__.ts +4 -1
  208. package/src/concepts/AuthLogic__.ts +3 -0
  209. package/src/concepts/BackendVariable__.ts +3 -1
  210. package/src/concepts/Backend__.ts +4 -1
  211. package/src/concepts/BatchAssignment__.ts +11 -3
  212. package/src/concepts/BinaryExpression__.ts +6 -2
  213. package/src/concepts/BindAttribute__.ts +20 -7
  214. package/src/concepts/BindDirective__.ts +7 -2
  215. package/src/concepts/BindEvent__.ts +8 -2
  216. package/src/concepts/BindStyle__.ts +7 -2
  217. package/src/concepts/CallAuthInterface__.ts +4 -1
  218. package/src/concepts/CallFunction__.ts +8 -2
  219. package/src/concepts/CallInterface__.ts +49 -14
  220. package/src/concepts/CallLogic__.ts +11 -3
  221. package/src/concepts/CallQueryComponent__.ts +34 -10
  222. package/src/concepts/CompletionProperty__.ts +3 -1
  223. package/src/concepts/ConfigGroup__.ts +4 -1
  224. package/src/concepts/ConfigProperty__.ts +4 -1
  225. package/src/concepts/Configuration__.ts +4 -1
  226. package/src/concepts/Connection__.ts +4 -1
  227. package/src/concepts/Connector__.ts +26 -7
  228. package/src/concepts/Constant__.ts +3 -1
  229. package/src/concepts/DataSource__.ts +4 -1
  230. package/src/concepts/Destination__.ts +7 -2
  231. package/src/concepts/EntityIndex__.ts +3 -1
  232. package/src/concepts/EntityProperty__.ts +9 -3
  233. package/src/concepts/Entity__.ts +8 -2
  234. package/src/concepts/Enum__.ts +4 -1
  235. package/src/concepts/Event__.ts +4 -1
  236. package/src/concepts/ExternalDestination__.ts +6 -2
  237. package/src/concepts/ForEachStatement__.ts +19 -6
  238. package/src/concepts/FrontendLibrary__.ts +8 -2
  239. package/src/concepts/Frontend__.ts +19 -5
  240. package/src/concepts/Function__.ts +19 -5
  241. package/src/concepts/IfStatement__.ts +11 -3
  242. package/src/concepts/Integration__.ts +7 -2
  243. package/src/concepts/InterfaceParam__.ts +3 -1
  244. package/src/concepts/Interface__.ts +11 -3
  245. package/src/concepts/Logic__.ts +62 -57
  246. package/src/concepts/MatchCase__.ts +8 -2
  247. package/src/concepts/Match__.ts +7 -2
  248. package/src/concepts/MemberExpression__.ts +6 -2
  249. package/src/concepts/Module__.ts +55 -14
  250. package/src/concepts/MsgTriggerEvent__.ts +4 -1
  251. package/src/concepts/MsgTriggerLauncher__.ts +4 -1
  252. package/src/concepts/Namespace__.ts +48 -12
  253. package/src/concepts/NewComposite__.ts +15 -4
  254. package/src/concepts/NewList__.ts +7 -2
  255. package/src/concepts/NewMap__.ts +11 -3
  256. package/src/concepts/NumericLiteral__.ts +3 -1
  257. package/src/concepts/OqlQueryComponent__.ts +3 -1
  258. package/src/concepts/OverriddenLogic__.ts +28 -8
  259. package/src/concepts/Param__.ts +3 -1
  260. package/src/concepts/ProcessComponent__.ts +8 -2
  261. package/src/concepts/ProcessElement__.ts +30 -8
  262. package/src/concepts/ProcessOutcomes__.ts +3 -1
  263. package/src/concepts/Process__.ts +20 -5
  264. package/src/concepts/QueryAggregateExpression__.ts +3 -1
  265. package/src/concepts/QueryFromExpression__.ts +4 -1
  266. package/src/concepts/QueryGroupByExpression__.ts +3 -1
  267. package/src/concepts/QueryJoinExpression__.ts +8 -2
  268. package/src/concepts/QueryLimitExpression__.ts +6 -2
  269. package/src/concepts/QueryOrderByExpression__.ts +6 -2
  270. package/src/concepts/QuerySelectExpression__.ts +4 -1
  271. package/src/concepts/Return__.ts +3 -1
  272. package/src/concepts/SelectMembers__.ts +7 -2
  273. package/src/concepts/Slot__.ts +3 -1
  274. package/src/concepts/SqlQueryComponent__.ts +3 -1
  275. package/src/concepts/StringInterpolation__.ts +4 -1
  276. package/src/concepts/StructureProperty__.ts +3 -1
  277. package/src/concepts/Structure__.ts +8 -2
  278. package/src/concepts/SwitchCase__.ts +7 -2
  279. package/src/concepts/SwitchStatement__.ts +4 -1
  280. package/src/concepts/TriggerEvent__.ts +4 -1
  281. package/src/concepts/TypeAnnotation__.ts +13 -4
  282. package/src/concepts/UnaryExpression__.ts +3 -1
  283. package/src/concepts/ValidationRule__.ts +10 -3
  284. package/src/concepts/Variable__.ts +3 -1
  285. package/src/concepts/ViewComponent__.ts +24 -6
  286. package/src/concepts/ViewElement__.ts +92 -72
  287. package/src/concepts/View__.ts +27 -7
  288. package/src/concepts/WhileStatement__.ts +7 -2
  289. package/src/concepts/types__.ts +2 -4
  290. package/src/decorators/index.ts +7 -5
  291. package/src/natural/genNaturalTS.ts +1 -1
  292. package/src/server/formatTsUtils.ts +8 -8
  293. package/src/server/getMemberIdentifier.ts +4 -4
  294. package/src/server/naslServer.ts +4 -4
  295. package/src/service/storage/init.ts +2 -2
  296. package/src/translator/utils.ts +7 -9
@@ -53,25 +53,37 @@ export class Connector extends Module {
53
53
  /**
54
54
  * 输入参数列表
55
55
  */
56
- @property('Param')
56
+ @property({
57
+ objectRef: 'Param',
58
+ isArray: true,
59
+ })
57
60
  properties: Array<Param> = [];
58
61
 
59
62
  /**
60
63
  * 逻辑列表
61
64
  */
62
- @property('Logic')
65
+ @property({
66
+ objectRef: 'Logic',
67
+ isArray: true,
68
+ })
63
69
  logics: Array<Logic> = [];
64
70
 
65
71
  /**
66
72
  * 连接器触发器列表
67
73
  */
68
- @property('ConnectorTrigger')
74
+ @property({
75
+ objectRef: 'ConnectorTrigger',
76
+ isArray: true,
77
+ })
69
78
  triggers: Array<ConnectorTrigger> = [];
70
79
 
71
80
  /**
72
81
  * 数据结构列表
73
82
  */
74
- @property('Structure')
83
+ @property({
84
+ objectRef: 'Structure',
85
+ isArray: true,
86
+ })
75
87
  structures: Array<Structure> = [];
76
88
 
77
89
  /**
@@ -84,14 +96,18 @@ export class Connector extends Module {
84
96
  /**
85
97
  * createLogic
86
98
  */
87
- @property('Logic')
99
+ @property({
100
+ objectRef: 'Logic',
101
+ })
88
102
  // @ts-ignore
89
103
  createLogic!: undefined;
90
104
 
91
105
  /**
92
106
  * testConnectorLogic
93
107
  */
94
- @property('Logic')
108
+ @property({
109
+ objectRef: 'Logic',
110
+ })
95
111
  // @ts-ignore
96
112
  testConnectorLogic!: undefined;
97
113
 
@@ -105,7 +121,10 @@ export class Connector extends Module {
105
121
  /**
106
122
  * 命名空间列表
107
123
  */
108
- @property('Namespace')
124
+ @property({
125
+ objectRef: 'Namespace',
126
+ isArray: true,
127
+ })
109
128
  namespaces: Array<Namespace> = [];
110
129
 
111
130
  /**
@@ -53,7 +53,9 @@ export class Constant extends BaseNode {
53
53
  /**
54
54
  * 类型
55
55
  */
56
- @property('TypeAnnotation')
56
+ @property({
57
+ objectRef: 'TypeAnnotation',
58
+ })
57
59
  // @ts-ignore
58
60
  typeAnnotation!: TypeAnnotation;
59
61
 
@@ -48,7 +48,10 @@ export class DataSource extends BaseNode {
48
48
  /**
49
49
  * 实体列表
50
50
  */
51
- @property('Entity')
51
+ @property({
52
+ objectRef: 'Entity',
53
+ isArray: true,
54
+ })
52
55
  entities: Array<Entity> = [];
53
56
 
54
57
  /**
@@ -57,7 +57,10 @@ export class Destination extends LogicItem {
57
57
  /**
58
58
  * 实际参数
59
59
  */
60
- @property('Argument')
60
+ @property({
61
+ objectRef: 'Argument',
62
+ isArray: true,
63
+ })
61
64
  arguments: Array<Argument> = [];
62
65
 
63
66
  /**
@@ -69,7 +72,9 @@ export class Destination extends LogicItem {
69
72
  /**
70
73
  * 锚点参数
71
74
  */
72
- @property('Anchor')
75
+ @property({
76
+ objectRef: 'Anchor',
77
+ })
73
78
  // @ts-ignore
74
79
  anchor!: Anchor;
75
80
 
@@ -50,7 +50,9 @@ export class EntityIndex extends BaseNode {
50
50
  /**
51
51
  * propertyNames
52
52
  */
53
- @property()
53
+ @property({
54
+ isArray: true,
55
+ })
54
56
  propertyNames: Array<string> = [];
55
57
 
56
58
  /**
@@ -74,14 +74,18 @@ export class EntityProperty extends BaseNode {
74
74
  /**
75
75
  * 类型
76
76
  */
77
- @property('TypeAnnotation')
77
+ @property({
78
+ objectRef: 'TypeAnnotation',
79
+ })
78
80
  // @ts-ignore
79
81
  typeAnnotation!: TypeAnnotation;
80
82
 
81
83
  /**
82
84
  * 数据库存储类型
83
85
  */
84
- @property('DatabaseTypeAnnotation')
86
+ @property({
87
+ objectRef: 'DatabaseTypeAnnotation',
88
+ })
85
89
  // @ts-ignore
86
90
  databaseTypeAnnotation!: DatabaseTypeAnnotation;
87
91
 
@@ -148,7 +152,9 @@ export class EntityProperty extends BaseNode {
148
152
  /**
149
153
  * 验证规则
150
154
  */
151
- @property()
155
+ @property({
156
+ isArray: true,
157
+ })
152
158
  rules: Array<string> = [];
153
159
 
154
160
  /**
@@ -70,13 +70,19 @@ export class Entity extends BaseNode {
70
70
  /**
71
71
  * 实体属性列表
72
72
  */
73
- @property('EntityProperty')
73
+ @property({
74
+ objectRef: 'EntityProperty',
75
+ isArray: true,
76
+ })
74
77
  properties: Array<EntityProperty> = [];
75
78
 
76
79
  /**
77
80
  * 实体索引列表
78
81
  */
79
- @property('EntityIndex')
82
+ @property({
83
+ objectRef: 'EntityIndex',
84
+ isArray: true,
85
+ })
80
86
  indexes: Array<EntityIndex> = [];
81
87
 
82
88
  /**
@@ -55,7 +55,10 @@ export class Enum extends BaseNode {
55
55
  /**
56
56
  * 枚举值列表
57
57
  */
58
- @property('EnumItem')
58
+ @property({
59
+ objectRef: 'EnumItem',
60
+ isArray: true,
61
+ })
59
62
  enumItems: Array<EnumItem> = [];
60
63
 
61
64
  /**
@@ -67,7 +67,10 @@ export class Event extends BaseNode {
67
67
  /**
68
68
  * 输入参数列表
69
69
  */
70
- @property('Param')
70
+ @property({
71
+ objectRef: 'Param',
72
+ isArray: true,
73
+ })
71
74
  params: Array<Param> = [];
72
75
 
73
76
  /**
@@ -35,7 +35,9 @@ export class ExternalDestination extends LogicItem {
35
35
  /**
36
36
  * 外部链接
37
37
  */
38
- @property('LogicItem')
38
+ @property({
39
+ objectRef: 'LogicItem',
40
+ })
39
41
  // @ts-ignore
40
42
  link!: LogicItem;
41
43
 
@@ -48,7 +50,9 @@ export class ExternalDestination extends LogicItem {
48
50
  /**
49
51
  * 锚点参数
50
52
  */
51
- @property('Anchor')
53
+ @property({
54
+ objectRef: 'Anchor',
55
+ })
52
56
  // @ts-ignore
53
57
  anchor!: Anchor;
54
58
 
@@ -35,42 +35,55 @@ export class ForEachStatement extends LogicItem {
35
35
  /**
36
36
  * 循环列表
37
37
  */
38
- @property('LogicItem')
38
+ @property({
39
+ objectRef: 'LogicItem',
40
+ })
39
41
  // @ts-ignore
40
42
  each!: LogicItem;
41
43
 
42
44
  /**
43
45
  * 循环项参数
44
46
  */
45
- @property('Param')
47
+ @property({
48
+ objectRef: 'Param',
49
+ })
46
50
  // @ts-ignore
47
51
  item!: Param;
48
52
 
49
53
  /**
50
54
  * 循环项索引
51
55
  */
52
- @property('Param')
56
+ @property({
57
+ objectRef: 'Param',
58
+ })
53
59
  // @ts-ignore
54
60
  index!: Param;
55
61
 
56
62
  /**
57
63
  * 循环开始值
58
64
  */
59
- @property('LogicItem')
65
+ @property({
66
+ objectRef: 'LogicItem',
67
+ })
60
68
  // @ts-ignore
61
69
  start!: LogicItem;
62
70
 
63
71
  /**
64
72
  * 循环结束值
65
73
  */
66
- @property('LogicItem')
74
+ @property({
75
+ objectRef: 'LogicItem',
76
+ })
67
77
  // @ts-ignore
68
78
  end!: LogicItem;
69
79
 
70
80
  /**
71
81
  * 循环体
72
82
  */
73
- @property('LogicItem')
83
+ @property({
84
+ objectRef: 'LogicItem',
85
+ isArray: true,
86
+ })
74
87
  body: Array<LogicItem> = [];
75
88
 
76
89
  /**
@@ -48,13 +48,19 @@ export class FrontendLibrary extends BaseNode {
48
48
  /**
49
49
  * 逻辑列表
50
50
  */
51
- @property('Logic')
51
+ @property({
52
+ objectRef: 'Logic',
53
+ isArray: true,
54
+ })
52
55
  logics: Array<Logic> = [];
53
56
 
54
57
  /**
55
58
  * 页面组件列表
56
59
  */
57
- @property('ViewComponent')
60
+ @property({
61
+ objectRef: 'ViewComponent',
62
+ isArray: true,
63
+ })
58
64
  viewComponents: Array<ViewComponent> = [];
59
65
 
60
66
  /**
@@ -80,31 +80,45 @@ export class Frontend extends BaseNode {
80
80
  /**
81
81
  * 元素绑定事件列表
82
82
  */
83
- @property('BindEvent')
83
+ @property({
84
+ objectRef: 'BindEvent',
85
+ isArray: true,
86
+ })
84
87
  bindEvents: Array<BindEvent> = [];
85
88
 
86
89
  /**
87
90
  * 页面列表
88
91
  */
89
- @property('View')
92
+ @property({
93
+ objectRef: 'View',
94
+ isArray: true,
95
+ })
90
96
  views: Array<View> = [];
91
97
 
92
98
  /**
93
99
  * 前端全局变量列表
94
100
  */
95
- @property('FrontendVariable')
101
+ @property({
102
+ objectRef: 'FrontendVariable',
103
+ isArray: true,
104
+ })
96
105
  variables: Array<FrontendVariable> = [];
97
106
 
98
107
  /**
99
108
  * 主题配置
100
109
  */
101
- @property('Theme')
110
+ @property({
111
+ objectRef: 'Theme',
112
+ })
102
113
  theme: Theme = new Theme();
103
114
 
104
115
  /**
105
116
  * 扩展组件列表(兼容老版)
106
117
  */
107
- @property('Module')
118
+ @property({
119
+ objectRef: 'Module',
120
+ isArray: true,
121
+ })
108
122
  componentDependencies: Array<Module> = [];
109
123
 
110
124
  /**
@@ -54,31 +54,45 @@ export class Function extends BaseNode {
54
54
  /**
55
55
  * 类型参数列表
56
56
  */
57
- @property('TypeParam')
57
+ @property({
58
+ objectRef: 'TypeParam',
59
+ isArray: true,
60
+ })
58
61
  typeParams: Array<TypeParam> = [];
59
62
 
60
63
  /**
61
64
  * 输入参数列表
62
65
  */
63
- @property('Param')
66
+ @property({
67
+ objectRef: 'Param',
68
+ isArray: true,
69
+ })
64
70
  params: Array<Param> = [];
65
71
 
66
72
  /**
67
73
  * 输出参数列表
68
74
  */
69
- @property('Return')
75
+ @property({
76
+ objectRef: 'Return',
77
+ isArray: true,
78
+ })
70
79
  returns: Array<Return> = [];
71
80
 
72
81
  /**
73
82
  * 变量列表
74
83
  */
75
- @property('Variable')
84
+ @property({
85
+ objectRef: 'Variable',
86
+ isArray: true,
87
+ })
76
88
  variables: Array<Variable> = [];
77
89
 
78
90
  /**
79
91
  * 逻辑项
80
92
  */
81
- @property('LogicItem')
93
+ @property({
94
+ objectRef: 'LogicItem',
95
+ })
82
96
  // @ts-ignore
83
97
  returnExpression!: LogicItem;
84
98
 
@@ -31,20 +31,28 @@ export class IfStatement extends LogicItem {
31
31
  /**
32
32
  * 条件表达式
33
33
  */
34
- @property('LogicItem')
34
+ @property({
35
+ objectRef: 'LogicItem',
36
+ })
35
37
  // @ts-ignore
36
38
  test!: LogicItem;
37
39
 
38
40
  /**
39
41
  * then
40
42
  */
41
- @property('LogicItem')
43
+ @property({
44
+ objectRef: 'LogicItem',
45
+ isArray: true,
46
+ })
42
47
  consequent: Array<LogicItem> = [];
43
48
 
44
49
  /**
45
50
  * else
46
51
  */
47
- @property('LogicItem')
52
+ @property({
53
+ objectRef: 'LogicItem',
54
+ isArray: true,
55
+ })
48
56
  alternate: Array<LogicItem> = [];
49
57
 
50
58
  /**
@@ -33,14 +33,19 @@ export class Integration extends BaseNode {
33
33
  /**
34
34
  * 微应用
35
35
  */
36
- @property('MicroApp')
36
+ @property({
37
+ objectRef: 'MicroApp',
38
+ })
37
39
  // @ts-ignore
38
40
  microApp!: MicroApp;
39
41
 
40
42
  /**
41
43
  * 连接器
42
44
  */
43
- @property('Connector')
45
+ @property({
46
+ objectRef: 'Connector',
47
+ isArray: true,
48
+ })
44
49
  connectors: Array<Connector> = [];
45
50
 
46
51
  /**
@@ -57,7 +57,9 @@ export class InterfaceParam extends BaseNode {
57
57
  /**
58
58
  * 类型
59
59
  */
60
- @property('TypeAnnotation')
60
+ @property({
61
+ objectRef: 'TypeAnnotation',
62
+ })
61
63
  // @ts-ignore
62
64
  typeAnnotation!: TypeAnnotation;
63
65
 
@@ -78,19 +78,27 @@ export class Interface extends BaseNode {
78
78
  /**
79
79
  * 接口参数列表
80
80
  */
81
- @property('InterfaceParam')
81
+ @property({
82
+ objectRef: 'InterfaceParam',
83
+ isArray: true,
84
+ })
82
85
  params: Array<InterfaceParam> = [];
83
86
 
84
87
  /**
85
88
  * 输出参数列表
86
89
  */
87
- @property('Return')
90
+ @property({
91
+ objectRef: 'Return',
92
+ isArray: true,
93
+ })
88
94
  returns: Array<Return> = [];
89
95
 
90
96
  /**
91
97
  * 验证规则
92
98
  */
93
- @property('BindAttribute')
99
+ @property({
100
+ objectRef: 'BindAttribute',
101
+ })
94
102
  // @ts-ignore
95
103
  validation!: BindAttribute;
96
104