@eventcatalog/language-server 0.1.0
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/README.md +71 -0
- package/SPEC.md +1939 -0
- package/dist/ast-utils.d.ts +96 -0
- package/dist/ast-utils.d.ts.map +1 -0
- package/dist/ast-utils.js +241 -0
- package/dist/ast-utils.js.map +1 -0
- package/dist/compiler.d.ts +7 -0
- package/dist/compiler.d.ts.map +1 -0
- package/dist/compiler.js +654 -0
- package/dist/compiler.js.map +1 -0
- package/dist/ec-completion-provider.d.ts +15 -0
- package/dist/ec-completion-provider.d.ts.map +1 -0
- package/dist/ec-completion-provider.js +202 -0
- package/dist/ec-completion-provider.js.map +1 -0
- package/dist/ec-module.d.ts +18 -0
- package/dist/ec-module.d.ts.map +1 -0
- package/dist/ec-module.js +27 -0
- package/dist/ec-module.js.map +1 -0
- package/dist/ec-scope-provider.d.ts +2 -0
- package/dist/ec-scope-provider.d.ts.map +1 -0
- package/dist/ec-scope-provider.js +2 -0
- package/dist/ec-scope-provider.js.map +1 -0
- package/dist/ec-scope.d.ts +10 -0
- package/dist/ec-scope.d.ts.map +1 -0
- package/dist/ec-scope.js +18 -0
- package/dist/ec-scope.js.map +1 -0
- package/dist/ec-validator.d.ts +9 -0
- package/dist/ec-validator.d.ts.map +1 -0
- package/dist/ec-validator.js +238 -0
- package/dist/ec-validator.js.map +1 -0
- package/dist/formatter.d.ts +6 -0
- package/dist/formatter.d.ts.map +1 -0
- package/dist/formatter.js +88 -0
- package/dist/formatter.js.map +1 -0
- package/dist/generated/ast.d.ts +970 -0
- package/dist/generated/ast.d.ts.map +1 -0
- package/dist/generated/ast.js +1537 -0
- package/dist/generated/ast.js.map +1 -0
- package/dist/generated/grammar.d.ts +7 -0
- package/dist/generated/grammar.d.ts.map +1 -0
- package/dist/generated/grammar.js +6062 -0
- package/dist/generated/grammar.js.map +1 -0
- package/dist/generated/module.d.ts +14 -0
- package/dist/generated/module.d.ts.map +1 -0
- package/dist/generated/module.js +21 -0
- package/dist/generated/module.js.map +1 -0
- package/dist/graph-types.d.ts +32 -0
- package/dist/graph-types.d.ts.map +1 -0
- package/dist/graph-types.js +2 -0
- package/dist/graph-types.js.map +1 -0
- package/dist/graph.d.ts +4 -0
- package/dist/graph.d.ts.map +1 -0
- package/dist/graph.js +931 -0
- package/dist/graph.js.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -0
- package/dist/main-browser.d.ts +2 -0
- package/dist/main-browser.d.ts.map +1 -0
- package/dist/main-browser.js +16 -0
- package/dist/main-browser.js.map +1 -0
- package/dist/main.d.ts +2 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +15 -0
- package/dist/main.js.map +1 -0
- package/package.json +55 -0
- package/specification/00-overview.md +99 -0
- package/specification/01-domain.md +80 -0
- package/specification/02-service.md +50 -0
- package/specification/03-event.md +28 -0
- package/specification/04-command.md +25 -0
- package/specification/05-query.md +25 -0
- package/specification/06-channel.md +131 -0
- package/specification/08-container.md +54 -0
- package/specification/09-data-product.md +39 -0
- package/specification/10-flow.md +163 -0
- package/specification/11-diagram.md +3 -0
- package/specification/12-user.md +54 -0
- package/specification/13-team.md +62 -0
- package/specification/14-relationships.md +89 -0
- package/specification/15-versioning.md +41 -0
- package/specification/16-annotations.md +100 -0
- package/specification/17-examples.md +373 -0
- package/specification/18-grammar.md +242 -0
- package/specification/19-visualizer.md +197 -0
- package/specification/build-spec.sh +49 -0
- package/syntaxes/ec.tmLanguage.json +61 -0
|
@@ -0,0 +1,1537 @@
|
|
|
1
|
+
/******************************************************************************
|
|
2
|
+
* This file was generated by langium-cli 3.5.2.
|
|
3
|
+
* DO NOT EDIT MANUALLY!
|
|
4
|
+
******************************************************************************/
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
import * as langium from 'langium';
|
|
7
|
+
export const EcTerminals = {
|
|
8
|
+
WS: /\s+/,
|
|
9
|
+
SL_COMMENT: /\/\/[^\n\r]*/,
|
|
10
|
+
ML_COMMENT: /\/\*[\s\S]*?\*\//,
|
|
11
|
+
VERSION: /\d+\.\d+\.\d+(-[a-zA-Z0-9_.]+)*/,
|
|
12
|
+
STRING: /"(?:[^"\\]|\\.)*"/,
|
|
13
|
+
NUMBER: /\d+/,
|
|
14
|
+
ID: /[a-zA-Z_][a-zA-Z0-9_.-]*/,
|
|
15
|
+
};
|
|
16
|
+
export function isAccessModeEnum(item) {
|
|
17
|
+
return item === 'read' || item === 'write' || item === 'readWrite' || item === 'appendOnly';
|
|
18
|
+
}
|
|
19
|
+
export const ActorBodyItem = 'ActorBodyItem';
|
|
20
|
+
export function isActorBodyItem(item) {
|
|
21
|
+
return reflection.isInstance(item, ActorBodyItem);
|
|
22
|
+
}
|
|
23
|
+
export const AnnotationArg = 'AnnotationArg';
|
|
24
|
+
export function isAnnotationArg(item) {
|
|
25
|
+
return reflection.isInstance(item, AnnotationArg);
|
|
26
|
+
}
|
|
27
|
+
export const AnnotationBlockItem = 'AnnotationBlockItem';
|
|
28
|
+
export function isAnnotationBlockItem(item) {
|
|
29
|
+
return reflection.isInstance(item, AnnotationBlockItem);
|
|
30
|
+
}
|
|
31
|
+
export function isAnnotationBlockValue(item) {
|
|
32
|
+
return item === 'visible' || item === 'hidden' || (typeof item === 'string' && (/[a-zA-Z_][a-zA-Z0-9_.-]*/.test(item) || /\d+\.\d+\.\d+(-[a-zA-Z0-9_.]+)*/.test(item)));
|
|
33
|
+
}
|
|
34
|
+
export function isAnnotationKey(item) {
|
|
35
|
+
return item === 'url' || item === 'type' || item === 'name' || item === 'path' || item === 'label' || item === 'icon' || item === 'title' || item === 'color' || item === 'description' || item === 'message' || item === 'version' || item === 'summary' || item === 'email' || item === 'slack' || item === 'role' || item === 'default' || (typeof item === 'string' && (/[a-zA-Z_][a-zA-Z0-9_.-]*/.test(item)));
|
|
36
|
+
}
|
|
37
|
+
export function isAnnotationKeywordAsValue(item) {
|
|
38
|
+
return item === 'type' || item === 'name' || item === 'path' || item === 'url';
|
|
39
|
+
}
|
|
40
|
+
export function isAnnotationName(item) {
|
|
41
|
+
return (typeof item === 'string' && (/[a-zA-Z_][a-zA-Z0-9_.-]*/.test(item)));
|
|
42
|
+
}
|
|
43
|
+
export const AnnotationValue = 'AnnotationValue';
|
|
44
|
+
export function isAnnotationValue(item) {
|
|
45
|
+
return reflection.isInstance(item, AnnotationValue);
|
|
46
|
+
}
|
|
47
|
+
export function isBoolLiteral(item) {
|
|
48
|
+
return typeof item === 'boolean';
|
|
49
|
+
}
|
|
50
|
+
export const ChannelBodyItem = 'ChannelBodyItem';
|
|
51
|
+
export function isChannelBodyItem(item) {
|
|
52
|
+
return reflection.isInstance(item, ChannelBodyItem);
|
|
53
|
+
}
|
|
54
|
+
export const ChannelClause = 'ChannelClause';
|
|
55
|
+
export function isChannelClause(item) {
|
|
56
|
+
return reflection.isInstance(item, ChannelClause);
|
|
57
|
+
}
|
|
58
|
+
export function isClassificationEnum(item) {
|
|
59
|
+
return item === 'public' || item === 'internal' || item === 'confidential' || item === 'regulated';
|
|
60
|
+
}
|
|
61
|
+
export const ContainerBodyItem = 'ContainerBodyItem';
|
|
62
|
+
export function isContainerBodyItem(item) {
|
|
63
|
+
return reflection.isInstance(item, ContainerBodyItem);
|
|
64
|
+
}
|
|
65
|
+
export function isContainerTypeEnum(item) {
|
|
66
|
+
return item === 'database' || item === 'cache' || item === 'objectStore' || item === 'searchIndex' || item === 'dataWarehouse' || item === 'dataLake' || item === 'externalSaaS' || item === 'other';
|
|
67
|
+
}
|
|
68
|
+
export const DataProductBodyItem = 'DataProductBodyItem';
|
|
69
|
+
export function isDataProductBodyItem(item) {
|
|
70
|
+
return reflection.isInstance(item, DataProductBodyItem);
|
|
71
|
+
}
|
|
72
|
+
export function isDeliveryMode(item) {
|
|
73
|
+
return item === 'push' || item === 'pull' || item === 'push-pull';
|
|
74
|
+
}
|
|
75
|
+
export const DiagramBodyItem = 'DiagramBodyItem';
|
|
76
|
+
export function isDiagramBodyItem(item) {
|
|
77
|
+
return reflection.isInstance(item, DiagramBodyItem);
|
|
78
|
+
}
|
|
79
|
+
export const DomainBodyItem = 'DomainBodyItem';
|
|
80
|
+
export function isDomainBodyItem(item) {
|
|
81
|
+
return reflection.isInstance(item, DomainBodyItem);
|
|
82
|
+
}
|
|
83
|
+
export const ExternalSystemBodyItem = 'ExternalSystemBodyItem';
|
|
84
|
+
export function isExternalSystemBodyItem(item) {
|
|
85
|
+
return reflection.isInstance(item, ExternalSystemBodyItem);
|
|
86
|
+
}
|
|
87
|
+
export const FlowBodyItem = 'FlowBodyItem';
|
|
88
|
+
export function isFlowBodyItem(item) {
|
|
89
|
+
return reflection.isInstance(item, FlowBodyItem);
|
|
90
|
+
}
|
|
91
|
+
export const MessageBodyItem = 'MessageBodyItem';
|
|
92
|
+
export function isMessageBodyItem(item) {
|
|
93
|
+
return reflection.isInstance(item, MessageBodyItem);
|
|
94
|
+
}
|
|
95
|
+
export function isMessageType(item) {
|
|
96
|
+
return item === 'event' || item === 'command' || item === 'query';
|
|
97
|
+
}
|
|
98
|
+
export const ParameterProp = 'ParameterProp';
|
|
99
|
+
export function isParameterProp(item) {
|
|
100
|
+
return reflection.isInstance(item, ParameterProp);
|
|
101
|
+
}
|
|
102
|
+
export const ResourceDefinition = 'ResourceDefinition';
|
|
103
|
+
export function isResourceDefinition(item) {
|
|
104
|
+
return reflection.isInstance(item, ResourceDefinition);
|
|
105
|
+
}
|
|
106
|
+
export function isResourceTypeKw(item) {
|
|
107
|
+
return item === 'domain' || item === 'service' || item === 'event' || item === 'command' || item === 'query';
|
|
108
|
+
}
|
|
109
|
+
export const SendsReceivesBodyItem = 'SendsReceivesBodyItem';
|
|
110
|
+
export function isSendsReceivesBodyItem(item) {
|
|
111
|
+
return reflection.isInstance(item, SendsReceivesBodyItem);
|
|
112
|
+
}
|
|
113
|
+
export const ServiceBodyItem = 'ServiceBodyItem';
|
|
114
|
+
export function isServiceBodyItem(item) {
|
|
115
|
+
return reflection.isInstance(item, ServiceBodyItem);
|
|
116
|
+
}
|
|
117
|
+
export function isStyleEnum(item) {
|
|
118
|
+
return item === 'default' || item === 'post-it';
|
|
119
|
+
}
|
|
120
|
+
export const TeamProp = 'TeamProp';
|
|
121
|
+
export function isTeamProp(item) {
|
|
122
|
+
return reflection.isInstance(item, TeamProp);
|
|
123
|
+
}
|
|
124
|
+
export const UserProp = 'UserProp';
|
|
125
|
+
export function isUserProp(item) {
|
|
126
|
+
return reflection.isInstance(item, UserProp);
|
|
127
|
+
}
|
|
128
|
+
export const VisualizerBodyItem = 'VisualizerBodyItem';
|
|
129
|
+
export function isVisualizerBodyItem(item) {
|
|
130
|
+
return reflection.isInstance(item, VisualizerBodyItem);
|
|
131
|
+
}
|
|
132
|
+
export const AccessModeStmt = 'AccessModeStmt';
|
|
133
|
+
export function isAccessModeStmt(item) {
|
|
134
|
+
return reflection.isInstance(item, AccessModeStmt);
|
|
135
|
+
}
|
|
136
|
+
export const ActorDef = 'ActorDef';
|
|
137
|
+
export function isActorDef(item) {
|
|
138
|
+
return reflection.isInstance(item, ActorDef);
|
|
139
|
+
}
|
|
140
|
+
export const AddressStmt = 'AddressStmt';
|
|
141
|
+
export function isAddressStmt(item) {
|
|
142
|
+
return reflection.isInstance(item, AddressStmt);
|
|
143
|
+
}
|
|
144
|
+
export const AnimatedStmt = 'AnimatedStmt';
|
|
145
|
+
export function isAnimatedStmt(item) {
|
|
146
|
+
return reflection.isInstance(item, AnimatedStmt);
|
|
147
|
+
}
|
|
148
|
+
export const Annotation = 'Annotation';
|
|
149
|
+
export function isAnnotation(item) {
|
|
150
|
+
return reflection.isInstance(item, Annotation);
|
|
151
|
+
}
|
|
152
|
+
export const AuthoritativeStmt = 'AuthoritativeStmt';
|
|
153
|
+
export function isAuthoritativeStmt(item) {
|
|
154
|
+
return reflection.isInstance(item, AuthoritativeStmt);
|
|
155
|
+
}
|
|
156
|
+
export const BoolAnnotationValue = 'BoolAnnotationValue';
|
|
157
|
+
export function isBoolAnnotationValue(item) {
|
|
158
|
+
return reflection.isInstance(item, BoolAnnotationValue);
|
|
159
|
+
}
|
|
160
|
+
export const ChannelDef = 'ChannelDef';
|
|
161
|
+
export function isChannelDef(item) {
|
|
162
|
+
return reflection.isInstance(item, ChannelDef);
|
|
163
|
+
}
|
|
164
|
+
export const ChannelRef = 'ChannelRef';
|
|
165
|
+
export function isChannelRef(item) {
|
|
166
|
+
return reflection.isInstance(item, ChannelRef);
|
|
167
|
+
}
|
|
168
|
+
export const ChannelRefStmt = 'ChannelRefStmt';
|
|
169
|
+
export function isChannelRefStmt(item) {
|
|
170
|
+
return reflection.isInstance(item, ChannelRefStmt);
|
|
171
|
+
}
|
|
172
|
+
export const ClassificationStmt = 'ClassificationStmt';
|
|
173
|
+
export function isClassificationStmt(item) {
|
|
174
|
+
return reflection.isInstance(item, ClassificationStmt);
|
|
175
|
+
}
|
|
176
|
+
export const CommandDef = 'CommandDef';
|
|
177
|
+
export function isCommandDef(item) {
|
|
178
|
+
return reflection.isInstance(item, CommandDef);
|
|
179
|
+
}
|
|
180
|
+
export const ContainerDef = 'ContainerDef';
|
|
181
|
+
export function isContainerDef(item) {
|
|
182
|
+
return reflection.isInstance(item, ContainerDef);
|
|
183
|
+
}
|
|
184
|
+
export const ContainerRefStmt = 'ContainerRefStmt';
|
|
185
|
+
export function isContainerRefStmt(item) {
|
|
186
|
+
return reflection.isInstance(item, ContainerRefStmt);
|
|
187
|
+
}
|
|
188
|
+
export const ContainerTypeStmt = 'ContainerTypeStmt';
|
|
189
|
+
export function isContainerTypeStmt(item) {
|
|
190
|
+
return reflection.isInstance(item, ContainerTypeStmt);
|
|
191
|
+
}
|
|
192
|
+
export const ContractBlock = 'ContractBlock';
|
|
193
|
+
export function isContractBlock(item) {
|
|
194
|
+
return reflection.isInstance(item, ContractBlock);
|
|
195
|
+
}
|
|
196
|
+
export const DataProductDef = 'DataProductDef';
|
|
197
|
+
export function isDataProductDef(item) {
|
|
198
|
+
return reflection.isInstance(item, DataProductDef);
|
|
199
|
+
}
|
|
200
|
+
export const DataProductRefStmt = 'DataProductRefStmt';
|
|
201
|
+
export function isDataProductRefStmt(item) {
|
|
202
|
+
return reflection.isInstance(item, DataProductRefStmt);
|
|
203
|
+
}
|
|
204
|
+
export const DeprecatedStmt = 'DeprecatedStmt';
|
|
205
|
+
export function isDeprecatedStmt(item) {
|
|
206
|
+
return reflection.isInstance(item, DeprecatedStmt);
|
|
207
|
+
}
|
|
208
|
+
export const DiagramDef = 'DiagramDef';
|
|
209
|
+
export function isDiagramDef(item) {
|
|
210
|
+
return reflection.isInstance(item, DiagramDef);
|
|
211
|
+
}
|
|
212
|
+
export const DomainDef = 'DomainDef';
|
|
213
|
+
export function isDomainDef(item) {
|
|
214
|
+
return reflection.isInstance(item, DomainDef);
|
|
215
|
+
}
|
|
216
|
+
export const DomainRefStmt = 'DomainRefStmt';
|
|
217
|
+
export function isDomainRefStmt(item) {
|
|
218
|
+
return reflection.isInstance(item, DomainRefStmt);
|
|
219
|
+
}
|
|
220
|
+
export const DraftStmt = 'DraftStmt';
|
|
221
|
+
export function isDraftStmt(item) {
|
|
222
|
+
return reflection.isInstance(item, DraftStmt);
|
|
223
|
+
}
|
|
224
|
+
export const EventDef = 'EventDef';
|
|
225
|
+
export function isEventDef(item) {
|
|
226
|
+
return reflection.isInstance(item, EventDef);
|
|
227
|
+
}
|
|
228
|
+
export const ExternalSystemDef = 'ExternalSystemDef';
|
|
229
|
+
export function isExternalSystemDef(item) {
|
|
230
|
+
return reflection.isInstance(item, ExternalSystemDef);
|
|
231
|
+
}
|
|
232
|
+
export const FlowAction = 'FlowAction';
|
|
233
|
+
export function isFlowAction(item) {
|
|
234
|
+
return reflection.isInstance(item, FlowAction);
|
|
235
|
+
}
|
|
236
|
+
export const FlowDef = 'FlowDef';
|
|
237
|
+
export function isFlowDef(item) {
|
|
238
|
+
return reflection.isInstance(item, FlowDef);
|
|
239
|
+
}
|
|
240
|
+
export const FlowEntryChain = 'FlowEntryChain';
|
|
241
|
+
export function isFlowEntryChain(item) {
|
|
242
|
+
return reflection.isInstance(item, FlowEntryChain);
|
|
243
|
+
}
|
|
244
|
+
export const FlowOutput = 'FlowOutput';
|
|
245
|
+
export function isFlowOutput(item) {
|
|
246
|
+
return reflection.isInstance(item, FlowOutput);
|
|
247
|
+
}
|
|
248
|
+
export const FlowRef = 'FlowRef';
|
|
249
|
+
export function isFlowRef(item) {
|
|
250
|
+
return reflection.isInstance(item, FlowRef);
|
|
251
|
+
}
|
|
252
|
+
export const FlowRefStmt = 'FlowRefStmt';
|
|
253
|
+
export function isFlowRefStmt(item) {
|
|
254
|
+
return reflection.isInstance(item, FlowRefStmt);
|
|
255
|
+
}
|
|
256
|
+
export const FlowWhenBlock = 'FlowWhenBlock';
|
|
257
|
+
export function isFlowWhenBlock(item) {
|
|
258
|
+
return reflection.isInstance(item, FlowWhenBlock);
|
|
259
|
+
}
|
|
260
|
+
export const FocusModeStmt = 'FocusModeStmt';
|
|
261
|
+
export function isFocusModeStmt(item) {
|
|
262
|
+
return reflection.isInstance(item, FocusModeStmt);
|
|
263
|
+
}
|
|
264
|
+
export const FromClause = 'FromClause';
|
|
265
|
+
export function isFromClause(item) {
|
|
266
|
+
return reflection.isInstance(item, FromClause);
|
|
267
|
+
}
|
|
268
|
+
export const IdAnnotationValue = 'IdAnnotationValue';
|
|
269
|
+
export function isIdAnnotationValue(item) {
|
|
270
|
+
return reflection.isInstance(item, IdAnnotationValue);
|
|
271
|
+
}
|
|
272
|
+
export const ImportDecl = 'ImportDecl';
|
|
273
|
+
export function isImportDecl(item) {
|
|
274
|
+
return reflection.isInstance(item, ImportDecl);
|
|
275
|
+
}
|
|
276
|
+
export const ImportItem = 'ImportItem';
|
|
277
|
+
export function isImportItem(item) {
|
|
278
|
+
return reflection.isInstance(item, ImportItem);
|
|
279
|
+
}
|
|
280
|
+
export const InputStmt = 'InputStmt';
|
|
281
|
+
export function isInputStmt(item) {
|
|
282
|
+
return reflection.isInstance(item, InputStmt);
|
|
283
|
+
}
|
|
284
|
+
export const KeyValueAnnotationBlockItem = 'KeyValueAnnotationBlockItem';
|
|
285
|
+
export function isKeyValueAnnotationBlockItem(item) {
|
|
286
|
+
return reflection.isInstance(item, KeyValueAnnotationBlockItem);
|
|
287
|
+
}
|
|
288
|
+
export const KeywordAnnotationValue = 'KeywordAnnotationValue';
|
|
289
|
+
export function isKeywordAnnotationValue(item) {
|
|
290
|
+
return reflection.isInstance(item, KeywordAnnotationValue);
|
|
291
|
+
}
|
|
292
|
+
export const LegendStmt = 'LegendStmt';
|
|
293
|
+
export function isLegendStmt(item) {
|
|
294
|
+
return reflection.isInstance(item, LegendStmt);
|
|
295
|
+
}
|
|
296
|
+
export const NamedAnnotationArg = 'NamedAnnotationArg';
|
|
297
|
+
export function isNamedAnnotationArg(item) {
|
|
298
|
+
return reflection.isInstance(item, NamedAnnotationArg);
|
|
299
|
+
}
|
|
300
|
+
export const NameStmt = 'NameStmt';
|
|
301
|
+
export function isNameStmt(item) {
|
|
302
|
+
return reflection.isInstance(item, NameStmt);
|
|
303
|
+
}
|
|
304
|
+
export const NumberAnnotationValue = 'NumberAnnotationValue';
|
|
305
|
+
export function isNumberAnnotationValue(item) {
|
|
306
|
+
return reflection.isInstance(item, NumberAnnotationValue);
|
|
307
|
+
}
|
|
308
|
+
export const OutputStmt = 'OutputStmt';
|
|
309
|
+
export function isOutputStmt(item) {
|
|
310
|
+
return reflection.isInstance(item, OutputStmt);
|
|
311
|
+
}
|
|
312
|
+
export const OwnerStmt = 'OwnerStmt';
|
|
313
|
+
export function isOwnerStmt(item) {
|
|
314
|
+
return reflection.isInstance(item, OwnerStmt);
|
|
315
|
+
}
|
|
316
|
+
export const OwnsStmt = 'OwnsStmt';
|
|
317
|
+
export function isOwnsStmt(item) {
|
|
318
|
+
return reflection.isInstance(item, OwnsStmt);
|
|
319
|
+
}
|
|
320
|
+
export const ParameterDecl = 'ParameterDecl';
|
|
321
|
+
export function isParameterDecl(item) {
|
|
322
|
+
return reflection.isInstance(item, ParameterDecl);
|
|
323
|
+
}
|
|
324
|
+
export const ParameterDefaultProp = 'ParameterDefaultProp';
|
|
325
|
+
export function isParameterDefaultProp(item) {
|
|
326
|
+
return reflection.isInstance(item, ParameterDefaultProp);
|
|
327
|
+
}
|
|
328
|
+
export const ParameterDescriptionProp = 'ParameterDescriptionProp';
|
|
329
|
+
export function isParameterDescriptionProp(item) {
|
|
330
|
+
return reflection.isInstance(item, ParameterDescriptionProp);
|
|
331
|
+
}
|
|
332
|
+
export const ParameterEnumProp = 'ParameterEnumProp';
|
|
333
|
+
export function isParameterEnumProp(item) {
|
|
334
|
+
return reflection.isInstance(item, ParameterEnumProp);
|
|
335
|
+
}
|
|
336
|
+
export const ParameterExamplesProp = 'ParameterExamplesProp';
|
|
337
|
+
export function isParameterExamplesProp(item) {
|
|
338
|
+
return reflection.isInstance(item, ParameterExamplesProp);
|
|
339
|
+
}
|
|
340
|
+
export const PositionalAnnotationArg = 'PositionalAnnotationArg';
|
|
341
|
+
export function isPositionalAnnotationArg(item) {
|
|
342
|
+
return reflection.isInstance(item, PositionalAnnotationArg);
|
|
343
|
+
}
|
|
344
|
+
export const Program = 'Program';
|
|
345
|
+
export function isProgram(item) {
|
|
346
|
+
return reflection.isInstance(item, Program);
|
|
347
|
+
}
|
|
348
|
+
export const ProtocolStmt = 'ProtocolStmt';
|
|
349
|
+
export function isProtocolStmt(item) {
|
|
350
|
+
return reflection.isInstance(item, ProtocolStmt);
|
|
351
|
+
}
|
|
352
|
+
export const QueryDef = 'QueryDef';
|
|
353
|
+
export function isQueryDef(item) {
|
|
354
|
+
return reflection.isInstance(item, QueryDef);
|
|
355
|
+
}
|
|
356
|
+
export const ReadsFromStmt = 'ReadsFromStmt';
|
|
357
|
+
export function isReadsFromStmt(item) {
|
|
358
|
+
return reflection.isInstance(item, ReadsFromStmt);
|
|
359
|
+
}
|
|
360
|
+
export const ReceivesStmt = 'ReceivesStmt';
|
|
361
|
+
export function isReceivesStmt(item) {
|
|
362
|
+
return reflection.isInstance(item, ReceivesStmt);
|
|
363
|
+
}
|
|
364
|
+
export const ResidencyStmt = 'ResidencyStmt';
|
|
365
|
+
export function isResidencyStmt(item) {
|
|
366
|
+
return reflection.isInstance(item, ResidencyStmt);
|
|
367
|
+
}
|
|
368
|
+
export const ResourceAnnotationBlockItem = 'ResourceAnnotationBlockItem';
|
|
369
|
+
export function isResourceAnnotationBlockItem(item) {
|
|
370
|
+
return reflection.isInstance(item, ResourceAnnotationBlockItem);
|
|
371
|
+
}
|
|
372
|
+
export const ResourceRef = 'ResourceRef';
|
|
373
|
+
export function isResourceRef(item) {
|
|
374
|
+
return reflection.isInstance(item, ResourceRef);
|
|
375
|
+
}
|
|
376
|
+
export const RetentionStmt = 'RetentionStmt';
|
|
377
|
+
export function isRetentionStmt(item) {
|
|
378
|
+
return reflection.isInstance(item, RetentionStmt);
|
|
379
|
+
}
|
|
380
|
+
export const RouteStmt = 'RouteStmt';
|
|
381
|
+
export function isRouteStmt(item) {
|
|
382
|
+
return reflection.isInstance(item, RouteStmt);
|
|
383
|
+
}
|
|
384
|
+
export const SchemaStmt = 'SchemaStmt';
|
|
385
|
+
export function isSchemaStmt(item) {
|
|
386
|
+
return reflection.isInstance(item, SchemaStmt);
|
|
387
|
+
}
|
|
388
|
+
export const SearchStmt = 'SearchStmt';
|
|
389
|
+
export function isSearchStmt(item) {
|
|
390
|
+
return reflection.isInstance(item, SearchStmt);
|
|
391
|
+
}
|
|
392
|
+
export const SendsStmt = 'SendsStmt';
|
|
393
|
+
export function isSendsStmt(item) {
|
|
394
|
+
return reflection.isInstance(item, SendsStmt);
|
|
395
|
+
}
|
|
396
|
+
export const ServiceDef = 'ServiceDef';
|
|
397
|
+
export function isServiceDef(item) {
|
|
398
|
+
return reflection.isInstance(item, ServiceDef);
|
|
399
|
+
}
|
|
400
|
+
export const ServiceRefStmt = 'ServiceRefStmt';
|
|
401
|
+
export function isServiceRefStmt(item) {
|
|
402
|
+
return reflection.isInstance(item, ServiceRefStmt);
|
|
403
|
+
}
|
|
404
|
+
export const StringAnnotationValue = 'StringAnnotationValue';
|
|
405
|
+
export function isStringAnnotationValue(item) {
|
|
406
|
+
return reflection.isInstance(item, StringAnnotationValue);
|
|
407
|
+
}
|
|
408
|
+
export const StringArray = 'StringArray';
|
|
409
|
+
export function isStringArray(item) {
|
|
410
|
+
return reflection.isInstance(item, StringArray);
|
|
411
|
+
}
|
|
412
|
+
export const StyleStmt = 'StyleStmt';
|
|
413
|
+
export function isStyleStmt(item) {
|
|
414
|
+
return reflection.isInstance(item, StyleStmt);
|
|
415
|
+
}
|
|
416
|
+
export const SubdomainDef = 'SubdomainDef';
|
|
417
|
+
export function isSubdomainDef(item) {
|
|
418
|
+
return reflection.isInstance(item, SubdomainDef);
|
|
419
|
+
}
|
|
420
|
+
export const SummaryStmt = 'SummaryStmt';
|
|
421
|
+
export function isSummaryStmt(item) {
|
|
422
|
+
return reflection.isInstance(item, SummaryStmt);
|
|
423
|
+
}
|
|
424
|
+
export const TeamAnnotationProp = 'TeamAnnotationProp';
|
|
425
|
+
export function isTeamAnnotationProp(item) {
|
|
426
|
+
return reflection.isInstance(item, TeamAnnotationProp);
|
|
427
|
+
}
|
|
428
|
+
export const TeamDef = 'TeamDef';
|
|
429
|
+
export function isTeamDef(item) {
|
|
430
|
+
return reflection.isInstance(item, TeamDef);
|
|
431
|
+
}
|
|
432
|
+
export const TeamEmailProp = 'TeamEmailProp';
|
|
433
|
+
export function isTeamEmailProp(item) {
|
|
434
|
+
return reflection.isInstance(item, TeamEmailProp);
|
|
435
|
+
}
|
|
436
|
+
export const TeamMemberProp = 'TeamMemberProp';
|
|
437
|
+
export function isTeamMemberProp(item) {
|
|
438
|
+
return reflection.isInstance(item, TeamMemberProp);
|
|
439
|
+
}
|
|
440
|
+
export const TeamMsTeamsProp = 'TeamMsTeamsProp';
|
|
441
|
+
export function isTeamMsTeamsProp(item) {
|
|
442
|
+
return reflection.isInstance(item, TeamMsTeamsProp);
|
|
443
|
+
}
|
|
444
|
+
export const TeamNameProp = 'TeamNameProp';
|
|
445
|
+
export function isTeamNameProp(item) {
|
|
446
|
+
return reflection.isInstance(item, TeamNameProp);
|
|
447
|
+
}
|
|
448
|
+
export const TeamOwnsProp = 'TeamOwnsProp';
|
|
449
|
+
export function isTeamOwnsProp(item) {
|
|
450
|
+
return reflection.isInstance(item, TeamOwnsProp);
|
|
451
|
+
}
|
|
452
|
+
export const TeamSlackProp = 'TeamSlackProp';
|
|
453
|
+
export function isTeamSlackProp(item) {
|
|
454
|
+
return reflection.isInstance(item, TeamSlackProp);
|
|
455
|
+
}
|
|
456
|
+
export const TeamSummaryProp = 'TeamSummaryProp';
|
|
457
|
+
export function isTeamSummaryProp(item) {
|
|
458
|
+
return reflection.isInstance(item, TeamSummaryProp);
|
|
459
|
+
}
|
|
460
|
+
export const TechnologyStmt = 'TechnologyStmt';
|
|
461
|
+
export function isTechnologyStmt(item) {
|
|
462
|
+
return reflection.isInstance(item, TechnologyStmt);
|
|
463
|
+
}
|
|
464
|
+
export const ToClause = 'ToClause';
|
|
465
|
+
export function isToClause(item) {
|
|
466
|
+
return reflection.isInstance(item, ToClause);
|
|
467
|
+
}
|
|
468
|
+
export const ToolbarStmt = 'ToolbarStmt';
|
|
469
|
+
export function isToolbarStmt(item) {
|
|
470
|
+
return reflection.isInstance(item, ToolbarStmt);
|
|
471
|
+
}
|
|
472
|
+
export const UserAnnotationProp = 'UserAnnotationProp';
|
|
473
|
+
export function isUserAnnotationProp(item) {
|
|
474
|
+
return reflection.isInstance(item, UserAnnotationProp);
|
|
475
|
+
}
|
|
476
|
+
export const UserAvatarProp = 'UserAvatarProp';
|
|
477
|
+
export function isUserAvatarProp(item) {
|
|
478
|
+
return reflection.isInstance(item, UserAvatarProp);
|
|
479
|
+
}
|
|
480
|
+
export const UserDef = 'UserDef';
|
|
481
|
+
export function isUserDef(item) {
|
|
482
|
+
return reflection.isInstance(item, UserDef);
|
|
483
|
+
}
|
|
484
|
+
export const UserEmailProp = 'UserEmailProp';
|
|
485
|
+
export function isUserEmailProp(item) {
|
|
486
|
+
return reflection.isInstance(item, UserEmailProp);
|
|
487
|
+
}
|
|
488
|
+
export const UserMsTeamsProp = 'UserMsTeamsProp';
|
|
489
|
+
export function isUserMsTeamsProp(item) {
|
|
490
|
+
return reflection.isInstance(item, UserMsTeamsProp);
|
|
491
|
+
}
|
|
492
|
+
export const UserNameProp = 'UserNameProp';
|
|
493
|
+
export function isUserNameProp(item) {
|
|
494
|
+
return reflection.isInstance(item, UserNameProp);
|
|
495
|
+
}
|
|
496
|
+
export const UserOwnsProp = 'UserOwnsProp';
|
|
497
|
+
export function isUserOwnsProp(item) {
|
|
498
|
+
return reflection.isInstance(item, UserOwnsProp);
|
|
499
|
+
}
|
|
500
|
+
export const UserRoleProp = 'UserRoleProp';
|
|
501
|
+
export function isUserRoleProp(item) {
|
|
502
|
+
return reflection.isInstance(item, UserRoleProp);
|
|
503
|
+
}
|
|
504
|
+
export const UserSlackProp = 'UserSlackProp';
|
|
505
|
+
export function isUserSlackProp(item) {
|
|
506
|
+
return reflection.isInstance(item, UserSlackProp);
|
|
507
|
+
}
|
|
508
|
+
export const UserTeamProp = 'UserTeamProp';
|
|
509
|
+
export function isUserTeamProp(item) {
|
|
510
|
+
return reflection.isInstance(item, UserTeamProp);
|
|
511
|
+
}
|
|
512
|
+
export const VersionAnnotationValue = 'VersionAnnotationValue';
|
|
513
|
+
export function isVersionAnnotationValue(item) {
|
|
514
|
+
return reflection.isInstance(item, VersionAnnotationValue);
|
|
515
|
+
}
|
|
516
|
+
export const VersionStmt = 'VersionStmt';
|
|
517
|
+
export function isVersionStmt(item) {
|
|
518
|
+
return reflection.isInstance(item, VersionStmt);
|
|
519
|
+
}
|
|
520
|
+
export const VisualizerDef = 'VisualizerDef';
|
|
521
|
+
export function isVisualizerDef(item) {
|
|
522
|
+
return reflection.isInstance(item, VisualizerDef);
|
|
523
|
+
}
|
|
524
|
+
export const WritesToStmt = 'WritesToStmt';
|
|
525
|
+
export function isWritesToStmt(item) {
|
|
526
|
+
return reflection.isInstance(item, WritesToStmt);
|
|
527
|
+
}
|
|
528
|
+
export class EcAstReflection extends langium.AbstractAstReflection {
|
|
529
|
+
getAllTypes() {
|
|
530
|
+
return [AccessModeStmt, ActorBodyItem, ActorDef, AddressStmt, AnimatedStmt, Annotation, AnnotationArg, AnnotationBlockItem, AnnotationValue, AuthoritativeStmt, BoolAnnotationValue, ChannelBodyItem, ChannelClause, ChannelDef, ChannelRef, ChannelRefStmt, ClassificationStmt, CommandDef, ContainerBodyItem, ContainerDef, ContainerRefStmt, ContainerTypeStmt, ContractBlock, DataProductBodyItem, DataProductDef, DataProductRefStmt, DeprecatedStmt, DiagramBodyItem, DiagramDef, DomainBodyItem, DomainDef, DomainRefStmt, DraftStmt, EventDef, ExternalSystemBodyItem, ExternalSystemDef, FlowAction, FlowBodyItem, FlowDef, FlowEntryChain, FlowOutput, FlowRef, FlowRefStmt, FlowWhenBlock, FocusModeStmt, FromClause, IdAnnotationValue, ImportDecl, ImportItem, InputStmt, KeyValueAnnotationBlockItem, KeywordAnnotationValue, LegendStmt, MessageBodyItem, NameStmt, NamedAnnotationArg, NumberAnnotationValue, OutputStmt, OwnerStmt, OwnsStmt, ParameterDecl, ParameterDefaultProp, ParameterDescriptionProp, ParameterEnumProp, ParameterExamplesProp, ParameterProp, PositionalAnnotationArg, Program, ProtocolStmt, QueryDef, ReadsFromStmt, ReceivesStmt, ResidencyStmt, ResourceAnnotationBlockItem, ResourceDefinition, ResourceRef, RetentionStmt, RouteStmt, SchemaStmt, SearchStmt, SendsReceivesBodyItem, SendsStmt, ServiceBodyItem, ServiceDef, ServiceRefStmt, StringAnnotationValue, StringArray, StyleStmt, SubdomainDef, SummaryStmt, TeamAnnotationProp, TeamDef, TeamEmailProp, TeamMemberProp, TeamMsTeamsProp, TeamNameProp, TeamOwnsProp, TeamProp, TeamSlackProp, TeamSummaryProp, TechnologyStmt, ToClause, ToolbarStmt, UserAnnotationProp, UserAvatarProp, UserDef, UserEmailProp, UserMsTeamsProp, UserNameProp, UserOwnsProp, UserProp, UserRoleProp, UserSlackProp, UserTeamProp, VersionAnnotationValue, VersionStmt, VisualizerBodyItem, VisualizerDef, WritesToStmt];
|
|
531
|
+
}
|
|
532
|
+
computeIsSubtype(subtype, supertype) {
|
|
533
|
+
switch (subtype) {
|
|
534
|
+
case AccessModeStmt:
|
|
535
|
+
case AuthoritativeStmt:
|
|
536
|
+
case ClassificationStmt:
|
|
537
|
+
case ContainerTypeStmt:
|
|
538
|
+
case ResidencyStmt:
|
|
539
|
+
case RetentionStmt:
|
|
540
|
+
case TechnologyStmt: {
|
|
541
|
+
return this.isSubtype(ContainerBodyItem, supertype);
|
|
542
|
+
}
|
|
543
|
+
case ActorDef:
|
|
544
|
+
case CommandDef:
|
|
545
|
+
case DataProductDef:
|
|
546
|
+
case DomainDef:
|
|
547
|
+
case EventDef:
|
|
548
|
+
case ExternalSystemDef:
|
|
549
|
+
case FlowDef:
|
|
550
|
+
case QueryDef: {
|
|
551
|
+
return this.isSubtype(ResourceDefinition, supertype) || this.isSubtype(VisualizerBodyItem, supertype);
|
|
552
|
+
}
|
|
553
|
+
case AddressStmt:
|
|
554
|
+
case ParameterDecl:
|
|
555
|
+
case ProtocolStmt:
|
|
556
|
+
case RouteStmt: {
|
|
557
|
+
return this.isSubtype(ChannelBodyItem, supertype);
|
|
558
|
+
}
|
|
559
|
+
case AnimatedStmt:
|
|
560
|
+
case ChannelRefStmt:
|
|
561
|
+
case ContainerRefStmt:
|
|
562
|
+
case DomainRefStmt:
|
|
563
|
+
case FocusModeStmt:
|
|
564
|
+
case LegendStmt:
|
|
565
|
+
case SearchStmt:
|
|
566
|
+
case StyleStmt:
|
|
567
|
+
case ToolbarStmt: {
|
|
568
|
+
return this.isSubtype(VisualizerBodyItem, supertype);
|
|
569
|
+
}
|
|
570
|
+
case Annotation:
|
|
571
|
+
case NameStmt:
|
|
572
|
+
case SummaryStmt: {
|
|
573
|
+
return this.isSubtype(ActorBodyItem, supertype) || this.isSubtype(ChannelBodyItem, supertype) || this.isSubtype(ContainerBodyItem, supertype) || this.isSubtype(DataProductBodyItem, supertype) || this.isSubtype(DiagramBodyItem, supertype) || this.isSubtype(DomainBodyItem, supertype) || this.isSubtype(ExternalSystemBodyItem, supertype) || this.isSubtype(FlowBodyItem, supertype) || this.isSubtype(MessageBodyItem, supertype) || this.isSubtype(SendsReceivesBodyItem, supertype) || this.isSubtype(ServiceBodyItem, supertype) || this.isSubtype(VisualizerBodyItem, supertype);
|
|
574
|
+
}
|
|
575
|
+
case BoolAnnotationValue:
|
|
576
|
+
case IdAnnotationValue:
|
|
577
|
+
case KeywordAnnotationValue:
|
|
578
|
+
case NumberAnnotationValue:
|
|
579
|
+
case StringAnnotationValue:
|
|
580
|
+
case VersionAnnotationValue: {
|
|
581
|
+
return this.isSubtype(AnnotationValue, supertype);
|
|
582
|
+
}
|
|
583
|
+
case ChannelDef:
|
|
584
|
+
case ContainerDef:
|
|
585
|
+
case ServiceDef: {
|
|
586
|
+
return this.isSubtype(DomainBodyItem, supertype) || this.isSubtype(ResourceDefinition, supertype) || this.isSubtype(VisualizerBodyItem, supertype);
|
|
587
|
+
}
|
|
588
|
+
case DataProductRefStmt: {
|
|
589
|
+
return this.isSubtype(DomainBodyItem, supertype) || this.isSubtype(VisualizerBodyItem, supertype);
|
|
590
|
+
}
|
|
591
|
+
case DeprecatedStmt:
|
|
592
|
+
case DraftStmt: {
|
|
593
|
+
return this.isSubtype(ContainerBodyItem, supertype) || this.isSubtype(DataProductBodyItem, supertype) || this.isSubtype(DomainBodyItem, supertype) || this.isSubtype(MessageBodyItem, supertype) || this.isSubtype(ServiceBodyItem, supertype);
|
|
594
|
+
}
|
|
595
|
+
case DiagramDef:
|
|
596
|
+
case TeamDef:
|
|
597
|
+
case UserDef:
|
|
598
|
+
case VisualizerDef: {
|
|
599
|
+
return this.isSubtype(ResourceDefinition, supertype);
|
|
600
|
+
}
|
|
601
|
+
case FlowEntryChain:
|
|
602
|
+
case FlowWhenBlock: {
|
|
603
|
+
return this.isSubtype(FlowBodyItem, supertype);
|
|
604
|
+
}
|
|
605
|
+
case FlowRefStmt: {
|
|
606
|
+
return this.isSubtype(DomainBodyItem, supertype) || this.isSubtype(ServiceBodyItem, supertype) || this.isSubtype(VisualizerBodyItem, supertype);
|
|
607
|
+
}
|
|
608
|
+
case FromClause:
|
|
609
|
+
case ToClause: {
|
|
610
|
+
return this.isSubtype(ChannelClause, supertype) || this.isSubtype(SendsReceivesBodyItem, supertype);
|
|
611
|
+
}
|
|
612
|
+
case InputStmt:
|
|
613
|
+
case OutputStmt: {
|
|
614
|
+
return this.isSubtype(DataProductBodyItem, supertype);
|
|
615
|
+
}
|
|
616
|
+
case KeyValueAnnotationBlockItem:
|
|
617
|
+
case ResourceAnnotationBlockItem: {
|
|
618
|
+
return this.isSubtype(AnnotationBlockItem, supertype);
|
|
619
|
+
}
|
|
620
|
+
case NamedAnnotationArg:
|
|
621
|
+
case PositionalAnnotationArg: {
|
|
622
|
+
return this.isSubtype(AnnotationArg, supertype);
|
|
623
|
+
}
|
|
624
|
+
case OwnerStmt:
|
|
625
|
+
case VersionStmt: {
|
|
626
|
+
return this.isSubtype(ChannelBodyItem, supertype) || this.isSubtype(ContainerBodyItem, supertype) || this.isSubtype(DataProductBodyItem, supertype) || this.isSubtype(DiagramBodyItem, supertype) || this.isSubtype(DomainBodyItem, supertype) || this.isSubtype(FlowBodyItem, supertype) || this.isSubtype(MessageBodyItem, supertype) || this.isSubtype(SendsReceivesBodyItem, supertype) || this.isSubtype(ServiceBodyItem, supertype);
|
|
627
|
+
}
|
|
628
|
+
case ParameterDefaultProp:
|
|
629
|
+
case ParameterDescriptionProp:
|
|
630
|
+
case ParameterEnumProp:
|
|
631
|
+
case ParameterExamplesProp: {
|
|
632
|
+
return this.isSubtype(ParameterProp, supertype);
|
|
633
|
+
}
|
|
634
|
+
case ReadsFromStmt:
|
|
635
|
+
case WritesToStmt: {
|
|
636
|
+
return this.isSubtype(ServiceBodyItem, supertype);
|
|
637
|
+
}
|
|
638
|
+
case ReceivesStmt:
|
|
639
|
+
case SendsStmt: {
|
|
640
|
+
return this.isSubtype(DomainBodyItem, supertype) || this.isSubtype(ServiceBodyItem, supertype);
|
|
641
|
+
}
|
|
642
|
+
case SchemaStmt: {
|
|
643
|
+
return this.isSubtype(MessageBodyItem, supertype) || this.isSubtype(SendsReceivesBodyItem, supertype);
|
|
644
|
+
}
|
|
645
|
+
case ServiceRefStmt: {
|
|
646
|
+
return this.isSubtype(ContainerBodyItem, supertype) || this.isSubtype(DomainBodyItem, supertype) || this.isSubtype(VisualizerBodyItem, supertype);
|
|
647
|
+
}
|
|
648
|
+
case SubdomainDef: {
|
|
649
|
+
return this.isSubtype(DomainBodyItem, supertype);
|
|
650
|
+
}
|
|
651
|
+
case TeamAnnotationProp:
|
|
652
|
+
case TeamEmailProp:
|
|
653
|
+
case TeamMemberProp:
|
|
654
|
+
case TeamMsTeamsProp:
|
|
655
|
+
case TeamNameProp:
|
|
656
|
+
case TeamOwnsProp:
|
|
657
|
+
case TeamSlackProp:
|
|
658
|
+
case TeamSummaryProp: {
|
|
659
|
+
return this.isSubtype(TeamProp, supertype);
|
|
660
|
+
}
|
|
661
|
+
case UserAnnotationProp:
|
|
662
|
+
case UserAvatarProp:
|
|
663
|
+
case UserEmailProp:
|
|
664
|
+
case UserMsTeamsProp:
|
|
665
|
+
case UserNameProp:
|
|
666
|
+
case UserOwnsProp:
|
|
667
|
+
case UserRoleProp:
|
|
668
|
+
case UserSlackProp:
|
|
669
|
+
case UserTeamProp: {
|
|
670
|
+
return this.isSubtype(UserProp, supertype);
|
|
671
|
+
}
|
|
672
|
+
default: {
|
|
673
|
+
return false;
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
getReferenceType(refInfo) {
|
|
678
|
+
const referenceId = `${refInfo.container.$type}:${refInfo.property}`;
|
|
679
|
+
switch (referenceId) {
|
|
680
|
+
default: {
|
|
681
|
+
throw new Error(`${referenceId} is not a valid reference id.`);
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
getTypeMetaData(type) {
|
|
686
|
+
switch (type) {
|
|
687
|
+
case AccessModeStmt: {
|
|
688
|
+
return {
|
|
689
|
+
name: AccessModeStmt,
|
|
690
|
+
properties: [
|
|
691
|
+
{ name: 'value' }
|
|
692
|
+
]
|
|
693
|
+
};
|
|
694
|
+
}
|
|
695
|
+
case ActorDef: {
|
|
696
|
+
return {
|
|
697
|
+
name: ActorDef,
|
|
698
|
+
properties: [
|
|
699
|
+
{ name: 'body', defaultValue: [] },
|
|
700
|
+
{ name: 'name' }
|
|
701
|
+
]
|
|
702
|
+
};
|
|
703
|
+
}
|
|
704
|
+
case AddressStmt: {
|
|
705
|
+
return {
|
|
706
|
+
name: AddressStmt,
|
|
707
|
+
properties: [
|
|
708
|
+
{ name: 'value' }
|
|
709
|
+
]
|
|
710
|
+
};
|
|
711
|
+
}
|
|
712
|
+
case AnimatedStmt: {
|
|
713
|
+
return {
|
|
714
|
+
name: AnimatedStmt,
|
|
715
|
+
properties: [
|
|
716
|
+
{ name: 'value' }
|
|
717
|
+
]
|
|
718
|
+
};
|
|
719
|
+
}
|
|
720
|
+
case Annotation: {
|
|
721
|
+
return {
|
|
722
|
+
name: Annotation,
|
|
723
|
+
properties: [
|
|
724
|
+
{ name: 'args', defaultValue: [] },
|
|
725
|
+
{ name: 'block', defaultValue: [] },
|
|
726
|
+
{ name: 'name' }
|
|
727
|
+
]
|
|
728
|
+
};
|
|
729
|
+
}
|
|
730
|
+
case AuthoritativeStmt: {
|
|
731
|
+
return {
|
|
732
|
+
name: AuthoritativeStmt,
|
|
733
|
+
properties: [
|
|
734
|
+
{ name: 'value' }
|
|
735
|
+
]
|
|
736
|
+
};
|
|
737
|
+
}
|
|
738
|
+
case BoolAnnotationValue: {
|
|
739
|
+
return {
|
|
740
|
+
name: BoolAnnotationValue,
|
|
741
|
+
properties: [
|
|
742
|
+
{ name: 'value' }
|
|
743
|
+
]
|
|
744
|
+
};
|
|
745
|
+
}
|
|
746
|
+
case ChannelDef: {
|
|
747
|
+
return {
|
|
748
|
+
name: ChannelDef,
|
|
749
|
+
properties: [
|
|
750
|
+
{ name: 'body', defaultValue: [] },
|
|
751
|
+
{ name: 'name' }
|
|
752
|
+
]
|
|
753
|
+
};
|
|
754
|
+
}
|
|
755
|
+
case ChannelRef: {
|
|
756
|
+
return {
|
|
757
|
+
name: ChannelRef,
|
|
758
|
+
properties: [
|
|
759
|
+
{ name: 'channelName' },
|
|
760
|
+
{ name: 'channelVersion' }
|
|
761
|
+
]
|
|
762
|
+
};
|
|
763
|
+
}
|
|
764
|
+
case ChannelRefStmt: {
|
|
765
|
+
return {
|
|
766
|
+
name: ChannelRefStmt,
|
|
767
|
+
properties: [
|
|
768
|
+
{ name: 'ref' }
|
|
769
|
+
]
|
|
770
|
+
};
|
|
771
|
+
}
|
|
772
|
+
case ClassificationStmt: {
|
|
773
|
+
return {
|
|
774
|
+
name: ClassificationStmt,
|
|
775
|
+
properties: [
|
|
776
|
+
{ name: 'value' }
|
|
777
|
+
]
|
|
778
|
+
};
|
|
779
|
+
}
|
|
780
|
+
case CommandDef: {
|
|
781
|
+
return {
|
|
782
|
+
name: CommandDef,
|
|
783
|
+
properties: [
|
|
784
|
+
{ name: 'body', defaultValue: [] },
|
|
785
|
+
{ name: 'name' }
|
|
786
|
+
]
|
|
787
|
+
};
|
|
788
|
+
}
|
|
789
|
+
case ContainerDef: {
|
|
790
|
+
return {
|
|
791
|
+
name: ContainerDef,
|
|
792
|
+
properties: [
|
|
793
|
+
{ name: 'body', defaultValue: [] },
|
|
794
|
+
{ name: 'name' }
|
|
795
|
+
]
|
|
796
|
+
};
|
|
797
|
+
}
|
|
798
|
+
case ContainerRefStmt: {
|
|
799
|
+
return {
|
|
800
|
+
name: ContainerRefStmt,
|
|
801
|
+
properties: [
|
|
802
|
+
{ name: 'ref' }
|
|
803
|
+
]
|
|
804
|
+
};
|
|
805
|
+
}
|
|
806
|
+
case ContainerTypeStmt: {
|
|
807
|
+
return {
|
|
808
|
+
name: ContainerTypeStmt,
|
|
809
|
+
properties: [
|
|
810
|
+
{ name: 'value' }
|
|
811
|
+
]
|
|
812
|
+
};
|
|
813
|
+
}
|
|
814
|
+
case ContractBlock: {
|
|
815
|
+
return {
|
|
816
|
+
name: ContractBlock,
|
|
817
|
+
properties: [
|
|
818
|
+
{ name: 'contractName' },
|
|
819
|
+
{ name: 'contractType' },
|
|
820
|
+
{ name: 'path' }
|
|
821
|
+
]
|
|
822
|
+
};
|
|
823
|
+
}
|
|
824
|
+
case DataProductDef: {
|
|
825
|
+
return {
|
|
826
|
+
name: DataProductDef,
|
|
827
|
+
properties: [
|
|
828
|
+
{ name: 'body', defaultValue: [] },
|
|
829
|
+
{ name: 'name' }
|
|
830
|
+
]
|
|
831
|
+
};
|
|
832
|
+
}
|
|
833
|
+
case DataProductRefStmt: {
|
|
834
|
+
return {
|
|
835
|
+
name: DataProductRefStmt,
|
|
836
|
+
properties: [
|
|
837
|
+
{ name: 'ref' }
|
|
838
|
+
]
|
|
839
|
+
};
|
|
840
|
+
}
|
|
841
|
+
case DeprecatedStmt: {
|
|
842
|
+
return {
|
|
843
|
+
name: DeprecatedStmt,
|
|
844
|
+
properties: [
|
|
845
|
+
{ name: 'value' }
|
|
846
|
+
]
|
|
847
|
+
};
|
|
848
|
+
}
|
|
849
|
+
case DiagramDef: {
|
|
850
|
+
return {
|
|
851
|
+
name: DiagramDef,
|
|
852
|
+
properties: [
|
|
853
|
+
{ name: 'body', defaultValue: [] },
|
|
854
|
+
{ name: 'name' }
|
|
855
|
+
]
|
|
856
|
+
};
|
|
857
|
+
}
|
|
858
|
+
case DomainDef: {
|
|
859
|
+
return {
|
|
860
|
+
name: DomainDef,
|
|
861
|
+
properties: [
|
|
862
|
+
{ name: 'body', defaultValue: [] },
|
|
863
|
+
{ name: 'name' }
|
|
864
|
+
]
|
|
865
|
+
};
|
|
866
|
+
}
|
|
867
|
+
case DomainRefStmt: {
|
|
868
|
+
return {
|
|
869
|
+
name: DomainRefStmt,
|
|
870
|
+
properties: [
|
|
871
|
+
{ name: 'ref' }
|
|
872
|
+
]
|
|
873
|
+
};
|
|
874
|
+
}
|
|
875
|
+
case DraftStmt: {
|
|
876
|
+
return {
|
|
877
|
+
name: DraftStmt,
|
|
878
|
+
properties: [
|
|
879
|
+
{ name: 'value' }
|
|
880
|
+
]
|
|
881
|
+
};
|
|
882
|
+
}
|
|
883
|
+
case EventDef: {
|
|
884
|
+
return {
|
|
885
|
+
name: EventDef,
|
|
886
|
+
properties: [
|
|
887
|
+
{ name: 'body', defaultValue: [] },
|
|
888
|
+
{ name: 'name' }
|
|
889
|
+
]
|
|
890
|
+
};
|
|
891
|
+
}
|
|
892
|
+
case ExternalSystemDef: {
|
|
893
|
+
return {
|
|
894
|
+
name: ExternalSystemDef,
|
|
895
|
+
properties: [
|
|
896
|
+
{ name: 'body', defaultValue: [] },
|
|
897
|
+
{ name: 'name' }
|
|
898
|
+
]
|
|
899
|
+
};
|
|
900
|
+
}
|
|
901
|
+
case FlowAction: {
|
|
902
|
+
return {
|
|
903
|
+
name: FlowAction,
|
|
904
|
+
properties: [
|
|
905
|
+
{ name: 'outputs', defaultValue: [] },
|
|
906
|
+
{ name: 'ref' }
|
|
907
|
+
]
|
|
908
|
+
};
|
|
909
|
+
}
|
|
910
|
+
case FlowDef: {
|
|
911
|
+
return {
|
|
912
|
+
name: FlowDef,
|
|
913
|
+
properties: [
|
|
914
|
+
{ name: 'body', defaultValue: [] },
|
|
915
|
+
{ name: 'name' }
|
|
916
|
+
]
|
|
917
|
+
};
|
|
918
|
+
}
|
|
919
|
+
case FlowEntryChain: {
|
|
920
|
+
return {
|
|
921
|
+
name: FlowEntryChain,
|
|
922
|
+
properties: [
|
|
923
|
+
{ name: 'sources', defaultValue: [] },
|
|
924
|
+
{ name: 'targets', defaultValue: [] }
|
|
925
|
+
]
|
|
926
|
+
};
|
|
927
|
+
}
|
|
928
|
+
case FlowOutput: {
|
|
929
|
+
return {
|
|
930
|
+
name: FlowOutput,
|
|
931
|
+
properties: [
|
|
932
|
+
{ name: 'label' },
|
|
933
|
+
{ name: 'target' }
|
|
934
|
+
]
|
|
935
|
+
};
|
|
936
|
+
}
|
|
937
|
+
case FlowRef: {
|
|
938
|
+
return {
|
|
939
|
+
name: FlowRef,
|
|
940
|
+
properties: [
|
|
941
|
+
{ name: 'label' },
|
|
942
|
+
{ name: 'name' }
|
|
943
|
+
]
|
|
944
|
+
};
|
|
945
|
+
}
|
|
946
|
+
case FlowRefStmt: {
|
|
947
|
+
return {
|
|
948
|
+
name: FlowRefStmt,
|
|
949
|
+
properties: [
|
|
950
|
+
{ name: 'ref' }
|
|
951
|
+
]
|
|
952
|
+
};
|
|
953
|
+
}
|
|
954
|
+
case FlowWhenBlock: {
|
|
955
|
+
return {
|
|
956
|
+
name: FlowWhenBlock,
|
|
957
|
+
properties: [
|
|
958
|
+
{ name: 'actions', defaultValue: [] },
|
|
959
|
+
{ name: 'triggers', defaultValue: [] }
|
|
960
|
+
]
|
|
961
|
+
};
|
|
962
|
+
}
|
|
963
|
+
case FocusModeStmt: {
|
|
964
|
+
return {
|
|
965
|
+
name: FocusModeStmt,
|
|
966
|
+
properties: [
|
|
967
|
+
{ name: 'value' }
|
|
968
|
+
]
|
|
969
|
+
};
|
|
970
|
+
}
|
|
971
|
+
case FromClause: {
|
|
972
|
+
return {
|
|
973
|
+
name: FromClause,
|
|
974
|
+
properties: [
|
|
975
|
+
{ name: 'channels', defaultValue: [] },
|
|
976
|
+
{ name: 'deliveryMode' }
|
|
977
|
+
]
|
|
978
|
+
};
|
|
979
|
+
}
|
|
980
|
+
case IdAnnotationValue: {
|
|
981
|
+
return {
|
|
982
|
+
name: IdAnnotationValue,
|
|
983
|
+
properties: [
|
|
984
|
+
{ name: 'value' }
|
|
985
|
+
]
|
|
986
|
+
};
|
|
987
|
+
}
|
|
988
|
+
case ImportDecl: {
|
|
989
|
+
return {
|
|
990
|
+
name: ImportDecl,
|
|
991
|
+
properties: [
|
|
992
|
+
{ name: 'imports', defaultValue: [] },
|
|
993
|
+
{ name: 'path' }
|
|
994
|
+
]
|
|
995
|
+
};
|
|
996
|
+
}
|
|
997
|
+
case ImportItem: {
|
|
998
|
+
return {
|
|
999
|
+
name: ImportItem,
|
|
1000
|
+
properties: [
|
|
1001
|
+
{ name: 'name' }
|
|
1002
|
+
]
|
|
1003
|
+
};
|
|
1004
|
+
}
|
|
1005
|
+
case InputStmt: {
|
|
1006
|
+
return {
|
|
1007
|
+
name: InputStmt,
|
|
1008
|
+
properties: [
|
|
1009
|
+
{ name: 'ref' },
|
|
1010
|
+
{ name: 'type' }
|
|
1011
|
+
]
|
|
1012
|
+
};
|
|
1013
|
+
}
|
|
1014
|
+
case KeyValueAnnotationBlockItem: {
|
|
1015
|
+
return {
|
|
1016
|
+
name: KeyValueAnnotationBlockItem,
|
|
1017
|
+
properties: [
|
|
1018
|
+
{ name: 'key' },
|
|
1019
|
+
{ name: 'value' }
|
|
1020
|
+
]
|
|
1021
|
+
};
|
|
1022
|
+
}
|
|
1023
|
+
case KeywordAnnotationValue: {
|
|
1024
|
+
return {
|
|
1025
|
+
name: KeywordAnnotationValue,
|
|
1026
|
+
properties: [
|
|
1027
|
+
{ name: 'value' }
|
|
1028
|
+
]
|
|
1029
|
+
};
|
|
1030
|
+
}
|
|
1031
|
+
case LegendStmt: {
|
|
1032
|
+
return {
|
|
1033
|
+
name: LegendStmt,
|
|
1034
|
+
properties: [
|
|
1035
|
+
{ name: 'value' }
|
|
1036
|
+
]
|
|
1037
|
+
};
|
|
1038
|
+
}
|
|
1039
|
+
case NamedAnnotationArg: {
|
|
1040
|
+
return {
|
|
1041
|
+
name: NamedAnnotationArg,
|
|
1042
|
+
properties: [
|
|
1043
|
+
{ name: 'key' },
|
|
1044
|
+
{ name: 'value' }
|
|
1045
|
+
]
|
|
1046
|
+
};
|
|
1047
|
+
}
|
|
1048
|
+
case NameStmt: {
|
|
1049
|
+
return {
|
|
1050
|
+
name: NameStmt,
|
|
1051
|
+
properties: [
|
|
1052
|
+
{ name: 'value' }
|
|
1053
|
+
]
|
|
1054
|
+
};
|
|
1055
|
+
}
|
|
1056
|
+
case NumberAnnotationValue: {
|
|
1057
|
+
return {
|
|
1058
|
+
name: NumberAnnotationValue,
|
|
1059
|
+
properties: [
|
|
1060
|
+
{ name: 'value' }
|
|
1061
|
+
]
|
|
1062
|
+
};
|
|
1063
|
+
}
|
|
1064
|
+
case OutputStmt: {
|
|
1065
|
+
return {
|
|
1066
|
+
name: OutputStmt,
|
|
1067
|
+
properties: [
|
|
1068
|
+
{ name: 'contract' },
|
|
1069
|
+
{ name: 'name' },
|
|
1070
|
+
{ name: 'type' }
|
|
1071
|
+
]
|
|
1072
|
+
};
|
|
1073
|
+
}
|
|
1074
|
+
case OwnerStmt: {
|
|
1075
|
+
return {
|
|
1076
|
+
name: OwnerStmt,
|
|
1077
|
+
properties: [
|
|
1078
|
+
{ name: 'ownerRef' }
|
|
1079
|
+
]
|
|
1080
|
+
};
|
|
1081
|
+
}
|
|
1082
|
+
case OwnsStmt: {
|
|
1083
|
+
return {
|
|
1084
|
+
name: OwnsStmt,
|
|
1085
|
+
properties: [
|
|
1086
|
+
{ name: 'resourceName' },
|
|
1087
|
+
{ name: 'resourceType' }
|
|
1088
|
+
]
|
|
1089
|
+
};
|
|
1090
|
+
}
|
|
1091
|
+
case ParameterDecl: {
|
|
1092
|
+
return {
|
|
1093
|
+
name: ParameterDecl,
|
|
1094
|
+
properties: [
|
|
1095
|
+
{ name: 'name' },
|
|
1096
|
+
{ name: 'props', defaultValue: [] }
|
|
1097
|
+
]
|
|
1098
|
+
};
|
|
1099
|
+
}
|
|
1100
|
+
case ParameterDefaultProp: {
|
|
1101
|
+
return {
|
|
1102
|
+
name: ParameterDefaultProp,
|
|
1103
|
+
properties: [
|
|
1104
|
+
{ name: 'value' }
|
|
1105
|
+
]
|
|
1106
|
+
};
|
|
1107
|
+
}
|
|
1108
|
+
case ParameterDescriptionProp: {
|
|
1109
|
+
return {
|
|
1110
|
+
name: ParameterDescriptionProp,
|
|
1111
|
+
properties: [
|
|
1112
|
+
{ name: 'value' }
|
|
1113
|
+
]
|
|
1114
|
+
};
|
|
1115
|
+
}
|
|
1116
|
+
case ParameterEnumProp: {
|
|
1117
|
+
return {
|
|
1118
|
+
name: ParameterEnumProp,
|
|
1119
|
+
properties: [
|
|
1120
|
+
{ name: 'value' }
|
|
1121
|
+
]
|
|
1122
|
+
};
|
|
1123
|
+
}
|
|
1124
|
+
case ParameterExamplesProp: {
|
|
1125
|
+
return {
|
|
1126
|
+
name: ParameterExamplesProp,
|
|
1127
|
+
properties: [
|
|
1128
|
+
{ name: 'value' }
|
|
1129
|
+
]
|
|
1130
|
+
};
|
|
1131
|
+
}
|
|
1132
|
+
case PositionalAnnotationArg: {
|
|
1133
|
+
return {
|
|
1134
|
+
name: PositionalAnnotationArg,
|
|
1135
|
+
properties: [
|
|
1136
|
+
{ name: 'value' }
|
|
1137
|
+
]
|
|
1138
|
+
};
|
|
1139
|
+
}
|
|
1140
|
+
case Program: {
|
|
1141
|
+
return {
|
|
1142
|
+
name: Program,
|
|
1143
|
+
properties: [
|
|
1144
|
+
{ name: 'definitions', defaultValue: [] },
|
|
1145
|
+
{ name: 'imports', defaultValue: [] }
|
|
1146
|
+
]
|
|
1147
|
+
};
|
|
1148
|
+
}
|
|
1149
|
+
case ProtocolStmt: {
|
|
1150
|
+
return {
|
|
1151
|
+
name: ProtocolStmt,
|
|
1152
|
+
properties: [
|
|
1153
|
+
{ name: 'value' }
|
|
1154
|
+
]
|
|
1155
|
+
};
|
|
1156
|
+
}
|
|
1157
|
+
case QueryDef: {
|
|
1158
|
+
return {
|
|
1159
|
+
name: QueryDef,
|
|
1160
|
+
properties: [
|
|
1161
|
+
{ name: 'body', defaultValue: [] },
|
|
1162
|
+
{ name: 'name' }
|
|
1163
|
+
]
|
|
1164
|
+
};
|
|
1165
|
+
}
|
|
1166
|
+
case ReadsFromStmt: {
|
|
1167
|
+
return {
|
|
1168
|
+
name: ReadsFromStmt,
|
|
1169
|
+
properties: [
|
|
1170
|
+
{ name: 'ref' }
|
|
1171
|
+
]
|
|
1172
|
+
};
|
|
1173
|
+
}
|
|
1174
|
+
case ReceivesStmt: {
|
|
1175
|
+
return {
|
|
1176
|
+
name: ReceivesStmt,
|
|
1177
|
+
properties: [
|
|
1178
|
+
{ name: 'body', defaultValue: [] },
|
|
1179
|
+
{ name: 'channelClause' },
|
|
1180
|
+
{ name: 'messageName' },
|
|
1181
|
+
{ name: 'messageType' },
|
|
1182
|
+
{ name: 'version' }
|
|
1183
|
+
]
|
|
1184
|
+
};
|
|
1185
|
+
}
|
|
1186
|
+
case ResidencyStmt: {
|
|
1187
|
+
return {
|
|
1188
|
+
name: ResidencyStmt,
|
|
1189
|
+
properties: [
|
|
1190
|
+
{ name: 'value' }
|
|
1191
|
+
]
|
|
1192
|
+
};
|
|
1193
|
+
}
|
|
1194
|
+
case ResourceAnnotationBlockItem: {
|
|
1195
|
+
return {
|
|
1196
|
+
name: ResourceAnnotationBlockItem,
|
|
1197
|
+
properties: [
|
|
1198
|
+
{ name: 'resourceName' },
|
|
1199
|
+
{ name: 'resourceType' },
|
|
1200
|
+
{ name: 'version' }
|
|
1201
|
+
]
|
|
1202
|
+
};
|
|
1203
|
+
}
|
|
1204
|
+
case ResourceRef: {
|
|
1205
|
+
return {
|
|
1206
|
+
name: ResourceRef,
|
|
1207
|
+
properties: [
|
|
1208
|
+
{ name: 'name' },
|
|
1209
|
+
{ name: 'version' }
|
|
1210
|
+
]
|
|
1211
|
+
};
|
|
1212
|
+
}
|
|
1213
|
+
case RetentionStmt: {
|
|
1214
|
+
return {
|
|
1215
|
+
name: RetentionStmt,
|
|
1216
|
+
properties: [
|
|
1217
|
+
{ name: 'value' }
|
|
1218
|
+
]
|
|
1219
|
+
};
|
|
1220
|
+
}
|
|
1221
|
+
case RouteStmt: {
|
|
1222
|
+
return {
|
|
1223
|
+
name: RouteStmt,
|
|
1224
|
+
properties: [
|
|
1225
|
+
{ name: 'ref' }
|
|
1226
|
+
]
|
|
1227
|
+
};
|
|
1228
|
+
}
|
|
1229
|
+
case SchemaStmt: {
|
|
1230
|
+
return {
|
|
1231
|
+
name: SchemaStmt,
|
|
1232
|
+
properties: [
|
|
1233
|
+
{ name: 'value' }
|
|
1234
|
+
]
|
|
1235
|
+
};
|
|
1236
|
+
}
|
|
1237
|
+
case SearchStmt: {
|
|
1238
|
+
return {
|
|
1239
|
+
name: SearchStmt,
|
|
1240
|
+
properties: [
|
|
1241
|
+
{ name: 'value' }
|
|
1242
|
+
]
|
|
1243
|
+
};
|
|
1244
|
+
}
|
|
1245
|
+
case SendsStmt: {
|
|
1246
|
+
return {
|
|
1247
|
+
name: SendsStmt,
|
|
1248
|
+
properties: [
|
|
1249
|
+
{ name: 'body', defaultValue: [] },
|
|
1250
|
+
{ name: 'channelClause' },
|
|
1251
|
+
{ name: 'messageName' },
|
|
1252
|
+
{ name: 'messageType' },
|
|
1253
|
+
{ name: 'version' }
|
|
1254
|
+
]
|
|
1255
|
+
};
|
|
1256
|
+
}
|
|
1257
|
+
case ServiceDef: {
|
|
1258
|
+
return {
|
|
1259
|
+
name: ServiceDef,
|
|
1260
|
+
properties: [
|
|
1261
|
+
{ name: 'body', defaultValue: [] },
|
|
1262
|
+
{ name: 'name' }
|
|
1263
|
+
]
|
|
1264
|
+
};
|
|
1265
|
+
}
|
|
1266
|
+
case ServiceRefStmt: {
|
|
1267
|
+
return {
|
|
1268
|
+
name: ServiceRefStmt,
|
|
1269
|
+
properties: [
|
|
1270
|
+
{ name: 'ref' }
|
|
1271
|
+
]
|
|
1272
|
+
};
|
|
1273
|
+
}
|
|
1274
|
+
case StringAnnotationValue: {
|
|
1275
|
+
return {
|
|
1276
|
+
name: StringAnnotationValue,
|
|
1277
|
+
properties: [
|
|
1278
|
+
{ name: 'value' }
|
|
1279
|
+
]
|
|
1280
|
+
};
|
|
1281
|
+
}
|
|
1282
|
+
case StringArray: {
|
|
1283
|
+
return {
|
|
1284
|
+
name: StringArray,
|
|
1285
|
+
properties: [
|
|
1286
|
+
{ name: 'items', defaultValue: [] }
|
|
1287
|
+
]
|
|
1288
|
+
};
|
|
1289
|
+
}
|
|
1290
|
+
case StyleStmt: {
|
|
1291
|
+
return {
|
|
1292
|
+
name: StyleStmt,
|
|
1293
|
+
properties: [
|
|
1294
|
+
{ name: 'value' }
|
|
1295
|
+
]
|
|
1296
|
+
};
|
|
1297
|
+
}
|
|
1298
|
+
case SubdomainDef: {
|
|
1299
|
+
return {
|
|
1300
|
+
name: SubdomainDef,
|
|
1301
|
+
properties: [
|
|
1302
|
+
{ name: 'body', defaultValue: [] },
|
|
1303
|
+
{ name: 'name' }
|
|
1304
|
+
]
|
|
1305
|
+
};
|
|
1306
|
+
}
|
|
1307
|
+
case SummaryStmt: {
|
|
1308
|
+
return {
|
|
1309
|
+
name: SummaryStmt,
|
|
1310
|
+
properties: [
|
|
1311
|
+
{ name: 'value' }
|
|
1312
|
+
]
|
|
1313
|
+
};
|
|
1314
|
+
}
|
|
1315
|
+
case TeamAnnotationProp: {
|
|
1316
|
+
return {
|
|
1317
|
+
name: TeamAnnotationProp,
|
|
1318
|
+
properties: [
|
|
1319
|
+
{ name: 'annotation' }
|
|
1320
|
+
]
|
|
1321
|
+
};
|
|
1322
|
+
}
|
|
1323
|
+
case TeamDef: {
|
|
1324
|
+
return {
|
|
1325
|
+
name: TeamDef,
|
|
1326
|
+
properties: [
|
|
1327
|
+
{ name: 'name' },
|
|
1328
|
+
{ name: 'props', defaultValue: [] }
|
|
1329
|
+
]
|
|
1330
|
+
};
|
|
1331
|
+
}
|
|
1332
|
+
case TeamEmailProp: {
|
|
1333
|
+
return {
|
|
1334
|
+
name: TeamEmailProp,
|
|
1335
|
+
properties: [
|
|
1336
|
+
{ name: 'value' }
|
|
1337
|
+
]
|
|
1338
|
+
};
|
|
1339
|
+
}
|
|
1340
|
+
case TeamMemberProp: {
|
|
1341
|
+
return {
|
|
1342
|
+
name: TeamMemberProp,
|
|
1343
|
+
properties: [
|
|
1344
|
+
{ name: 'memberRef' }
|
|
1345
|
+
]
|
|
1346
|
+
};
|
|
1347
|
+
}
|
|
1348
|
+
case TeamMsTeamsProp: {
|
|
1349
|
+
return {
|
|
1350
|
+
name: TeamMsTeamsProp,
|
|
1351
|
+
properties: [
|
|
1352
|
+
{ name: 'value' }
|
|
1353
|
+
]
|
|
1354
|
+
};
|
|
1355
|
+
}
|
|
1356
|
+
case TeamNameProp: {
|
|
1357
|
+
return {
|
|
1358
|
+
name: TeamNameProp,
|
|
1359
|
+
properties: [
|
|
1360
|
+
{ name: 'value' }
|
|
1361
|
+
]
|
|
1362
|
+
};
|
|
1363
|
+
}
|
|
1364
|
+
case TeamOwnsProp: {
|
|
1365
|
+
return {
|
|
1366
|
+
name: TeamOwnsProp,
|
|
1367
|
+
properties: [
|
|
1368
|
+
{ name: 'owns' }
|
|
1369
|
+
]
|
|
1370
|
+
};
|
|
1371
|
+
}
|
|
1372
|
+
case TeamSlackProp: {
|
|
1373
|
+
return {
|
|
1374
|
+
name: TeamSlackProp,
|
|
1375
|
+
properties: [
|
|
1376
|
+
{ name: 'value' }
|
|
1377
|
+
]
|
|
1378
|
+
};
|
|
1379
|
+
}
|
|
1380
|
+
case TeamSummaryProp: {
|
|
1381
|
+
return {
|
|
1382
|
+
name: TeamSummaryProp,
|
|
1383
|
+
properties: [
|
|
1384
|
+
{ name: 'value' }
|
|
1385
|
+
]
|
|
1386
|
+
};
|
|
1387
|
+
}
|
|
1388
|
+
case TechnologyStmt: {
|
|
1389
|
+
return {
|
|
1390
|
+
name: TechnologyStmt,
|
|
1391
|
+
properties: [
|
|
1392
|
+
{ name: 'value' }
|
|
1393
|
+
]
|
|
1394
|
+
};
|
|
1395
|
+
}
|
|
1396
|
+
case ToClause: {
|
|
1397
|
+
return {
|
|
1398
|
+
name: ToClause,
|
|
1399
|
+
properties: [
|
|
1400
|
+
{ name: 'channels', defaultValue: [] },
|
|
1401
|
+
{ name: 'deliveryMode' }
|
|
1402
|
+
]
|
|
1403
|
+
};
|
|
1404
|
+
}
|
|
1405
|
+
case ToolbarStmt: {
|
|
1406
|
+
return {
|
|
1407
|
+
name: ToolbarStmt,
|
|
1408
|
+
properties: [
|
|
1409
|
+
{ name: 'value' }
|
|
1410
|
+
]
|
|
1411
|
+
};
|
|
1412
|
+
}
|
|
1413
|
+
case UserAnnotationProp: {
|
|
1414
|
+
return {
|
|
1415
|
+
name: UserAnnotationProp,
|
|
1416
|
+
properties: [
|
|
1417
|
+
{ name: 'annotation' }
|
|
1418
|
+
]
|
|
1419
|
+
};
|
|
1420
|
+
}
|
|
1421
|
+
case UserAvatarProp: {
|
|
1422
|
+
return {
|
|
1423
|
+
name: UserAvatarProp,
|
|
1424
|
+
properties: [
|
|
1425
|
+
{ name: 'value' }
|
|
1426
|
+
]
|
|
1427
|
+
};
|
|
1428
|
+
}
|
|
1429
|
+
case UserDef: {
|
|
1430
|
+
return {
|
|
1431
|
+
name: UserDef,
|
|
1432
|
+
properties: [
|
|
1433
|
+
{ name: 'name' },
|
|
1434
|
+
{ name: 'props', defaultValue: [] }
|
|
1435
|
+
]
|
|
1436
|
+
};
|
|
1437
|
+
}
|
|
1438
|
+
case UserEmailProp: {
|
|
1439
|
+
return {
|
|
1440
|
+
name: UserEmailProp,
|
|
1441
|
+
properties: [
|
|
1442
|
+
{ name: 'value' }
|
|
1443
|
+
]
|
|
1444
|
+
};
|
|
1445
|
+
}
|
|
1446
|
+
case UserMsTeamsProp: {
|
|
1447
|
+
return {
|
|
1448
|
+
name: UserMsTeamsProp,
|
|
1449
|
+
properties: [
|
|
1450
|
+
{ name: 'value' }
|
|
1451
|
+
]
|
|
1452
|
+
};
|
|
1453
|
+
}
|
|
1454
|
+
case UserNameProp: {
|
|
1455
|
+
return {
|
|
1456
|
+
name: UserNameProp,
|
|
1457
|
+
properties: [
|
|
1458
|
+
{ name: 'value' }
|
|
1459
|
+
]
|
|
1460
|
+
};
|
|
1461
|
+
}
|
|
1462
|
+
case UserOwnsProp: {
|
|
1463
|
+
return {
|
|
1464
|
+
name: UserOwnsProp,
|
|
1465
|
+
properties: [
|
|
1466
|
+
{ name: 'owns' }
|
|
1467
|
+
]
|
|
1468
|
+
};
|
|
1469
|
+
}
|
|
1470
|
+
case UserRoleProp: {
|
|
1471
|
+
return {
|
|
1472
|
+
name: UserRoleProp,
|
|
1473
|
+
properties: [
|
|
1474
|
+
{ name: 'value' }
|
|
1475
|
+
]
|
|
1476
|
+
};
|
|
1477
|
+
}
|
|
1478
|
+
case UserSlackProp: {
|
|
1479
|
+
return {
|
|
1480
|
+
name: UserSlackProp,
|
|
1481
|
+
properties: [
|
|
1482
|
+
{ name: 'value' }
|
|
1483
|
+
]
|
|
1484
|
+
};
|
|
1485
|
+
}
|
|
1486
|
+
case UserTeamProp: {
|
|
1487
|
+
return {
|
|
1488
|
+
name: UserTeamProp,
|
|
1489
|
+
properties: [
|
|
1490
|
+
{ name: 'teamRef' }
|
|
1491
|
+
]
|
|
1492
|
+
};
|
|
1493
|
+
}
|
|
1494
|
+
case VersionAnnotationValue: {
|
|
1495
|
+
return {
|
|
1496
|
+
name: VersionAnnotationValue,
|
|
1497
|
+
properties: [
|
|
1498
|
+
{ name: 'value' }
|
|
1499
|
+
]
|
|
1500
|
+
};
|
|
1501
|
+
}
|
|
1502
|
+
case VersionStmt: {
|
|
1503
|
+
return {
|
|
1504
|
+
name: VersionStmt,
|
|
1505
|
+
properties: [
|
|
1506
|
+
{ name: 'value' }
|
|
1507
|
+
]
|
|
1508
|
+
};
|
|
1509
|
+
}
|
|
1510
|
+
case VisualizerDef: {
|
|
1511
|
+
return {
|
|
1512
|
+
name: VisualizerDef,
|
|
1513
|
+
properties: [
|
|
1514
|
+
{ name: 'body', defaultValue: [] },
|
|
1515
|
+
{ name: 'name' }
|
|
1516
|
+
]
|
|
1517
|
+
};
|
|
1518
|
+
}
|
|
1519
|
+
case WritesToStmt: {
|
|
1520
|
+
return {
|
|
1521
|
+
name: WritesToStmt,
|
|
1522
|
+
properties: [
|
|
1523
|
+
{ name: 'ref' }
|
|
1524
|
+
]
|
|
1525
|
+
};
|
|
1526
|
+
}
|
|
1527
|
+
default: {
|
|
1528
|
+
return {
|
|
1529
|
+
name: type,
|
|
1530
|
+
properties: []
|
|
1531
|
+
};
|
|
1532
|
+
}
|
|
1533
|
+
}
|
|
1534
|
+
}
|
|
1535
|
+
}
|
|
1536
|
+
export const reflection = new EcAstReflection();
|
|
1537
|
+
//# sourceMappingURL=ast.js.map
|