@zenstackhq/language 3.8.0-beta.1 → 3.8.0-beta.3
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.
- package/dist/ast-DHvua30v.cjs +1721 -0
- package/dist/ast-DHvua30v.cjs.map +1 -0
- package/dist/ast-DhPyAQoX.d.mts +1440 -0
- package/dist/ast-Z-Y9-aOU.mjs +1021 -0
- package/dist/ast-Z-Y9-aOU.mjs.map +1 -0
- package/dist/ast-fg9-E1cy.d.cts +1440 -0
- package/dist/ast.cjs +1 -1
- package/dist/ast.d.cts +1 -1
- package/dist/ast.d.mts +1 -1
- package/dist/ast.mjs +1 -1
- package/dist/factory.cjs +31 -31
- package/dist/factory.cjs.map +1 -1
- package/dist/factory.d.cts +1 -1
- package/dist/factory.d.mts +1 -1
- package/dist/factory.mjs +31 -31
- package/dist/factory.mjs.map +1 -1
- package/dist/index.cjs +181 -356
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +181 -356
- package/dist/index.mjs.map +1 -1
- package/dist/{utils-CCU55PfR.mjs → utils-BbhrRsiM.mjs} +2 -2
- package/dist/{utils-CCU55PfR.mjs.map → utils-BbhrRsiM.mjs.map} +1 -1
- package/dist/{utils-b3dJKmYr.cjs → utils-C731YIwp.cjs} +2 -2
- package/dist/{utils-b3dJKmYr.cjs.map → utils-C731YIwp.cjs.map} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.mts +1 -1
- package/dist/utils.mjs +1 -1
- package/package.json +9 -8
- package/res/stdlib.zmodel +23 -1
- package/dist/ast-Clidp86c.cjs +0 -1465
- package/dist/ast-Clidp86c.cjs.map +0 -1
- package/dist/ast-DEfhnj8j.mjs +0 -765
- package/dist/ast-DEfhnj8j.mjs.map +0 -1
- package/dist/ast-DQDdBZQ3.d.mts +0 -525
- package/dist/ast-W2h6Qtfk.d.cts +0 -525
|
@@ -0,0 +1,1021 @@
|
|
|
1
|
+
import * as langium from "langium";
|
|
2
|
+
//#region src/generated/ast.ts
|
|
3
|
+
/******************************************************************************
|
|
4
|
+
* This file was generated by langium-cli 4.2.1.
|
|
5
|
+
* DO NOT EDIT MANUALLY!
|
|
6
|
+
******************************************************************************/
|
|
7
|
+
const ZModelTerminals = {
|
|
8
|
+
WS: /\s+/,
|
|
9
|
+
INTERNAL_ATTRIBUTE_NAME: /@@@([_a-zA-Z][\w_]*\.)*[_a-zA-Z][\w_]*/,
|
|
10
|
+
MODEL_ATTRIBUTE_NAME: /@@([_a-zA-Z][\w_]*\.)*[_a-zA-Z][\w_]*/,
|
|
11
|
+
FIELD_ATTRIBUTE_NAME: /@([_a-zA-Z][\w_]*\.)*[_a-zA-Z][\w_]*/,
|
|
12
|
+
ID: /[_a-zA-Z][\w_]*/,
|
|
13
|
+
STRING: /"(\\.|[^"\\])*"|'(\\.|[^'\\])*'/,
|
|
14
|
+
NUMBER: /[+-]?[0-9]+(\.[0-9]+)?/,
|
|
15
|
+
TRIPLE_SLASH_COMMENT: /\/\/\/[^\n\r]*/,
|
|
16
|
+
ML_COMMENT: /\/\*[\s\S]*?\*\//,
|
|
17
|
+
SL_COMMENT: /\/\/[^\n\r]*/
|
|
18
|
+
};
|
|
19
|
+
const AbstractDeclaration = { $type: "AbstractDeclaration" };
|
|
20
|
+
function isAbstractDeclaration(item) {
|
|
21
|
+
return reflection.isInstance(item, AbstractDeclaration.$type);
|
|
22
|
+
}
|
|
23
|
+
const Argument = {
|
|
24
|
+
$type: "Argument",
|
|
25
|
+
value: "value"
|
|
26
|
+
};
|
|
27
|
+
function isArgument(item) {
|
|
28
|
+
return reflection.isInstance(item, Argument.$type);
|
|
29
|
+
}
|
|
30
|
+
const ArrayExpr = {
|
|
31
|
+
$type: "ArrayExpr",
|
|
32
|
+
items: "items"
|
|
33
|
+
};
|
|
34
|
+
function isArrayExpr(item) {
|
|
35
|
+
return reflection.isInstance(item, ArrayExpr.$type);
|
|
36
|
+
}
|
|
37
|
+
const Attribute = {
|
|
38
|
+
$type: "Attribute",
|
|
39
|
+
attributes: "attributes",
|
|
40
|
+
comments: "comments",
|
|
41
|
+
name: "name",
|
|
42
|
+
params: "params"
|
|
43
|
+
};
|
|
44
|
+
function isAttribute(item) {
|
|
45
|
+
return reflection.isInstance(item, Attribute.$type);
|
|
46
|
+
}
|
|
47
|
+
const AttributeArg = {
|
|
48
|
+
$type: "AttributeArg",
|
|
49
|
+
name: "name",
|
|
50
|
+
value: "value"
|
|
51
|
+
};
|
|
52
|
+
function isAttributeArg(item) {
|
|
53
|
+
return reflection.isInstance(item, AttributeArg.$type);
|
|
54
|
+
}
|
|
55
|
+
const AttributeParam = {
|
|
56
|
+
$type: "AttributeParam",
|
|
57
|
+
attributes: "attributes",
|
|
58
|
+
comments: "comments",
|
|
59
|
+
default: "default",
|
|
60
|
+
name: "name",
|
|
61
|
+
type: "type"
|
|
62
|
+
};
|
|
63
|
+
function isAttributeParam(item) {
|
|
64
|
+
return reflection.isInstance(item, AttributeParam.$type);
|
|
65
|
+
}
|
|
66
|
+
const AttributeParamType = {
|
|
67
|
+
$type: "AttributeParamType",
|
|
68
|
+
array: "array",
|
|
69
|
+
optional: "optional",
|
|
70
|
+
reference: "reference",
|
|
71
|
+
type: "type"
|
|
72
|
+
};
|
|
73
|
+
function isAttributeParamType(item) {
|
|
74
|
+
return reflection.isInstance(item, AttributeParamType.$type);
|
|
75
|
+
}
|
|
76
|
+
const BinaryExpr = {
|
|
77
|
+
$type: "BinaryExpr",
|
|
78
|
+
binding: "binding",
|
|
79
|
+
left: "left",
|
|
80
|
+
operator: "operator",
|
|
81
|
+
right: "right"
|
|
82
|
+
};
|
|
83
|
+
function isBinaryExpr(item) {
|
|
84
|
+
return reflection.isInstance(item, BinaryExpr.$type);
|
|
85
|
+
}
|
|
86
|
+
function isBoolean(item) {
|
|
87
|
+
return typeof item === "boolean";
|
|
88
|
+
}
|
|
89
|
+
const BooleanLiteral = {
|
|
90
|
+
$type: "BooleanLiteral",
|
|
91
|
+
value: "value"
|
|
92
|
+
};
|
|
93
|
+
function isBooleanLiteral(item) {
|
|
94
|
+
return reflection.isInstance(item, BooleanLiteral.$type);
|
|
95
|
+
}
|
|
96
|
+
function isBuiltinType(item) {
|
|
97
|
+
return item === "String" || item === "Boolean" || item === "Int" || item === "BigInt" || item === "Float" || item === "Decimal" || item === "DateTime" || item === "Json" || item === "Bytes";
|
|
98
|
+
}
|
|
99
|
+
const CollectionPredicateBinding = {
|
|
100
|
+
$type: "CollectionPredicateBinding",
|
|
101
|
+
name: "name"
|
|
102
|
+
};
|
|
103
|
+
function isCollectionPredicateBinding(item) {
|
|
104
|
+
return reflection.isInstance(item, CollectionPredicateBinding.$type);
|
|
105
|
+
}
|
|
106
|
+
const ConfigArrayExpr = {
|
|
107
|
+
$type: "ConfigArrayExpr",
|
|
108
|
+
items: "items"
|
|
109
|
+
};
|
|
110
|
+
function isConfigArrayExpr(item) {
|
|
111
|
+
return reflection.isInstance(item, ConfigArrayExpr.$type);
|
|
112
|
+
}
|
|
113
|
+
const ConfigExpr = { $type: "ConfigExpr" };
|
|
114
|
+
function isConfigExpr(item) {
|
|
115
|
+
return reflection.isInstance(item, ConfigExpr.$type);
|
|
116
|
+
}
|
|
117
|
+
const ConfigField = {
|
|
118
|
+
$type: "ConfigField",
|
|
119
|
+
name: "name",
|
|
120
|
+
value: "value"
|
|
121
|
+
};
|
|
122
|
+
function isConfigField(item) {
|
|
123
|
+
return reflection.isInstance(item, ConfigField.$type);
|
|
124
|
+
}
|
|
125
|
+
const ConfigInvocationArg = {
|
|
126
|
+
$type: "ConfigInvocationArg",
|
|
127
|
+
name: "name",
|
|
128
|
+
value: "value"
|
|
129
|
+
};
|
|
130
|
+
function isConfigInvocationArg(item) {
|
|
131
|
+
return reflection.isInstance(item, ConfigInvocationArg.$type);
|
|
132
|
+
}
|
|
133
|
+
const ConfigInvocationExpr = {
|
|
134
|
+
$type: "ConfigInvocationExpr",
|
|
135
|
+
args: "args",
|
|
136
|
+
name: "name"
|
|
137
|
+
};
|
|
138
|
+
function isConfigInvocationExpr(item) {
|
|
139
|
+
return reflection.isInstance(item, ConfigInvocationExpr.$type);
|
|
140
|
+
}
|
|
141
|
+
const DataField = {
|
|
142
|
+
$type: "DataField",
|
|
143
|
+
attributes: "attributes",
|
|
144
|
+
comments: "comments",
|
|
145
|
+
name: "name",
|
|
146
|
+
type: "type"
|
|
147
|
+
};
|
|
148
|
+
function isDataField(item) {
|
|
149
|
+
return reflection.isInstance(item, DataField.$type);
|
|
150
|
+
}
|
|
151
|
+
const DataFieldAttribute = {
|
|
152
|
+
$type: "DataFieldAttribute",
|
|
153
|
+
args: "args",
|
|
154
|
+
decl: "decl"
|
|
155
|
+
};
|
|
156
|
+
function isDataFieldAttribute(item) {
|
|
157
|
+
return reflection.isInstance(item, DataFieldAttribute.$type);
|
|
158
|
+
}
|
|
159
|
+
const DataFieldType = {
|
|
160
|
+
$type: "DataFieldType",
|
|
161
|
+
array: "array",
|
|
162
|
+
optional: "optional",
|
|
163
|
+
reference: "reference",
|
|
164
|
+
type: "type",
|
|
165
|
+
unsupported: "unsupported"
|
|
166
|
+
};
|
|
167
|
+
function isDataFieldType(item) {
|
|
168
|
+
return reflection.isInstance(item, DataFieldType.$type);
|
|
169
|
+
}
|
|
170
|
+
const DataModel = {
|
|
171
|
+
$type: "DataModel",
|
|
172
|
+
attributes: "attributes",
|
|
173
|
+
baseModel: "baseModel",
|
|
174
|
+
comments: "comments",
|
|
175
|
+
fields: "fields",
|
|
176
|
+
isView: "isView",
|
|
177
|
+
mixins: "mixins",
|
|
178
|
+
name: "name"
|
|
179
|
+
};
|
|
180
|
+
function isDataModel(item) {
|
|
181
|
+
return reflection.isInstance(item, DataModel.$type);
|
|
182
|
+
}
|
|
183
|
+
const DataModelAttribute = {
|
|
184
|
+
$type: "DataModelAttribute",
|
|
185
|
+
args: "args",
|
|
186
|
+
decl: "decl"
|
|
187
|
+
};
|
|
188
|
+
function isDataModelAttribute(item) {
|
|
189
|
+
return reflection.isInstance(item, DataModelAttribute.$type);
|
|
190
|
+
}
|
|
191
|
+
const DataSource = {
|
|
192
|
+
$type: "DataSource",
|
|
193
|
+
fields: "fields",
|
|
194
|
+
name: "name"
|
|
195
|
+
};
|
|
196
|
+
function isDataSource(item) {
|
|
197
|
+
return reflection.isInstance(item, DataSource.$type);
|
|
198
|
+
}
|
|
199
|
+
const Enum = {
|
|
200
|
+
$type: "Enum",
|
|
201
|
+
attributes: "attributes",
|
|
202
|
+
comments: "comments",
|
|
203
|
+
fields: "fields",
|
|
204
|
+
name: "name"
|
|
205
|
+
};
|
|
206
|
+
function isEnum(item) {
|
|
207
|
+
return reflection.isInstance(item, Enum.$type);
|
|
208
|
+
}
|
|
209
|
+
const EnumField = {
|
|
210
|
+
$type: "EnumField",
|
|
211
|
+
attributes: "attributes",
|
|
212
|
+
comments: "comments",
|
|
213
|
+
name: "name"
|
|
214
|
+
};
|
|
215
|
+
function isEnumField(item) {
|
|
216
|
+
return reflection.isInstance(item, EnumField.$type);
|
|
217
|
+
}
|
|
218
|
+
const Expression = { $type: "Expression" };
|
|
219
|
+
function isExpression(item) {
|
|
220
|
+
return reflection.isInstance(item, Expression.$type);
|
|
221
|
+
}
|
|
222
|
+
function isExpressionType(item) {
|
|
223
|
+
return item === "String" || item === "Int" || item === "Float" || item === "Boolean" || item === "BigInt" || item === "Decimal" || item === "DateTime" || item === "Json" || item === "Bytes" || item === "Null" || item === "Object" || item === "Any" || item === "Void" || item === "Undefined" || item === "Unsupported";
|
|
224
|
+
}
|
|
225
|
+
const FieldInitializer = {
|
|
226
|
+
$type: "FieldInitializer",
|
|
227
|
+
name: "name",
|
|
228
|
+
value: "value"
|
|
229
|
+
};
|
|
230
|
+
function isFieldInitializer(item) {
|
|
231
|
+
return reflection.isInstance(item, FieldInitializer.$type);
|
|
232
|
+
}
|
|
233
|
+
const FunctionDecl = {
|
|
234
|
+
$type: "FunctionDecl",
|
|
235
|
+
attributes: "attributes",
|
|
236
|
+
expression: "expression",
|
|
237
|
+
name: "name",
|
|
238
|
+
params: "params",
|
|
239
|
+
returnType: "returnType"
|
|
240
|
+
};
|
|
241
|
+
function isFunctionDecl(item) {
|
|
242
|
+
return reflection.isInstance(item, FunctionDecl.$type);
|
|
243
|
+
}
|
|
244
|
+
const FunctionParam = {
|
|
245
|
+
$type: "FunctionParam",
|
|
246
|
+
name: "name",
|
|
247
|
+
optional: "optional",
|
|
248
|
+
type: "type"
|
|
249
|
+
};
|
|
250
|
+
function isFunctionParam(item) {
|
|
251
|
+
return reflection.isInstance(item, FunctionParam.$type);
|
|
252
|
+
}
|
|
253
|
+
const FunctionParamType = {
|
|
254
|
+
$type: "FunctionParamType",
|
|
255
|
+
array: "array",
|
|
256
|
+
reference: "reference",
|
|
257
|
+
type: "type"
|
|
258
|
+
};
|
|
259
|
+
function isFunctionParamType(item) {
|
|
260
|
+
return reflection.isInstance(item, FunctionParamType.$type);
|
|
261
|
+
}
|
|
262
|
+
const GeneratorDecl = {
|
|
263
|
+
$type: "GeneratorDecl",
|
|
264
|
+
fields: "fields",
|
|
265
|
+
name: "name"
|
|
266
|
+
};
|
|
267
|
+
function isGeneratorDecl(item) {
|
|
268
|
+
return reflection.isInstance(item, GeneratorDecl.$type);
|
|
269
|
+
}
|
|
270
|
+
const InternalAttribute = {
|
|
271
|
+
$type: "InternalAttribute",
|
|
272
|
+
args: "args",
|
|
273
|
+
decl: "decl"
|
|
274
|
+
};
|
|
275
|
+
function isInternalAttribute(item) {
|
|
276
|
+
return reflection.isInstance(item, InternalAttribute.$type);
|
|
277
|
+
}
|
|
278
|
+
const InvocationExpr = {
|
|
279
|
+
$type: "InvocationExpr",
|
|
280
|
+
args: "args",
|
|
281
|
+
function: "function"
|
|
282
|
+
};
|
|
283
|
+
function isInvocationExpr(item) {
|
|
284
|
+
return reflection.isInstance(item, InvocationExpr.$type);
|
|
285
|
+
}
|
|
286
|
+
const LiteralExpr = { $type: "LiteralExpr" };
|
|
287
|
+
function isLiteralExpr(item) {
|
|
288
|
+
return reflection.isInstance(item, LiteralExpr.$type);
|
|
289
|
+
}
|
|
290
|
+
const MemberAccessExpr = {
|
|
291
|
+
$type: "MemberAccessExpr",
|
|
292
|
+
member: "member",
|
|
293
|
+
operand: "operand"
|
|
294
|
+
};
|
|
295
|
+
function isMemberAccessExpr(item) {
|
|
296
|
+
return reflection.isInstance(item, MemberAccessExpr.$type);
|
|
297
|
+
}
|
|
298
|
+
const MemberAccessTarget = { $type: "MemberAccessTarget" };
|
|
299
|
+
function isMemberAccessTarget(item) {
|
|
300
|
+
return reflection.isInstance(item, MemberAccessTarget.$type);
|
|
301
|
+
}
|
|
302
|
+
const Model = {
|
|
303
|
+
$type: "Model",
|
|
304
|
+
declarations: "declarations",
|
|
305
|
+
imports: "imports"
|
|
306
|
+
};
|
|
307
|
+
function isModel(item) {
|
|
308
|
+
return reflection.isInstance(item, Model.$type);
|
|
309
|
+
}
|
|
310
|
+
const ModelImport = {
|
|
311
|
+
$type: "ModelImport",
|
|
312
|
+
path: "path"
|
|
313
|
+
};
|
|
314
|
+
function isModelImport(item) {
|
|
315
|
+
return reflection.isInstance(item, ModelImport.$type);
|
|
316
|
+
}
|
|
317
|
+
const NullExpr = {
|
|
318
|
+
$type: "NullExpr",
|
|
319
|
+
value: "value"
|
|
320
|
+
};
|
|
321
|
+
function isNullExpr(item) {
|
|
322
|
+
return reflection.isInstance(item, NullExpr.$type);
|
|
323
|
+
}
|
|
324
|
+
const NumberLiteral = {
|
|
325
|
+
$type: "NumberLiteral",
|
|
326
|
+
value: "value"
|
|
327
|
+
};
|
|
328
|
+
function isNumberLiteral(item) {
|
|
329
|
+
return reflection.isInstance(item, NumberLiteral.$type);
|
|
330
|
+
}
|
|
331
|
+
const ObjectExpr = {
|
|
332
|
+
$type: "ObjectExpr",
|
|
333
|
+
fields: "fields"
|
|
334
|
+
};
|
|
335
|
+
function isObjectExpr(item) {
|
|
336
|
+
return reflection.isInstance(item, ObjectExpr.$type);
|
|
337
|
+
}
|
|
338
|
+
const Plugin = {
|
|
339
|
+
$type: "Plugin",
|
|
340
|
+
fields: "fields",
|
|
341
|
+
name: "name"
|
|
342
|
+
};
|
|
343
|
+
function isPlugin(item) {
|
|
344
|
+
return reflection.isInstance(item, Plugin.$type);
|
|
345
|
+
}
|
|
346
|
+
const PluginField = {
|
|
347
|
+
$type: "PluginField",
|
|
348
|
+
name: "name",
|
|
349
|
+
value: "value"
|
|
350
|
+
};
|
|
351
|
+
function isPluginField(item) {
|
|
352
|
+
return reflection.isInstance(item, PluginField.$type);
|
|
353
|
+
}
|
|
354
|
+
const Procedure = {
|
|
355
|
+
$type: "Procedure",
|
|
356
|
+
attributes: "attributes",
|
|
357
|
+
mutation: "mutation",
|
|
358
|
+
name: "name",
|
|
359
|
+
params: "params",
|
|
360
|
+
returnType: "returnType"
|
|
361
|
+
};
|
|
362
|
+
function isProcedure(item) {
|
|
363
|
+
return reflection.isInstance(item, Procedure.$type);
|
|
364
|
+
}
|
|
365
|
+
const ProcedureParam = {
|
|
366
|
+
$type: "ProcedureParam",
|
|
367
|
+
name: "name",
|
|
368
|
+
optional: "optional",
|
|
369
|
+
type: "type"
|
|
370
|
+
};
|
|
371
|
+
function isProcedureParam(item) {
|
|
372
|
+
return reflection.isInstance(item, ProcedureParam.$type);
|
|
373
|
+
}
|
|
374
|
+
const ReferenceArg = {
|
|
375
|
+
$type: "ReferenceArg",
|
|
376
|
+
name: "name",
|
|
377
|
+
value: "value"
|
|
378
|
+
};
|
|
379
|
+
function isReferenceArg(item) {
|
|
380
|
+
return reflection.isInstance(item, ReferenceArg.$type);
|
|
381
|
+
}
|
|
382
|
+
const ReferenceExpr = {
|
|
383
|
+
$type: "ReferenceExpr",
|
|
384
|
+
args: "args",
|
|
385
|
+
target: "target"
|
|
386
|
+
};
|
|
387
|
+
function isReferenceExpr(item) {
|
|
388
|
+
return reflection.isInstance(item, ReferenceExpr.$type);
|
|
389
|
+
}
|
|
390
|
+
const ReferenceTarget = { $type: "ReferenceTarget" };
|
|
391
|
+
function isReferenceTarget(item) {
|
|
392
|
+
return reflection.isInstance(item, ReferenceTarget.$type);
|
|
393
|
+
}
|
|
394
|
+
function isRegularID(item) {
|
|
395
|
+
return item === "model" || item === "enum" || item === "attribute" || item === "datasource" || item === "plugin" || item === "abstract" || item === "in" || item === "view" || item === "import" || item === "type" || typeof item === "string" && /[_a-zA-Z][\w_]*/.test(item);
|
|
396
|
+
}
|
|
397
|
+
function isRegularIDWithTypeNames(item) {
|
|
398
|
+
return isRegularID(item) || item === "String" || item === "Boolean" || item === "Int" || item === "BigInt" || item === "Float" || item === "Decimal" || item === "DateTime" || item === "Json" || item === "Bytes" || item === "Null" || item === "Object" || item === "Any" || item === "Void" || item === "Unsupported";
|
|
399
|
+
}
|
|
400
|
+
const StringLiteral = {
|
|
401
|
+
$type: "StringLiteral",
|
|
402
|
+
value: "value"
|
|
403
|
+
};
|
|
404
|
+
function isStringLiteral(item) {
|
|
405
|
+
return reflection.isInstance(item, StringLiteral.$type);
|
|
406
|
+
}
|
|
407
|
+
const ThisExpr = {
|
|
408
|
+
$type: "ThisExpr",
|
|
409
|
+
value: "value"
|
|
410
|
+
};
|
|
411
|
+
function isThisExpr(item) {
|
|
412
|
+
return reflection.isInstance(item, ThisExpr.$type);
|
|
413
|
+
}
|
|
414
|
+
const TypeDeclaration = { $type: "TypeDeclaration" };
|
|
415
|
+
function isTypeDeclaration(item) {
|
|
416
|
+
return reflection.isInstance(item, TypeDeclaration.$type);
|
|
417
|
+
}
|
|
418
|
+
const TypeDef = {
|
|
419
|
+
$type: "TypeDef",
|
|
420
|
+
attributes: "attributes",
|
|
421
|
+
comments: "comments",
|
|
422
|
+
fields: "fields",
|
|
423
|
+
mixins: "mixins",
|
|
424
|
+
name: "name"
|
|
425
|
+
};
|
|
426
|
+
function isTypeDef(item) {
|
|
427
|
+
return reflection.isInstance(item, TypeDef.$type);
|
|
428
|
+
}
|
|
429
|
+
const UnaryExpr = {
|
|
430
|
+
$type: "UnaryExpr",
|
|
431
|
+
operand: "operand",
|
|
432
|
+
operator: "operator"
|
|
433
|
+
};
|
|
434
|
+
function isUnaryExpr(item) {
|
|
435
|
+
return reflection.isInstance(item, UnaryExpr.$type);
|
|
436
|
+
}
|
|
437
|
+
const UnsupportedFieldType = {
|
|
438
|
+
$type: "UnsupportedFieldType",
|
|
439
|
+
value: "value"
|
|
440
|
+
};
|
|
441
|
+
function isUnsupportedFieldType(item) {
|
|
442
|
+
return reflection.isInstance(item, UnsupportedFieldType.$type);
|
|
443
|
+
}
|
|
444
|
+
var ZModelAstReflection = class extends langium.AbstractAstReflection {
|
|
445
|
+
types = {
|
|
446
|
+
AbstractDeclaration: {
|
|
447
|
+
name: AbstractDeclaration.$type,
|
|
448
|
+
properties: {},
|
|
449
|
+
superTypes: []
|
|
450
|
+
},
|
|
451
|
+
Argument: {
|
|
452
|
+
name: Argument.$type,
|
|
453
|
+
properties: { value: { name: Argument.value } },
|
|
454
|
+
superTypes: []
|
|
455
|
+
},
|
|
456
|
+
ArrayExpr: {
|
|
457
|
+
name: ArrayExpr.$type,
|
|
458
|
+
properties: { items: {
|
|
459
|
+
name: ArrayExpr.items,
|
|
460
|
+
defaultValue: []
|
|
461
|
+
} },
|
|
462
|
+
superTypes: [Expression.$type]
|
|
463
|
+
},
|
|
464
|
+
Attribute: {
|
|
465
|
+
name: Attribute.$type,
|
|
466
|
+
properties: {
|
|
467
|
+
attributes: {
|
|
468
|
+
name: Attribute.attributes,
|
|
469
|
+
defaultValue: []
|
|
470
|
+
},
|
|
471
|
+
comments: {
|
|
472
|
+
name: Attribute.comments,
|
|
473
|
+
defaultValue: []
|
|
474
|
+
},
|
|
475
|
+
name: { name: Attribute.name },
|
|
476
|
+
params: {
|
|
477
|
+
name: Attribute.params,
|
|
478
|
+
defaultValue: []
|
|
479
|
+
}
|
|
480
|
+
},
|
|
481
|
+
superTypes: [AbstractDeclaration.$type]
|
|
482
|
+
},
|
|
483
|
+
AttributeArg: {
|
|
484
|
+
name: AttributeArg.$type,
|
|
485
|
+
properties: {
|
|
486
|
+
name: { name: AttributeArg.name },
|
|
487
|
+
value: { name: AttributeArg.value }
|
|
488
|
+
},
|
|
489
|
+
superTypes: []
|
|
490
|
+
},
|
|
491
|
+
AttributeParam: {
|
|
492
|
+
name: AttributeParam.$type,
|
|
493
|
+
properties: {
|
|
494
|
+
attributes: {
|
|
495
|
+
name: AttributeParam.attributes,
|
|
496
|
+
defaultValue: []
|
|
497
|
+
},
|
|
498
|
+
comments: {
|
|
499
|
+
name: AttributeParam.comments,
|
|
500
|
+
defaultValue: []
|
|
501
|
+
},
|
|
502
|
+
default: {
|
|
503
|
+
name: AttributeParam.default,
|
|
504
|
+
defaultValue: false
|
|
505
|
+
},
|
|
506
|
+
name: { name: AttributeParam.name },
|
|
507
|
+
type: { name: AttributeParam.type }
|
|
508
|
+
},
|
|
509
|
+
superTypes: []
|
|
510
|
+
},
|
|
511
|
+
AttributeParamType: {
|
|
512
|
+
name: AttributeParamType.$type,
|
|
513
|
+
properties: {
|
|
514
|
+
array: {
|
|
515
|
+
name: AttributeParamType.array,
|
|
516
|
+
defaultValue: false
|
|
517
|
+
},
|
|
518
|
+
optional: {
|
|
519
|
+
name: AttributeParamType.optional,
|
|
520
|
+
defaultValue: false
|
|
521
|
+
},
|
|
522
|
+
reference: {
|
|
523
|
+
name: AttributeParamType.reference,
|
|
524
|
+
referenceType: TypeDeclaration.$type
|
|
525
|
+
},
|
|
526
|
+
type: { name: AttributeParamType.type }
|
|
527
|
+
},
|
|
528
|
+
superTypes: []
|
|
529
|
+
},
|
|
530
|
+
BinaryExpr: {
|
|
531
|
+
name: BinaryExpr.$type,
|
|
532
|
+
properties: {
|
|
533
|
+
binding: { name: BinaryExpr.binding },
|
|
534
|
+
left: { name: BinaryExpr.left },
|
|
535
|
+
operator: { name: BinaryExpr.operator },
|
|
536
|
+
right: { name: BinaryExpr.right }
|
|
537
|
+
},
|
|
538
|
+
superTypes: [Expression.$type]
|
|
539
|
+
},
|
|
540
|
+
BooleanLiteral: {
|
|
541
|
+
name: BooleanLiteral.$type,
|
|
542
|
+
properties: { value: { name: BooleanLiteral.value } },
|
|
543
|
+
superTypes: [LiteralExpr.$type]
|
|
544
|
+
},
|
|
545
|
+
CollectionPredicateBinding: {
|
|
546
|
+
name: CollectionPredicateBinding.$type,
|
|
547
|
+
properties: { name: { name: CollectionPredicateBinding.name } },
|
|
548
|
+
superTypes: [ReferenceTarget.$type]
|
|
549
|
+
},
|
|
550
|
+
ConfigArrayExpr: {
|
|
551
|
+
name: ConfigArrayExpr.$type,
|
|
552
|
+
properties: { items: {
|
|
553
|
+
name: ConfigArrayExpr.items,
|
|
554
|
+
defaultValue: []
|
|
555
|
+
} },
|
|
556
|
+
superTypes: [ConfigExpr.$type]
|
|
557
|
+
},
|
|
558
|
+
ConfigExpr: {
|
|
559
|
+
name: ConfigExpr.$type,
|
|
560
|
+
properties: {},
|
|
561
|
+
superTypes: []
|
|
562
|
+
},
|
|
563
|
+
ConfigField: {
|
|
564
|
+
name: ConfigField.$type,
|
|
565
|
+
properties: {
|
|
566
|
+
name: { name: ConfigField.name },
|
|
567
|
+
value: { name: ConfigField.value }
|
|
568
|
+
},
|
|
569
|
+
superTypes: []
|
|
570
|
+
},
|
|
571
|
+
ConfigInvocationArg: {
|
|
572
|
+
name: ConfigInvocationArg.$type,
|
|
573
|
+
properties: {
|
|
574
|
+
name: { name: ConfigInvocationArg.name },
|
|
575
|
+
value: { name: ConfigInvocationArg.value }
|
|
576
|
+
},
|
|
577
|
+
superTypes: []
|
|
578
|
+
},
|
|
579
|
+
ConfigInvocationExpr: {
|
|
580
|
+
name: ConfigInvocationExpr.$type,
|
|
581
|
+
properties: {
|
|
582
|
+
args: {
|
|
583
|
+
name: ConfigInvocationExpr.args,
|
|
584
|
+
defaultValue: []
|
|
585
|
+
},
|
|
586
|
+
name: { name: ConfigInvocationExpr.name }
|
|
587
|
+
},
|
|
588
|
+
superTypes: []
|
|
589
|
+
},
|
|
590
|
+
DataField: {
|
|
591
|
+
name: DataField.$type,
|
|
592
|
+
properties: {
|
|
593
|
+
attributes: {
|
|
594
|
+
name: DataField.attributes,
|
|
595
|
+
defaultValue: []
|
|
596
|
+
},
|
|
597
|
+
comments: {
|
|
598
|
+
name: DataField.comments,
|
|
599
|
+
defaultValue: []
|
|
600
|
+
},
|
|
601
|
+
name: { name: DataField.name },
|
|
602
|
+
type: { name: DataField.type }
|
|
603
|
+
},
|
|
604
|
+
superTypes: [MemberAccessTarget.$type, ReferenceTarget.$type]
|
|
605
|
+
},
|
|
606
|
+
DataFieldAttribute: {
|
|
607
|
+
name: DataFieldAttribute.$type,
|
|
608
|
+
properties: {
|
|
609
|
+
args: {
|
|
610
|
+
name: DataFieldAttribute.args,
|
|
611
|
+
defaultValue: []
|
|
612
|
+
},
|
|
613
|
+
decl: {
|
|
614
|
+
name: DataFieldAttribute.decl,
|
|
615
|
+
referenceType: Attribute.$type
|
|
616
|
+
}
|
|
617
|
+
},
|
|
618
|
+
superTypes: []
|
|
619
|
+
},
|
|
620
|
+
DataFieldType: {
|
|
621
|
+
name: DataFieldType.$type,
|
|
622
|
+
properties: {
|
|
623
|
+
array: {
|
|
624
|
+
name: DataFieldType.array,
|
|
625
|
+
defaultValue: false
|
|
626
|
+
},
|
|
627
|
+
optional: {
|
|
628
|
+
name: DataFieldType.optional,
|
|
629
|
+
defaultValue: false
|
|
630
|
+
},
|
|
631
|
+
reference: {
|
|
632
|
+
name: DataFieldType.reference,
|
|
633
|
+
referenceType: TypeDeclaration.$type
|
|
634
|
+
},
|
|
635
|
+
type: { name: DataFieldType.type },
|
|
636
|
+
unsupported: { name: DataFieldType.unsupported }
|
|
637
|
+
},
|
|
638
|
+
superTypes: []
|
|
639
|
+
},
|
|
640
|
+
DataModel: {
|
|
641
|
+
name: DataModel.$type,
|
|
642
|
+
properties: {
|
|
643
|
+
attributes: {
|
|
644
|
+
name: DataModel.attributes,
|
|
645
|
+
defaultValue: []
|
|
646
|
+
},
|
|
647
|
+
baseModel: {
|
|
648
|
+
name: DataModel.baseModel,
|
|
649
|
+
referenceType: DataModel.$type
|
|
650
|
+
},
|
|
651
|
+
comments: {
|
|
652
|
+
name: DataModel.comments,
|
|
653
|
+
defaultValue: []
|
|
654
|
+
},
|
|
655
|
+
fields: {
|
|
656
|
+
name: DataModel.fields,
|
|
657
|
+
defaultValue: []
|
|
658
|
+
},
|
|
659
|
+
isView: {
|
|
660
|
+
name: DataModel.isView,
|
|
661
|
+
defaultValue: false
|
|
662
|
+
},
|
|
663
|
+
mixins: {
|
|
664
|
+
name: DataModel.mixins,
|
|
665
|
+
defaultValue: [],
|
|
666
|
+
referenceType: TypeDef.$type
|
|
667
|
+
},
|
|
668
|
+
name: { name: DataModel.name }
|
|
669
|
+
},
|
|
670
|
+
superTypes: [AbstractDeclaration.$type, TypeDeclaration.$type]
|
|
671
|
+
},
|
|
672
|
+
DataModelAttribute: {
|
|
673
|
+
name: DataModelAttribute.$type,
|
|
674
|
+
properties: {
|
|
675
|
+
args: {
|
|
676
|
+
name: DataModelAttribute.args,
|
|
677
|
+
defaultValue: []
|
|
678
|
+
},
|
|
679
|
+
decl: {
|
|
680
|
+
name: DataModelAttribute.decl,
|
|
681
|
+
referenceType: Attribute.$type
|
|
682
|
+
}
|
|
683
|
+
},
|
|
684
|
+
superTypes: []
|
|
685
|
+
},
|
|
686
|
+
DataSource: {
|
|
687
|
+
name: DataSource.$type,
|
|
688
|
+
properties: {
|
|
689
|
+
fields: {
|
|
690
|
+
name: DataSource.fields,
|
|
691
|
+
defaultValue: []
|
|
692
|
+
},
|
|
693
|
+
name: { name: DataSource.name }
|
|
694
|
+
},
|
|
695
|
+
superTypes: [AbstractDeclaration.$type]
|
|
696
|
+
},
|
|
697
|
+
Enum: {
|
|
698
|
+
name: Enum.$type,
|
|
699
|
+
properties: {
|
|
700
|
+
attributes: {
|
|
701
|
+
name: Enum.attributes,
|
|
702
|
+
defaultValue: []
|
|
703
|
+
},
|
|
704
|
+
comments: {
|
|
705
|
+
name: Enum.comments,
|
|
706
|
+
defaultValue: []
|
|
707
|
+
},
|
|
708
|
+
fields: {
|
|
709
|
+
name: Enum.fields,
|
|
710
|
+
defaultValue: []
|
|
711
|
+
},
|
|
712
|
+
name: { name: Enum.name }
|
|
713
|
+
},
|
|
714
|
+
superTypes: [AbstractDeclaration.$type, TypeDeclaration.$type]
|
|
715
|
+
},
|
|
716
|
+
EnumField: {
|
|
717
|
+
name: EnumField.$type,
|
|
718
|
+
properties: {
|
|
719
|
+
attributes: {
|
|
720
|
+
name: EnumField.attributes,
|
|
721
|
+
defaultValue: []
|
|
722
|
+
},
|
|
723
|
+
comments: {
|
|
724
|
+
name: EnumField.comments,
|
|
725
|
+
defaultValue: []
|
|
726
|
+
},
|
|
727
|
+
name: { name: EnumField.name }
|
|
728
|
+
},
|
|
729
|
+
superTypes: [ReferenceTarget.$type]
|
|
730
|
+
},
|
|
731
|
+
Expression: {
|
|
732
|
+
name: Expression.$type,
|
|
733
|
+
properties: {},
|
|
734
|
+
superTypes: []
|
|
735
|
+
},
|
|
736
|
+
FieldInitializer: {
|
|
737
|
+
name: FieldInitializer.$type,
|
|
738
|
+
properties: {
|
|
739
|
+
name: { name: FieldInitializer.name },
|
|
740
|
+
value: { name: FieldInitializer.value }
|
|
741
|
+
},
|
|
742
|
+
superTypes: []
|
|
743
|
+
},
|
|
744
|
+
FunctionDecl: {
|
|
745
|
+
name: FunctionDecl.$type,
|
|
746
|
+
properties: {
|
|
747
|
+
attributes: {
|
|
748
|
+
name: FunctionDecl.attributes,
|
|
749
|
+
defaultValue: []
|
|
750
|
+
},
|
|
751
|
+
expression: { name: FunctionDecl.expression },
|
|
752
|
+
name: { name: FunctionDecl.name },
|
|
753
|
+
params: {
|
|
754
|
+
name: FunctionDecl.params,
|
|
755
|
+
defaultValue: []
|
|
756
|
+
},
|
|
757
|
+
returnType: { name: FunctionDecl.returnType }
|
|
758
|
+
},
|
|
759
|
+
superTypes: [AbstractDeclaration.$type]
|
|
760
|
+
},
|
|
761
|
+
FunctionParam: {
|
|
762
|
+
name: FunctionParam.$type,
|
|
763
|
+
properties: {
|
|
764
|
+
name: { name: FunctionParam.name },
|
|
765
|
+
optional: {
|
|
766
|
+
name: FunctionParam.optional,
|
|
767
|
+
defaultValue: false
|
|
768
|
+
},
|
|
769
|
+
type: { name: FunctionParam.type }
|
|
770
|
+
},
|
|
771
|
+
superTypes: [ReferenceTarget.$type]
|
|
772
|
+
},
|
|
773
|
+
FunctionParamType: {
|
|
774
|
+
name: FunctionParamType.$type,
|
|
775
|
+
properties: {
|
|
776
|
+
array: {
|
|
777
|
+
name: FunctionParamType.array,
|
|
778
|
+
defaultValue: false
|
|
779
|
+
},
|
|
780
|
+
reference: {
|
|
781
|
+
name: FunctionParamType.reference,
|
|
782
|
+
referenceType: TypeDeclaration.$type
|
|
783
|
+
},
|
|
784
|
+
type: { name: FunctionParamType.type }
|
|
785
|
+
},
|
|
786
|
+
superTypes: []
|
|
787
|
+
},
|
|
788
|
+
GeneratorDecl: {
|
|
789
|
+
name: GeneratorDecl.$type,
|
|
790
|
+
properties: {
|
|
791
|
+
fields: {
|
|
792
|
+
name: GeneratorDecl.fields,
|
|
793
|
+
defaultValue: []
|
|
794
|
+
},
|
|
795
|
+
name: { name: GeneratorDecl.name }
|
|
796
|
+
},
|
|
797
|
+
superTypes: [AbstractDeclaration.$type]
|
|
798
|
+
},
|
|
799
|
+
InternalAttribute: {
|
|
800
|
+
name: InternalAttribute.$type,
|
|
801
|
+
properties: {
|
|
802
|
+
args: {
|
|
803
|
+
name: InternalAttribute.args,
|
|
804
|
+
defaultValue: []
|
|
805
|
+
},
|
|
806
|
+
decl: {
|
|
807
|
+
name: InternalAttribute.decl,
|
|
808
|
+
referenceType: Attribute.$type
|
|
809
|
+
}
|
|
810
|
+
},
|
|
811
|
+
superTypes: []
|
|
812
|
+
},
|
|
813
|
+
InvocationExpr: {
|
|
814
|
+
name: InvocationExpr.$type,
|
|
815
|
+
properties: {
|
|
816
|
+
args: {
|
|
817
|
+
name: InvocationExpr.args,
|
|
818
|
+
defaultValue: []
|
|
819
|
+
},
|
|
820
|
+
function: {
|
|
821
|
+
name: InvocationExpr.function,
|
|
822
|
+
referenceType: FunctionDecl.$type
|
|
823
|
+
}
|
|
824
|
+
},
|
|
825
|
+
superTypes: [ConfigExpr.$type, Expression.$type]
|
|
826
|
+
},
|
|
827
|
+
LiteralExpr: {
|
|
828
|
+
name: LiteralExpr.$type,
|
|
829
|
+
properties: {},
|
|
830
|
+
superTypes: [ConfigExpr.$type, Expression.$type]
|
|
831
|
+
},
|
|
832
|
+
MemberAccessExpr: {
|
|
833
|
+
name: MemberAccessExpr.$type,
|
|
834
|
+
properties: {
|
|
835
|
+
member: {
|
|
836
|
+
name: MemberAccessExpr.member,
|
|
837
|
+
referenceType: MemberAccessTarget.$type
|
|
838
|
+
},
|
|
839
|
+
operand: { name: MemberAccessExpr.operand }
|
|
840
|
+
},
|
|
841
|
+
superTypes: [Expression.$type]
|
|
842
|
+
},
|
|
843
|
+
MemberAccessTarget: {
|
|
844
|
+
name: MemberAccessTarget.$type,
|
|
845
|
+
properties: {},
|
|
846
|
+
superTypes: []
|
|
847
|
+
},
|
|
848
|
+
Model: {
|
|
849
|
+
name: Model.$type,
|
|
850
|
+
properties: {
|
|
851
|
+
declarations: {
|
|
852
|
+
name: Model.declarations,
|
|
853
|
+
defaultValue: []
|
|
854
|
+
},
|
|
855
|
+
imports: {
|
|
856
|
+
name: Model.imports,
|
|
857
|
+
defaultValue: []
|
|
858
|
+
}
|
|
859
|
+
},
|
|
860
|
+
superTypes: []
|
|
861
|
+
},
|
|
862
|
+
ModelImport: {
|
|
863
|
+
name: ModelImport.$type,
|
|
864
|
+
properties: { path: { name: ModelImport.path } },
|
|
865
|
+
superTypes: []
|
|
866
|
+
},
|
|
867
|
+
NullExpr: {
|
|
868
|
+
name: NullExpr.$type,
|
|
869
|
+
properties: { value: { name: NullExpr.value } },
|
|
870
|
+
superTypes: [Expression.$type]
|
|
871
|
+
},
|
|
872
|
+
NumberLiteral: {
|
|
873
|
+
name: NumberLiteral.$type,
|
|
874
|
+
properties: { value: { name: NumberLiteral.value } },
|
|
875
|
+
superTypes: [LiteralExpr.$type]
|
|
876
|
+
},
|
|
877
|
+
ObjectExpr: {
|
|
878
|
+
name: ObjectExpr.$type,
|
|
879
|
+
properties: { fields: {
|
|
880
|
+
name: ObjectExpr.fields,
|
|
881
|
+
defaultValue: []
|
|
882
|
+
} },
|
|
883
|
+
superTypes: [Expression.$type]
|
|
884
|
+
},
|
|
885
|
+
Plugin: {
|
|
886
|
+
name: Plugin.$type,
|
|
887
|
+
properties: {
|
|
888
|
+
fields: {
|
|
889
|
+
name: Plugin.fields,
|
|
890
|
+
defaultValue: []
|
|
891
|
+
},
|
|
892
|
+
name: { name: Plugin.name }
|
|
893
|
+
},
|
|
894
|
+
superTypes: [AbstractDeclaration.$type]
|
|
895
|
+
},
|
|
896
|
+
PluginField: {
|
|
897
|
+
name: PluginField.$type,
|
|
898
|
+
properties: {
|
|
899
|
+
name: { name: PluginField.name },
|
|
900
|
+
value: { name: PluginField.value }
|
|
901
|
+
},
|
|
902
|
+
superTypes: []
|
|
903
|
+
},
|
|
904
|
+
Procedure: {
|
|
905
|
+
name: Procedure.$type,
|
|
906
|
+
properties: {
|
|
907
|
+
attributes: {
|
|
908
|
+
name: Procedure.attributes,
|
|
909
|
+
defaultValue: []
|
|
910
|
+
},
|
|
911
|
+
mutation: {
|
|
912
|
+
name: Procedure.mutation,
|
|
913
|
+
defaultValue: false
|
|
914
|
+
},
|
|
915
|
+
name: { name: Procedure.name },
|
|
916
|
+
params: {
|
|
917
|
+
name: Procedure.params,
|
|
918
|
+
defaultValue: []
|
|
919
|
+
},
|
|
920
|
+
returnType: { name: Procedure.returnType }
|
|
921
|
+
},
|
|
922
|
+
superTypes: [AbstractDeclaration.$type]
|
|
923
|
+
},
|
|
924
|
+
ProcedureParam: {
|
|
925
|
+
name: ProcedureParam.$type,
|
|
926
|
+
properties: {
|
|
927
|
+
name: { name: ProcedureParam.name },
|
|
928
|
+
optional: {
|
|
929
|
+
name: ProcedureParam.optional,
|
|
930
|
+
defaultValue: false
|
|
931
|
+
},
|
|
932
|
+
type: { name: ProcedureParam.type }
|
|
933
|
+
},
|
|
934
|
+
superTypes: []
|
|
935
|
+
},
|
|
936
|
+
ReferenceArg: {
|
|
937
|
+
name: ReferenceArg.$type,
|
|
938
|
+
properties: {
|
|
939
|
+
name: { name: ReferenceArg.name },
|
|
940
|
+
value: { name: ReferenceArg.value }
|
|
941
|
+
},
|
|
942
|
+
superTypes: []
|
|
943
|
+
},
|
|
944
|
+
ReferenceExpr: {
|
|
945
|
+
name: ReferenceExpr.$type,
|
|
946
|
+
properties: {
|
|
947
|
+
args: {
|
|
948
|
+
name: ReferenceExpr.args,
|
|
949
|
+
defaultValue: []
|
|
950
|
+
},
|
|
951
|
+
target: {
|
|
952
|
+
name: ReferenceExpr.target,
|
|
953
|
+
referenceType: ReferenceTarget.$type
|
|
954
|
+
}
|
|
955
|
+
},
|
|
956
|
+
superTypes: [Expression.$type]
|
|
957
|
+
},
|
|
958
|
+
ReferenceTarget: {
|
|
959
|
+
name: ReferenceTarget.$type,
|
|
960
|
+
properties: {},
|
|
961
|
+
superTypes: []
|
|
962
|
+
},
|
|
963
|
+
StringLiteral: {
|
|
964
|
+
name: StringLiteral.$type,
|
|
965
|
+
properties: { value: { name: StringLiteral.value } },
|
|
966
|
+
superTypes: [LiteralExpr.$type]
|
|
967
|
+
},
|
|
968
|
+
ThisExpr: {
|
|
969
|
+
name: ThisExpr.$type,
|
|
970
|
+
properties: { value: { name: ThisExpr.value } },
|
|
971
|
+
superTypes: [Expression.$type]
|
|
972
|
+
},
|
|
973
|
+
TypeDeclaration: {
|
|
974
|
+
name: TypeDeclaration.$type,
|
|
975
|
+
properties: {},
|
|
976
|
+
superTypes: []
|
|
977
|
+
},
|
|
978
|
+
TypeDef: {
|
|
979
|
+
name: TypeDef.$type,
|
|
980
|
+
properties: {
|
|
981
|
+
attributes: {
|
|
982
|
+
name: TypeDef.attributes,
|
|
983
|
+
defaultValue: []
|
|
984
|
+
},
|
|
985
|
+
comments: {
|
|
986
|
+
name: TypeDef.comments,
|
|
987
|
+
defaultValue: []
|
|
988
|
+
},
|
|
989
|
+
fields: {
|
|
990
|
+
name: TypeDef.fields,
|
|
991
|
+
defaultValue: []
|
|
992
|
+
},
|
|
993
|
+
mixins: {
|
|
994
|
+
name: TypeDef.mixins,
|
|
995
|
+
defaultValue: [],
|
|
996
|
+
referenceType: TypeDef.$type
|
|
997
|
+
},
|
|
998
|
+
name: { name: TypeDef.name }
|
|
999
|
+
},
|
|
1000
|
+
superTypes: [AbstractDeclaration.$type, TypeDeclaration.$type]
|
|
1001
|
+
},
|
|
1002
|
+
UnaryExpr: {
|
|
1003
|
+
name: UnaryExpr.$type,
|
|
1004
|
+
properties: {
|
|
1005
|
+
operand: { name: UnaryExpr.operand },
|
|
1006
|
+
operator: { name: UnaryExpr.operator }
|
|
1007
|
+
},
|
|
1008
|
+
superTypes: [Expression.$type]
|
|
1009
|
+
},
|
|
1010
|
+
UnsupportedFieldType: {
|
|
1011
|
+
name: UnsupportedFieldType.$type,
|
|
1012
|
+
properties: { value: { name: UnsupportedFieldType.value } },
|
|
1013
|
+
superTypes: []
|
|
1014
|
+
}
|
|
1015
|
+
};
|
|
1016
|
+
};
|
|
1017
|
+
const reflection = new ZModelAstReflection();
|
|
1018
|
+
//#endregion
|
|
1019
|
+
export { ZModelAstReflection as $, isThisExpr as $t, InternalAttribute as A, isFunctionParam as At, Plugin as B, isNullExpr as Bt, EnumField as C, isDataSource as Ct, FunctionParam as D, isExpressionType as Dt, FunctionDecl as E, isExpression as Et, Model as F, isLiteralExpr as Ft, ReferenceExpr as G, isProcedure as Gt, Procedure as H, isObjectExpr as Ht, ModelImport as I, isMemberAccessExpr as It, ThisExpr as J, isReferenceExpr as Jt, ReferenceTarget as K, isProcedureParam as Kt, NullExpr as L, isMemberAccessTarget as Lt, LiteralExpr as M, isGeneratorDecl as Mt, MemberAccessExpr as N, isInternalAttribute as Nt, FunctionParamType as O, isFieldInitializer as Ot, MemberAccessTarget as P, isInvocationExpr as Pt, UnsupportedFieldType as Q, isStringLiteral as Qt, NumberLiteral as R, isModel as Rt, Enum as S, isDataModelAttribute as St, FieldInitializer as T, isEnumField as Tt, ProcedureParam as U, isPlugin as Ut, PluginField as V, isNumberLiteral as Vt, ReferenceArg as W, isPluginField as Wt, TypeDef as X, isRegularID as Xt, TypeDeclaration as Y, isReferenceTarget as Yt, UnaryExpr as Z, isRegularIDWithTypeNames as Zt, DataFieldAttribute as _, isConfigInvocationExpr as _t, AttributeArg as a, isAttributeArg as at, DataModelAttribute as b, isDataFieldType as bt, BinaryExpr as c, isBinaryExpr as ct, ConfigArrayExpr as d, isBuiltinType as dt, isTypeDeclaration as en, ZModelTerminals as et, ConfigExpr as f, isCollectionPredicateBinding as ft, DataField as g, isConfigInvocationArg as gt, ConfigInvocationExpr as h, isConfigField as ht, Attribute as i, reflection as in, isAttribute as it, InvocationExpr as j, isFunctionParamType as jt, GeneratorDecl as k, isFunctionDecl as kt, BooleanLiteral as l, isBoolean as lt, ConfigInvocationArg as m, isConfigExpr as mt, Argument as n, isUnaryExpr as nn, isArgument as nt, AttributeParam as o, isAttributeParam as ot, ConfigField as p, isConfigArrayExpr as pt, StringLiteral as q, isReferenceArg as qt, ArrayExpr as r, isUnsupportedFieldType as rn, isArrayExpr as rt, AttributeParamType as s, isAttributeParamType as st, AbstractDeclaration as t, isTypeDef as tn, isAbstractDeclaration as tt, CollectionPredicateBinding as u, isBooleanLiteral as ut, DataFieldType as v, isDataField as vt, Expression as w, isEnum as wt, DataSource as x, isDataModel as xt, DataModel as y, isDataFieldAttribute as yt, ObjectExpr as z, isModelImport as zt };
|
|
1020
|
+
|
|
1021
|
+
//# sourceMappingURL=ast-Z-Y9-aOU.mjs.map
|