@likec4/language-server 1.21.0 → 1.22.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 +4 -1
- package/bin/likec4-language-server.mjs +5 -2
- package/dist/LikeC4FileSystem.js +2 -2
- package/dist/browser.d.ts +3 -3
- package/dist/browser.js +17 -2
- package/dist/bundled.d.ts +8 -0
- package/dist/bundled.js +25 -0
- package/dist/bundled.mjs +2587 -4306
- package/dist/generated-lib/icons.js +1 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +23 -2
- package/dist/logger.d.ts +9 -3
- package/dist/logger.js +35 -55
- package/dist/model/fqn-computation.js +2 -2
- package/dist/model/model-builder.js +13 -14
- package/dist/model-change/ModelChanges.js +2 -2
- package/dist/module.js +1 -4
- package/dist/references/scope-provider.js +3 -3
- package/dist/view-utils/manual-layout.js +2 -2
- package/dist/views/configurable-layouter.js +4 -4
- package/dist/views/likec4-views.d.ts +2 -1
- package/dist/views/likec4-views.js +2 -2
- package/package.json +14 -14
- package/dist/test/setup.d.ts +0 -1
- package/dist/test/setup.js +0 -7
- package/src/LikeC4FileSystem.ts +0 -38
- package/src/Rpc.ts +0 -134
- package/src/ast.ts +0 -556
- package/src/browser.ts +0 -35
- package/src/documentation/documentation-provider.ts +0 -52
- package/src/documentation/index.ts +0 -1
- package/src/formatting/LikeC4Formatter.ts +0 -639
- package/src/formatting/utils.ts +0 -26
- package/src/generated/ast.ts +0 -3735
- package/src/generated/grammar.ts +0 -10
- package/src/generated/module.ts +0 -33
- package/src/generated-lib/icons.ts +0 -1537
- package/src/index.ts +0 -30
- package/src/like-c4.langium +0 -901
- package/src/likec4lib.ts +0 -6
- package/src/logger.ts +0 -80
- package/src/lsp/CodeLensProvider.ts +0 -50
- package/src/lsp/CompletionProvider.ts +0 -147
- package/src/lsp/DocumentHighlightProvider.ts +0 -12
- package/src/lsp/DocumentLinkProvider.ts +0 -65
- package/src/lsp/DocumentSymbolProvider.ts +0 -313
- package/src/lsp/HoverProvider.ts +0 -92
- package/src/lsp/RenameProvider.ts +0 -8
- package/src/lsp/SemanticTokenProvider.ts +0 -383
- package/src/lsp/index.ts +0 -8
- package/src/model/deployments-index.ts +0 -209
- package/src/model/fqn-computation.ts +0 -83
- package/src/model/fqn-index.ts +0 -138
- package/src/model/index.ts +0 -6
- package/src/model/model-builder.ts +0 -724
- package/src/model/model-locator.ts +0 -146
- package/src/model/model-parser-where.ts +0 -84
- package/src/model/model-parser.ts +0 -86
- package/src/model/parser/Base.ts +0 -113
- package/src/model/parser/DeploymentModelParser.ts +0 -192
- package/src/model/parser/DeploymentViewParser.ts +0 -122
- package/src/model/parser/FqnRefParser.ts +0 -143
- package/src/model/parser/GlobalsParser.ts +0 -96
- package/src/model/parser/ModelParser.ts +0 -170
- package/src/model/parser/PredicatesParser.ts +0 -315
- package/src/model/parser/SpecificationParser.ts +0 -133
- package/src/model/parser/ViewsParser.ts +0 -428
- package/src/model-change/ModelChanges.ts +0 -101
- package/src/model-change/changeElementStyle.ts +0 -172
- package/src/model-change/changeViewLayout.ts +0 -47
- package/src/model-change/saveManualLayout.ts +0 -41
- package/src/module.ts +0 -255
- package/src/protocol.ts +0 -93
- package/src/references/index.ts +0 -3
- package/src/references/name-provider.ts +0 -37
- package/src/references/scope-computation.ts +0 -364
- package/src/references/scope-provider.ts +0 -201
- package/src/shared/NodeKindProvider.ts +0 -121
- package/src/shared/WorkspaceManager.ts +0 -48
- package/src/shared/WorkspaceSymbolProvider.ts +0 -3
- package/src/shared/index.ts +0 -3
- package/src/test/index.ts +0 -1
- package/src/test/setup.ts +0 -8
- package/src/test/testServices.ts +0 -152
- package/src/utils/disposable.ts +0 -30
- package/src/utils/elementRef.ts +0 -26
- package/src/utils/fqnRef.ts +0 -56
- package/src/utils/index.ts +0 -2
- package/src/utils/printDocs.ts +0 -3
- package/src/utils/stringHash.ts +0 -6
- package/src/validation/_shared.ts +0 -29
- package/src/validation/deployment-checks.ts +0 -131
- package/src/validation/dynamic-view-rule.ts +0 -23
- package/src/validation/dynamic-view-step.ts +0 -36
- package/src/validation/element.ts +0 -56
- package/src/validation/index.ts +0 -171
- package/src/validation/property-checks.ts +0 -52
- package/src/validation/relation.ts +0 -63
- package/src/validation/specification.ts +0 -205
- package/src/validation/view-predicates/element-with.ts +0 -36
- package/src/validation/view-predicates/expanded-element.ts +0 -16
- package/src/validation/view-predicates/expression-v2.ts +0 -101
- package/src/validation/view-predicates/incoming.ts +0 -20
- package/src/validation/view-predicates/index.ts +0 -6
- package/src/validation/view-predicates/outgoing.ts +0 -20
- package/src/validation/view-predicates/relation-with.ts +0 -17
- package/src/validation/view.ts +0 -37
- package/src/view-utils/assignNavigateTo.ts +0 -31
- package/src/view-utils/index.ts +0 -2
- package/src/view-utils/manual-layout.ts +0 -116
- package/src/view-utils/resolve-relative-paths.ts +0 -90
- package/src/views/configurable-layouter.ts +0 -65
- package/src/views/index.ts +0 -1
- package/src/views/likec4-views.ts +0 -139
package/src/generated/ast.ts
DELETED
|
@@ -1,3735 +0,0 @@
|
|
|
1
|
-
/******************************************************************************
|
|
2
|
-
* This file was generated by langium-cli 3.3.0.
|
|
3
|
-
* DO NOT EDIT MANUALLY!
|
|
4
|
-
******************************************************************************/
|
|
5
|
-
|
|
6
|
-
/* eslint-disable */
|
|
7
|
-
import type { AstNode, Reference, ReferenceInfo, TypeMetaData } from 'langium';
|
|
8
|
-
import { AbstractAstReflection } from 'langium';
|
|
9
|
-
|
|
10
|
-
export const LikeC4Terminals = {
|
|
11
|
-
BLOCK_COMMENT: /\/\*[\s\S]*?\*\//,
|
|
12
|
-
LINE_COMMENT: /\/\/[^\n\r]*/,
|
|
13
|
-
WS: /[\t ]+/,
|
|
14
|
-
NL: /[\r\n]+/,
|
|
15
|
-
LIB_ICON: /(aws|azure|gcp|tech):[-\w]*/,
|
|
16
|
-
URI_WITH_SCHEMA: /\w+:\/\/\S+/,
|
|
17
|
-
URI_RELATIVE: /\.{0,2}\/[^\/]\S+/,
|
|
18
|
-
DotUnderscore: /\b\._(?![_a-zA-Z])/,
|
|
19
|
-
DotWildcard: /\b\.\*{1,2}/,
|
|
20
|
-
Hash: /#/,
|
|
21
|
-
StickyDot: /\b\./,
|
|
22
|
-
Dot: /\./,
|
|
23
|
-
NotEqual: /\!\={1,2}/,
|
|
24
|
-
Eq: /\={1,2}/,
|
|
25
|
-
Percent: /\b\d+%/,
|
|
26
|
-
String: /"[^"]*"|'[^']*'/,
|
|
27
|
-
IdTerminal: /[_]*[a-zA-Z][-\w]*/,
|
|
28
|
-
Number: /\b\d+\b/,
|
|
29
|
-
Hex: /\b[a-zA-Z0-9]+\b/,
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
export type LikeC4TerminalNames = keyof typeof LikeC4Terminals;
|
|
33
|
-
|
|
34
|
-
export type LikeC4KeywordNames =
|
|
35
|
-
| "("
|
|
36
|
-
| ")"
|
|
37
|
-
| "*"
|
|
38
|
-
| ","
|
|
39
|
-
| "->"
|
|
40
|
-
| "-["
|
|
41
|
-
| ":"
|
|
42
|
-
| ";"
|
|
43
|
-
| "<-"
|
|
44
|
-
| "<->"
|
|
45
|
-
| "BottomTop"
|
|
46
|
-
| "LeftRight"
|
|
47
|
-
| "RightLeft"
|
|
48
|
-
| "TopBottom"
|
|
49
|
-
| "]->"
|
|
50
|
-
| "amber"
|
|
51
|
-
| "and"
|
|
52
|
-
| "autoLayout"
|
|
53
|
-
| "blue"
|
|
54
|
-
| "border"
|
|
55
|
-
| "browser"
|
|
56
|
-
| "color"
|
|
57
|
-
| "crow"
|
|
58
|
-
| "cylinder"
|
|
59
|
-
| "dashed"
|
|
60
|
-
| "deployment"
|
|
61
|
-
| "deploymentNode"
|
|
62
|
-
| "description"
|
|
63
|
-
| "diamond"
|
|
64
|
-
| "dot"
|
|
65
|
-
| "dotted"
|
|
66
|
-
| "dynamic"
|
|
67
|
-
| "dynamicPredicateGroup"
|
|
68
|
-
| "element"
|
|
69
|
-
| "element.kind"
|
|
70
|
-
| "element.tag"
|
|
71
|
-
| "exclude"
|
|
72
|
-
| "extend"
|
|
73
|
-
| "extends"
|
|
74
|
-
| "false"
|
|
75
|
-
| "global"
|
|
76
|
-
| "gray"
|
|
77
|
-
| "green"
|
|
78
|
-
| "group"
|
|
79
|
-
| "head"
|
|
80
|
-
| "icon"
|
|
81
|
-
| "icons"
|
|
82
|
-
| "include"
|
|
83
|
-
| "indigo"
|
|
84
|
-
| "instance"
|
|
85
|
-
| "instanceOf"
|
|
86
|
-
| "is"
|
|
87
|
-
| "kind"
|
|
88
|
-
| "large"
|
|
89
|
-
| "lg"
|
|
90
|
-
| "likec4lib"
|
|
91
|
-
| "line"
|
|
92
|
-
| "link"
|
|
93
|
-
| "md"
|
|
94
|
-
| "medium"
|
|
95
|
-
| "metadata"
|
|
96
|
-
| "mobile"
|
|
97
|
-
| "model"
|
|
98
|
-
| "multiple"
|
|
99
|
-
| "muted"
|
|
100
|
-
| "navigateTo"
|
|
101
|
-
| "node"
|
|
102
|
-
| "none"
|
|
103
|
-
| "normal"
|
|
104
|
-
| "not"
|
|
105
|
-
| "notation"
|
|
106
|
-
| "notes"
|
|
107
|
-
| "odiamond"
|
|
108
|
-
| "odot"
|
|
109
|
-
| "of"
|
|
110
|
-
| "onormal"
|
|
111
|
-
| "opacity"
|
|
112
|
-
| "open"
|
|
113
|
-
| "or"
|
|
114
|
-
| "padding"
|
|
115
|
-
| "par"
|
|
116
|
-
| "parallel"
|
|
117
|
-
| "person"
|
|
118
|
-
| "predicate"
|
|
119
|
-
| "predicateGroup"
|
|
120
|
-
| "primary"
|
|
121
|
-
| "queue"
|
|
122
|
-
| "rectangle"
|
|
123
|
-
| "red"
|
|
124
|
-
| "relationship"
|
|
125
|
-
| "secondary"
|
|
126
|
-
| "shape"
|
|
127
|
-
| "size"
|
|
128
|
-
| "sky"
|
|
129
|
-
| "slate"
|
|
130
|
-
| "sm"
|
|
131
|
-
| "small"
|
|
132
|
-
| "solid"
|
|
133
|
-
| "source"
|
|
134
|
-
| "specification"
|
|
135
|
-
| "storage"
|
|
136
|
-
| "style"
|
|
137
|
-
| "styleGroup"
|
|
138
|
-
| "tag"
|
|
139
|
-
| "tail"
|
|
140
|
-
| "target"
|
|
141
|
-
| "technology"
|
|
142
|
-
| "textSize"
|
|
143
|
-
| "title"
|
|
144
|
-
| "true"
|
|
145
|
-
| "vee"
|
|
146
|
-
| "view"
|
|
147
|
-
| "views"
|
|
148
|
-
| "where"
|
|
149
|
-
| "with"
|
|
150
|
-
| "xl"
|
|
151
|
-
| "xlarge"
|
|
152
|
-
| "xs"
|
|
153
|
-
| "xsmall"
|
|
154
|
-
| "{"
|
|
155
|
-
| "}";
|
|
156
|
-
|
|
157
|
-
export type LikeC4TokenNames = LikeC4TerminalNames | LikeC4KeywordNames;
|
|
158
|
-
|
|
159
|
-
export type ArrowType = 'crow' | 'diamond' | 'dot' | 'none' | 'normal' | 'odiamond' | 'odot' | 'onormal' | 'open' | 'vee';
|
|
160
|
-
|
|
161
|
-
export function isArrowType(item: unknown): item is ArrowType {
|
|
162
|
-
return item === 'none' || item === 'normal' || item === 'onormal' || item === 'dot' || item === 'odot' || item === 'diamond' || item === 'odiamond' || item === 'crow' || item === 'open' || item === 'vee';
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
export type Boolean = boolean;
|
|
166
|
-
|
|
167
|
-
export function isBoolean(item: unknown): item is Boolean {
|
|
168
|
-
return typeof item === 'boolean';
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
export type BorderStyleValue = 'none' | LineOptions;
|
|
172
|
-
|
|
173
|
-
export function isBorderStyleValue(item: unknown): item is BorderStyleValue {
|
|
174
|
-
return isLineOptions(item) || item === 'none';
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
export type CustomColorId = 'element' | 'model' | ArrowType | ElementShape | LineOptions | string;
|
|
178
|
-
|
|
179
|
-
export function isCustomColorId(item: unknown): item is CustomColorId {
|
|
180
|
-
return isElementShape(item) || isArrowType(item) || isLineOptions(item) || item === 'element' || item === 'model' || (typeof item === 'string' && (/[_]*[a-zA-Z][-\w]*/.test(item)));
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
export type CustomColorValue = string;
|
|
184
|
-
|
|
185
|
-
export function isCustomColorValue(item: unknown): item is CustomColorValue {
|
|
186
|
-
return typeof item === 'string';
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
export type DeploymentElement = DeployedInstance | DeploymentNode;
|
|
190
|
-
|
|
191
|
-
export const DeploymentElement = 'DeploymentElement';
|
|
192
|
-
|
|
193
|
-
export function isDeploymentElement(item: unknown): item is DeploymentElement {
|
|
194
|
-
return reflection.isInstance(item, DeploymentElement);
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
export type DeploymentNodeOrElementKind = DeploymentNodeKind | ElementKind;
|
|
198
|
-
|
|
199
|
-
export const DeploymentNodeOrElementKind = 'DeploymentNodeOrElementKind';
|
|
200
|
-
|
|
201
|
-
export function isDeploymentNodeOrElementKind(item: unknown): item is DeploymentNodeOrElementKind {
|
|
202
|
-
return reflection.isInstance(item, DeploymentNodeOrElementKind);
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
export type DeploymentViewRule = DeploymentViewRulePredicate | DeploymentViewRuleStyle | ViewRuleAutoLayout;
|
|
206
|
-
|
|
207
|
-
export const DeploymentViewRule = 'DeploymentViewRule';
|
|
208
|
-
|
|
209
|
-
export function isDeploymentViewRule(item: unknown): item is DeploymentViewRule {
|
|
210
|
-
return reflection.isInstance(item, DeploymentViewRule);
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
export type DotId = string;
|
|
214
|
-
|
|
215
|
-
export function isDotId(item: unknown): item is DotId {
|
|
216
|
-
return typeof item === 'string';
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
export type DynamicViewRule = DynamicViewGlobalPredicateRef | DynamicViewIncludePredicate | ViewRuleAutoLayout | ViewRuleStyleOrGlobalRef;
|
|
220
|
-
|
|
221
|
-
export const DynamicViewRule = 'DynamicViewRule';
|
|
222
|
-
|
|
223
|
-
export function isDynamicViewRule(item: unknown): item is DynamicViewRule {
|
|
224
|
-
return reflection.isInstance(item, DynamicViewRule);
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
export type ElementExpression = ElementDescedantsExpression | ElementKindExpression | ElementRef | ElementTagExpression | ExpandElementExpression | WildcardExpression;
|
|
228
|
-
|
|
229
|
-
export const ElementExpression = 'ElementExpression';
|
|
230
|
-
|
|
231
|
-
export function isElementExpression(item: unknown): item is ElementExpression {
|
|
232
|
-
return reflection.isInstance(item, ElementExpression);
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
export type ElementPredicate = ElementPredicateOrWhere | ElementPredicateWith;
|
|
236
|
-
|
|
237
|
-
export const ElementPredicate = 'ElementPredicate';
|
|
238
|
-
|
|
239
|
-
export function isElementPredicate(item: unknown): item is ElementPredicate {
|
|
240
|
-
return reflection.isInstance(item, ElementPredicate);
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
export type ElementPredicateOrWhere = ElementExpression | ElementPredicateWhere;
|
|
244
|
-
|
|
245
|
-
export const ElementPredicateOrWhere = 'ElementPredicateOrWhere';
|
|
246
|
-
|
|
247
|
-
export function isElementPredicateOrWhere(item: unknown): item is ElementPredicateOrWhere {
|
|
248
|
-
return reflection.isInstance(item, ElementPredicateOrWhere);
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
export type ElementPredicateOrWhereV2 = ElementPredicateWhereV2 | FqnExpr;
|
|
252
|
-
|
|
253
|
-
export const ElementPredicateOrWhereV2 = 'ElementPredicateOrWhereV2';
|
|
254
|
-
|
|
255
|
-
export function isElementPredicateOrWhereV2(item: unknown): item is ElementPredicateOrWhereV2 {
|
|
256
|
-
return reflection.isInstance(item, ElementPredicateOrWhereV2);
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
export type ElementProperty = ElementStringProperty | ElementStyleProperty | IconProperty | LinkProperty | MetadataProperty;
|
|
260
|
-
|
|
261
|
-
export const ElementProperty = 'ElementProperty';
|
|
262
|
-
|
|
263
|
-
export function isElementProperty(item: unknown): item is ElementProperty {
|
|
264
|
-
return reflection.isInstance(item, ElementProperty);
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
export type ElementShape = 'browser' | 'cylinder' | 'mobile' | 'person' | 'queue' | 'rectangle' | 'storage';
|
|
268
|
-
|
|
269
|
-
export function isElementShape(item: unknown): item is ElementShape {
|
|
270
|
-
return item === 'rectangle' || item === 'person' || item === 'browser' || item === 'mobile' || item === 'cylinder' || item === 'storage' || item === 'queue';
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
export type ExpressionV2 = ElementPredicateOrWhereV2 | RelationPredicateOrWhereV2;
|
|
274
|
-
|
|
275
|
-
export const ExpressionV2 = 'ExpressionV2';
|
|
276
|
-
|
|
277
|
-
export function isExpressionV2(item: unknown): item is ExpressionV2 {
|
|
278
|
-
return reflection.isInstance(item, ExpressionV2);
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
export type ExtendElementProperty = LinkProperty | MetadataProperty;
|
|
282
|
-
|
|
283
|
-
export const ExtendElementProperty = 'ExtendElementProperty';
|
|
284
|
-
|
|
285
|
-
export function isExtendElementProperty(item: unknown): item is ExtendElementProperty {
|
|
286
|
-
return reflection.isInstance(item, ExtendElementProperty);
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
export type FqnExpr = FqnRefExpr | WildcardExpression;
|
|
290
|
-
|
|
291
|
-
export const FqnExpr = 'FqnExpr';
|
|
292
|
-
|
|
293
|
-
export function isFqnExpr(item: unknown): item is FqnExpr {
|
|
294
|
-
return reflection.isInstance(item, FqnExpr);
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
export type FqnReferenceable = Element | ExtendElement | Referenceable;
|
|
298
|
-
|
|
299
|
-
export const FqnReferenceable = 'FqnReferenceable';
|
|
300
|
-
|
|
301
|
-
export function isFqnReferenceable(item: unknown): item is FqnReferenceable {
|
|
302
|
-
return reflection.isInstance(item, FqnReferenceable);
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
export type IconId = string;
|
|
306
|
-
|
|
307
|
-
export function isIconId(item: unknown): item is IconId {
|
|
308
|
-
return (typeof item === 'string' && (/(aws|azure|gcp|tech):[-\w]*/.test(item)));
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
export type Id = 'deployment' | 'element' | 'group' | 'instance' | 'model' | 'node' | ArrowType | ElementShape | LineOptions | Participant | SizeValue | ThemeColor | string;
|
|
312
|
-
|
|
313
|
-
export function isId(item: unknown): item is Id {
|
|
314
|
-
return isElementShape(item) || isThemeColor(item) || isArrowType(item) || isLineOptions(item) || isParticipant(item) || isSizeValue(item) || item === 'element' || item === 'model' || item === 'group' || item === 'node' || item === 'deployment' || item === 'instance' || (typeof item === 'string' && (/[_]*[a-zA-Z][-\w]*/.test(item)));
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
export type LikeC4View = DeploymentView | DynamicView | ElementView;
|
|
318
|
-
|
|
319
|
-
export const LikeC4View = 'LikeC4View';
|
|
320
|
-
|
|
321
|
-
export function isLikeC4View(item: unknown): item is LikeC4View {
|
|
322
|
-
return reflection.isInstance(item, LikeC4View);
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
export type LineOptions = 'dashed' | 'dotted' | 'solid';
|
|
326
|
-
|
|
327
|
-
export function isLineOptions(item: unknown): item is LineOptions {
|
|
328
|
-
return item === 'solid' || item === 'dashed' || item === 'dotted';
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
export type MetadataProperty = MetadataBody;
|
|
332
|
-
|
|
333
|
-
export const MetadataProperty = 'MetadataProperty';
|
|
334
|
-
|
|
335
|
-
export function isMetadataProperty(item: unknown): item is MetadataProperty {
|
|
336
|
-
return reflection.isInstance(item, MetadataProperty);
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
export type Participant = 'source' | 'target';
|
|
340
|
-
|
|
341
|
-
export function isParticipant(item: unknown): item is Participant {
|
|
342
|
-
return item === 'source' || item === 'target';
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
export type Predicate = ElementPredicate | RelationPredicate;
|
|
346
|
-
|
|
347
|
-
export const Predicate = 'Predicate';
|
|
348
|
-
|
|
349
|
-
export function isPredicate(item: unknown): item is Predicate {
|
|
350
|
-
return reflection.isInstance(item, Predicate);
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
export type Referenceable = DeployedInstance | DeploymentNode | Element;
|
|
354
|
-
|
|
355
|
-
export const Referenceable = 'Referenceable';
|
|
356
|
-
|
|
357
|
-
export function isReferenceable(item: unknown): item is Referenceable {
|
|
358
|
-
return reflection.isInstance(item, Referenceable);
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
export type RelationExpr = DirectedRelationExpr | InOutRelationExpr | IncomingRelationExpr | OutgoingRelationExpr;
|
|
362
|
-
|
|
363
|
-
export const RelationExpr = 'RelationExpr';
|
|
364
|
-
|
|
365
|
-
export function isRelationExpr(item: unknown): item is RelationExpr {
|
|
366
|
-
return reflection.isInstance(item, RelationExpr);
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
export type RelationExpression = DirectedRelationExpression | InOutRelationExpression | IncomingRelationExpression | OutgoingRelationExpression;
|
|
370
|
-
|
|
371
|
-
export const RelationExpression = 'RelationExpression';
|
|
372
|
-
|
|
373
|
-
export function isRelationExpression(item: unknown): item is RelationExpression {
|
|
374
|
-
return reflection.isInstance(item, RelationExpression);
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
export type RelationPredicate = RelationPredicateOrWhere | RelationPredicateWith;
|
|
378
|
-
|
|
379
|
-
export const RelationPredicate = 'RelationPredicate';
|
|
380
|
-
|
|
381
|
-
export function isRelationPredicate(item: unknown): item is RelationPredicate {
|
|
382
|
-
return reflection.isInstance(item, RelationPredicate);
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
export type RelationPredicateOrWhere = RelationExpression | RelationPredicateWhere;
|
|
386
|
-
|
|
387
|
-
export const RelationPredicateOrWhere = 'RelationPredicateOrWhere';
|
|
388
|
-
|
|
389
|
-
export function isRelationPredicateOrWhere(item: unknown): item is RelationPredicateOrWhere {
|
|
390
|
-
return reflection.isInstance(item, RelationPredicateOrWhere);
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
export type RelationPredicateOrWhereV2 = RelationExpr | RelationPredicateWhereV2;
|
|
394
|
-
|
|
395
|
-
export const RelationPredicateOrWhereV2 = 'RelationPredicateOrWhereV2';
|
|
396
|
-
|
|
397
|
-
export function isRelationPredicateOrWhereV2(item: unknown): item is RelationPredicateOrWhereV2 {
|
|
398
|
-
return reflection.isInstance(item, RelationPredicateOrWhereV2);
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
export type RelationProperty = LinkProperty | MetadataProperty | RelationNavigateToProperty | RelationStringProperty | RelationStyleProperty;
|
|
402
|
-
|
|
403
|
-
export const RelationProperty = 'RelationProperty';
|
|
404
|
-
|
|
405
|
-
export function isRelationProperty(item: unknown): item is RelationProperty {
|
|
406
|
-
return reflection.isInstance(item, RelationProperty);
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
export type RelationshipStyleProperty = ArrowProperty | ColorProperty | LineProperty;
|
|
410
|
-
|
|
411
|
-
export const RelationshipStyleProperty = 'RelationshipStyleProperty';
|
|
412
|
-
|
|
413
|
-
export function isRelationshipStyleProperty(item: unknown): item is RelationshipStyleProperty {
|
|
414
|
-
return reflection.isInstance(item, RelationshipStyleProperty);
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
export type SizeProperty = PaddingSizeProperty | ShapeSizeProperty | TextSizeProperty;
|
|
418
|
-
|
|
419
|
-
export const SizeProperty = 'SizeProperty';
|
|
420
|
-
|
|
421
|
-
export function isSizeProperty(item: unknown): item is SizeProperty {
|
|
422
|
-
return reflection.isInstance(item, SizeProperty);
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
export type SizeValue = 'large' | 'lg' | 'md' | 'medium' | 'sm' | 'small' | 'xl' | 'xlarge' | 'xs' | 'xsmall';
|
|
426
|
-
|
|
427
|
-
export function isSizeValue(item: unknown): item is SizeValue {
|
|
428
|
-
return item === 'xs' || item === 'sm' || item === 'md' || item === 'lg' || item === 'xl' || item === 'xsmall' || item === 'small' || item === 'medium' || item === 'large' || item === 'xlarge';
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
export type StringProperty = ElementStringProperty | MetadataAttribute | NotationProperty | NotesProperty | RelationStringProperty | SpecificationElementStringProperty | SpecificationRelationshipStringProperty | ViewStringProperty;
|
|
432
|
-
|
|
433
|
-
export const StringProperty = 'StringProperty';
|
|
434
|
-
|
|
435
|
-
export function isStringProperty(item: unknown): item is StringProperty {
|
|
436
|
-
return reflection.isInstance(item, StringProperty);
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
export type StyleProperty = BorderProperty | ColorProperty | IconProperty | MultipleProperty | OpacityProperty | PaddingSizeProperty | ShapeProperty | ShapeSizeProperty | TextSizeProperty;
|
|
440
|
-
|
|
441
|
-
export const StyleProperty = 'StyleProperty';
|
|
442
|
-
|
|
443
|
-
export function isStyleProperty(item: unknown): item is StyleProperty {
|
|
444
|
-
return reflection.isInstance(item, StyleProperty);
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
export type TagId = string;
|
|
448
|
-
|
|
449
|
-
export function isTagId(item: unknown): item is TagId {
|
|
450
|
-
return typeof item === 'string';
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
export type ThemeColor = 'amber' | 'blue' | 'gray' | 'green' | 'indigo' | 'muted' | 'primary' | 'red' | 'secondary' | 'sky' | 'slate';
|
|
454
|
-
|
|
455
|
-
export function isThemeColor(item: unknown): item is ThemeColor {
|
|
456
|
-
return item === 'primary' || item === 'secondary' || item === 'muted' || item === 'slate' || item === 'blue' || item === 'indigo' || item === 'sky' || item === 'red' || item === 'gray' || item === 'green' || item === 'amber';
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
export type Uri = string;
|
|
460
|
-
|
|
461
|
-
export function isUri(item: unknown): item is Uri {
|
|
462
|
-
return (typeof item === 'string' && (/\w+:\/\/\S+/.test(item) || /\.{0,2}\/[^\/]\S+/.test(item)));
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
export type ViewLayoutDirection = 'BottomTop' | 'LeftRight' | 'RightLeft' | 'TopBottom';
|
|
466
|
-
|
|
467
|
-
export function isViewLayoutDirection(item: unknown): item is ViewLayoutDirection {
|
|
468
|
-
return item === 'TopBottom' || item === 'LeftRight' || item === 'BottomTop' || item === 'RightLeft';
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
export type ViewProperty = LinkProperty | ViewStringProperty;
|
|
472
|
-
|
|
473
|
-
export const ViewProperty = 'ViewProperty';
|
|
474
|
-
|
|
475
|
-
export function isViewProperty(item: unknown): item is ViewProperty {
|
|
476
|
-
return reflection.isInstance(item, ViewProperty);
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
export type ViewRule = ViewRuleAutoLayout | ViewRuleGlobalPredicateRef | ViewRuleGroup | ViewRulePredicate | ViewRuleStyleOrGlobalRef;
|
|
480
|
-
|
|
481
|
-
export const ViewRule = 'ViewRule';
|
|
482
|
-
|
|
483
|
-
export function isViewRule(item: unknown): item is ViewRule {
|
|
484
|
-
return reflection.isInstance(item, ViewRule);
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
export type ViewRulePredicate = ExcludePredicate | IncludePredicate;
|
|
488
|
-
|
|
489
|
-
export const ViewRulePredicate = 'ViewRulePredicate';
|
|
490
|
-
|
|
491
|
-
export function isViewRulePredicate(item: unknown): item is ViewRulePredicate {
|
|
492
|
-
return reflection.isInstance(item, ViewRulePredicate);
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
export type ViewRuleStyleOrGlobalRef = ViewRuleGlobalStyle | ViewRuleStyle;
|
|
496
|
-
|
|
497
|
-
export const ViewRuleStyleOrGlobalRef = 'ViewRuleStyleOrGlobalRef';
|
|
498
|
-
|
|
499
|
-
export function isViewRuleStyleOrGlobalRef(item: unknown): item is ViewRuleStyleOrGlobalRef {
|
|
500
|
-
return reflection.isInstance(item, ViewRuleStyleOrGlobalRef);
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
export type WhereElement = WhereElementKind | WhereElementTag;
|
|
504
|
-
|
|
505
|
-
export const WhereElement = 'WhereElement';
|
|
506
|
-
|
|
507
|
-
export function isWhereElement(item: unknown): item is WhereElement {
|
|
508
|
-
return reflection.isInstance(item, WhereElement);
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
export type WhereElementExpression = WhereBinaryExpression | WhereElement | WhereElementNegation;
|
|
512
|
-
|
|
513
|
-
export const WhereElementExpression = 'WhereElementExpression';
|
|
514
|
-
|
|
515
|
-
export function isWhereElementExpression(item: unknown): item is WhereElementExpression {
|
|
516
|
-
return reflection.isInstance(item, WhereElementExpression);
|
|
517
|
-
}
|
|
518
|
-
|
|
519
|
-
export type WhereExpression = WhereElementExpression | WhereRelationExpression;
|
|
520
|
-
|
|
521
|
-
export const WhereExpression = 'WhereExpression';
|
|
522
|
-
|
|
523
|
-
export function isWhereExpression(item: unknown): item is WhereExpression {
|
|
524
|
-
return reflection.isInstance(item, WhereExpression);
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
export type WhereKindEqual = WhereElementKind | WhereRelationKind | WhereRelationParticipantKind;
|
|
528
|
-
|
|
529
|
-
export const WhereKindEqual = 'WhereKindEqual';
|
|
530
|
-
|
|
531
|
-
export function isWhereKindEqual(item: unknown): item is WhereKindEqual {
|
|
532
|
-
return reflection.isInstance(item, WhereKindEqual);
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
export type WhereRelation = WhereRelationKind | WhereRelationParticipantKind | WhereRelationParticipantTag | WhereRelationTag;
|
|
536
|
-
|
|
537
|
-
export const WhereRelation = 'WhereRelation';
|
|
538
|
-
|
|
539
|
-
export function isWhereRelation(item: unknown): item is WhereRelation {
|
|
540
|
-
return reflection.isInstance(item, WhereRelation);
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
export type WhereRelationExpression = WhereBinaryExpression | WhereRelation | WhereRelationNegation;
|
|
544
|
-
|
|
545
|
-
export const WhereRelationExpression = 'WhereRelationExpression';
|
|
546
|
-
|
|
547
|
-
export function isWhereRelationExpression(item: unknown): item is WhereRelationExpression {
|
|
548
|
-
return reflection.isInstance(item, WhereRelationExpression);
|
|
549
|
-
}
|
|
550
|
-
|
|
551
|
-
export type WhereTagEqual = WhereElementTag | WhereRelationParticipantTag | WhereRelationTag;
|
|
552
|
-
|
|
553
|
-
export const WhereTagEqual = 'WhereTagEqual';
|
|
554
|
-
|
|
555
|
-
export function isWhereTagEqual(item: unknown): item is WhereTagEqual {
|
|
556
|
-
return reflection.isInstance(item, WhereTagEqual);
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
export interface ArrowProperty extends AstNode {
|
|
560
|
-
readonly $container: CustomRelationProperties | RelationStyleProperty | SpecificationRelationshipKind;
|
|
561
|
-
readonly $type: 'ArrowProperty';
|
|
562
|
-
key: 'head' | 'tail';
|
|
563
|
-
value: ArrowType;
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
export const ArrowProperty = 'ArrowProperty';
|
|
567
|
-
|
|
568
|
-
export function isArrowProperty(item: unknown): item is ArrowProperty {
|
|
569
|
-
return reflection.isInstance(item, ArrowProperty);
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
export interface BorderProperty extends AstNode {
|
|
573
|
-
readonly $container: CustomElementProperties | DeploymentViewRuleStyle | ElementStyleProperty | GlobalStyle | ViewRuleGroup | ViewRuleStyle;
|
|
574
|
-
readonly $type: 'BorderProperty';
|
|
575
|
-
key: 'border';
|
|
576
|
-
value: BorderStyleValue;
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
export const BorderProperty = 'BorderProperty';
|
|
580
|
-
|
|
581
|
-
export function isBorderProperty(item: unknown): item is BorderProperty {
|
|
582
|
-
return reflection.isInstance(item, BorderProperty);
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
export interface ColorProperty extends AstNode {
|
|
586
|
-
readonly $container: CustomElementProperties | CustomRelationProperties | DeploymentViewRuleStyle | ElementStyleProperty | GlobalStyle | RelationStyleProperty | SpecificationRelationshipKind | ViewRuleGroup | ViewRuleStyle;
|
|
587
|
-
readonly $type: 'ColorProperty';
|
|
588
|
-
customColor?: Reference<CustomColor>;
|
|
589
|
-
key: 'color';
|
|
590
|
-
themeColor?: ThemeColor;
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
export const ColorProperty = 'ColorProperty';
|
|
594
|
-
|
|
595
|
-
export function isColorProperty(item: unknown): item is ColorProperty {
|
|
596
|
-
return reflection.isInstance(item, ColorProperty);
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
export interface CustomColor extends AstNode {
|
|
600
|
-
readonly $container: SpecificationColor;
|
|
601
|
-
readonly $type: 'CustomColor';
|
|
602
|
-
name: CustomColorId;
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
export const CustomColor = 'CustomColor';
|
|
606
|
-
|
|
607
|
-
export function isCustomColor(item: unknown): item is CustomColor {
|
|
608
|
-
return reflection.isInstance(item, CustomColor);
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
export interface CustomElementProperties extends AstNode {
|
|
612
|
-
readonly $container: ElementPredicateWith;
|
|
613
|
-
readonly $type: 'CustomElementProperties';
|
|
614
|
-
props: Array<ElementStringProperty | NavigateToProperty | NotationProperty | StyleProperty>;
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
export const CustomElementProperties = 'CustomElementProperties';
|
|
618
|
-
|
|
619
|
-
export function isCustomElementProperties(item: unknown): item is CustomElementProperties {
|
|
620
|
-
return reflection.isInstance(item, CustomElementProperties);
|
|
621
|
-
}
|
|
622
|
-
|
|
623
|
-
export interface CustomRelationProperties extends AstNode {
|
|
624
|
-
readonly $container: DynamicViewStep | RelationPredicateWith;
|
|
625
|
-
readonly $type: 'CustomRelationProperties';
|
|
626
|
-
props: Array<NotationProperty | NotesProperty | RelationNavigateToProperty | RelationStringProperty | RelationshipStyleProperty>;
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
export const CustomRelationProperties = 'CustomRelationProperties';
|
|
630
|
-
|
|
631
|
-
export function isCustomRelationProperties(item: unknown): item is CustomRelationProperties {
|
|
632
|
-
return reflection.isInstance(item, CustomRelationProperties);
|
|
633
|
-
}
|
|
634
|
-
|
|
635
|
-
export interface DeployedInstance extends AstNode {
|
|
636
|
-
readonly $container: DeploymentNodeBody;
|
|
637
|
-
readonly $type: 'DeployedInstance';
|
|
638
|
-
body?: DeployedInstanceBody;
|
|
639
|
-
element: ElementRef;
|
|
640
|
-
name?: Id;
|
|
641
|
-
title?: string;
|
|
642
|
-
}
|
|
643
|
-
|
|
644
|
-
export const DeployedInstance = 'DeployedInstance';
|
|
645
|
-
|
|
646
|
-
export function isDeployedInstance(item: unknown): item is DeployedInstance {
|
|
647
|
-
return reflection.isInstance(item, DeployedInstance);
|
|
648
|
-
}
|
|
649
|
-
|
|
650
|
-
export interface DeployedInstanceBody extends AstNode {
|
|
651
|
-
readonly $container: DeployedInstance;
|
|
652
|
-
readonly $type: 'DeployedInstanceBody';
|
|
653
|
-
props: Array<ElementProperty>;
|
|
654
|
-
tags?: Tags;
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
export const DeployedInstanceBody = 'DeployedInstanceBody';
|
|
658
|
-
|
|
659
|
-
export function isDeployedInstanceBody(item: unknown): item is DeployedInstanceBody {
|
|
660
|
-
return reflection.isInstance(item, DeployedInstanceBody);
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
export interface DeploymentNode extends AstNode {
|
|
664
|
-
readonly $container: DeploymentNodeBody | ModelDeployments;
|
|
665
|
-
readonly $type: 'DeploymentNode';
|
|
666
|
-
body?: DeploymentNodeBody;
|
|
667
|
-
kind: Reference<DeploymentNodeKind>;
|
|
668
|
-
name: Id;
|
|
669
|
-
title?: string;
|
|
670
|
-
}
|
|
671
|
-
|
|
672
|
-
export const DeploymentNode = 'DeploymentNode';
|
|
673
|
-
|
|
674
|
-
export function isDeploymentNode(item: unknown): item is DeploymentNode {
|
|
675
|
-
return reflection.isInstance(item, DeploymentNode);
|
|
676
|
-
}
|
|
677
|
-
|
|
678
|
-
export interface DeploymentNodeBody extends AstNode {
|
|
679
|
-
readonly $container: DeploymentNode;
|
|
680
|
-
readonly $type: 'DeploymentNodeBody';
|
|
681
|
-
elements: Array<DeployedInstance | DeploymentNode | DeploymentRelation>;
|
|
682
|
-
props: Array<ElementProperty>;
|
|
683
|
-
tags?: Tags;
|
|
684
|
-
}
|
|
685
|
-
|
|
686
|
-
export const DeploymentNodeBody = 'DeploymentNodeBody';
|
|
687
|
-
|
|
688
|
-
export function isDeploymentNodeBody(item: unknown): item is DeploymentNodeBody {
|
|
689
|
-
return reflection.isInstance(item, DeploymentNodeBody);
|
|
690
|
-
}
|
|
691
|
-
|
|
692
|
-
export interface DeploymentNodeKind extends AstNode {
|
|
693
|
-
readonly $container: SpecificationDeploymentNodeKind;
|
|
694
|
-
readonly $type: 'DeploymentNodeKind';
|
|
695
|
-
name: Id;
|
|
696
|
-
}
|
|
697
|
-
|
|
698
|
-
export const DeploymentNodeKind = 'DeploymentNodeKind';
|
|
699
|
-
|
|
700
|
-
export function isDeploymentNodeKind(item: unknown): item is DeploymentNodeKind {
|
|
701
|
-
return reflection.isInstance(item, DeploymentNodeKind);
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
export interface DeploymentRelation extends AstNode {
|
|
705
|
-
readonly $container: DeploymentNodeBody | ModelDeployments;
|
|
706
|
-
readonly $type: 'DeploymentRelation';
|
|
707
|
-
body?: DeploymentRelationBody;
|
|
708
|
-
kind?: Reference<RelationshipKind>;
|
|
709
|
-
source: FqnRef;
|
|
710
|
-
tags?: Tags;
|
|
711
|
-
target: FqnRef;
|
|
712
|
-
technology?: string;
|
|
713
|
-
title?: string;
|
|
714
|
-
}
|
|
715
|
-
|
|
716
|
-
export const DeploymentRelation = 'DeploymentRelation';
|
|
717
|
-
|
|
718
|
-
export function isDeploymentRelation(item: unknown): item is DeploymentRelation {
|
|
719
|
-
return reflection.isInstance(item, DeploymentRelation);
|
|
720
|
-
}
|
|
721
|
-
|
|
722
|
-
export interface DeploymentRelationBody extends AstNode {
|
|
723
|
-
readonly $container: DeploymentRelation;
|
|
724
|
-
readonly $type: 'DeploymentRelationBody';
|
|
725
|
-
props: Array<RelationProperty>;
|
|
726
|
-
tags?: Tags;
|
|
727
|
-
}
|
|
728
|
-
|
|
729
|
-
export const DeploymentRelationBody = 'DeploymentRelationBody';
|
|
730
|
-
|
|
731
|
-
export function isDeploymentRelationBody(item: unknown): item is DeploymentRelationBody {
|
|
732
|
-
return reflection.isInstance(item, DeploymentRelationBody);
|
|
733
|
-
}
|
|
734
|
-
|
|
735
|
-
export interface DeploymentView extends AstNode {
|
|
736
|
-
readonly $container: ModelViews;
|
|
737
|
-
readonly $type: 'DeploymentView';
|
|
738
|
-
body?: DeploymentViewBody;
|
|
739
|
-
name: Id;
|
|
740
|
-
}
|
|
741
|
-
|
|
742
|
-
export const DeploymentView = 'DeploymentView';
|
|
743
|
-
|
|
744
|
-
export function isDeploymentView(item: unknown): item is DeploymentView {
|
|
745
|
-
return reflection.isInstance(item, DeploymentView);
|
|
746
|
-
}
|
|
747
|
-
|
|
748
|
-
export interface DeploymentViewBody extends AstNode {
|
|
749
|
-
readonly $container: DeploymentView;
|
|
750
|
-
readonly $type: 'DeploymentViewBody';
|
|
751
|
-
props: Array<ViewProperty>;
|
|
752
|
-
rules: Array<DeploymentViewRule>;
|
|
753
|
-
tags?: Tags;
|
|
754
|
-
}
|
|
755
|
-
|
|
756
|
-
export const DeploymentViewBody = 'DeploymentViewBody';
|
|
757
|
-
|
|
758
|
-
export function isDeploymentViewBody(item: unknown): item is DeploymentViewBody {
|
|
759
|
-
return reflection.isInstance(item, DeploymentViewBody);
|
|
760
|
-
}
|
|
761
|
-
|
|
762
|
-
export interface DeploymentViewRulePredicate extends AstNode {
|
|
763
|
-
readonly $container: DeploymentViewBody;
|
|
764
|
-
readonly $type: 'DeploymentViewRulePredicate';
|
|
765
|
-
expr: DeploymentViewRulePredicateExpression;
|
|
766
|
-
isInclude: boolean;
|
|
767
|
-
}
|
|
768
|
-
|
|
769
|
-
export const DeploymentViewRulePredicate = 'DeploymentViewRulePredicate';
|
|
770
|
-
|
|
771
|
-
export function isDeploymentViewRulePredicate(item: unknown): item is DeploymentViewRulePredicate {
|
|
772
|
-
return reflection.isInstance(item, DeploymentViewRulePredicate);
|
|
773
|
-
}
|
|
774
|
-
|
|
775
|
-
export interface DeploymentViewRulePredicateExpression extends AstNode {
|
|
776
|
-
readonly $container: DeploymentViewRulePredicate | DeploymentViewRulePredicateExpression;
|
|
777
|
-
readonly $type: 'DeploymentViewRulePredicateExpression';
|
|
778
|
-
prev?: DeploymentViewRulePredicateExpression;
|
|
779
|
-
value: ExpressionV2;
|
|
780
|
-
}
|
|
781
|
-
|
|
782
|
-
export const DeploymentViewRulePredicateExpression = 'DeploymentViewRulePredicateExpression';
|
|
783
|
-
|
|
784
|
-
export function isDeploymentViewRulePredicateExpression(item: unknown): item is DeploymentViewRulePredicateExpression {
|
|
785
|
-
return reflection.isInstance(item, DeploymentViewRulePredicateExpression);
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
export interface DeploymentViewRuleStyle extends AstNode {
|
|
789
|
-
readonly $container: DeploymentViewBody;
|
|
790
|
-
readonly $type: 'DeploymentViewRuleStyle';
|
|
791
|
-
props: Array<NotationProperty | StyleProperty>;
|
|
792
|
-
targets: FqnExpressions;
|
|
793
|
-
}
|
|
794
|
-
|
|
795
|
-
export const DeploymentViewRuleStyle = 'DeploymentViewRuleStyle';
|
|
796
|
-
|
|
797
|
-
export function isDeploymentViewRuleStyle(item: unknown): item is DeploymentViewRuleStyle {
|
|
798
|
-
return reflection.isInstance(item, DeploymentViewRuleStyle);
|
|
799
|
-
}
|
|
800
|
-
|
|
801
|
-
export interface DirectedRelationExpr extends AstNode {
|
|
802
|
-
readonly $container: DeploymentViewRulePredicateExpression | RelationPredicateWhereV2;
|
|
803
|
-
readonly $type: 'DirectedRelationExpr';
|
|
804
|
-
source: OutgoingRelationExpr;
|
|
805
|
-
target: FqnExpr;
|
|
806
|
-
}
|
|
807
|
-
|
|
808
|
-
export const DirectedRelationExpr = 'DirectedRelationExpr';
|
|
809
|
-
|
|
810
|
-
export function isDirectedRelationExpr(item: unknown): item is DirectedRelationExpr {
|
|
811
|
-
return reflection.isInstance(item, DirectedRelationExpr);
|
|
812
|
-
}
|
|
813
|
-
|
|
814
|
-
export interface DirectedRelationExpression extends AstNode {
|
|
815
|
-
readonly $container: Predicates | RelationPredicateWhere | RelationPredicateWith;
|
|
816
|
-
readonly $type: 'DirectedRelationExpression';
|
|
817
|
-
source: OutgoingRelationExpression;
|
|
818
|
-
target: ElementExpression;
|
|
819
|
-
}
|
|
820
|
-
|
|
821
|
-
export const DirectedRelationExpression = 'DirectedRelationExpression';
|
|
822
|
-
|
|
823
|
-
export function isDirectedRelationExpression(item: unknown): item is DirectedRelationExpression {
|
|
824
|
-
return reflection.isInstance(item, DirectedRelationExpression);
|
|
825
|
-
}
|
|
826
|
-
|
|
827
|
-
export interface DynamicView extends AstNode {
|
|
828
|
-
readonly $container: ModelViews;
|
|
829
|
-
readonly $type: 'DynamicView';
|
|
830
|
-
body?: DynamicViewBody;
|
|
831
|
-
name: Id;
|
|
832
|
-
}
|
|
833
|
-
|
|
834
|
-
export const DynamicView = 'DynamicView';
|
|
835
|
-
|
|
836
|
-
export function isDynamicView(item: unknown): item is DynamicView {
|
|
837
|
-
return reflection.isInstance(item, DynamicView);
|
|
838
|
-
}
|
|
839
|
-
|
|
840
|
-
export interface DynamicViewBody extends AstNode {
|
|
841
|
-
readonly $container: DynamicView;
|
|
842
|
-
readonly $type: 'DynamicViewBody';
|
|
843
|
-
props: Array<ViewProperty>;
|
|
844
|
-
rules: Array<DynamicViewRule>;
|
|
845
|
-
steps: Array<DynamicViewParallelSteps | DynamicViewStep>;
|
|
846
|
-
tags?: Tags;
|
|
847
|
-
}
|
|
848
|
-
|
|
849
|
-
export const DynamicViewBody = 'DynamicViewBody';
|
|
850
|
-
|
|
851
|
-
export function isDynamicViewBody(item: unknown): item is DynamicViewBody {
|
|
852
|
-
return reflection.isInstance(item, DynamicViewBody);
|
|
853
|
-
}
|
|
854
|
-
|
|
855
|
-
export interface DynamicViewGlobalPredicateRef extends AstNode {
|
|
856
|
-
readonly $container: DynamicViewBody;
|
|
857
|
-
readonly $type: 'DynamicViewGlobalPredicateRef';
|
|
858
|
-
predicate: Reference<GlobalDynamicPredicateGroup>;
|
|
859
|
-
}
|
|
860
|
-
|
|
861
|
-
export const DynamicViewGlobalPredicateRef = 'DynamicViewGlobalPredicateRef';
|
|
862
|
-
|
|
863
|
-
export function isDynamicViewGlobalPredicateRef(item: unknown): item is DynamicViewGlobalPredicateRef {
|
|
864
|
-
return reflection.isInstance(item, DynamicViewGlobalPredicateRef);
|
|
865
|
-
}
|
|
866
|
-
|
|
867
|
-
export interface DynamicViewIncludePredicate extends AstNode {
|
|
868
|
-
readonly $container: DynamicViewBody | GlobalDynamicPredicateGroup;
|
|
869
|
-
readonly $type: 'DynamicViewIncludePredicate';
|
|
870
|
-
predicates: DynamicViewPredicateIterator;
|
|
871
|
-
}
|
|
872
|
-
|
|
873
|
-
export const DynamicViewIncludePredicate = 'DynamicViewIncludePredicate';
|
|
874
|
-
|
|
875
|
-
export function isDynamicViewIncludePredicate(item: unknown): item is DynamicViewIncludePredicate {
|
|
876
|
-
return reflection.isInstance(item, DynamicViewIncludePredicate);
|
|
877
|
-
}
|
|
878
|
-
|
|
879
|
-
export interface DynamicViewParallelSteps extends AstNode {
|
|
880
|
-
readonly $container: DynamicViewBody;
|
|
881
|
-
readonly $type: 'DynamicViewParallelSteps';
|
|
882
|
-
steps: Array<DynamicViewStep>;
|
|
883
|
-
}
|
|
884
|
-
|
|
885
|
-
export const DynamicViewParallelSteps = 'DynamicViewParallelSteps';
|
|
886
|
-
|
|
887
|
-
export function isDynamicViewParallelSteps(item: unknown): item is DynamicViewParallelSteps {
|
|
888
|
-
return reflection.isInstance(item, DynamicViewParallelSteps);
|
|
889
|
-
}
|
|
890
|
-
|
|
891
|
-
export interface DynamicViewPredicateIterator extends AstNode {
|
|
892
|
-
readonly $container: DynamicViewIncludePredicate | DynamicViewPredicateIterator;
|
|
893
|
-
readonly $type: 'DynamicViewPredicateIterator';
|
|
894
|
-
prev?: DynamicViewPredicateIterator;
|
|
895
|
-
value: ElementPredicate;
|
|
896
|
-
}
|
|
897
|
-
|
|
898
|
-
export const DynamicViewPredicateIterator = 'DynamicViewPredicateIterator';
|
|
899
|
-
|
|
900
|
-
export function isDynamicViewPredicateIterator(item: unknown): item is DynamicViewPredicateIterator {
|
|
901
|
-
return reflection.isInstance(item, DynamicViewPredicateIterator);
|
|
902
|
-
}
|
|
903
|
-
|
|
904
|
-
export interface DynamicViewRef extends AstNode {
|
|
905
|
-
readonly $container: RelationNavigateToProperty;
|
|
906
|
-
readonly $type: 'DynamicViewRef';
|
|
907
|
-
view: Reference<DynamicView>;
|
|
908
|
-
}
|
|
909
|
-
|
|
910
|
-
export const DynamicViewRef = 'DynamicViewRef';
|
|
911
|
-
|
|
912
|
-
export function isDynamicViewRef(item: unknown): item is DynamicViewRef {
|
|
913
|
-
return reflection.isInstance(item, DynamicViewRef);
|
|
914
|
-
}
|
|
915
|
-
|
|
916
|
-
export interface DynamicViewStep extends AstNode {
|
|
917
|
-
readonly $container: DynamicViewBody | DynamicViewParallelSteps;
|
|
918
|
-
readonly $type: 'DynamicViewStep';
|
|
919
|
-
custom?: CustomRelationProperties;
|
|
920
|
-
isBackward: boolean;
|
|
921
|
-
kind?: Reference<RelationshipKind>;
|
|
922
|
-
source: ElementRef;
|
|
923
|
-
target: ElementRef;
|
|
924
|
-
title?: string;
|
|
925
|
-
}
|
|
926
|
-
|
|
927
|
-
export const DynamicViewStep = 'DynamicViewStep';
|
|
928
|
-
|
|
929
|
-
export function isDynamicViewStep(item: unknown): item is DynamicViewStep {
|
|
930
|
-
return reflection.isInstance(item, DynamicViewStep);
|
|
931
|
-
}
|
|
932
|
-
|
|
933
|
-
export interface Element extends AstNode {
|
|
934
|
-
readonly $container: ElementBody | ExtendElementBody | Model;
|
|
935
|
-
readonly $type: 'Element';
|
|
936
|
-
body?: ElementBody;
|
|
937
|
-
kind: Reference<ElementKind>;
|
|
938
|
-
name: Id;
|
|
939
|
-
props: Array<string>;
|
|
940
|
-
}
|
|
941
|
-
|
|
942
|
-
export const Element = 'Element';
|
|
943
|
-
|
|
944
|
-
export function isElement(item: unknown): item is Element {
|
|
945
|
-
return reflection.isInstance(item, Element);
|
|
946
|
-
}
|
|
947
|
-
|
|
948
|
-
export interface ElementBody extends AstNode {
|
|
949
|
-
readonly $container: Element;
|
|
950
|
-
readonly $type: 'ElementBody';
|
|
951
|
-
elements: Array<Element | Relation>;
|
|
952
|
-
props: Array<ElementProperty>;
|
|
953
|
-
tags?: Tags;
|
|
954
|
-
}
|
|
955
|
-
|
|
956
|
-
export const ElementBody = 'ElementBody';
|
|
957
|
-
|
|
958
|
-
export function isElementBody(item: unknown): item is ElementBody {
|
|
959
|
-
return reflection.isInstance(item, ElementBody);
|
|
960
|
-
}
|
|
961
|
-
|
|
962
|
-
export interface ElementDescedantsExpression extends AstNode {
|
|
963
|
-
readonly $container: DirectedRelationExpression | DynamicViewPredicateIterator | ElementExpressionsIterator | ElementPredicateWhere | ElementPredicateWith | IncomingRelationExpression | OutgoingRelationExpression | Predicates;
|
|
964
|
-
readonly $type: 'ElementDescedantsExpression';
|
|
965
|
-
parent: ElementRef;
|
|
966
|
-
suffix: string;
|
|
967
|
-
}
|
|
968
|
-
|
|
969
|
-
export const ElementDescedantsExpression = 'ElementDescedantsExpression';
|
|
970
|
-
|
|
971
|
-
export function isElementDescedantsExpression(item: unknown): item is ElementDescedantsExpression {
|
|
972
|
-
return reflection.isInstance(item, ElementDescedantsExpression);
|
|
973
|
-
}
|
|
974
|
-
|
|
975
|
-
export interface ElementExpressionsIterator extends AstNode {
|
|
976
|
-
readonly $container: ElementExpressionsIterator | GlobalStyle | ViewRuleStyle;
|
|
977
|
-
readonly $type: 'ElementExpressionsIterator';
|
|
978
|
-
prev?: ElementExpressionsIterator;
|
|
979
|
-
value: ElementExpression;
|
|
980
|
-
}
|
|
981
|
-
|
|
982
|
-
export const ElementExpressionsIterator = 'ElementExpressionsIterator';
|
|
983
|
-
|
|
984
|
-
export function isElementExpressionsIterator(item: unknown): item is ElementExpressionsIterator {
|
|
985
|
-
return reflection.isInstance(item, ElementExpressionsIterator);
|
|
986
|
-
}
|
|
987
|
-
|
|
988
|
-
export interface ElementKind extends AstNode {
|
|
989
|
-
readonly $container: SpecificationElementKind;
|
|
990
|
-
readonly $type: 'ElementKind';
|
|
991
|
-
name: Id;
|
|
992
|
-
}
|
|
993
|
-
|
|
994
|
-
export const ElementKind = 'ElementKind';
|
|
995
|
-
|
|
996
|
-
export function isElementKind(item: unknown): item is ElementKind {
|
|
997
|
-
return reflection.isInstance(item, ElementKind);
|
|
998
|
-
}
|
|
999
|
-
|
|
1000
|
-
export interface ElementKindExpression extends AstNode {
|
|
1001
|
-
readonly $container: DirectedRelationExpression | DynamicViewPredicateIterator | ElementExpressionsIterator | ElementPredicateWhere | ElementPredicateWith | IncomingRelationExpression | OutgoingRelationExpression | Predicates;
|
|
1002
|
-
readonly $type: 'ElementKindExpression';
|
|
1003
|
-
isEqual: boolean;
|
|
1004
|
-
kind?: Reference<ElementKind>;
|
|
1005
|
-
}
|
|
1006
|
-
|
|
1007
|
-
export const ElementKindExpression = 'ElementKindExpression';
|
|
1008
|
-
|
|
1009
|
-
export function isElementKindExpression(item: unknown): item is ElementKindExpression {
|
|
1010
|
-
return reflection.isInstance(item, ElementKindExpression);
|
|
1011
|
-
}
|
|
1012
|
-
|
|
1013
|
-
export interface ElementPredicateWhere extends AstNode {
|
|
1014
|
-
readonly $container: DynamicViewPredicateIterator | ElementPredicateWith | Predicates;
|
|
1015
|
-
readonly $type: 'ElementPredicateWhere';
|
|
1016
|
-
subject: ElementExpression;
|
|
1017
|
-
where?: WhereElementExpression;
|
|
1018
|
-
}
|
|
1019
|
-
|
|
1020
|
-
export const ElementPredicateWhere = 'ElementPredicateWhere';
|
|
1021
|
-
|
|
1022
|
-
export function isElementPredicateWhere(item: unknown): item is ElementPredicateWhere {
|
|
1023
|
-
return reflection.isInstance(item, ElementPredicateWhere);
|
|
1024
|
-
}
|
|
1025
|
-
|
|
1026
|
-
export interface ElementPredicateWhereV2 extends AstNode {
|
|
1027
|
-
readonly $container: DeploymentViewRulePredicateExpression;
|
|
1028
|
-
readonly $type: 'ElementPredicateWhereV2';
|
|
1029
|
-
subject: FqnExpr;
|
|
1030
|
-
where?: WhereElementExpression;
|
|
1031
|
-
}
|
|
1032
|
-
|
|
1033
|
-
export const ElementPredicateWhereV2 = 'ElementPredicateWhereV2';
|
|
1034
|
-
|
|
1035
|
-
export function isElementPredicateWhereV2(item: unknown): item is ElementPredicateWhereV2 {
|
|
1036
|
-
return reflection.isInstance(item, ElementPredicateWhereV2);
|
|
1037
|
-
}
|
|
1038
|
-
|
|
1039
|
-
export interface ElementPredicateWith extends AstNode {
|
|
1040
|
-
readonly $container: DynamicViewPredicateIterator | Predicates;
|
|
1041
|
-
readonly $type: 'ElementPredicateWith';
|
|
1042
|
-
custom?: CustomElementProperties;
|
|
1043
|
-
subject: ElementPredicateOrWhere;
|
|
1044
|
-
}
|
|
1045
|
-
|
|
1046
|
-
export const ElementPredicateWith = 'ElementPredicateWith';
|
|
1047
|
-
|
|
1048
|
-
export function isElementPredicateWith(item: unknown): item is ElementPredicateWith {
|
|
1049
|
-
return reflection.isInstance(item, ElementPredicateWith);
|
|
1050
|
-
}
|
|
1051
|
-
|
|
1052
|
-
export interface ElementRef extends AstNode {
|
|
1053
|
-
readonly $container: DeployedInstance | DirectedRelationExpression | DynamicViewPredicateIterator | DynamicViewStep | ElementDescedantsExpression | ElementExpressionsIterator | ElementPredicateWhere | ElementPredicateWith | ElementRef | ElementView | ExpandElementExpression | IncomingRelationExpression | OutgoingRelationExpression | Predicates | Relation;
|
|
1054
|
-
readonly $type: 'ElementRef';
|
|
1055
|
-
el: Reference<Element>;
|
|
1056
|
-
parent?: ElementRef;
|
|
1057
|
-
}
|
|
1058
|
-
|
|
1059
|
-
export const ElementRef = 'ElementRef';
|
|
1060
|
-
|
|
1061
|
-
export function isElementRef(item: unknown): item is ElementRef {
|
|
1062
|
-
return reflection.isInstance(item, ElementRef);
|
|
1063
|
-
}
|
|
1064
|
-
|
|
1065
|
-
export interface ElementStringProperty extends AstNode {
|
|
1066
|
-
readonly $container: CustomElementProperties | DeployedInstanceBody | DeploymentNodeBody | ElementBody;
|
|
1067
|
-
readonly $type: 'ElementStringProperty';
|
|
1068
|
-
key: 'description' | 'technology' | 'title';
|
|
1069
|
-
value: string;
|
|
1070
|
-
}
|
|
1071
|
-
|
|
1072
|
-
export const ElementStringProperty = 'ElementStringProperty';
|
|
1073
|
-
|
|
1074
|
-
export function isElementStringProperty(item: unknown): item is ElementStringProperty {
|
|
1075
|
-
return reflection.isInstance(item, ElementStringProperty);
|
|
1076
|
-
}
|
|
1077
|
-
|
|
1078
|
-
export interface ElementStyleProperty extends AstNode {
|
|
1079
|
-
readonly $container: DeployedInstanceBody | DeploymentNodeBody | ElementBody | SpecificationDeploymentNodeKind | SpecificationElementKind;
|
|
1080
|
-
readonly $type: 'ElementStyleProperty';
|
|
1081
|
-
key: 'style';
|
|
1082
|
-
props: Array<StyleProperty>;
|
|
1083
|
-
}
|
|
1084
|
-
|
|
1085
|
-
export const ElementStyleProperty = 'ElementStyleProperty';
|
|
1086
|
-
|
|
1087
|
-
export function isElementStyleProperty(item: unknown): item is ElementStyleProperty {
|
|
1088
|
-
return reflection.isInstance(item, ElementStyleProperty);
|
|
1089
|
-
}
|
|
1090
|
-
|
|
1091
|
-
export interface ElementTagExpression extends AstNode {
|
|
1092
|
-
readonly $container: DirectedRelationExpression | DynamicViewPredicateIterator | ElementExpressionsIterator | ElementPredicateWhere | ElementPredicateWith | IncomingRelationExpression | OutgoingRelationExpression | Predicates;
|
|
1093
|
-
readonly $type: 'ElementTagExpression';
|
|
1094
|
-
isEqual: boolean;
|
|
1095
|
-
tag?: Reference<Tag>;
|
|
1096
|
-
}
|
|
1097
|
-
|
|
1098
|
-
export const ElementTagExpression = 'ElementTagExpression';
|
|
1099
|
-
|
|
1100
|
-
export function isElementTagExpression(item: unknown): item is ElementTagExpression {
|
|
1101
|
-
return reflection.isInstance(item, ElementTagExpression);
|
|
1102
|
-
}
|
|
1103
|
-
|
|
1104
|
-
export interface ElementView extends AstNode {
|
|
1105
|
-
readonly $container: ModelViews;
|
|
1106
|
-
readonly $type: 'ElementView';
|
|
1107
|
-
body?: ElementViewBody;
|
|
1108
|
-
extends?: ElementViewRef;
|
|
1109
|
-
name?: Id;
|
|
1110
|
-
viewOf?: ElementRef;
|
|
1111
|
-
}
|
|
1112
|
-
|
|
1113
|
-
export const ElementView = 'ElementView';
|
|
1114
|
-
|
|
1115
|
-
export function isElementView(item: unknown): item is ElementView {
|
|
1116
|
-
return reflection.isInstance(item, ElementView);
|
|
1117
|
-
}
|
|
1118
|
-
|
|
1119
|
-
export interface ElementViewBody extends AstNode {
|
|
1120
|
-
readonly $container: ElementView;
|
|
1121
|
-
readonly $type: 'ElementViewBody';
|
|
1122
|
-
props: Array<ViewProperty>;
|
|
1123
|
-
rules: Array<ViewRule>;
|
|
1124
|
-
tags?: Tags;
|
|
1125
|
-
}
|
|
1126
|
-
|
|
1127
|
-
export const ElementViewBody = 'ElementViewBody';
|
|
1128
|
-
|
|
1129
|
-
export function isElementViewBody(item: unknown): item is ElementViewBody {
|
|
1130
|
-
return reflection.isInstance(item, ElementViewBody);
|
|
1131
|
-
}
|
|
1132
|
-
|
|
1133
|
-
export interface ElementViewRef extends AstNode {
|
|
1134
|
-
readonly $container: ElementView;
|
|
1135
|
-
readonly $type: 'ElementViewRef';
|
|
1136
|
-
view: Reference<ElementView>;
|
|
1137
|
-
}
|
|
1138
|
-
|
|
1139
|
-
export const ElementViewRef = 'ElementViewRef';
|
|
1140
|
-
|
|
1141
|
-
export function isElementViewRef(item: unknown): item is ElementViewRef {
|
|
1142
|
-
return reflection.isInstance(item, ElementViewRef);
|
|
1143
|
-
}
|
|
1144
|
-
|
|
1145
|
-
export interface ExcludePredicate extends AstNode {
|
|
1146
|
-
readonly $container: ElementViewBody | GlobalPredicateGroup | ViewRuleGroup;
|
|
1147
|
-
readonly $type: 'ExcludePredicate';
|
|
1148
|
-
predicates: Predicates;
|
|
1149
|
-
}
|
|
1150
|
-
|
|
1151
|
-
export const ExcludePredicate = 'ExcludePredicate';
|
|
1152
|
-
|
|
1153
|
-
export function isExcludePredicate(item: unknown): item is ExcludePredicate {
|
|
1154
|
-
return reflection.isInstance(item, ExcludePredicate);
|
|
1155
|
-
}
|
|
1156
|
-
|
|
1157
|
-
export interface ExpandElementExpression extends AstNode {
|
|
1158
|
-
readonly $container: DirectedRelationExpression | DynamicViewPredicateIterator | ElementExpressionsIterator | ElementPredicateWhere | ElementPredicateWith | IncomingRelationExpression | OutgoingRelationExpression | Predicates;
|
|
1159
|
-
readonly $type: 'ExpandElementExpression';
|
|
1160
|
-
expand: ElementRef;
|
|
1161
|
-
}
|
|
1162
|
-
|
|
1163
|
-
export const ExpandElementExpression = 'ExpandElementExpression';
|
|
1164
|
-
|
|
1165
|
-
export function isExpandElementExpression(item: unknown): item is ExpandElementExpression {
|
|
1166
|
-
return reflection.isInstance(item, ExpandElementExpression);
|
|
1167
|
-
}
|
|
1168
|
-
|
|
1169
|
-
export interface ExtendElement extends AstNode {
|
|
1170
|
-
readonly $container: Model;
|
|
1171
|
-
readonly $type: 'ExtendElement';
|
|
1172
|
-
body: ExtendElementBody;
|
|
1173
|
-
element: StrictFqnElementRef;
|
|
1174
|
-
}
|
|
1175
|
-
|
|
1176
|
-
export const ExtendElement = 'ExtendElement';
|
|
1177
|
-
|
|
1178
|
-
export function isExtendElement(item: unknown): item is ExtendElement {
|
|
1179
|
-
return reflection.isInstance(item, ExtendElement);
|
|
1180
|
-
}
|
|
1181
|
-
|
|
1182
|
-
export interface ExtendElementBody extends AstNode {
|
|
1183
|
-
readonly $container: ExtendElement;
|
|
1184
|
-
readonly $type: 'ExtendElementBody';
|
|
1185
|
-
elements: Array<Element | Relation>;
|
|
1186
|
-
props: Array<ExtendElementProperty>;
|
|
1187
|
-
tags?: Tags;
|
|
1188
|
-
}
|
|
1189
|
-
|
|
1190
|
-
export const ExtendElementBody = 'ExtendElementBody';
|
|
1191
|
-
|
|
1192
|
-
export function isExtendElementBody(item: unknown): item is ExtendElementBody {
|
|
1193
|
-
return reflection.isInstance(item, ExtendElementBody);
|
|
1194
|
-
}
|
|
1195
|
-
|
|
1196
|
-
export interface FqnExpressions extends AstNode {
|
|
1197
|
-
readonly $container: DeploymentViewRuleStyle | FqnExpressions;
|
|
1198
|
-
readonly $type: 'FqnExpressions';
|
|
1199
|
-
prev?: FqnExpressions;
|
|
1200
|
-
value: FqnExpr;
|
|
1201
|
-
}
|
|
1202
|
-
|
|
1203
|
-
export const FqnExpressions = 'FqnExpressions';
|
|
1204
|
-
|
|
1205
|
-
export function isFqnExpressions(item: unknown): item is FqnExpressions {
|
|
1206
|
-
return reflection.isInstance(item, FqnExpressions);
|
|
1207
|
-
}
|
|
1208
|
-
|
|
1209
|
-
export interface FqnRef extends AstNode {
|
|
1210
|
-
readonly $container: DeploymentRelation | FqnRef | FqnRefExpr;
|
|
1211
|
-
readonly $type: 'FqnRef';
|
|
1212
|
-
parent?: FqnRef;
|
|
1213
|
-
value: Reference<Referenceable>;
|
|
1214
|
-
}
|
|
1215
|
-
|
|
1216
|
-
export const FqnRef = 'FqnRef';
|
|
1217
|
-
|
|
1218
|
-
export function isFqnRef(item: unknown): item is FqnRef {
|
|
1219
|
-
return reflection.isInstance(item, FqnRef);
|
|
1220
|
-
}
|
|
1221
|
-
|
|
1222
|
-
export interface FqnRefExpr extends AstNode {
|
|
1223
|
-
readonly $container: DeploymentViewRulePredicateExpression | DirectedRelationExpr | ElementPredicateWhereV2 | FqnExpressions | IncomingRelationExpr | OutgoingRelationExpr;
|
|
1224
|
-
readonly $type: 'FqnRefExpr';
|
|
1225
|
-
ref: FqnRef;
|
|
1226
|
-
selector?: string;
|
|
1227
|
-
}
|
|
1228
|
-
|
|
1229
|
-
export const FqnRefExpr = 'FqnRefExpr';
|
|
1230
|
-
|
|
1231
|
-
export function isFqnRefExpr(item: unknown): item is FqnRefExpr {
|
|
1232
|
-
return reflection.isInstance(item, FqnRefExpr);
|
|
1233
|
-
}
|
|
1234
|
-
|
|
1235
|
-
export interface GlobalDynamicPredicateGroup extends AstNode {
|
|
1236
|
-
readonly $container: Globals;
|
|
1237
|
-
readonly $type: 'GlobalDynamicPredicateGroup';
|
|
1238
|
-
name: string;
|
|
1239
|
-
predicates: Array<DynamicViewIncludePredicate>;
|
|
1240
|
-
}
|
|
1241
|
-
|
|
1242
|
-
export const GlobalDynamicPredicateGroup = 'GlobalDynamicPredicateGroup';
|
|
1243
|
-
|
|
1244
|
-
export function isGlobalDynamicPredicateGroup(item: unknown): item is GlobalDynamicPredicateGroup {
|
|
1245
|
-
return reflection.isInstance(item, GlobalDynamicPredicateGroup);
|
|
1246
|
-
}
|
|
1247
|
-
|
|
1248
|
-
export interface GlobalPredicateGroup extends AstNode {
|
|
1249
|
-
readonly $container: Globals;
|
|
1250
|
-
readonly $type: 'GlobalPredicateGroup';
|
|
1251
|
-
name: string;
|
|
1252
|
-
predicates: Array<ViewRulePredicate>;
|
|
1253
|
-
}
|
|
1254
|
-
|
|
1255
|
-
export const GlobalPredicateGroup = 'GlobalPredicateGroup';
|
|
1256
|
-
|
|
1257
|
-
export function isGlobalPredicateGroup(item: unknown): item is GlobalPredicateGroup {
|
|
1258
|
-
return reflection.isInstance(item, GlobalPredicateGroup);
|
|
1259
|
-
}
|
|
1260
|
-
|
|
1261
|
-
export interface Globals extends AstNode {
|
|
1262
|
-
readonly $container: LikeC4Grammar;
|
|
1263
|
-
readonly $type: 'Globals';
|
|
1264
|
-
name: 'global';
|
|
1265
|
-
predicates: Array<GlobalDynamicPredicateGroup | GlobalPredicateGroup>;
|
|
1266
|
-
styles: Array<GlobalStyle | GlobalStyleGroup>;
|
|
1267
|
-
}
|
|
1268
|
-
|
|
1269
|
-
export const Globals = 'Globals';
|
|
1270
|
-
|
|
1271
|
-
export function isGlobals(item: unknown): item is Globals {
|
|
1272
|
-
return reflection.isInstance(item, Globals);
|
|
1273
|
-
}
|
|
1274
|
-
|
|
1275
|
-
export interface GlobalStyle extends AstNode {
|
|
1276
|
-
readonly $container: Globals;
|
|
1277
|
-
readonly $type: 'GlobalStyle';
|
|
1278
|
-
id: GlobalStyleId;
|
|
1279
|
-
props: Array<NotationProperty | StyleProperty>;
|
|
1280
|
-
target: ElementExpressionsIterator;
|
|
1281
|
-
}
|
|
1282
|
-
|
|
1283
|
-
export const GlobalStyle = 'GlobalStyle';
|
|
1284
|
-
|
|
1285
|
-
export function isGlobalStyle(item: unknown): item is GlobalStyle {
|
|
1286
|
-
return reflection.isInstance(item, GlobalStyle);
|
|
1287
|
-
}
|
|
1288
|
-
|
|
1289
|
-
export interface GlobalStyleGroup extends AstNode {
|
|
1290
|
-
readonly $container: Globals;
|
|
1291
|
-
readonly $type: 'GlobalStyleGroup';
|
|
1292
|
-
id: GlobalStyleId;
|
|
1293
|
-
styles: Array<ViewRuleStyle>;
|
|
1294
|
-
}
|
|
1295
|
-
|
|
1296
|
-
export const GlobalStyleGroup = 'GlobalStyleGroup';
|
|
1297
|
-
|
|
1298
|
-
export function isGlobalStyleGroup(item: unknown): item is GlobalStyleGroup {
|
|
1299
|
-
return reflection.isInstance(item, GlobalStyleGroup);
|
|
1300
|
-
}
|
|
1301
|
-
|
|
1302
|
-
export interface GlobalStyleId extends AstNode {
|
|
1303
|
-
readonly $container: GlobalStyle | GlobalStyleGroup;
|
|
1304
|
-
readonly $type: 'GlobalStyleId';
|
|
1305
|
-
name: string;
|
|
1306
|
-
}
|
|
1307
|
-
|
|
1308
|
-
export const GlobalStyleId = 'GlobalStyleId';
|
|
1309
|
-
|
|
1310
|
-
export function isGlobalStyleId(item: unknown): item is GlobalStyleId {
|
|
1311
|
-
return reflection.isInstance(item, GlobalStyleId);
|
|
1312
|
-
}
|
|
1313
|
-
|
|
1314
|
-
export interface IconProperty extends AstNode {
|
|
1315
|
-
readonly $container: CustomElementProperties | DeployedInstanceBody | DeploymentNodeBody | DeploymentViewRuleStyle | ElementBody | ElementStyleProperty | GlobalStyle | ViewRuleStyle;
|
|
1316
|
-
readonly $type: 'IconProperty';
|
|
1317
|
-
key: 'icon';
|
|
1318
|
-
libicon?: Reference<LibIcon>;
|
|
1319
|
-
value?: 'none' | Uri;
|
|
1320
|
-
}
|
|
1321
|
-
|
|
1322
|
-
export const IconProperty = 'IconProperty';
|
|
1323
|
-
|
|
1324
|
-
export function isIconProperty(item: unknown): item is IconProperty {
|
|
1325
|
-
return reflection.isInstance(item, IconProperty);
|
|
1326
|
-
}
|
|
1327
|
-
|
|
1328
|
-
export interface IncludePredicate extends AstNode {
|
|
1329
|
-
readonly $container: ElementViewBody | GlobalPredicateGroup | ViewRuleGroup;
|
|
1330
|
-
readonly $type: 'IncludePredicate';
|
|
1331
|
-
predicates: Predicates;
|
|
1332
|
-
}
|
|
1333
|
-
|
|
1334
|
-
export const IncludePredicate = 'IncludePredicate';
|
|
1335
|
-
|
|
1336
|
-
export function isIncludePredicate(item: unknown): item is IncludePredicate {
|
|
1337
|
-
return reflection.isInstance(item, IncludePredicate);
|
|
1338
|
-
}
|
|
1339
|
-
|
|
1340
|
-
export interface IncomingRelationExpr extends AstNode {
|
|
1341
|
-
readonly $container: DeploymentViewRulePredicateExpression | InOutRelationExpr | RelationPredicateWhereV2;
|
|
1342
|
-
readonly $type: 'IncomingRelationExpr';
|
|
1343
|
-
to: FqnExpr;
|
|
1344
|
-
}
|
|
1345
|
-
|
|
1346
|
-
export const IncomingRelationExpr = 'IncomingRelationExpr';
|
|
1347
|
-
|
|
1348
|
-
export function isIncomingRelationExpr(item: unknown): item is IncomingRelationExpr {
|
|
1349
|
-
return reflection.isInstance(item, IncomingRelationExpr);
|
|
1350
|
-
}
|
|
1351
|
-
|
|
1352
|
-
export interface IncomingRelationExpression extends AstNode {
|
|
1353
|
-
readonly $container: InOutRelationExpression | Predicates | RelationPredicateWhere | RelationPredicateWith;
|
|
1354
|
-
readonly $type: 'IncomingRelationExpression';
|
|
1355
|
-
to: ElementExpression;
|
|
1356
|
-
}
|
|
1357
|
-
|
|
1358
|
-
export const IncomingRelationExpression = 'IncomingRelationExpression';
|
|
1359
|
-
|
|
1360
|
-
export function isIncomingRelationExpression(item: unknown): item is IncomingRelationExpression {
|
|
1361
|
-
return reflection.isInstance(item, IncomingRelationExpression);
|
|
1362
|
-
}
|
|
1363
|
-
|
|
1364
|
-
export interface InOutRelationExpr extends AstNode {
|
|
1365
|
-
readonly $container: DeploymentViewRulePredicateExpression | RelationPredicateWhereV2;
|
|
1366
|
-
readonly $type: 'InOutRelationExpr';
|
|
1367
|
-
inout: IncomingRelationExpr;
|
|
1368
|
-
}
|
|
1369
|
-
|
|
1370
|
-
export const InOutRelationExpr = 'InOutRelationExpr';
|
|
1371
|
-
|
|
1372
|
-
export function isInOutRelationExpr(item: unknown): item is InOutRelationExpr {
|
|
1373
|
-
return reflection.isInstance(item, InOutRelationExpr);
|
|
1374
|
-
}
|
|
1375
|
-
|
|
1376
|
-
export interface InOutRelationExpression extends AstNode {
|
|
1377
|
-
readonly $container: Predicates | RelationPredicateWhere | RelationPredicateWith;
|
|
1378
|
-
readonly $type: 'InOutRelationExpression';
|
|
1379
|
-
inout: IncomingRelationExpression;
|
|
1380
|
-
}
|
|
1381
|
-
|
|
1382
|
-
export const InOutRelationExpression = 'InOutRelationExpression';
|
|
1383
|
-
|
|
1384
|
-
export function isInOutRelationExpression(item: unknown): item is InOutRelationExpression {
|
|
1385
|
-
return reflection.isInstance(item, InOutRelationExpression);
|
|
1386
|
-
}
|
|
1387
|
-
|
|
1388
|
-
export interface LibIcon extends AstNode {
|
|
1389
|
-
readonly $container: LikeC4Lib;
|
|
1390
|
-
readonly $type: 'LibIcon';
|
|
1391
|
-
name: IconId;
|
|
1392
|
-
}
|
|
1393
|
-
|
|
1394
|
-
export const LibIcon = 'LibIcon';
|
|
1395
|
-
|
|
1396
|
-
export function isLibIcon(item: unknown): item is LibIcon {
|
|
1397
|
-
return reflection.isInstance(item, LibIcon);
|
|
1398
|
-
}
|
|
1399
|
-
|
|
1400
|
-
export interface LikeC4Grammar extends AstNode {
|
|
1401
|
-
readonly $type: 'LikeC4Grammar';
|
|
1402
|
-
deployments: Array<ModelDeployments>;
|
|
1403
|
-
globals: Array<Globals>;
|
|
1404
|
-
likec4lib: Array<LikeC4Lib>;
|
|
1405
|
-
models: Array<Model>;
|
|
1406
|
-
specifications: Array<SpecificationRule>;
|
|
1407
|
-
views: Array<ModelViews>;
|
|
1408
|
-
}
|
|
1409
|
-
|
|
1410
|
-
export const LikeC4Grammar = 'LikeC4Grammar';
|
|
1411
|
-
|
|
1412
|
-
export function isLikeC4Grammar(item: unknown): item is LikeC4Grammar {
|
|
1413
|
-
return reflection.isInstance(item, LikeC4Grammar);
|
|
1414
|
-
}
|
|
1415
|
-
|
|
1416
|
-
export interface LikeC4Lib extends AstNode {
|
|
1417
|
-
readonly $container: LikeC4Grammar;
|
|
1418
|
-
readonly $type: 'LikeC4Lib';
|
|
1419
|
-
icons: Array<LibIcon>;
|
|
1420
|
-
}
|
|
1421
|
-
|
|
1422
|
-
export const LikeC4Lib = 'LikeC4Lib';
|
|
1423
|
-
|
|
1424
|
-
export function isLikeC4Lib(item: unknown): item is LikeC4Lib {
|
|
1425
|
-
return reflection.isInstance(item, LikeC4Lib);
|
|
1426
|
-
}
|
|
1427
|
-
|
|
1428
|
-
export interface LineProperty extends AstNode {
|
|
1429
|
-
readonly $container: CustomRelationProperties | RelationStyleProperty | SpecificationRelationshipKind;
|
|
1430
|
-
readonly $type: 'LineProperty';
|
|
1431
|
-
key: 'line';
|
|
1432
|
-
value: LineOptions;
|
|
1433
|
-
}
|
|
1434
|
-
|
|
1435
|
-
export const LineProperty = 'LineProperty';
|
|
1436
|
-
|
|
1437
|
-
export function isLineProperty(item: unknown): item is LineProperty {
|
|
1438
|
-
return reflection.isInstance(item, LineProperty);
|
|
1439
|
-
}
|
|
1440
|
-
|
|
1441
|
-
export interface LinkProperty extends AstNode {
|
|
1442
|
-
readonly $container: DeployedInstanceBody | DeploymentNodeBody | DeploymentRelationBody | DeploymentViewBody | DynamicViewBody | ElementBody | ElementViewBody | ExtendElementBody | RelationBody;
|
|
1443
|
-
readonly $type: 'LinkProperty';
|
|
1444
|
-
key: 'link';
|
|
1445
|
-
title?: string;
|
|
1446
|
-
value: Uri;
|
|
1447
|
-
}
|
|
1448
|
-
|
|
1449
|
-
export const LinkProperty = 'LinkProperty';
|
|
1450
|
-
|
|
1451
|
-
export function isLinkProperty(item: unknown): item is LinkProperty {
|
|
1452
|
-
return reflection.isInstance(item, LinkProperty);
|
|
1453
|
-
}
|
|
1454
|
-
|
|
1455
|
-
export interface MetadataAttribute extends AstNode {
|
|
1456
|
-
readonly $container: MetadataBody;
|
|
1457
|
-
readonly $type: 'MetadataAttribute';
|
|
1458
|
-
key: string;
|
|
1459
|
-
value: string;
|
|
1460
|
-
}
|
|
1461
|
-
|
|
1462
|
-
export const MetadataAttribute = 'MetadataAttribute';
|
|
1463
|
-
|
|
1464
|
-
export function isMetadataAttribute(item: unknown): item is MetadataAttribute {
|
|
1465
|
-
return reflection.isInstance(item, MetadataAttribute);
|
|
1466
|
-
}
|
|
1467
|
-
|
|
1468
|
-
export interface MetadataBody extends AstNode {
|
|
1469
|
-
readonly $container: DeployedInstanceBody | DeploymentNodeBody | DeploymentRelationBody | ElementBody | ExtendElementBody | RelationBody;
|
|
1470
|
-
readonly $type: 'MetadataBody';
|
|
1471
|
-
props: Array<MetadataAttribute>;
|
|
1472
|
-
}
|
|
1473
|
-
|
|
1474
|
-
export const MetadataBody = 'MetadataBody';
|
|
1475
|
-
|
|
1476
|
-
export function isMetadataBody(item: unknown): item is MetadataBody {
|
|
1477
|
-
return reflection.isInstance(item, MetadataBody);
|
|
1478
|
-
}
|
|
1479
|
-
|
|
1480
|
-
export interface Model extends AstNode {
|
|
1481
|
-
readonly $container: LikeC4Grammar;
|
|
1482
|
-
readonly $type: 'Model';
|
|
1483
|
-
elements: Array<Element | ExtendElement | Relation>;
|
|
1484
|
-
name: 'model';
|
|
1485
|
-
}
|
|
1486
|
-
|
|
1487
|
-
export const Model = 'Model';
|
|
1488
|
-
|
|
1489
|
-
export function isModel(item: unknown): item is Model {
|
|
1490
|
-
return reflection.isInstance(item, Model);
|
|
1491
|
-
}
|
|
1492
|
-
|
|
1493
|
-
export interface ModelDeployments extends AstNode {
|
|
1494
|
-
readonly $container: LikeC4Grammar;
|
|
1495
|
-
readonly $type: 'ModelDeployments';
|
|
1496
|
-
elements: Array<DeploymentNode | DeploymentRelation>;
|
|
1497
|
-
name: 'deployment';
|
|
1498
|
-
}
|
|
1499
|
-
|
|
1500
|
-
export const ModelDeployments = 'ModelDeployments';
|
|
1501
|
-
|
|
1502
|
-
export function isModelDeployments(item: unknown): item is ModelDeployments {
|
|
1503
|
-
return reflection.isInstance(item, ModelDeployments);
|
|
1504
|
-
}
|
|
1505
|
-
|
|
1506
|
-
export interface ModelViews extends AstNode {
|
|
1507
|
-
readonly $container: LikeC4Grammar;
|
|
1508
|
-
readonly $type: 'ModelViews';
|
|
1509
|
-
name: 'views';
|
|
1510
|
-
styles: Array<ViewRuleStyleOrGlobalRef>;
|
|
1511
|
-
views: Array<LikeC4View>;
|
|
1512
|
-
}
|
|
1513
|
-
|
|
1514
|
-
export const ModelViews = 'ModelViews';
|
|
1515
|
-
|
|
1516
|
-
export function isModelViews(item: unknown): item is ModelViews {
|
|
1517
|
-
return reflection.isInstance(item, ModelViews);
|
|
1518
|
-
}
|
|
1519
|
-
|
|
1520
|
-
export interface MultipleProperty extends AstNode {
|
|
1521
|
-
readonly $container: CustomElementProperties | DeploymentViewRuleStyle | ElementStyleProperty | GlobalStyle | ViewRuleStyle;
|
|
1522
|
-
readonly $type: 'MultipleProperty';
|
|
1523
|
-
key: 'multiple';
|
|
1524
|
-
value: Boolean;
|
|
1525
|
-
}
|
|
1526
|
-
|
|
1527
|
-
export const MultipleProperty = 'MultipleProperty';
|
|
1528
|
-
|
|
1529
|
-
export function isMultipleProperty(item: unknown): item is MultipleProperty {
|
|
1530
|
-
return reflection.isInstance(item, MultipleProperty);
|
|
1531
|
-
}
|
|
1532
|
-
|
|
1533
|
-
export interface NavigateToProperty extends AstNode {
|
|
1534
|
-
readonly $container: CustomElementProperties;
|
|
1535
|
-
readonly $type: 'NavigateToProperty';
|
|
1536
|
-
key: 'navigateTo';
|
|
1537
|
-
value: ViewRef;
|
|
1538
|
-
}
|
|
1539
|
-
|
|
1540
|
-
export const NavigateToProperty = 'NavigateToProperty';
|
|
1541
|
-
|
|
1542
|
-
export function isNavigateToProperty(item: unknown): item is NavigateToProperty {
|
|
1543
|
-
return reflection.isInstance(item, NavigateToProperty);
|
|
1544
|
-
}
|
|
1545
|
-
|
|
1546
|
-
export interface NotationProperty extends AstNode {
|
|
1547
|
-
readonly $container: CustomElementProperties | CustomRelationProperties | DeploymentViewRuleStyle | GlobalStyle | ViewRuleStyle;
|
|
1548
|
-
readonly $type: 'NotationProperty';
|
|
1549
|
-
key: 'notation';
|
|
1550
|
-
value: string;
|
|
1551
|
-
}
|
|
1552
|
-
|
|
1553
|
-
export const NotationProperty = 'NotationProperty';
|
|
1554
|
-
|
|
1555
|
-
export function isNotationProperty(item: unknown): item is NotationProperty {
|
|
1556
|
-
return reflection.isInstance(item, NotationProperty);
|
|
1557
|
-
}
|
|
1558
|
-
|
|
1559
|
-
export interface NotesProperty extends AstNode {
|
|
1560
|
-
readonly $container: CustomRelationProperties;
|
|
1561
|
-
readonly $type: 'NotesProperty';
|
|
1562
|
-
key: 'notes';
|
|
1563
|
-
value: string;
|
|
1564
|
-
}
|
|
1565
|
-
|
|
1566
|
-
export const NotesProperty = 'NotesProperty';
|
|
1567
|
-
|
|
1568
|
-
export function isNotesProperty(item: unknown): item is NotesProperty {
|
|
1569
|
-
return reflection.isInstance(item, NotesProperty);
|
|
1570
|
-
}
|
|
1571
|
-
|
|
1572
|
-
export interface OpacityProperty extends AstNode {
|
|
1573
|
-
readonly $container: CustomElementProperties | DeploymentViewRuleStyle | ElementStyleProperty | GlobalStyle | ViewRuleGroup | ViewRuleStyle;
|
|
1574
|
-
readonly $type: 'OpacityProperty';
|
|
1575
|
-
key: 'opacity';
|
|
1576
|
-
value: string;
|
|
1577
|
-
}
|
|
1578
|
-
|
|
1579
|
-
export const OpacityProperty = 'OpacityProperty';
|
|
1580
|
-
|
|
1581
|
-
export function isOpacityProperty(item: unknown): item is OpacityProperty {
|
|
1582
|
-
return reflection.isInstance(item, OpacityProperty);
|
|
1583
|
-
}
|
|
1584
|
-
|
|
1585
|
-
export interface OutgoingRelationExpr extends AstNode {
|
|
1586
|
-
readonly $container: DeploymentViewRulePredicateExpression | DirectedRelationExpr | RelationPredicateWhereV2;
|
|
1587
|
-
readonly $type: 'OutgoingRelationExpr';
|
|
1588
|
-
from: FqnExpr;
|
|
1589
|
-
isBidirectional: boolean;
|
|
1590
|
-
kind?: Reference<RelationshipKind>;
|
|
1591
|
-
}
|
|
1592
|
-
|
|
1593
|
-
export const OutgoingRelationExpr = 'OutgoingRelationExpr';
|
|
1594
|
-
|
|
1595
|
-
export function isOutgoingRelationExpr(item: unknown): item is OutgoingRelationExpr {
|
|
1596
|
-
return reflection.isInstance(item, OutgoingRelationExpr);
|
|
1597
|
-
}
|
|
1598
|
-
|
|
1599
|
-
export interface OutgoingRelationExpression extends AstNode {
|
|
1600
|
-
readonly $container: DirectedRelationExpression | Predicates | RelationPredicateWhere | RelationPredicateWith;
|
|
1601
|
-
readonly $type: 'OutgoingRelationExpression';
|
|
1602
|
-
from: ElementExpression;
|
|
1603
|
-
isBidirectional: boolean;
|
|
1604
|
-
kind?: Reference<RelationshipKind>;
|
|
1605
|
-
}
|
|
1606
|
-
|
|
1607
|
-
export const OutgoingRelationExpression = 'OutgoingRelationExpression';
|
|
1608
|
-
|
|
1609
|
-
export function isOutgoingRelationExpression(item: unknown): item is OutgoingRelationExpression {
|
|
1610
|
-
return reflection.isInstance(item, OutgoingRelationExpression);
|
|
1611
|
-
}
|
|
1612
|
-
|
|
1613
|
-
export interface PaddingSizeProperty extends AstNode {
|
|
1614
|
-
readonly $container: CustomElementProperties | DeploymentViewRuleStyle | ElementStyleProperty | GlobalStyle | ViewRuleStyle;
|
|
1615
|
-
readonly $type: 'PaddingSizeProperty';
|
|
1616
|
-
key: 'padding';
|
|
1617
|
-
value: SizeValue;
|
|
1618
|
-
}
|
|
1619
|
-
|
|
1620
|
-
export const PaddingSizeProperty = 'PaddingSizeProperty';
|
|
1621
|
-
|
|
1622
|
-
export function isPaddingSizeProperty(item: unknown): item is PaddingSizeProperty {
|
|
1623
|
-
return reflection.isInstance(item, PaddingSizeProperty);
|
|
1624
|
-
}
|
|
1625
|
-
|
|
1626
|
-
export interface Predicates extends AstNode {
|
|
1627
|
-
readonly $container: ExcludePredicate | IncludePredicate | Predicates;
|
|
1628
|
-
readonly $type: 'Predicates';
|
|
1629
|
-
prev?: Predicates;
|
|
1630
|
-
value: Predicate;
|
|
1631
|
-
}
|
|
1632
|
-
|
|
1633
|
-
export const Predicates = 'Predicates';
|
|
1634
|
-
|
|
1635
|
-
export function isPredicates(item: unknown): item is Predicates {
|
|
1636
|
-
return reflection.isInstance(item, Predicates);
|
|
1637
|
-
}
|
|
1638
|
-
|
|
1639
|
-
export interface Relation extends AstNode {
|
|
1640
|
-
readonly $container: ElementBody | ExtendElementBody | Model;
|
|
1641
|
-
readonly $type: 'Relation';
|
|
1642
|
-
body?: RelationBody;
|
|
1643
|
-
kind?: Reference<RelationshipKind>;
|
|
1644
|
-
source?: ElementRef;
|
|
1645
|
-
tags?: Tags;
|
|
1646
|
-
target: ElementRef;
|
|
1647
|
-
technology?: string;
|
|
1648
|
-
title?: string;
|
|
1649
|
-
}
|
|
1650
|
-
|
|
1651
|
-
export const Relation = 'Relation';
|
|
1652
|
-
|
|
1653
|
-
export function isRelation(item: unknown): item is Relation {
|
|
1654
|
-
return reflection.isInstance(item, Relation);
|
|
1655
|
-
}
|
|
1656
|
-
|
|
1657
|
-
export interface RelationBody extends AstNode {
|
|
1658
|
-
readonly $container: Relation;
|
|
1659
|
-
readonly $type: 'RelationBody';
|
|
1660
|
-
props: Array<RelationProperty>;
|
|
1661
|
-
tags?: Tags;
|
|
1662
|
-
}
|
|
1663
|
-
|
|
1664
|
-
export const RelationBody = 'RelationBody';
|
|
1665
|
-
|
|
1666
|
-
export function isRelationBody(item: unknown): item is RelationBody {
|
|
1667
|
-
return reflection.isInstance(item, RelationBody);
|
|
1668
|
-
}
|
|
1669
|
-
|
|
1670
|
-
export interface RelationNavigateToProperty extends AstNode {
|
|
1671
|
-
readonly $container: CustomRelationProperties | DeploymentRelationBody | RelationBody;
|
|
1672
|
-
readonly $type: 'RelationNavigateToProperty';
|
|
1673
|
-
key: 'navigateTo';
|
|
1674
|
-
value: DynamicViewRef;
|
|
1675
|
-
}
|
|
1676
|
-
|
|
1677
|
-
export const RelationNavigateToProperty = 'RelationNavigateToProperty';
|
|
1678
|
-
|
|
1679
|
-
export function isRelationNavigateToProperty(item: unknown): item is RelationNavigateToProperty {
|
|
1680
|
-
return reflection.isInstance(item, RelationNavigateToProperty);
|
|
1681
|
-
}
|
|
1682
|
-
|
|
1683
|
-
export interface RelationPredicateWhere extends AstNode {
|
|
1684
|
-
readonly $container: Predicates | RelationPredicateWith;
|
|
1685
|
-
readonly $type: 'RelationPredicateWhere';
|
|
1686
|
-
subject: RelationExpression;
|
|
1687
|
-
where?: WhereRelationExpression;
|
|
1688
|
-
}
|
|
1689
|
-
|
|
1690
|
-
export const RelationPredicateWhere = 'RelationPredicateWhere';
|
|
1691
|
-
|
|
1692
|
-
export function isRelationPredicateWhere(item: unknown): item is RelationPredicateWhere {
|
|
1693
|
-
return reflection.isInstance(item, RelationPredicateWhere);
|
|
1694
|
-
}
|
|
1695
|
-
|
|
1696
|
-
export interface RelationPredicateWhereV2 extends AstNode {
|
|
1697
|
-
readonly $container: DeploymentViewRulePredicateExpression;
|
|
1698
|
-
readonly $type: 'RelationPredicateWhereV2';
|
|
1699
|
-
subject: RelationExpr;
|
|
1700
|
-
where?: WhereRelationExpression;
|
|
1701
|
-
}
|
|
1702
|
-
|
|
1703
|
-
export const RelationPredicateWhereV2 = 'RelationPredicateWhereV2';
|
|
1704
|
-
|
|
1705
|
-
export function isRelationPredicateWhereV2(item: unknown): item is RelationPredicateWhereV2 {
|
|
1706
|
-
return reflection.isInstance(item, RelationPredicateWhereV2);
|
|
1707
|
-
}
|
|
1708
|
-
|
|
1709
|
-
export interface RelationPredicateWith extends AstNode {
|
|
1710
|
-
readonly $container: Predicates;
|
|
1711
|
-
readonly $type: 'RelationPredicateWith';
|
|
1712
|
-
custom?: CustomRelationProperties;
|
|
1713
|
-
subject: RelationPredicateOrWhere;
|
|
1714
|
-
}
|
|
1715
|
-
|
|
1716
|
-
export const RelationPredicateWith = 'RelationPredicateWith';
|
|
1717
|
-
|
|
1718
|
-
export function isRelationPredicateWith(item: unknown): item is RelationPredicateWith {
|
|
1719
|
-
return reflection.isInstance(item, RelationPredicateWith);
|
|
1720
|
-
}
|
|
1721
|
-
|
|
1722
|
-
export interface RelationshipKind extends AstNode {
|
|
1723
|
-
readonly $container: SpecificationRelationshipKind;
|
|
1724
|
-
readonly $type: 'RelationshipKind';
|
|
1725
|
-
name: Id;
|
|
1726
|
-
}
|
|
1727
|
-
|
|
1728
|
-
export const RelationshipKind = 'RelationshipKind';
|
|
1729
|
-
|
|
1730
|
-
export function isRelationshipKind(item: unknown): item is RelationshipKind {
|
|
1731
|
-
return reflection.isInstance(item, RelationshipKind);
|
|
1732
|
-
}
|
|
1733
|
-
|
|
1734
|
-
export interface RelationStringProperty extends AstNode {
|
|
1735
|
-
readonly $container: CustomRelationProperties | DeploymentRelationBody | RelationBody;
|
|
1736
|
-
readonly $type: 'RelationStringProperty';
|
|
1737
|
-
key: 'description' | 'technology' | 'title';
|
|
1738
|
-
value: string;
|
|
1739
|
-
}
|
|
1740
|
-
|
|
1741
|
-
export const RelationStringProperty = 'RelationStringProperty';
|
|
1742
|
-
|
|
1743
|
-
export function isRelationStringProperty(item: unknown): item is RelationStringProperty {
|
|
1744
|
-
return reflection.isInstance(item, RelationStringProperty);
|
|
1745
|
-
}
|
|
1746
|
-
|
|
1747
|
-
export interface RelationStyleProperty extends AstNode {
|
|
1748
|
-
readonly $container: DeploymentRelationBody | RelationBody;
|
|
1749
|
-
readonly $type: 'RelationStyleProperty';
|
|
1750
|
-
key: 'style';
|
|
1751
|
-
props: Array<RelationshipStyleProperty>;
|
|
1752
|
-
}
|
|
1753
|
-
|
|
1754
|
-
export const RelationStyleProperty = 'RelationStyleProperty';
|
|
1755
|
-
|
|
1756
|
-
export function isRelationStyleProperty(item: unknown): item is RelationStyleProperty {
|
|
1757
|
-
return reflection.isInstance(item, RelationStyleProperty);
|
|
1758
|
-
}
|
|
1759
|
-
|
|
1760
|
-
export interface ShapeProperty extends AstNode {
|
|
1761
|
-
readonly $container: CustomElementProperties | DeploymentViewRuleStyle | ElementStyleProperty | GlobalStyle | ViewRuleStyle;
|
|
1762
|
-
readonly $type: 'ShapeProperty';
|
|
1763
|
-
key: 'shape';
|
|
1764
|
-
value: ElementShape;
|
|
1765
|
-
}
|
|
1766
|
-
|
|
1767
|
-
export const ShapeProperty = 'ShapeProperty';
|
|
1768
|
-
|
|
1769
|
-
export function isShapeProperty(item: unknown): item is ShapeProperty {
|
|
1770
|
-
return reflection.isInstance(item, ShapeProperty);
|
|
1771
|
-
}
|
|
1772
|
-
|
|
1773
|
-
export interface ShapeSizeProperty extends AstNode {
|
|
1774
|
-
readonly $container: CustomElementProperties | DeploymentViewRuleStyle | ElementStyleProperty | GlobalStyle | ViewRuleStyle;
|
|
1775
|
-
readonly $type: 'ShapeSizeProperty';
|
|
1776
|
-
key: 'size';
|
|
1777
|
-
value: SizeValue;
|
|
1778
|
-
}
|
|
1779
|
-
|
|
1780
|
-
export const ShapeSizeProperty = 'ShapeSizeProperty';
|
|
1781
|
-
|
|
1782
|
-
export function isShapeSizeProperty(item: unknown): item is ShapeSizeProperty {
|
|
1783
|
-
return reflection.isInstance(item, ShapeSizeProperty);
|
|
1784
|
-
}
|
|
1785
|
-
|
|
1786
|
-
export interface SpecificationColor extends AstNode {
|
|
1787
|
-
readonly $container: SpecificationRule;
|
|
1788
|
-
readonly $type: 'SpecificationColor';
|
|
1789
|
-
color: CustomColorValue;
|
|
1790
|
-
name: CustomColor;
|
|
1791
|
-
}
|
|
1792
|
-
|
|
1793
|
-
export const SpecificationColor = 'SpecificationColor';
|
|
1794
|
-
|
|
1795
|
-
export function isSpecificationColor(item: unknown): item is SpecificationColor {
|
|
1796
|
-
return reflection.isInstance(item, SpecificationColor);
|
|
1797
|
-
}
|
|
1798
|
-
|
|
1799
|
-
export interface SpecificationDeploymentNodeKind extends AstNode {
|
|
1800
|
-
readonly $container: SpecificationRule;
|
|
1801
|
-
readonly $type: 'SpecificationDeploymentNodeKind';
|
|
1802
|
-
kind: DeploymentNodeKind;
|
|
1803
|
-
props: Array<ElementStyleProperty | SpecificationElementStringProperty>;
|
|
1804
|
-
}
|
|
1805
|
-
|
|
1806
|
-
export const SpecificationDeploymentNodeKind = 'SpecificationDeploymentNodeKind';
|
|
1807
|
-
|
|
1808
|
-
export function isSpecificationDeploymentNodeKind(item: unknown): item is SpecificationDeploymentNodeKind {
|
|
1809
|
-
return reflection.isInstance(item, SpecificationDeploymentNodeKind);
|
|
1810
|
-
}
|
|
1811
|
-
|
|
1812
|
-
export interface SpecificationElementKind extends AstNode {
|
|
1813
|
-
readonly $container: SpecificationRule;
|
|
1814
|
-
readonly $type: 'SpecificationElementKind';
|
|
1815
|
-
kind: ElementKind;
|
|
1816
|
-
props: Array<ElementStyleProperty | SpecificationElementStringProperty>;
|
|
1817
|
-
}
|
|
1818
|
-
|
|
1819
|
-
export const SpecificationElementKind = 'SpecificationElementKind';
|
|
1820
|
-
|
|
1821
|
-
export function isSpecificationElementKind(item: unknown): item is SpecificationElementKind {
|
|
1822
|
-
return reflection.isInstance(item, SpecificationElementKind);
|
|
1823
|
-
}
|
|
1824
|
-
|
|
1825
|
-
export interface SpecificationElementStringProperty extends AstNode {
|
|
1826
|
-
readonly $container: SpecificationDeploymentNodeKind | SpecificationElementKind;
|
|
1827
|
-
readonly $type: 'SpecificationElementStringProperty';
|
|
1828
|
-
key: 'notation' | 'technology';
|
|
1829
|
-
value: string;
|
|
1830
|
-
}
|
|
1831
|
-
|
|
1832
|
-
export const SpecificationElementStringProperty = 'SpecificationElementStringProperty';
|
|
1833
|
-
|
|
1834
|
-
export function isSpecificationElementStringProperty(item: unknown): item is SpecificationElementStringProperty {
|
|
1835
|
-
return reflection.isInstance(item, SpecificationElementStringProperty);
|
|
1836
|
-
}
|
|
1837
|
-
|
|
1838
|
-
export interface SpecificationRelationshipKind extends AstNode {
|
|
1839
|
-
readonly $container: SpecificationRule;
|
|
1840
|
-
readonly $type: 'SpecificationRelationshipKind';
|
|
1841
|
-
kind: RelationshipKind;
|
|
1842
|
-
props: Array<RelationshipStyleProperty | SpecificationRelationshipStringProperty>;
|
|
1843
|
-
}
|
|
1844
|
-
|
|
1845
|
-
export const SpecificationRelationshipKind = 'SpecificationRelationshipKind';
|
|
1846
|
-
|
|
1847
|
-
export function isSpecificationRelationshipKind(item: unknown): item is SpecificationRelationshipKind {
|
|
1848
|
-
return reflection.isInstance(item, SpecificationRelationshipKind);
|
|
1849
|
-
}
|
|
1850
|
-
|
|
1851
|
-
export interface SpecificationRelationshipStringProperty extends AstNode {
|
|
1852
|
-
readonly $container: SpecificationRelationshipKind;
|
|
1853
|
-
readonly $type: 'SpecificationRelationshipStringProperty';
|
|
1854
|
-
key: 'notation' | 'technology';
|
|
1855
|
-
value: string;
|
|
1856
|
-
}
|
|
1857
|
-
|
|
1858
|
-
export const SpecificationRelationshipStringProperty = 'SpecificationRelationshipStringProperty';
|
|
1859
|
-
|
|
1860
|
-
export function isSpecificationRelationshipStringProperty(item: unknown): item is SpecificationRelationshipStringProperty {
|
|
1861
|
-
return reflection.isInstance(item, SpecificationRelationshipStringProperty);
|
|
1862
|
-
}
|
|
1863
|
-
|
|
1864
|
-
export interface SpecificationRule extends AstNode {
|
|
1865
|
-
readonly $container: LikeC4Grammar;
|
|
1866
|
-
readonly $type: 'SpecificationRule';
|
|
1867
|
-
colors: Array<SpecificationColor>;
|
|
1868
|
-
deploymentNodes: Array<SpecificationDeploymentNodeKind>;
|
|
1869
|
-
elements: Array<SpecificationElementKind>;
|
|
1870
|
-
name: 'specification';
|
|
1871
|
-
relationships: Array<SpecificationRelationshipKind>;
|
|
1872
|
-
tags: Array<SpecificationTag>;
|
|
1873
|
-
}
|
|
1874
|
-
|
|
1875
|
-
export const SpecificationRule = 'SpecificationRule';
|
|
1876
|
-
|
|
1877
|
-
export function isSpecificationRule(item: unknown): item is SpecificationRule {
|
|
1878
|
-
return reflection.isInstance(item, SpecificationRule);
|
|
1879
|
-
}
|
|
1880
|
-
|
|
1881
|
-
export interface SpecificationTag extends AstNode {
|
|
1882
|
-
readonly $container: SpecificationRule;
|
|
1883
|
-
readonly $type: 'SpecificationTag';
|
|
1884
|
-
tag: Tag;
|
|
1885
|
-
}
|
|
1886
|
-
|
|
1887
|
-
export const SpecificationTag = 'SpecificationTag';
|
|
1888
|
-
|
|
1889
|
-
export function isSpecificationTag(item: unknown): item is SpecificationTag {
|
|
1890
|
-
return reflection.isInstance(item, SpecificationTag);
|
|
1891
|
-
}
|
|
1892
|
-
|
|
1893
|
-
export interface StrictFqnElementRef extends AstNode {
|
|
1894
|
-
readonly $container: ExtendElement | StrictFqnElementRef;
|
|
1895
|
-
readonly $type: 'StrictFqnElementRef';
|
|
1896
|
-
el: Reference<Element>;
|
|
1897
|
-
parent?: StrictFqnElementRef;
|
|
1898
|
-
}
|
|
1899
|
-
|
|
1900
|
-
export const StrictFqnElementRef = 'StrictFqnElementRef';
|
|
1901
|
-
|
|
1902
|
-
export function isStrictFqnElementRef(item: unknown): item is StrictFqnElementRef {
|
|
1903
|
-
return reflection.isInstance(item, StrictFqnElementRef);
|
|
1904
|
-
}
|
|
1905
|
-
|
|
1906
|
-
export interface Tag extends AstNode {
|
|
1907
|
-
readonly $container: SpecificationTag;
|
|
1908
|
-
readonly $type: 'Tag';
|
|
1909
|
-
name: Id;
|
|
1910
|
-
}
|
|
1911
|
-
|
|
1912
|
-
export const Tag = 'Tag';
|
|
1913
|
-
|
|
1914
|
-
export function isTag(item: unknown): item is Tag {
|
|
1915
|
-
return reflection.isInstance(item, Tag);
|
|
1916
|
-
}
|
|
1917
|
-
|
|
1918
|
-
export interface Tags extends AstNode {
|
|
1919
|
-
readonly $container: DeployedInstanceBody | DeploymentNodeBody | DeploymentRelation | DeploymentRelationBody | DeploymentViewBody | DynamicViewBody | ElementBody | ElementViewBody | ExtendElementBody | Relation | RelationBody | Tags;
|
|
1920
|
-
readonly $type: 'Tags';
|
|
1921
|
-
prev?: Tags;
|
|
1922
|
-
values: Array<Reference<Tag>>;
|
|
1923
|
-
}
|
|
1924
|
-
|
|
1925
|
-
export const Tags = 'Tags';
|
|
1926
|
-
|
|
1927
|
-
export function isTags(item: unknown): item is Tags {
|
|
1928
|
-
return reflection.isInstance(item, Tags);
|
|
1929
|
-
}
|
|
1930
|
-
|
|
1931
|
-
export interface TextSizeProperty extends AstNode {
|
|
1932
|
-
readonly $container: CustomElementProperties | DeploymentViewRuleStyle | ElementStyleProperty | GlobalStyle | ViewRuleStyle;
|
|
1933
|
-
readonly $type: 'TextSizeProperty';
|
|
1934
|
-
key: 'textSize';
|
|
1935
|
-
value: SizeValue;
|
|
1936
|
-
}
|
|
1937
|
-
|
|
1938
|
-
export const TextSizeProperty = 'TextSizeProperty';
|
|
1939
|
-
|
|
1940
|
-
export function isTextSizeProperty(item: unknown): item is TextSizeProperty {
|
|
1941
|
-
return reflection.isInstance(item, TextSizeProperty);
|
|
1942
|
-
}
|
|
1943
|
-
|
|
1944
|
-
export interface ViewRef extends AstNode {
|
|
1945
|
-
readonly $container: NavigateToProperty;
|
|
1946
|
-
readonly $type: 'ViewRef';
|
|
1947
|
-
view: Reference<LikeC4View>;
|
|
1948
|
-
}
|
|
1949
|
-
|
|
1950
|
-
export const ViewRef = 'ViewRef';
|
|
1951
|
-
|
|
1952
|
-
export function isViewRef(item: unknown): item is ViewRef {
|
|
1953
|
-
return reflection.isInstance(item, ViewRef);
|
|
1954
|
-
}
|
|
1955
|
-
|
|
1956
|
-
export interface ViewRuleAutoLayout extends AstNode {
|
|
1957
|
-
readonly $container: DeploymentViewBody | DynamicViewBody | ElementViewBody;
|
|
1958
|
-
readonly $type: 'ViewRuleAutoLayout';
|
|
1959
|
-
direction: ViewLayoutDirection;
|
|
1960
|
-
nodeSep?: number;
|
|
1961
|
-
rankSep?: number;
|
|
1962
|
-
}
|
|
1963
|
-
|
|
1964
|
-
export const ViewRuleAutoLayout = 'ViewRuleAutoLayout';
|
|
1965
|
-
|
|
1966
|
-
export function isViewRuleAutoLayout(item: unknown): item is ViewRuleAutoLayout {
|
|
1967
|
-
return reflection.isInstance(item, ViewRuleAutoLayout);
|
|
1968
|
-
}
|
|
1969
|
-
|
|
1970
|
-
export interface ViewRuleGlobalPredicateRef extends AstNode {
|
|
1971
|
-
readonly $container: ElementViewBody;
|
|
1972
|
-
readonly $type: 'ViewRuleGlobalPredicateRef';
|
|
1973
|
-
predicate: Reference<GlobalPredicateGroup>;
|
|
1974
|
-
}
|
|
1975
|
-
|
|
1976
|
-
export const ViewRuleGlobalPredicateRef = 'ViewRuleGlobalPredicateRef';
|
|
1977
|
-
|
|
1978
|
-
export function isViewRuleGlobalPredicateRef(item: unknown): item is ViewRuleGlobalPredicateRef {
|
|
1979
|
-
return reflection.isInstance(item, ViewRuleGlobalPredicateRef);
|
|
1980
|
-
}
|
|
1981
|
-
|
|
1982
|
-
export interface ViewRuleGlobalStyle extends AstNode {
|
|
1983
|
-
readonly $container: DynamicViewBody | ElementViewBody | ModelViews;
|
|
1984
|
-
readonly $type: 'ViewRuleGlobalStyle';
|
|
1985
|
-
style: Reference<GlobalStyleId>;
|
|
1986
|
-
}
|
|
1987
|
-
|
|
1988
|
-
export const ViewRuleGlobalStyle = 'ViewRuleGlobalStyle';
|
|
1989
|
-
|
|
1990
|
-
export function isViewRuleGlobalStyle(item: unknown): item is ViewRuleGlobalStyle {
|
|
1991
|
-
return reflection.isInstance(item, ViewRuleGlobalStyle);
|
|
1992
|
-
}
|
|
1993
|
-
|
|
1994
|
-
export interface ViewRuleGroup extends AstNode {
|
|
1995
|
-
readonly $container: ElementViewBody | ViewRuleGroup;
|
|
1996
|
-
readonly $type: 'ViewRuleGroup';
|
|
1997
|
-
groupRules: Array<ViewRuleGroup | ViewRulePredicate>;
|
|
1998
|
-
props: Array<BorderProperty | ColorProperty | OpacityProperty>;
|
|
1999
|
-
title?: string;
|
|
2000
|
-
}
|
|
2001
|
-
|
|
2002
|
-
export const ViewRuleGroup = 'ViewRuleGroup';
|
|
2003
|
-
|
|
2004
|
-
export function isViewRuleGroup(item: unknown): item is ViewRuleGroup {
|
|
2005
|
-
return reflection.isInstance(item, ViewRuleGroup);
|
|
2006
|
-
}
|
|
2007
|
-
|
|
2008
|
-
export interface ViewRuleStyle extends AstNode {
|
|
2009
|
-
readonly $container: DynamicViewBody | ElementViewBody | GlobalStyleGroup | ModelViews;
|
|
2010
|
-
readonly $type: 'ViewRuleStyle';
|
|
2011
|
-
props: Array<NotationProperty | StyleProperty>;
|
|
2012
|
-
target: ElementExpressionsIterator;
|
|
2013
|
-
}
|
|
2014
|
-
|
|
2015
|
-
export const ViewRuleStyle = 'ViewRuleStyle';
|
|
2016
|
-
|
|
2017
|
-
export function isViewRuleStyle(item: unknown): item is ViewRuleStyle {
|
|
2018
|
-
return reflection.isInstance(item, ViewRuleStyle);
|
|
2019
|
-
}
|
|
2020
|
-
|
|
2021
|
-
export interface ViewStringProperty extends AstNode {
|
|
2022
|
-
readonly $container: DeploymentViewBody | DynamicViewBody | ElementViewBody;
|
|
2023
|
-
readonly $type: 'ViewStringProperty';
|
|
2024
|
-
key: 'description' | 'title';
|
|
2025
|
-
value: string;
|
|
2026
|
-
}
|
|
2027
|
-
|
|
2028
|
-
export const ViewStringProperty = 'ViewStringProperty';
|
|
2029
|
-
|
|
2030
|
-
export function isViewStringProperty(item: unknown): item is ViewStringProperty {
|
|
2031
|
-
return reflection.isInstance(item, ViewStringProperty);
|
|
2032
|
-
}
|
|
2033
|
-
|
|
2034
|
-
export interface WhereBinaryExpression extends AstNode {
|
|
2035
|
-
readonly $container: ElementPredicateWhere | ElementPredicateWhereV2 | RelationPredicateWhere | RelationPredicateWhereV2 | WhereBinaryExpression | WhereElementNegation | WhereRelationNegation;
|
|
2036
|
-
readonly $type: 'WhereBinaryExpression';
|
|
2037
|
-
left: WhereElementExpression | WhereRelationExpression;
|
|
2038
|
-
operator: 'and' | 'or';
|
|
2039
|
-
right: WhereElementExpression | WhereRelationExpression;
|
|
2040
|
-
}
|
|
2041
|
-
|
|
2042
|
-
export const WhereBinaryExpression = 'WhereBinaryExpression';
|
|
2043
|
-
|
|
2044
|
-
export function isWhereBinaryExpression(item: unknown): item is WhereBinaryExpression {
|
|
2045
|
-
return reflection.isInstance(item, WhereBinaryExpression);
|
|
2046
|
-
}
|
|
2047
|
-
|
|
2048
|
-
export interface WhereElementKind extends AstNode {
|
|
2049
|
-
readonly $container: ElementPredicateWhere | ElementPredicateWhereV2 | WhereBinaryExpression | WhereElementNegation;
|
|
2050
|
-
readonly $type: 'WhereElementKind';
|
|
2051
|
-
not: boolean;
|
|
2052
|
-
operator: 'is' | string;
|
|
2053
|
-
value?: Reference<DeploymentNodeOrElementKind>;
|
|
2054
|
-
}
|
|
2055
|
-
|
|
2056
|
-
export const WhereElementKind = 'WhereElementKind';
|
|
2057
|
-
|
|
2058
|
-
export function isWhereElementKind(item: unknown): item is WhereElementKind {
|
|
2059
|
-
return reflection.isInstance(item, WhereElementKind);
|
|
2060
|
-
}
|
|
2061
|
-
|
|
2062
|
-
export interface WhereElementNegation extends AstNode {
|
|
2063
|
-
readonly $container: ElementPredicateWhere | ElementPredicateWhereV2 | WhereBinaryExpression | WhereElementNegation;
|
|
2064
|
-
readonly $type: 'WhereElementNegation';
|
|
2065
|
-
value: WhereElementExpression;
|
|
2066
|
-
}
|
|
2067
|
-
|
|
2068
|
-
export const WhereElementNegation = 'WhereElementNegation';
|
|
2069
|
-
|
|
2070
|
-
export function isWhereElementNegation(item: unknown): item is WhereElementNegation {
|
|
2071
|
-
return reflection.isInstance(item, WhereElementNegation);
|
|
2072
|
-
}
|
|
2073
|
-
|
|
2074
|
-
export interface WhereElementTag extends AstNode {
|
|
2075
|
-
readonly $container: ElementPredicateWhere | ElementPredicateWhereV2 | WhereBinaryExpression | WhereElementNegation;
|
|
2076
|
-
readonly $type: 'WhereElementTag';
|
|
2077
|
-
not: boolean;
|
|
2078
|
-
operator: 'is' | string;
|
|
2079
|
-
value?: Reference<Tag>;
|
|
2080
|
-
}
|
|
2081
|
-
|
|
2082
|
-
export const WhereElementTag = 'WhereElementTag';
|
|
2083
|
-
|
|
2084
|
-
export function isWhereElementTag(item: unknown): item is WhereElementTag {
|
|
2085
|
-
return reflection.isInstance(item, WhereElementTag);
|
|
2086
|
-
}
|
|
2087
|
-
|
|
2088
|
-
export interface WhereRelationKind extends AstNode {
|
|
2089
|
-
readonly $container: RelationPredicateWhere | RelationPredicateWhereV2 | WhereBinaryExpression | WhereRelationNegation;
|
|
2090
|
-
readonly $type: 'WhereRelationKind';
|
|
2091
|
-
not: boolean;
|
|
2092
|
-
operator: 'is' | string;
|
|
2093
|
-
value?: Reference<RelationshipKind>;
|
|
2094
|
-
}
|
|
2095
|
-
|
|
2096
|
-
export const WhereRelationKind = 'WhereRelationKind';
|
|
2097
|
-
|
|
2098
|
-
export function isWhereRelationKind(item: unknown): item is WhereRelationKind {
|
|
2099
|
-
return reflection.isInstance(item, WhereRelationKind);
|
|
2100
|
-
}
|
|
2101
|
-
|
|
2102
|
-
export interface WhereRelationNegation extends AstNode {
|
|
2103
|
-
readonly $container: RelationPredicateWhere | RelationPredicateWhereV2 | WhereBinaryExpression | WhereRelationNegation;
|
|
2104
|
-
readonly $type: 'WhereRelationNegation';
|
|
2105
|
-
value: WhereRelationExpression;
|
|
2106
|
-
}
|
|
2107
|
-
|
|
2108
|
-
export const WhereRelationNegation = 'WhereRelationNegation';
|
|
2109
|
-
|
|
2110
|
-
export function isWhereRelationNegation(item: unknown): item is WhereRelationNegation {
|
|
2111
|
-
return reflection.isInstance(item, WhereRelationNegation);
|
|
2112
|
-
}
|
|
2113
|
-
|
|
2114
|
-
export interface WhereRelationParticipantKind extends AstNode {
|
|
2115
|
-
readonly $container: RelationPredicateWhere | RelationPredicateWhereV2 | WhereBinaryExpression | WhereRelationNegation;
|
|
2116
|
-
readonly $type: 'WhereRelationParticipantKind';
|
|
2117
|
-
not: boolean;
|
|
2118
|
-
operator: 'is' | string;
|
|
2119
|
-
participant: Participant;
|
|
2120
|
-
value?: Reference<DeploymentNodeOrElementKind>;
|
|
2121
|
-
}
|
|
2122
|
-
|
|
2123
|
-
export const WhereRelationParticipantKind = 'WhereRelationParticipantKind';
|
|
2124
|
-
|
|
2125
|
-
export function isWhereRelationParticipantKind(item: unknown): item is WhereRelationParticipantKind {
|
|
2126
|
-
return reflection.isInstance(item, WhereRelationParticipantKind);
|
|
2127
|
-
}
|
|
2128
|
-
|
|
2129
|
-
export interface WhereRelationParticipantTag extends AstNode {
|
|
2130
|
-
readonly $container: RelationPredicateWhere | RelationPredicateWhereV2 | WhereBinaryExpression | WhereRelationNegation;
|
|
2131
|
-
readonly $type: 'WhereRelationParticipantTag';
|
|
2132
|
-
not: boolean;
|
|
2133
|
-
operator: 'is' | string;
|
|
2134
|
-
participant: Participant;
|
|
2135
|
-
value?: Reference<Tag>;
|
|
2136
|
-
}
|
|
2137
|
-
|
|
2138
|
-
export const WhereRelationParticipantTag = 'WhereRelationParticipantTag';
|
|
2139
|
-
|
|
2140
|
-
export function isWhereRelationParticipantTag(item: unknown): item is WhereRelationParticipantTag {
|
|
2141
|
-
return reflection.isInstance(item, WhereRelationParticipantTag);
|
|
2142
|
-
}
|
|
2143
|
-
|
|
2144
|
-
export interface WhereRelationTag extends AstNode {
|
|
2145
|
-
readonly $container: RelationPredicateWhere | RelationPredicateWhereV2 | WhereBinaryExpression | WhereRelationNegation;
|
|
2146
|
-
readonly $type: 'WhereRelationTag';
|
|
2147
|
-
not: boolean;
|
|
2148
|
-
operator: 'is' | string;
|
|
2149
|
-
value?: Reference<Tag>;
|
|
2150
|
-
}
|
|
2151
|
-
|
|
2152
|
-
export const WhereRelationTag = 'WhereRelationTag';
|
|
2153
|
-
|
|
2154
|
-
export function isWhereRelationTag(item: unknown): item is WhereRelationTag {
|
|
2155
|
-
return reflection.isInstance(item, WhereRelationTag);
|
|
2156
|
-
}
|
|
2157
|
-
|
|
2158
|
-
export interface WildcardExpression extends AstNode {
|
|
2159
|
-
readonly $container: DeploymentViewRulePredicateExpression | DirectedRelationExpr | DirectedRelationExpression | DynamicViewPredicateIterator | ElementExpressionsIterator | ElementPredicateWhere | ElementPredicateWhereV2 | ElementPredicateWith | FqnExpressions | IncomingRelationExpr | IncomingRelationExpression | OutgoingRelationExpr | OutgoingRelationExpression | Predicates;
|
|
2160
|
-
readonly $type: 'WildcardExpression';
|
|
2161
|
-
isWildcard: boolean;
|
|
2162
|
-
}
|
|
2163
|
-
|
|
2164
|
-
export const WildcardExpression = 'WildcardExpression';
|
|
2165
|
-
|
|
2166
|
-
export function isWildcardExpression(item: unknown): item is WildcardExpression {
|
|
2167
|
-
return reflection.isInstance(item, WildcardExpression);
|
|
2168
|
-
}
|
|
2169
|
-
|
|
2170
|
-
export type LikeC4AstType = {
|
|
2171
|
-
ArrowProperty: ArrowProperty
|
|
2172
|
-
BorderProperty: BorderProperty
|
|
2173
|
-
ColorProperty: ColorProperty
|
|
2174
|
-
CustomColor: CustomColor
|
|
2175
|
-
CustomElementProperties: CustomElementProperties
|
|
2176
|
-
CustomRelationProperties: CustomRelationProperties
|
|
2177
|
-
DeployedInstance: DeployedInstance
|
|
2178
|
-
DeployedInstanceBody: DeployedInstanceBody
|
|
2179
|
-
DeploymentElement: DeploymentElement
|
|
2180
|
-
DeploymentNode: DeploymentNode
|
|
2181
|
-
DeploymentNodeBody: DeploymentNodeBody
|
|
2182
|
-
DeploymentNodeKind: DeploymentNodeKind
|
|
2183
|
-
DeploymentNodeOrElementKind: DeploymentNodeOrElementKind
|
|
2184
|
-
DeploymentRelation: DeploymentRelation
|
|
2185
|
-
DeploymentRelationBody: DeploymentRelationBody
|
|
2186
|
-
DeploymentView: DeploymentView
|
|
2187
|
-
DeploymentViewBody: DeploymentViewBody
|
|
2188
|
-
DeploymentViewRule: DeploymentViewRule
|
|
2189
|
-
DeploymentViewRulePredicate: DeploymentViewRulePredicate
|
|
2190
|
-
DeploymentViewRulePredicateExpression: DeploymentViewRulePredicateExpression
|
|
2191
|
-
DeploymentViewRuleStyle: DeploymentViewRuleStyle
|
|
2192
|
-
DirectedRelationExpr: DirectedRelationExpr
|
|
2193
|
-
DirectedRelationExpression: DirectedRelationExpression
|
|
2194
|
-
DynamicView: DynamicView
|
|
2195
|
-
DynamicViewBody: DynamicViewBody
|
|
2196
|
-
DynamicViewGlobalPredicateRef: DynamicViewGlobalPredicateRef
|
|
2197
|
-
DynamicViewIncludePredicate: DynamicViewIncludePredicate
|
|
2198
|
-
DynamicViewParallelSteps: DynamicViewParallelSteps
|
|
2199
|
-
DynamicViewPredicateIterator: DynamicViewPredicateIterator
|
|
2200
|
-
DynamicViewRef: DynamicViewRef
|
|
2201
|
-
DynamicViewRule: DynamicViewRule
|
|
2202
|
-
DynamicViewStep: DynamicViewStep
|
|
2203
|
-
Element: Element
|
|
2204
|
-
ElementBody: ElementBody
|
|
2205
|
-
ElementDescedantsExpression: ElementDescedantsExpression
|
|
2206
|
-
ElementExpression: ElementExpression
|
|
2207
|
-
ElementExpressionsIterator: ElementExpressionsIterator
|
|
2208
|
-
ElementKind: ElementKind
|
|
2209
|
-
ElementKindExpression: ElementKindExpression
|
|
2210
|
-
ElementPredicate: ElementPredicate
|
|
2211
|
-
ElementPredicateOrWhere: ElementPredicateOrWhere
|
|
2212
|
-
ElementPredicateOrWhereV2: ElementPredicateOrWhereV2
|
|
2213
|
-
ElementPredicateWhere: ElementPredicateWhere
|
|
2214
|
-
ElementPredicateWhereV2: ElementPredicateWhereV2
|
|
2215
|
-
ElementPredicateWith: ElementPredicateWith
|
|
2216
|
-
ElementProperty: ElementProperty
|
|
2217
|
-
ElementRef: ElementRef
|
|
2218
|
-
ElementStringProperty: ElementStringProperty
|
|
2219
|
-
ElementStyleProperty: ElementStyleProperty
|
|
2220
|
-
ElementTagExpression: ElementTagExpression
|
|
2221
|
-
ElementView: ElementView
|
|
2222
|
-
ElementViewBody: ElementViewBody
|
|
2223
|
-
ElementViewRef: ElementViewRef
|
|
2224
|
-
ExcludePredicate: ExcludePredicate
|
|
2225
|
-
ExpandElementExpression: ExpandElementExpression
|
|
2226
|
-
ExpressionV2: ExpressionV2
|
|
2227
|
-
ExtendElement: ExtendElement
|
|
2228
|
-
ExtendElementBody: ExtendElementBody
|
|
2229
|
-
ExtendElementProperty: ExtendElementProperty
|
|
2230
|
-
FqnExpr: FqnExpr
|
|
2231
|
-
FqnExpressions: FqnExpressions
|
|
2232
|
-
FqnRef: FqnRef
|
|
2233
|
-
FqnRefExpr: FqnRefExpr
|
|
2234
|
-
FqnReferenceable: FqnReferenceable
|
|
2235
|
-
GlobalDynamicPredicateGroup: GlobalDynamicPredicateGroup
|
|
2236
|
-
GlobalPredicateGroup: GlobalPredicateGroup
|
|
2237
|
-
GlobalStyle: GlobalStyle
|
|
2238
|
-
GlobalStyleGroup: GlobalStyleGroup
|
|
2239
|
-
GlobalStyleId: GlobalStyleId
|
|
2240
|
-
Globals: Globals
|
|
2241
|
-
IconProperty: IconProperty
|
|
2242
|
-
InOutRelationExpr: InOutRelationExpr
|
|
2243
|
-
InOutRelationExpression: InOutRelationExpression
|
|
2244
|
-
IncludePredicate: IncludePredicate
|
|
2245
|
-
IncomingRelationExpr: IncomingRelationExpr
|
|
2246
|
-
IncomingRelationExpression: IncomingRelationExpression
|
|
2247
|
-
LibIcon: LibIcon
|
|
2248
|
-
LikeC4Grammar: LikeC4Grammar
|
|
2249
|
-
LikeC4Lib: LikeC4Lib
|
|
2250
|
-
LikeC4View: LikeC4View
|
|
2251
|
-
LineProperty: LineProperty
|
|
2252
|
-
LinkProperty: LinkProperty
|
|
2253
|
-
MetadataAttribute: MetadataAttribute
|
|
2254
|
-
MetadataBody: MetadataBody
|
|
2255
|
-
MetadataProperty: MetadataProperty
|
|
2256
|
-
Model: Model
|
|
2257
|
-
ModelDeployments: ModelDeployments
|
|
2258
|
-
ModelViews: ModelViews
|
|
2259
|
-
MultipleProperty: MultipleProperty
|
|
2260
|
-
NavigateToProperty: NavigateToProperty
|
|
2261
|
-
NotationProperty: NotationProperty
|
|
2262
|
-
NotesProperty: NotesProperty
|
|
2263
|
-
OpacityProperty: OpacityProperty
|
|
2264
|
-
OutgoingRelationExpr: OutgoingRelationExpr
|
|
2265
|
-
OutgoingRelationExpression: OutgoingRelationExpression
|
|
2266
|
-
PaddingSizeProperty: PaddingSizeProperty
|
|
2267
|
-
Predicate: Predicate
|
|
2268
|
-
Predicates: Predicates
|
|
2269
|
-
Referenceable: Referenceable
|
|
2270
|
-
Relation: Relation
|
|
2271
|
-
RelationBody: RelationBody
|
|
2272
|
-
RelationExpr: RelationExpr
|
|
2273
|
-
RelationExpression: RelationExpression
|
|
2274
|
-
RelationNavigateToProperty: RelationNavigateToProperty
|
|
2275
|
-
RelationPredicate: RelationPredicate
|
|
2276
|
-
RelationPredicateOrWhere: RelationPredicateOrWhere
|
|
2277
|
-
RelationPredicateOrWhereV2: RelationPredicateOrWhereV2
|
|
2278
|
-
RelationPredicateWhere: RelationPredicateWhere
|
|
2279
|
-
RelationPredicateWhereV2: RelationPredicateWhereV2
|
|
2280
|
-
RelationPredicateWith: RelationPredicateWith
|
|
2281
|
-
RelationProperty: RelationProperty
|
|
2282
|
-
RelationStringProperty: RelationStringProperty
|
|
2283
|
-
RelationStyleProperty: RelationStyleProperty
|
|
2284
|
-
RelationshipKind: RelationshipKind
|
|
2285
|
-
RelationshipStyleProperty: RelationshipStyleProperty
|
|
2286
|
-
ShapeProperty: ShapeProperty
|
|
2287
|
-
ShapeSizeProperty: ShapeSizeProperty
|
|
2288
|
-
SizeProperty: SizeProperty
|
|
2289
|
-
SpecificationColor: SpecificationColor
|
|
2290
|
-
SpecificationDeploymentNodeKind: SpecificationDeploymentNodeKind
|
|
2291
|
-
SpecificationElementKind: SpecificationElementKind
|
|
2292
|
-
SpecificationElementStringProperty: SpecificationElementStringProperty
|
|
2293
|
-
SpecificationRelationshipKind: SpecificationRelationshipKind
|
|
2294
|
-
SpecificationRelationshipStringProperty: SpecificationRelationshipStringProperty
|
|
2295
|
-
SpecificationRule: SpecificationRule
|
|
2296
|
-
SpecificationTag: SpecificationTag
|
|
2297
|
-
StrictFqnElementRef: StrictFqnElementRef
|
|
2298
|
-
StringProperty: StringProperty
|
|
2299
|
-
StyleProperty: StyleProperty
|
|
2300
|
-
Tag: Tag
|
|
2301
|
-
Tags: Tags
|
|
2302
|
-
TextSizeProperty: TextSizeProperty
|
|
2303
|
-
ViewProperty: ViewProperty
|
|
2304
|
-
ViewRef: ViewRef
|
|
2305
|
-
ViewRule: ViewRule
|
|
2306
|
-
ViewRuleAutoLayout: ViewRuleAutoLayout
|
|
2307
|
-
ViewRuleGlobalPredicateRef: ViewRuleGlobalPredicateRef
|
|
2308
|
-
ViewRuleGlobalStyle: ViewRuleGlobalStyle
|
|
2309
|
-
ViewRuleGroup: ViewRuleGroup
|
|
2310
|
-
ViewRulePredicate: ViewRulePredicate
|
|
2311
|
-
ViewRuleStyle: ViewRuleStyle
|
|
2312
|
-
ViewRuleStyleOrGlobalRef: ViewRuleStyleOrGlobalRef
|
|
2313
|
-
ViewStringProperty: ViewStringProperty
|
|
2314
|
-
WhereBinaryExpression: WhereBinaryExpression
|
|
2315
|
-
WhereElement: WhereElement
|
|
2316
|
-
WhereElementExpression: WhereElementExpression
|
|
2317
|
-
WhereElementKind: WhereElementKind
|
|
2318
|
-
WhereElementNegation: WhereElementNegation
|
|
2319
|
-
WhereElementTag: WhereElementTag
|
|
2320
|
-
WhereExpression: WhereExpression
|
|
2321
|
-
WhereKindEqual: WhereKindEqual
|
|
2322
|
-
WhereRelation: WhereRelation
|
|
2323
|
-
WhereRelationExpression: WhereRelationExpression
|
|
2324
|
-
WhereRelationKind: WhereRelationKind
|
|
2325
|
-
WhereRelationNegation: WhereRelationNegation
|
|
2326
|
-
WhereRelationParticipantKind: WhereRelationParticipantKind
|
|
2327
|
-
WhereRelationParticipantTag: WhereRelationParticipantTag
|
|
2328
|
-
WhereRelationTag: WhereRelationTag
|
|
2329
|
-
WhereTagEqual: WhereTagEqual
|
|
2330
|
-
WildcardExpression: WildcardExpression
|
|
2331
|
-
}
|
|
2332
|
-
|
|
2333
|
-
export class LikeC4AstReflection extends AbstractAstReflection {
|
|
2334
|
-
|
|
2335
|
-
getAllTypes(): string[] {
|
|
2336
|
-
return [ArrowProperty, BorderProperty, ColorProperty, CustomColor, CustomElementProperties, CustomRelationProperties, DeployedInstance, DeployedInstanceBody, DeploymentElement, DeploymentNode, DeploymentNodeBody, DeploymentNodeKind, DeploymentNodeOrElementKind, DeploymentRelation, DeploymentRelationBody, DeploymentView, DeploymentViewBody, DeploymentViewRule, DeploymentViewRulePredicate, DeploymentViewRulePredicateExpression, DeploymentViewRuleStyle, DirectedRelationExpr, DirectedRelationExpression, DynamicView, DynamicViewBody, DynamicViewGlobalPredicateRef, DynamicViewIncludePredicate, DynamicViewParallelSteps, DynamicViewPredicateIterator, DynamicViewRef, DynamicViewRule, DynamicViewStep, Element, ElementBody, ElementDescedantsExpression, ElementExpression, ElementExpressionsIterator, ElementKind, ElementKindExpression, ElementPredicate, ElementPredicateOrWhere, ElementPredicateOrWhereV2, ElementPredicateWhere, ElementPredicateWhereV2, ElementPredicateWith, ElementProperty, ElementRef, ElementStringProperty, ElementStyleProperty, ElementTagExpression, ElementView, ElementViewBody, ElementViewRef, ExcludePredicate, ExpandElementExpression, ExpressionV2, ExtendElement, ExtendElementBody, ExtendElementProperty, FqnExpr, FqnExpressions, FqnRef, FqnRefExpr, FqnReferenceable, GlobalDynamicPredicateGroup, GlobalPredicateGroup, GlobalStyle, GlobalStyleGroup, GlobalStyleId, Globals, IconProperty, InOutRelationExpr, InOutRelationExpression, IncludePredicate, IncomingRelationExpr, IncomingRelationExpression, LibIcon, LikeC4Grammar, LikeC4Lib, LikeC4View, LineProperty, LinkProperty, MetadataAttribute, MetadataBody, MetadataProperty, Model, ModelDeployments, ModelViews, MultipleProperty, NavigateToProperty, NotationProperty, NotesProperty, OpacityProperty, OutgoingRelationExpr, OutgoingRelationExpression, PaddingSizeProperty, Predicate, Predicates, Referenceable, Relation, RelationBody, RelationExpr, RelationExpression, RelationNavigateToProperty, RelationPredicate, RelationPredicateOrWhere, RelationPredicateOrWhereV2, RelationPredicateWhere, RelationPredicateWhereV2, RelationPredicateWith, RelationProperty, RelationStringProperty, RelationStyleProperty, RelationshipKind, RelationshipStyleProperty, ShapeProperty, ShapeSizeProperty, SizeProperty, SpecificationColor, SpecificationDeploymentNodeKind, SpecificationElementKind, SpecificationElementStringProperty, SpecificationRelationshipKind, SpecificationRelationshipStringProperty, SpecificationRule, SpecificationTag, StrictFqnElementRef, StringProperty, StyleProperty, Tag, Tags, TextSizeProperty, ViewProperty, ViewRef, ViewRule, ViewRuleAutoLayout, ViewRuleGlobalPredicateRef, ViewRuleGlobalStyle, ViewRuleGroup, ViewRulePredicate, ViewRuleStyle, ViewRuleStyleOrGlobalRef, ViewStringProperty, WhereBinaryExpression, WhereElement, WhereElementExpression, WhereElementKind, WhereElementNegation, WhereElementTag, WhereExpression, WhereKindEqual, WhereRelation, WhereRelationExpression, WhereRelationKind, WhereRelationNegation, WhereRelationParticipantKind, WhereRelationParticipantTag, WhereRelationTag, WhereTagEqual, WildcardExpression];
|
|
2337
|
-
}
|
|
2338
|
-
|
|
2339
|
-
protected override computeIsSubtype(subtype: string, supertype: string): boolean {
|
|
2340
|
-
switch (subtype) {
|
|
2341
|
-
case ArrowProperty:
|
|
2342
|
-
case LineProperty: {
|
|
2343
|
-
return this.isSubtype(RelationshipStyleProperty, supertype);
|
|
2344
|
-
}
|
|
2345
|
-
case BorderProperty:
|
|
2346
|
-
case MultipleProperty:
|
|
2347
|
-
case OpacityProperty:
|
|
2348
|
-
case ShapeProperty: {
|
|
2349
|
-
return this.isSubtype(StyleProperty, supertype);
|
|
2350
|
-
}
|
|
2351
|
-
case ColorProperty: {
|
|
2352
|
-
return this.isSubtype(RelationshipStyleProperty, supertype) || this.isSubtype(StyleProperty, supertype);
|
|
2353
|
-
}
|
|
2354
|
-
case DeployedInstance:
|
|
2355
|
-
case DeploymentNode: {
|
|
2356
|
-
return this.isSubtype(DeploymentElement, supertype) || this.isSubtype(Referenceable, supertype);
|
|
2357
|
-
}
|
|
2358
|
-
case DeploymentNodeKind:
|
|
2359
|
-
case ElementKind: {
|
|
2360
|
-
return this.isSubtype(DeploymentNodeOrElementKind, supertype);
|
|
2361
|
-
}
|
|
2362
|
-
case DeploymentView:
|
|
2363
|
-
case DynamicView:
|
|
2364
|
-
case ElementView: {
|
|
2365
|
-
return this.isSubtype(LikeC4View, supertype);
|
|
2366
|
-
}
|
|
2367
|
-
case DeploymentViewRulePredicate:
|
|
2368
|
-
case DeploymentViewRuleStyle: {
|
|
2369
|
-
return this.isSubtype(DeploymentViewRule, supertype);
|
|
2370
|
-
}
|
|
2371
|
-
case DirectedRelationExpr:
|
|
2372
|
-
case IncomingRelationExpr:
|
|
2373
|
-
case InOutRelationExpr:
|
|
2374
|
-
case OutgoingRelationExpr: {
|
|
2375
|
-
return this.isSubtype(RelationExpr, supertype);
|
|
2376
|
-
}
|
|
2377
|
-
case DirectedRelationExpression:
|
|
2378
|
-
case IncomingRelationExpression:
|
|
2379
|
-
case InOutRelationExpression:
|
|
2380
|
-
case OutgoingRelationExpression: {
|
|
2381
|
-
return this.isSubtype(RelationExpression, supertype);
|
|
2382
|
-
}
|
|
2383
|
-
case DynamicViewGlobalPredicateRef:
|
|
2384
|
-
case DynamicViewIncludePredicate: {
|
|
2385
|
-
return this.isSubtype(DynamicViewRule, supertype);
|
|
2386
|
-
}
|
|
2387
|
-
case Element: {
|
|
2388
|
-
return this.isSubtype(FqnReferenceable, supertype) || this.isSubtype(Referenceable, supertype);
|
|
2389
|
-
}
|
|
2390
|
-
case ElementDescedantsExpression:
|
|
2391
|
-
case ElementKindExpression:
|
|
2392
|
-
case ElementRef:
|
|
2393
|
-
case ElementTagExpression:
|
|
2394
|
-
case ExpandElementExpression: {
|
|
2395
|
-
return this.isSubtype(ElementExpression, supertype);
|
|
2396
|
-
}
|
|
2397
|
-
case ElementExpression:
|
|
2398
|
-
case ElementPredicateWhere: {
|
|
2399
|
-
return this.isSubtype(ElementPredicateOrWhere, supertype);
|
|
2400
|
-
}
|
|
2401
|
-
case ElementPredicate:
|
|
2402
|
-
case RelationPredicate: {
|
|
2403
|
-
return this.isSubtype(Predicate, supertype);
|
|
2404
|
-
}
|
|
2405
|
-
case ElementPredicateOrWhere:
|
|
2406
|
-
case ElementPredicateWith: {
|
|
2407
|
-
return this.isSubtype(ElementPredicate, supertype);
|
|
2408
|
-
}
|
|
2409
|
-
case ElementPredicateOrWhereV2:
|
|
2410
|
-
case RelationPredicateOrWhereV2: {
|
|
2411
|
-
return this.isSubtype(ExpressionV2, supertype);
|
|
2412
|
-
}
|
|
2413
|
-
case ElementPredicateWhereV2:
|
|
2414
|
-
case FqnExpr: {
|
|
2415
|
-
return this.isSubtype(ElementPredicateOrWhereV2, supertype);
|
|
2416
|
-
}
|
|
2417
|
-
case ElementStringProperty: {
|
|
2418
|
-
return this.isSubtype(ElementProperty, supertype) || this.isSubtype(StringProperty, supertype);
|
|
2419
|
-
}
|
|
2420
|
-
case ElementStyleProperty: {
|
|
2421
|
-
return this.isSubtype(ElementProperty, supertype);
|
|
2422
|
-
}
|
|
2423
|
-
case ExcludePredicate:
|
|
2424
|
-
case IncludePredicate: {
|
|
2425
|
-
return this.isSubtype(ViewRulePredicate, supertype);
|
|
2426
|
-
}
|
|
2427
|
-
case ExtendElement:
|
|
2428
|
-
case Referenceable: {
|
|
2429
|
-
return this.isSubtype(FqnReferenceable, supertype);
|
|
2430
|
-
}
|
|
2431
|
-
case FqnRefExpr: {
|
|
2432
|
-
return this.isSubtype(FqnExpr, supertype);
|
|
2433
|
-
}
|
|
2434
|
-
case IconProperty: {
|
|
2435
|
-
return this.isSubtype(ElementProperty, supertype) || this.isSubtype(StyleProperty, supertype);
|
|
2436
|
-
}
|
|
2437
|
-
case LinkProperty: {
|
|
2438
|
-
return this.isSubtype(ElementProperty, supertype) || this.isSubtype(ExtendElementProperty, supertype) || this.isSubtype(RelationProperty, supertype) || this.isSubtype(ViewProperty, supertype);
|
|
2439
|
-
}
|
|
2440
|
-
case MetadataAttribute:
|
|
2441
|
-
case NotationProperty:
|
|
2442
|
-
case NotesProperty:
|
|
2443
|
-
case SpecificationElementStringProperty:
|
|
2444
|
-
case SpecificationRelationshipStringProperty: {
|
|
2445
|
-
return this.isSubtype(StringProperty, supertype);
|
|
2446
|
-
}
|
|
2447
|
-
case MetadataBody: {
|
|
2448
|
-
return this.isSubtype(MetadataProperty, supertype);
|
|
2449
|
-
}
|
|
2450
|
-
case MetadataProperty: {
|
|
2451
|
-
return this.isSubtype(ElementProperty, supertype) || this.isSubtype(ExtendElementProperty, supertype) || this.isSubtype(RelationProperty, supertype);
|
|
2452
|
-
}
|
|
2453
|
-
case PaddingSizeProperty:
|
|
2454
|
-
case ShapeSizeProperty:
|
|
2455
|
-
case TextSizeProperty: {
|
|
2456
|
-
return this.isSubtype(SizeProperty, supertype) || this.isSubtype(StyleProperty, supertype);
|
|
2457
|
-
}
|
|
2458
|
-
case RelationExpr:
|
|
2459
|
-
case RelationPredicateWhereV2: {
|
|
2460
|
-
return this.isSubtype(RelationPredicateOrWhereV2, supertype);
|
|
2461
|
-
}
|
|
2462
|
-
case RelationExpression:
|
|
2463
|
-
case RelationPredicateWhere: {
|
|
2464
|
-
return this.isSubtype(RelationPredicateOrWhere, supertype);
|
|
2465
|
-
}
|
|
2466
|
-
case RelationNavigateToProperty:
|
|
2467
|
-
case RelationStyleProperty: {
|
|
2468
|
-
return this.isSubtype(RelationProperty, supertype);
|
|
2469
|
-
}
|
|
2470
|
-
case RelationPredicateOrWhere:
|
|
2471
|
-
case RelationPredicateWith: {
|
|
2472
|
-
return this.isSubtype(RelationPredicate, supertype);
|
|
2473
|
-
}
|
|
2474
|
-
case RelationStringProperty: {
|
|
2475
|
-
return this.isSubtype(RelationProperty, supertype) || this.isSubtype(StringProperty, supertype);
|
|
2476
|
-
}
|
|
2477
|
-
case ViewRuleAutoLayout: {
|
|
2478
|
-
return this.isSubtype(DeploymentViewRule, supertype) || this.isSubtype(DynamicViewRule, supertype) || this.isSubtype(ViewRule, supertype);
|
|
2479
|
-
}
|
|
2480
|
-
case ViewRuleGlobalPredicateRef:
|
|
2481
|
-
case ViewRuleGroup:
|
|
2482
|
-
case ViewRulePredicate: {
|
|
2483
|
-
return this.isSubtype(ViewRule, supertype);
|
|
2484
|
-
}
|
|
2485
|
-
case ViewRuleGlobalStyle:
|
|
2486
|
-
case ViewRuleStyle: {
|
|
2487
|
-
return this.isSubtype(ViewRuleStyleOrGlobalRef, supertype);
|
|
2488
|
-
}
|
|
2489
|
-
case ViewRuleStyleOrGlobalRef: {
|
|
2490
|
-
return this.isSubtype(DynamicViewRule, supertype) || this.isSubtype(ViewRule, supertype);
|
|
2491
|
-
}
|
|
2492
|
-
case ViewStringProperty: {
|
|
2493
|
-
return this.isSubtype(StringProperty, supertype) || this.isSubtype(ViewProperty, supertype);
|
|
2494
|
-
}
|
|
2495
|
-
case WhereBinaryExpression: {
|
|
2496
|
-
return this.isSubtype(WhereElementExpression, supertype) || this.isSubtype(WhereRelationExpression, supertype);
|
|
2497
|
-
}
|
|
2498
|
-
case WhereElement:
|
|
2499
|
-
case WhereElementNegation: {
|
|
2500
|
-
return this.isSubtype(WhereElementExpression, supertype);
|
|
2501
|
-
}
|
|
2502
|
-
case WhereElementExpression:
|
|
2503
|
-
case WhereRelationExpression: {
|
|
2504
|
-
return this.isSubtype(WhereExpression, supertype);
|
|
2505
|
-
}
|
|
2506
|
-
case WhereElementKind: {
|
|
2507
|
-
return this.isSubtype(WhereElement, supertype) || this.isSubtype(WhereKindEqual, supertype);
|
|
2508
|
-
}
|
|
2509
|
-
case WhereElementTag: {
|
|
2510
|
-
return this.isSubtype(WhereElement, supertype) || this.isSubtype(WhereTagEqual, supertype);
|
|
2511
|
-
}
|
|
2512
|
-
case WhereRelation:
|
|
2513
|
-
case WhereRelationNegation: {
|
|
2514
|
-
return this.isSubtype(WhereRelationExpression, supertype);
|
|
2515
|
-
}
|
|
2516
|
-
case WhereRelationKind:
|
|
2517
|
-
case WhereRelationParticipantKind: {
|
|
2518
|
-
return this.isSubtype(WhereKindEqual, supertype) || this.isSubtype(WhereRelation, supertype);
|
|
2519
|
-
}
|
|
2520
|
-
case WhereRelationParticipantTag:
|
|
2521
|
-
case WhereRelationTag: {
|
|
2522
|
-
return this.isSubtype(WhereRelation, supertype) || this.isSubtype(WhereTagEqual, supertype);
|
|
2523
|
-
}
|
|
2524
|
-
case WildcardExpression: {
|
|
2525
|
-
return this.isSubtype(ElementExpression, supertype) || this.isSubtype(FqnExpr, supertype);
|
|
2526
|
-
}
|
|
2527
|
-
default: {
|
|
2528
|
-
return false;
|
|
2529
|
-
}
|
|
2530
|
-
}
|
|
2531
|
-
}
|
|
2532
|
-
|
|
2533
|
-
getReferenceType(refInfo: ReferenceInfo): string {
|
|
2534
|
-
const referenceId = `${refInfo.container.$type}:${refInfo.property}`;
|
|
2535
|
-
switch (referenceId) {
|
|
2536
|
-
case 'ColorProperty:customColor': {
|
|
2537
|
-
return CustomColor;
|
|
2538
|
-
}
|
|
2539
|
-
case 'DeploymentNode:kind': {
|
|
2540
|
-
return DeploymentNodeKind;
|
|
2541
|
-
}
|
|
2542
|
-
case 'DeploymentRelation:kind':
|
|
2543
|
-
case 'DynamicViewStep:kind':
|
|
2544
|
-
case 'OutgoingRelationExpr:kind':
|
|
2545
|
-
case 'OutgoingRelationExpression:kind':
|
|
2546
|
-
case 'Relation:kind':
|
|
2547
|
-
case 'WhereRelationKind:value': {
|
|
2548
|
-
return RelationshipKind;
|
|
2549
|
-
}
|
|
2550
|
-
case 'DynamicViewGlobalPredicateRef:predicate': {
|
|
2551
|
-
return GlobalDynamicPredicateGroup;
|
|
2552
|
-
}
|
|
2553
|
-
case 'DynamicViewRef:view': {
|
|
2554
|
-
return DynamicView;
|
|
2555
|
-
}
|
|
2556
|
-
case 'Element:kind':
|
|
2557
|
-
case 'ElementKindExpression:kind': {
|
|
2558
|
-
return ElementKind;
|
|
2559
|
-
}
|
|
2560
|
-
case 'ElementRef:el':
|
|
2561
|
-
case 'StrictFqnElementRef:el': {
|
|
2562
|
-
return Element;
|
|
2563
|
-
}
|
|
2564
|
-
case 'ElementTagExpression:tag':
|
|
2565
|
-
case 'Tags:values':
|
|
2566
|
-
case 'WhereElementTag:value':
|
|
2567
|
-
case 'WhereRelationParticipantTag:value':
|
|
2568
|
-
case 'WhereRelationTag:value': {
|
|
2569
|
-
return Tag;
|
|
2570
|
-
}
|
|
2571
|
-
case 'ElementViewRef:view': {
|
|
2572
|
-
return ElementView;
|
|
2573
|
-
}
|
|
2574
|
-
case 'FqnRef:value': {
|
|
2575
|
-
return Referenceable;
|
|
2576
|
-
}
|
|
2577
|
-
case 'IconProperty:libicon': {
|
|
2578
|
-
return LibIcon;
|
|
2579
|
-
}
|
|
2580
|
-
case 'ViewRef:view': {
|
|
2581
|
-
return LikeC4View;
|
|
2582
|
-
}
|
|
2583
|
-
case 'ViewRuleGlobalPredicateRef:predicate': {
|
|
2584
|
-
return GlobalPredicateGroup;
|
|
2585
|
-
}
|
|
2586
|
-
case 'ViewRuleGlobalStyle:style': {
|
|
2587
|
-
return GlobalStyleId;
|
|
2588
|
-
}
|
|
2589
|
-
case 'WhereElementKind:value':
|
|
2590
|
-
case 'WhereRelationParticipantKind:value': {
|
|
2591
|
-
return DeploymentNodeOrElementKind;
|
|
2592
|
-
}
|
|
2593
|
-
default: {
|
|
2594
|
-
throw new Error(`${referenceId} is not a valid reference id.`);
|
|
2595
|
-
}
|
|
2596
|
-
}
|
|
2597
|
-
}
|
|
2598
|
-
|
|
2599
|
-
getTypeMetaData(type: string): TypeMetaData {
|
|
2600
|
-
switch (type) {
|
|
2601
|
-
case ArrowProperty: {
|
|
2602
|
-
return {
|
|
2603
|
-
name: ArrowProperty,
|
|
2604
|
-
properties: [
|
|
2605
|
-
{ name: 'key' },
|
|
2606
|
-
{ name: 'value' }
|
|
2607
|
-
]
|
|
2608
|
-
};
|
|
2609
|
-
}
|
|
2610
|
-
case BorderProperty: {
|
|
2611
|
-
return {
|
|
2612
|
-
name: BorderProperty,
|
|
2613
|
-
properties: [
|
|
2614
|
-
{ name: 'key' },
|
|
2615
|
-
{ name: 'value' }
|
|
2616
|
-
]
|
|
2617
|
-
};
|
|
2618
|
-
}
|
|
2619
|
-
case ColorProperty: {
|
|
2620
|
-
return {
|
|
2621
|
-
name: ColorProperty,
|
|
2622
|
-
properties: [
|
|
2623
|
-
{ name: 'customColor' },
|
|
2624
|
-
{ name: 'key' },
|
|
2625
|
-
{ name: 'themeColor' }
|
|
2626
|
-
]
|
|
2627
|
-
};
|
|
2628
|
-
}
|
|
2629
|
-
case CustomColor: {
|
|
2630
|
-
return {
|
|
2631
|
-
name: CustomColor,
|
|
2632
|
-
properties: [
|
|
2633
|
-
{ name: 'name' }
|
|
2634
|
-
]
|
|
2635
|
-
};
|
|
2636
|
-
}
|
|
2637
|
-
case CustomElementProperties: {
|
|
2638
|
-
return {
|
|
2639
|
-
name: CustomElementProperties,
|
|
2640
|
-
properties: [
|
|
2641
|
-
{ name: 'props', defaultValue: [] }
|
|
2642
|
-
]
|
|
2643
|
-
};
|
|
2644
|
-
}
|
|
2645
|
-
case CustomRelationProperties: {
|
|
2646
|
-
return {
|
|
2647
|
-
name: CustomRelationProperties,
|
|
2648
|
-
properties: [
|
|
2649
|
-
{ name: 'props', defaultValue: [] }
|
|
2650
|
-
]
|
|
2651
|
-
};
|
|
2652
|
-
}
|
|
2653
|
-
case DeployedInstance: {
|
|
2654
|
-
return {
|
|
2655
|
-
name: DeployedInstance,
|
|
2656
|
-
properties: [
|
|
2657
|
-
{ name: 'body' },
|
|
2658
|
-
{ name: 'element' },
|
|
2659
|
-
{ name: 'name' },
|
|
2660
|
-
{ name: 'title' }
|
|
2661
|
-
]
|
|
2662
|
-
};
|
|
2663
|
-
}
|
|
2664
|
-
case DeployedInstanceBody: {
|
|
2665
|
-
return {
|
|
2666
|
-
name: DeployedInstanceBody,
|
|
2667
|
-
properties: [
|
|
2668
|
-
{ name: 'props', defaultValue: [] },
|
|
2669
|
-
{ name: 'tags' }
|
|
2670
|
-
]
|
|
2671
|
-
};
|
|
2672
|
-
}
|
|
2673
|
-
case DeploymentNode: {
|
|
2674
|
-
return {
|
|
2675
|
-
name: DeploymentNode,
|
|
2676
|
-
properties: [
|
|
2677
|
-
{ name: 'body' },
|
|
2678
|
-
{ name: 'kind' },
|
|
2679
|
-
{ name: 'name' },
|
|
2680
|
-
{ name: 'title' }
|
|
2681
|
-
]
|
|
2682
|
-
};
|
|
2683
|
-
}
|
|
2684
|
-
case DeploymentNodeBody: {
|
|
2685
|
-
return {
|
|
2686
|
-
name: DeploymentNodeBody,
|
|
2687
|
-
properties: [
|
|
2688
|
-
{ name: 'elements', defaultValue: [] },
|
|
2689
|
-
{ name: 'props', defaultValue: [] },
|
|
2690
|
-
{ name: 'tags' }
|
|
2691
|
-
]
|
|
2692
|
-
};
|
|
2693
|
-
}
|
|
2694
|
-
case DeploymentNodeKind: {
|
|
2695
|
-
return {
|
|
2696
|
-
name: DeploymentNodeKind,
|
|
2697
|
-
properties: [
|
|
2698
|
-
{ name: 'name' }
|
|
2699
|
-
]
|
|
2700
|
-
};
|
|
2701
|
-
}
|
|
2702
|
-
case DeploymentRelation: {
|
|
2703
|
-
return {
|
|
2704
|
-
name: DeploymentRelation,
|
|
2705
|
-
properties: [
|
|
2706
|
-
{ name: 'body' },
|
|
2707
|
-
{ name: 'kind' },
|
|
2708
|
-
{ name: 'source' },
|
|
2709
|
-
{ name: 'tags' },
|
|
2710
|
-
{ name: 'target' },
|
|
2711
|
-
{ name: 'technology' },
|
|
2712
|
-
{ name: 'title' }
|
|
2713
|
-
]
|
|
2714
|
-
};
|
|
2715
|
-
}
|
|
2716
|
-
case DeploymentRelationBody: {
|
|
2717
|
-
return {
|
|
2718
|
-
name: DeploymentRelationBody,
|
|
2719
|
-
properties: [
|
|
2720
|
-
{ name: 'props', defaultValue: [] },
|
|
2721
|
-
{ name: 'tags' }
|
|
2722
|
-
]
|
|
2723
|
-
};
|
|
2724
|
-
}
|
|
2725
|
-
case DeploymentView: {
|
|
2726
|
-
return {
|
|
2727
|
-
name: DeploymentView,
|
|
2728
|
-
properties: [
|
|
2729
|
-
{ name: 'body' },
|
|
2730
|
-
{ name: 'name' }
|
|
2731
|
-
]
|
|
2732
|
-
};
|
|
2733
|
-
}
|
|
2734
|
-
case DeploymentViewBody: {
|
|
2735
|
-
return {
|
|
2736
|
-
name: DeploymentViewBody,
|
|
2737
|
-
properties: [
|
|
2738
|
-
{ name: 'props', defaultValue: [] },
|
|
2739
|
-
{ name: 'rules', defaultValue: [] },
|
|
2740
|
-
{ name: 'tags' }
|
|
2741
|
-
]
|
|
2742
|
-
};
|
|
2743
|
-
}
|
|
2744
|
-
case DeploymentViewRulePredicate: {
|
|
2745
|
-
return {
|
|
2746
|
-
name: DeploymentViewRulePredicate,
|
|
2747
|
-
properties: [
|
|
2748
|
-
{ name: 'expr' },
|
|
2749
|
-
{ name: 'isInclude', defaultValue: false }
|
|
2750
|
-
]
|
|
2751
|
-
};
|
|
2752
|
-
}
|
|
2753
|
-
case DeploymentViewRulePredicateExpression: {
|
|
2754
|
-
return {
|
|
2755
|
-
name: DeploymentViewRulePredicateExpression,
|
|
2756
|
-
properties: [
|
|
2757
|
-
{ name: 'prev' },
|
|
2758
|
-
{ name: 'value' }
|
|
2759
|
-
]
|
|
2760
|
-
};
|
|
2761
|
-
}
|
|
2762
|
-
case DeploymentViewRuleStyle: {
|
|
2763
|
-
return {
|
|
2764
|
-
name: DeploymentViewRuleStyle,
|
|
2765
|
-
properties: [
|
|
2766
|
-
{ name: 'props', defaultValue: [] },
|
|
2767
|
-
{ name: 'targets' }
|
|
2768
|
-
]
|
|
2769
|
-
};
|
|
2770
|
-
}
|
|
2771
|
-
case DirectedRelationExpr: {
|
|
2772
|
-
return {
|
|
2773
|
-
name: DirectedRelationExpr,
|
|
2774
|
-
properties: [
|
|
2775
|
-
{ name: 'source' },
|
|
2776
|
-
{ name: 'target' }
|
|
2777
|
-
]
|
|
2778
|
-
};
|
|
2779
|
-
}
|
|
2780
|
-
case DirectedRelationExpression: {
|
|
2781
|
-
return {
|
|
2782
|
-
name: DirectedRelationExpression,
|
|
2783
|
-
properties: [
|
|
2784
|
-
{ name: 'source' },
|
|
2785
|
-
{ name: 'target' }
|
|
2786
|
-
]
|
|
2787
|
-
};
|
|
2788
|
-
}
|
|
2789
|
-
case DynamicView: {
|
|
2790
|
-
return {
|
|
2791
|
-
name: DynamicView,
|
|
2792
|
-
properties: [
|
|
2793
|
-
{ name: 'body' },
|
|
2794
|
-
{ name: 'name' }
|
|
2795
|
-
]
|
|
2796
|
-
};
|
|
2797
|
-
}
|
|
2798
|
-
case DynamicViewBody: {
|
|
2799
|
-
return {
|
|
2800
|
-
name: DynamicViewBody,
|
|
2801
|
-
properties: [
|
|
2802
|
-
{ name: 'props', defaultValue: [] },
|
|
2803
|
-
{ name: 'rules', defaultValue: [] },
|
|
2804
|
-
{ name: 'steps', defaultValue: [] },
|
|
2805
|
-
{ name: 'tags' }
|
|
2806
|
-
]
|
|
2807
|
-
};
|
|
2808
|
-
}
|
|
2809
|
-
case DynamicViewGlobalPredicateRef: {
|
|
2810
|
-
return {
|
|
2811
|
-
name: DynamicViewGlobalPredicateRef,
|
|
2812
|
-
properties: [
|
|
2813
|
-
{ name: 'predicate' }
|
|
2814
|
-
]
|
|
2815
|
-
};
|
|
2816
|
-
}
|
|
2817
|
-
case DynamicViewIncludePredicate: {
|
|
2818
|
-
return {
|
|
2819
|
-
name: DynamicViewIncludePredicate,
|
|
2820
|
-
properties: [
|
|
2821
|
-
{ name: 'predicates' }
|
|
2822
|
-
]
|
|
2823
|
-
};
|
|
2824
|
-
}
|
|
2825
|
-
case DynamicViewParallelSteps: {
|
|
2826
|
-
return {
|
|
2827
|
-
name: DynamicViewParallelSteps,
|
|
2828
|
-
properties: [
|
|
2829
|
-
{ name: 'steps', defaultValue: [] }
|
|
2830
|
-
]
|
|
2831
|
-
};
|
|
2832
|
-
}
|
|
2833
|
-
case DynamicViewPredicateIterator: {
|
|
2834
|
-
return {
|
|
2835
|
-
name: DynamicViewPredicateIterator,
|
|
2836
|
-
properties: [
|
|
2837
|
-
{ name: 'prev' },
|
|
2838
|
-
{ name: 'value' }
|
|
2839
|
-
]
|
|
2840
|
-
};
|
|
2841
|
-
}
|
|
2842
|
-
case DynamicViewRef: {
|
|
2843
|
-
return {
|
|
2844
|
-
name: DynamicViewRef,
|
|
2845
|
-
properties: [
|
|
2846
|
-
{ name: 'view' }
|
|
2847
|
-
]
|
|
2848
|
-
};
|
|
2849
|
-
}
|
|
2850
|
-
case DynamicViewStep: {
|
|
2851
|
-
return {
|
|
2852
|
-
name: DynamicViewStep,
|
|
2853
|
-
properties: [
|
|
2854
|
-
{ name: 'custom' },
|
|
2855
|
-
{ name: 'isBackward', defaultValue: false },
|
|
2856
|
-
{ name: 'kind' },
|
|
2857
|
-
{ name: 'source' },
|
|
2858
|
-
{ name: 'target' },
|
|
2859
|
-
{ name: 'title' }
|
|
2860
|
-
]
|
|
2861
|
-
};
|
|
2862
|
-
}
|
|
2863
|
-
case Element: {
|
|
2864
|
-
return {
|
|
2865
|
-
name: Element,
|
|
2866
|
-
properties: [
|
|
2867
|
-
{ name: 'body' },
|
|
2868
|
-
{ name: 'kind' },
|
|
2869
|
-
{ name: 'name' },
|
|
2870
|
-
{ name: 'props', defaultValue: [] }
|
|
2871
|
-
]
|
|
2872
|
-
};
|
|
2873
|
-
}
|
|
2874
|
-
case ElementBody: {
|
|
2875
|
-
return {
|
|
2876
|
-
name: ElementBody,
|
|
2877
|
-
properties: [
|
|
2878
|
-
{ name: 'elements', defaultValue: [] },
|
|
2879
|
-
{ name: 'props', defaultValue: [] },
|
|
2880
|
-
{ name: 'tags' }
|
|
2881
|
-
]
|
|
2882
|
-
};
|
|
2883
|
-
}
|
|
2884
|
-
case ElementDescedantsExpression: {
|
|
2885
|
-
return {
|
|
2886
|
-
name: ElementDescedantsExpression,
|
|
2887
|
-
properties: [
|
|
2888
|
-
{ name: 'parent' },
|
|
2889
|
-
{ name: 'suffix' }
|
|
2890
|
-
]
|
|
2891
|
-
};
|
|
2892
|
-
}
|
|
2893
|
-
case ElementExpressionsIterator: {
|
|
2894
|
-
return {
|
|
2895
|
-
name: ElementExpressionsIterator,
|
|
2896
|
-
properties: [
|
|
2897
|
-
{ name: 'prev' },
|
|
2898
|
-
{ name: 'value' }
|
|
2899
|
-
]
|
|
2900
|
-
};
|
|
2901
|
-
}
|
|
2902
|
-
case ElementKind: {
|
|
2903
|
-
return {
|
|
2904
|
-
name: ElementKind,
|
|
2905
|
-
properties: [
|
|
2906
|
-
{ name: 'name' }
|
|
2907
|
-
]
|
|
2908
|
-
};
|
|
2909
|
-
}
|
|
2910
|
-
case ElementKindExpression: {
|
|
2911
|
-
return {
|
|
2912
|
-
name: ElementKindExpression,
|
|
2913
|
-
properties: [
|
|
2914
|
-
{ name: 'isEqual', defaultValue: false },
|
|
2915
|
-
{ name: 'kind' }
|
|
2916
|
-
]
|
|
2917
|
-
};
|
|
2918
|
-
}
|
|
2919
|
-
case ElementPredicateWhere: {
|
|
2920
|
-
return {
|
|
2921
|
-
name: ElementPredicateWhere,
|
|
2922
|
-
properties: [
|
|
2923
|
-
{ name: 'subject' },
|
|
2924
|
-
{ name: 'where' }
|
|
2925
|
-
]
|
|
2926
|
-
};
|
|
2927
|
-
}
|
|
2928
|
-
case ElementPredicateWhereV2: {
|
|
2929
|
-
return {
|
|
2930
|
-
name: ElementPredicateWhereV2,
|
|
2931
|
-
properties: [
|
|
2932
|
-
{ name: 'subject' },
|
|
2933
|
-
{ name: 'where' }
|
|
2934
|
-
]
|
|
2935
|
-
};
|
|
2936
|
-
}
|
|
2937
|
-
case ElementPredicateWith: {
|
|
2938
|
-
return {
|
|
2939
|
-
name: ElementPredicateWith,
|
|
2940
|
-
properties: [
|
|
2941
|
-
{ name: 'custom' },
|
|
2942
|
-
{ name: 'subject' }
|
|
2943
|
-
]
|
|
2944
|
-
};
|
|
2945
|
-
}
|
|
2946
|
-
case ElementRef: {
|
|
2947
|
-
return {
|
|
2948
|
-
name: ElementRef,
|
|
2949
|
-
properties: [
|
|
2950
|
-
{ name: 'el' },
|
|
2951
|
-
{ name: 'parent' }
|
|
2952
|
-
]
|
|
2953
|
-
};
|
|
2954
|
-
}
|
|
2955
|
-
case ElementStringProperty: {
|
|
2956
|
-
return {
|
|
2957
|
-
name: ElementStringProperty,
|
|
2958
|
-
properties: [
|
|
2959
|
-
{ name: 'key' },
|
|
2960
|
-
{ name: 'value' }
|
|
2961
|
-
]
|
|
2962
|
-
};
|
|
2963
|
-
}
|
|
2964
|
-
case ElementStyleProperty: {
|
|
2965
|
-
return {
|
|
2966
|
-
name: ElementStyleProperty,
|
|
2967
|
-
properties: [
|
|
2968
|
-
{ name: 'key' },
|
|
2969
|
-
{ name: 'props', defaultValue: [] }
|
|
2970
|
-
]
|
|
2971
|
-
};
|
|
2972
|
-
}
|
|
2973
|
-
case ElementTagExpression: {
|
|
2974
|
-
return {
|
|
2975
|
-
name: ElementTagExpression,
|
|
2976
|
-
properties: [
|
|
2977
|
-
{ name: 'isEqual', defaultValue: false },
|
|
2978
|
-
{ name: 'tag' }
|
|
2979
|
-
]
|
|
2980
|
-
};
|
|
2981
|
-
}
|
|
2982
|
-
case ElementView: {
|
|
2983
|
-
return {
|
|
2984
|
-
name: ElementView,
|
|
2985
|
-
properties: [
|
|
2986
|
-
{ name: 'body' },
|
|
2987
|
-
{ name: 'extends' },
|
|
2988
|
-
{ name: 'name' },
|
|
2989
|
-
{ name: 'viewOf' }
|
|
2990
|
-
]
|
|
2991
|
-
};
|
|
2992
|
-
}
|
|
2993
|
-
case ElementViewBody: {
|
|
2994
|
-
return {
|
|
2995
|
-
name: ElementViewBody,
|
|
2996
|
-
properties: [
|
|
2997
|
-
{ name: 'props', defaultValue: [] },
|
|
2998
|
-
{ name: 'rules', defaultValue: [] },
|
|
2999
|
-
{ name: 'tags' }
|
|
3000
|
-
]
|
|
3001
|
-
};
|
|
3002
|
-
}
|
|
3003
|
-
case ElementViewRef: {
|
|
3004
|
-
return {
|
|
3005
|
-
name: ElementViewRef,
|
|
3006
|
-
properties: [
|
|
3007
|
-
{ name: 'view' }
|
|
3008
|
-
]
|
|
3009
|
-
};
|
|
3010
|
-
}
|
|
3011
|
-
case ExcludePredicate: {
|
|
3012
|
-
return {
|
|
3013
|
-
name: ExcludePredicate,
|
|
3014
|
-
properties: [
|
|
3015
|
-
{ name: 'predicates' }
|
|
3016
|
-
]
|
|
3017
|
-
};
|
|
3018
|
-
}
|
|
3019
|
-
case ExpandElementExpression: {
|
|
3020
|
-
return {
|
|
3021
|
-
name: ExpandElementExpression,
|
|
3022
|
-
properties: [
|
|
3023
|
-
{ name: 'expand' }
|
|
3024
|
-
]
|
|
3025
|
-
};
|
|
3026
|
-
}
|
|
3027
|
-
case ExtendElement: {
|
|
3028
|
-
return {
|
|
3029
|
-
name: ExtendElement,
|
|
3030
|
-
properties: [
|
|
3031
|
-
{ name: 'body' },
|
|
3032
|
-
{ name: 'element' }
|
|
3033
|
-
]
|
|
3034
|
-
};
|
|
3035
|
-
}
|
|
3036
|
-
case ExtendElementBody: {
|
|
3037
|
-
return {
|
|
3038
|
-
name: ExtendElementBody,
|
|
3039
|
-
properties: [
|
|
3040
|
-
{ name: 'elements', defaultValue: [] },
|
|
3041
|
-
{ name: 'props', defaultValue: [] },
|
|
3042
|
-
{ name: 'tags' }
|
|
3043
|
-
]
|
|
3044
|
-
};
|
|
3045
|
-
}
|
|
3046
|
-
case FqnExpressions: {
|
|
3047
|
-
return {
|
|
3048
|
-
name: FqnExpressions,
|
|
3049
|
-
properties: [
|
|
3050
|
-
{ name: 'prev' },
|
|
3051
|
-
{ name: 'value' }
|
|
3052
|
-
]
|
|
3053
|
-
};
|
|
3054
|
-
}
|
|
3055
|
-
case FqnRef: {
|
|
3056
|
-
return {
|
|
3057
|
-
name: FqnRef,
|
|
3058
|
-
properties: [
|
|
3059
|
-
{ name: 'parent' },
|
|
3060
|
-
{ name: 'value' }
|
|
3061
|
-
]
|
|
3062
|
-
};
|
|
3063
|
-
}
|
|
3064
|
-
case FqnRefExpr: {
|
|
3065
|
-
return {
|
|
3066
|
-
name: FqnRefExpr,
|
|
3067
|
-
properties: [
|
|
3068
|
-
{ name: 'ref' },
|
|
3069
|
-
{ name: 'selector' }
|
|
3070
|
-
]
|
|
3071
|
-
};
|
|
3072
|
-
}
|
|
3073
|
-
case GlobalDynamicPredicateGroup: {
|
|
3074
|
-
return {
|
|
3075
|
-
name: GlobalDynamicPredicateGroup,
|
|
3076
|
-
properties: [
|
|
3077
|
-
{ name: 'name' },
|
|
3078
|
-
{ name: 'predicates', defaultValue: [] }
|
|
3079
|
-
]
|
|
3080
|
-
};
|
|
3081
|
-
}
|
|
3082
|
-
case GlobalPredicateGroup: {
|
|
3083
|
-
return {
|
|
3084
|
-
name: GlobalPredicateGroup,
|
|
3085
|
-
properties: [
|
|
3086
|
-
{ name: 'name' },
|
|
3087
|
-
{ name: 'predicates', defaultValue: [] }
|
|
3088
|
-
]
|
|
3089
|
-
};
|
|
3090
|
-
}
|
|
3091
|
-
case Globals: {
|
|
3092
|
-
return {
|
|
3093
|
-
name: Globals,
|
|
3094
|
-
properties: [
|
|
3095
|
-
{ name: 'name' },
|
|
3096
|
-
{ name: 'predicates', defaultValue: [] },
|
|
3097
|
-
{ name: 'styles', defaultValue: [] }
|
|
3098
|
-
]
|
|
3099
|
-
};
|
|
3100
|
-
}
|
|
3101
|
-
case GlobalStyle: {
|
|
3102
|
-
return {
|
|
3103
|
-
name: GlobalStyle,
|
|
3104
|
-
properties: [
|
|
3105
|
-
{ name: 'id' },
|
|
3106
|
-
{ name: 'props', defaultValue: [] },
|
|
3107
|
-
{ name: 'target' }
|
|
3108
|
-
]
|
|
3109
|
-
};
|
|
3110
|
-
}
|
|
3111
|
-
case GlobalStyleGroup: {
|
|
3112
|
-
return {
|
|
3113
|
-
name: GlobalStyleGroup,
|
|
3114
|
-
properties: [
|
|
3115
|
-
{ name: 'id' },
|
|
3116
|
-
{ name: 'styles', defaultValue: [] }
|
|
3117
|
-
]
|
|
3118
|
-
};
|
|
3119
|
-
}
|
|
3120
|
-
case GlobalStyleId: {
|
|
3121
|
-
return {
|
|
3122
|
-
name: GlobalStyleId,
|
|
3123
|
-
properties: [
|
|
3124
|
-
{ name: 'name' }
|
|
3125
|
-
]
|
|
3126
|
-
};
|
|
3127
|
-
}
|
|
3128
|
-
case IconProperty: {
|
|
3129
|
-
return {
|
|
3130
|
-
name: IconProperty,
|
|
3131
|
-
properties: [
|
|
3132
|
-
{ name: 'key' },
|
|
3133
|
-
{ name: 'libicon' },
|
|
3134
|
-
{ name: 'value' }
|
|
3135
|
-
]
|
|
3136
|
-
};
|
|
3137
|
-
}
|
|
3138
|
-
case IncludePredicate: {
|
|
3139
|
-
return {
|
|
3140
|
-
name: IncludePredicate,
|
|
3141
|
-
properties: [
|
|
3142
|
-
{ name: 'predicates' }
|
|
3143
|
-
]
|
|
3144
|
-
};
|
|
3145
|
-
}
|
|
3146
|
-
case IncomingRelationExpr: {
|
|
3147
|
-
return {
|
|
3148
|
-
name: IncomingRelationExpr,
|
|
3149
|
-
properties: [
|
|
3150
|
-
{ name: 'to' }
|
|
3151
|
-
]
|
|
3152
|
-
};
|
|
3153
|
-
}
|
|
3154
|
-
case IncomingRelationExpression: {
|
|
3155
|
-
return {
|
|
3156
|
-
name: IncomingRelationExpression,
|
|
3157
|
-
properties: [
|
|
3158
|
-
{ name: 'to' }
|
|
3159
|
-
]
|
|
3160
|
-
};
|
|
3161
|
-
}
|
|
3162
|
-
case InOutRelationExpr: {
|
|
3163
|
-
return {
|
|
3164
|
-
name: InOutRelationExpr,
|
|
3165
|
-
properties: [
|
|
3166
|
-
{ name: 'inout' }
|
|
3167
|
-
]
|
|
3168
|
-
};
|
|
3169
|
-
}
|
|
3170
|
-
case InOutRelationExpression: {
|
|
3171
|
-
return {
|
|
3172
|
-
name: InOutRelationExpression,
|
|
3173
|
-
properties: [
|
|
3174
|
-
{ name: 'inout' }
|
|
3175
|
-
]
|
|
3176
|
-
};
|
|
3177
|
-
}
|
|
3178
|
-
case LibIcon: {
|
|
3179
|
-
return {
|
|
3180
|
-
name: LibIcon,
|
|
3181
|
-
properties: [
|
|
3182
|
-
{ name: 'name' }
|
|
3183
|
-
]
|
|
3184
|
-
};
|
|
3185
|
-
}
|
|
3186
|
-
case LikeC4Grammar: {
|
|
3187
|
-
return {
|
|
3188
|
-
name: LikeC4Grammar,
|
|
3189
|
-
properties: [
|
|
3190
|
-
{ name: 'deployments', defaultValue: [] },
|
|
3191
|
-
{ name: 'globals', defaultValue: [] },
|
|
3192
|
-
{ name: 'likec4lib', defaultValue: [] },
|
|
3193
|
-
{ name: 'models', defaultValue: [] },
|
|
3194
|
-
{ name: 'specifications', defaultValue: [] },
|
|
3195
|
-
{ name: 'views', defaultValue: [] }
|
|
3196
|
-
]
|
|
3197
|
-
};
|
|
3198
|
-
}
|
|
3199
|
-
case LikeC4Lib: {
|
|
3200
|
-
return {
|
|
3201
|
-
name: LikeC4Lib,
|
|
3202
|
-
properties: [
|
|
3203
|
-
{ name: 'icons', defaultValue: [] }
|
|
3204
|
-
]
|
|
3205
|
-
};
|
|
3206
|
-
}
|
|
3207
|
-
case LineProperty: {
|
|
3208
|
-
return {
|
|
3209
|
-
name: LineProperty,
|
|
3210
|
-
properties: [
|
|
3211
|
-
{ name: 'key' },
|
|
3212
|
-
{ name: 'value' }
|
|
3213
|
-
]
|
|
3214
|
-
};
|
|
3215
|
-
}
|
|
3216
|
-
case LinkProperty: {
|
|
3217
|
-
return {
|
|
3218
|
-
name: LinkProperty,
|
|
3219
|
-
properties: [
|
|
3220
|
-
{ name: 'key' },
|
|
3221
|
-
{ name: 'title' },
|
|
3222
|
-
{ name: 'value' }
|
|
3223
|
-
]
|
|
3224
|
-
};
|
|
3225
|
-
}
|
|
3226
|
-
case MetadataAttribute: {
|
|
3227
|
-
return {
|
|
3228
|
-
name: MetadataAttribute,
|
|
3229
|
-
properties: [
|
|
3230
|
-
{ name: 'key' },
|
|
3231
|
-
{ name: 'value' }
|
|
3232
|
-
]
|
|
3233
|
-
};
|
|
3234
|
-
}
|
|
3235
|
-
case MetadataBody: {
|
|
3236
|
-
return {
|
|
3237
|
-
name: MetadataBody,
|
|
3238
|
-
properties: [
|
|
3239
|
-
{ name: 'props', defaultValue: [] }
|
|
3240
|
-
]
|
|
3241
|
-
};
|
|
3242
|
-
}
|
|
3243
|
-
case Model: {
|
|
3244
|
-
return {
|
|
3245
|
-
name: Model,
|
|
3246
|
-
properties: [
|
|
3247
|
-
{ name: 'elements', defaultValue: [] },
|
|
3248
|
-
{ name: 'name' }
|
|
3249
|
-
]
|
|
3250
|
-
};
|
|
3251
|
-
}
|
|
3252
|
-
case ModelDeployments: {
|
|
3253
|
-
return {
|
|
3254
|
-
name: ModelDeployments,
|
|
3255
|
-
properties: [
|
|
3256
|
-
{ name: 'elements', defaultValue: [] },
|
|
3257
|
-
{ name: 'name' }
|
|
3258
|
-
]
|
|
3259
|
-
};
|
|
3260
|
-
}
|
|
3261
|
-
case ModelViews: {
|
|
3262
|
-
return {
|
|
3263
|
-
name: ModelViews,
|
|
3264
|
-
properties: [
|
|
3265
|
-
{ name: 'name' },
|
|
3266
|
-
{ name: 'styles', defaultValue: [] },
|
|
3267
|
-
{ name: 'views', defaultValue: [] }
|
|
3268
|
-
]
|
|
3269
|
-
};
|
|
3270
|
-
}
|
|
3271
|
-
case MultipleProperty: {
|
|
3272
|
-
return {
|
|
3273
|
-
name: MultipleProperty,
|
|
3274
|
-
properties: [
|
|
3275
|
-
{ name: 'key' },
|
|
3276
|
-
{ name: 'value' }
|
|
3277
|
-
]
|
|
3278
|
-
};
|
|
3279
|
-
}
|
|
3280
|
-
case NavigateToProperty: {
|
|
3281
|
-
return {
|
|
3282
|
-
name: NavigateToProperty,
|
|
3283
|
-
properties: [
|
|
3284
|
-
{ name: 'key' },
|
|
3285
|
-
{ name: 'value' }
|
|
3286
|
-
]
|
|
3287
|
-
};
|
|
3288
|
-
}
|
|
3289
|
-
case NotationProperty: {
|
|
3290
|
-
return {
|
|
3291
|
-
name: NotationProperty,
|
|
3292
|
-
properties: [
|
|
3293
|
-
{ name: 'key' },
|
|
3294
|
-
{ name: 'value' }
|
|
3295
|
-
]
|
|
3296
|
-
};
|
|
3297
|
-
}
|
|
3298
|
-
case NotesProperty: {
|
|
3299
|
-
return {
|
|
3300
|
-
name: NotesProperty,
|
|
3301
|
-
properties: [
|
|
3302
|
-
{ name: 'key' },
|
|
3303
|
-
{ name: 'value' }
|
|
3304
|
-
]
|
|
3305
|
-
};
|
|
3306
|
-
}
|
|
3307
|
-
case OpacityProperty: {
|
|
3308
|
-
return {
|
|
3309
|
-
name: OpacityProperty,
|
|
3310
|
-
properties: [
|
|
3311
|
-
{ name: 'key' },
|
|
3312
|
-
{ name: 'value' }
|
|
3313
|
-
]
|
|
3314
|
-
};
|
|
3315
|
-
}
|
|
3316
|
-
case OutgoingRelationExpr: {
|
|
3317
|
-
return {
|
|
3318
|
-
name: OutgoingRelationExpr,
|
|
3319
|
-
properties: [
|
|
3320
|
-
{ name: 'from' },
|
|
3321
|
-
{ name: 'isBidirectional', defaultValue: false },
|
|
3322
|
-
{ name: 'kind' }
|
|
3323
|
-
]
|
|
3324
|
-
};
|
|
3325
|
-
}
|
|
3326
|
-
case OutgoingRelationExpression: {
|
|
3327
|
-
return {
|
|
3328
|
-
name: OutgoingRelationExpression,
|
|
3329
|
-
properties: [
|
|
3330
|
-
{ name: 'from' },
|
|
3331
|
-
{ name: 'isBidirectional', defaultValue: false },
|
|
3332
|
-
{ name: 'kind' }
|
|
3333
|
-
]
|
|
3334
|
-
};
|
|
3335
|
-
}
|
|
3336
|
-
case PaddingSizeProperty: {
|
|
3337
|
-
return {
|
|
3338
|
-
name: PaddingSizeProperty,
|
|
3339
|
-
properties: [
|
|
3340
|
-
{ name: 'key' },
|
|
3341
|
-
{ name: 'value' }
|
|
3342
|
-
]
|
|
3343
|
-
};
|
|
3344
|
-
}
|
|
3345
|
-
case Predicates: {
|
|
3346
|
-
return {
|
|
3347
|
-
name: Predicates,
|
|
3348
|
-
properties: [
|
|
3349
|
-
{ name: 'prev' },
|
|
3350
|
-
{ name: 'value' }
|
|
3351
|
-
]
|
|
3352
|
-
};
|
|
3353
|
-
}
|
|
3354
|
-
case Relation: {
|
|
3355
|
-
return {
|
|
3356
|
-
name: Relation,
|
|
3357
|
-
properties: [
|
|
3358
|
-
{ name: 'body' },
|
|
3359
|
-
{ name: 'kind' },
|
|
3360
|
-
{ name: 'source' },
|
|
3361
|
-
{ name: 'tags' },
|
|
3362
|
-
{ name: 'target' },
|
|
3363
|
-
{ name: 'technology' },
|
|
3364
|
-
{ name: 'title' }
|
|
3365
|
-
]
|
|
3366
|
-
};
|
|
3367
|
-
}
|
|
3368
|
-
case RelationBody: {
|
|
3369
|
-
return {
|
|
3370
|
-
name: RelationBody,
|
|
3371
|
-
properties: [
|
|
3372
|
-
{ name: 'props', defaultValue: [] },
|
|
3373
|
-
{ name: 'tags' }
|
|
3374
|
-
]
|
|
3375
|
-
};
|
|
3376
|
-
}
|
|
3377
|
-
case RelationNavigateToProperty: {
|
|
3378
|
-
return {
|
|
3379
|
-
name: RelationNavigateToProperty,
|
|
3380
|
-
properties: [
|
|
3381
|
-
{ name: 'key' },
|
|
3382
|
-
{ name: 'value' }
|
|
3383
|
-
]
|
|
3384
|
-
};
|
|
3385
|
-
}
|
|
3386
|
-
case RelationPredicateWhere: {
|
|
3387
|
-
return {
|
|
3388
|
-
name: RelationPredicateWhere,
|
|
3389
|
-
properties: [
|
|
3390
|
-
{ name: 'subject' },
|
|
3391
|
-
{ name: 'where' }
|
|
3392
|
-
]
|
|
3393
|
-
};
|
|
3394
|
-
}
|
|
3395
|
-
case RelationPredicateWhereV2: {
|
|
3396
|
-
return {
|
|
3397
|
-
name: RelationPredicateWhereV2,
|
|
3398
|
-
properties: [
|
|
3399
|
-
{ name: 'subject' },
|
|
3400
|
-
{ name: 'where' }
|
|
3401
|
-
]
|
|
3402
|
-
};
|
|
3403
|
-
}
|
|
3404
|
-
case RelationPredicateWith: {
|
|
3405
|
-
return {
|
|
3406
|
-
name: RelationPredicateWith,
|
|
3407
|
-
properties: [
|
|
3408
|
-
{ name: 'custom' },
|
|
3409
|
-
{ name: 'subject' }
|
|
3410
|
-
]
|
|
3411
|
-
};
|
|
3412
|
-
}
|
|
3413
|
-
case RelationshipKind: {
|
|
3414
|
-
return {
|
|
3415
|
-
name: RelationshipKind,
|
|
3416
|
-
properties: [
|
|
3417
|
-
{ name: 'name' }
|
|
3418
|
-
]
|
|
3419
|
-
};
|
|
3420
|
-
}
|
|
3421
|
-
case RelationStringProperty: {
|
|
3422
|
-
return {
|
|
3423
|
-
name: RelationStringProperty,
|
|
3424
|
-
properties: [
|
|
3425
|
-
{ name: 'key' },
|
|
3426
|
-
{ name: 'value' }
|
|
3427
|
-
]
|
|
3428
|
-
};
|
|
3429
|
-
}
|
|
3430
|
-
case RelationStyleProperty: {
|
|
3431
|
-
return {
|
|
3432
|
-
name: RelationStyleProperty,
|
|
3433
|
-
properties: [
|
|
3434
|
-
{ name: 'key' },
|
|
3435
|
-
{ name: 'props', defaultValue: [] }
|
|
3436
|
-
]
|
|
3437
|
-
};
|
|
3438
|
-
}
|
|
3439
|
-
case ShapeProperty: {
|
|
3440
|
-
return {
|
|
3441
|
-
name: ShapeProperty,
|
|
3442
|
-
properties: [
|
|
3443
|
-
{ name: 'key' },
|
|
3444
|
-
{ name: 'value' }
|
|
3445
|
-
]
|
|
3446
|
-
};
|
|
3447
|
-
}
|
|
3448
|
-
case ShapeSizeProperty: {
|
|
3449
|
-
return {
|
|
3450
|
-
name: ShapeSizeProperty,
|
|
3451
|
-
properties: [
|
|
3452
|
-
{ name: 'key' },
|
|
3453
|
-
{ name: 'value' }
|
|
3454
|
-
]
|
|
3455
|
-
};
|
|
3456
|
-
}
|
|
3457
|
-
case SpecificationColor: {
|
|
3458
|
-
return {
|
|
3459
|
-
name: SpecificationColor,
|
|
3460
|
-
properties: [
|
|
3461
|
-
{ name: 'color' },
|
|
3462
|
-
{ name: 'name' }
|
|
3463
|
-
]
|
|
3464
|
-
};
|
|
3465
|
-
}
|
|
3466
|
-
case SpecificationDeploymentNodeKind: {
|
|
3467
|
-
return {
|
|
3468
|
-
name: SpecificationDeploymentNodeKind,
|
|
3469
|
-
properties: [
|
|
3470
|
-
{ name: 'kind' },
|
|
3471
|
-
{ name: 'props', defaultValue: [] }
|
|
3472
|
-
]
|
|
3473
|
-
};
|
|
3474
|
-
}
|
|
3475
|
-
case SpecificationElementKind: {
|
|
3476
|
-
return {
|
|
3477
|
-
name: SpecificationElementKind,
|
|
3478
|
-
properties: [
|
|
3479
|
-
{ name: 'kind' },
|
|
3480
|
-
{ name: 'props', defaultValue: [] }
|
|
3481
|
-
]
|
|
3482
|
-
};
|
|
3483
|
-
}
|
|
3484
|
-
case SpecificationElementStringProperty: {
|
|
3485
|
-
return {
|
|
3486
|
-
name: SpecificationElementStringProperty,
|
|
3487
|
-
properties: [
|
|
3488
|
-
{ name: 'key' },
|
|
3489
|
-
{ name: 'value' }
|
|
3490
|
-
]
|
|
3491
|
-
};
|
|
3492
|
-
}
|
|
3493
|
-
case SpecificationRelationshipKind: {
|
|
3494
|
-
return {
|
|
3495
|
-
name: SpecificationRelationshipKind,
|
|
3496
|
-
properties: [
|
|
3497
|
-
{ name: 'kind' },
|
|
3498
|
-
{ name: 'props', defaultValue: [] }
|
|
3499
|
-
]
|
|
3500
|
-
};
|
|
3501
|
-
}
|
|
3502
|
-
case SpecificationRelationshipStringProperty: {
|
|
3503
|
-
return {
|
|
3504
|
-
name: SpecificationRelationshipStringProperty,
|
|
3505
|
-
properties: [
|
|
3506
|
-
{ name: 'key' },
|
|
3507
|
-
{ name: 'value' }
|
|
3508
|
-
]
|
|
3509
|
-
};
|
|
3510
|
-
}
|
|
3511
|
-
case SpecificationRule: {
|
|
3512
|
-
return {
|
|
3513
|
-
name: SpecificationRule,
|
|
3514
|
-
properties: [
|
|
3515
|
-
{ name: 'colors', defaultValue: [] },
|
|
3516
|
-
{ name: 'deploymentNodes', defaultValue: [] },
|
|
3517
|
-
{ name: 'elements', defaultValue: [] },
|
|
3518
|
-
{ name: 'name' },
|
|
3519
|
-
{ name: 'relationships', defaultValue: [] },
|
|
3520
|
-
{ name: 'tags', defaultValue: [] }
|
|
3521
|
-
]
|
|
3522
|
-
};
|
|
3523
|
-
}
|
|
3524
|
-
case SpecificationTag: {
|
|
3525
|
-
return {
|
|
3526
|
-
name: SpecificationTag,
|
|
3527
|
-
properties: [
|
|
3528
|
-
{ name: 'tag' }
|
|
3529
|
-
]
|
|
3530
|
-
};
|
|
3531
|
-
}
|
|
3532
|
-
case StrictFqnElementRef: {
|
|
3533
|
-
return {
|
|
3534
|
-
name: StrictFqnElementRef,
|
|
3535
|
-
properties: [
|
|
3536
|
-
{ name: 'el' },
|
|
3537
|
-
{ name: 'parent' }
|
|
3538
|
-
]
|
|
3539
|
-
};
|
|
3540
|
-
}
|
|
3541
|
-
case Tag: {
|
|
3542
|
-
return {
|
|
3543
|
-
name: Tag,
|
|
3544
|
-
properties: [
|
|
3545
|
-
{ name: 'name' }
|
|
3546
|
-
]
|
|
3547
|
-
};
|
|
3548
|
-
}
|
|
3549
|
-
case Tags: {
|
|
3550
|
-
return {
|
|
3551
|
-
name: Tags,
|
|
3552
|
-
properties: [
|
|
3553
|
-
{ name: 'prev' },
|
|
3554
|
-
{ name: 'values', defaultValue: [] }
|
|
3555
|
-
]
|
|
3556
|
-
};
|
|
3557
|
-
}
|
|
3558
|
-
case TextSizeProperty: {
|
|
3559
|
-
return {
|
|
3560
|
-
name: TextSizeProperty,
|
|
3561
|
-
properties: [
|
|
3562
|
-
{ name: 'key' },
|
|
3563
|
-
{ name: 'value' }
|
|
3564
|
-
]
|
|
3565
|
-
};
|
|
3566
|
-
}
|
|
3567
|
-
case ViewRef: {
|
|
3568
|
-
return {
|
|
3569
|
-
name: ViewRef,
|
|
3570
|
-
properties: [
|
|
3571
|
-
{ name: 'view' }
|
|
3572
|
-
]
|
|
3573
|
-
};
|
|
3574
|
-
}
|
|
3575
|
-
case ViewRuleAutoLayout: {
|
|
3576
|
-
return {
|
|
3577
|
-
name: ViewRuleAutoLayout,
|
|
3578
|
-
properties: [
|
|
3579
|
-
{ name: 'direction' },
|
|
3580
|
-
{ name: 'nodeSep' },
|
|
3581
|
-
{ name: 'rankSep' }
|
|
3582
|
-
]
|
|
3583
|
-
};
|
|
3584
|
-
}
|
|
3585
|
-
case ViewRuleGlobalPredicateRef: {
|
|
3586
|
-
return {
|
|
3587
|
-
name: ViewRuleGlobalPredicateRef,
|
|
3588
|
-
properties: [
|
|
3589
|
-
{ name: 'predicate' }
|
|
3590
|
-
]
|
|
3591
|
-
};
|
|
3592
|
-
}
|
|
3593
|
-
case ViewRuleGlobalStyle: {
|
|
3594
|
-
return {
|
|
3595
|
-
name: ViewRuleGlobalStyle,
|
|
3596
|
-
properties: [
|
|
3597
|
-
{ name: 'style' }
|
|
3598
|
-
]
|
|
3599
|
-
};
|
|
3600
|
-
}
|
|
3601
|
-
case ViewRuleGroup: {
|
|
3602
|
-
return {
|
|
3603
|
-
name: ViewRuleGroup,
|
|
3604
|
-
properties: [
|
|
3605
|
-
{ name: 'groupRules', defaultValue: [] },
|
|
3606
|
-
{ name: 'props', defaultValue: [] },
|
|
3607
|
-
{ name: 'title' }
|
|
3608
|
-
]
|
|
3609
|
-
};
|
|
3610
|
-
}
|
|
3611
|
-
case ViewRuleStyle: {
|
|
3612
|
-
return {
|
|
3613
|
-
name: ViewRuleStyle,
|
|
3614
|
-
properties: [
|
|
3615
|
-
{ name: 'props', defaultValue: [] },
|
|
3616
|
-
{ name: 'target' }
|
|
3617
|
-
]
|
|
3618
|
-
};
|
|
3619
|
-
}
|
|
3620
|
-
case ViewStringProperty: {
|
|
3621
|
-
return {
|
|
3622
|
-
name: ViewStringProperty,
|
|
3623
|
-
properties: [
|
|
3624
|
-
{ name: 'key' },
|
|
3625
|
-
{ name: 'value' }
|
|
3626
|
-
]
|
|
3627
|
-
};
|
|
3628
|
-
}
|
|
3629
|
-
case WhereBinaryExpression: {
|
|
3630
|
-
return {
|
|
3631
|
-
name: WhereBinaryExpression,
|
|
3632
|
-
properties: [
|
|
3633
|
-
{ name: 'left' },
|
|
3634
|
-
{ name: 'operator' },
|
|
3635
|
-
{ name: 'right' }
|
|
3636
|
-
]
|
|
3637
|
-
};
|
|
3638
|
-
}
|
|
3639
|
-
case WhereElementKind: {
|
|
3640
|
-
return {
|
|
3641
|
-
name: WhereElementKind,
|
|
3642
|
-
properties: [
|
|
3643
|
-
{ name: 'not', defaultValue: false },
|
|
3644
|
-
{ name: 'operator' },
|
|
3645
|
-
{ name: 'value' }
|
|
3646
|
-
]
|
|
3647
|
-
};
|
|
3648
|
-
}
|
|
3649
|
-
case WhereElementNegation: {
|
|
3650
|
-
return {
|
|
3651
|
-
name: WhereElementNegation,
|
|
3652
|
-
properties: [
|
|
3653
|
-
{ name: 'value' }
|
|
3654
|
-
]
|
|
3655
|
-
};
|
|
3656
|
-
}
|
|
3657
|
-
case WhereElementTag: {
|
|
3658
|
-
return {
|
|
3659
|
-
name: WhereElementTag,
|
|
3660
|
-
properties: [
|
|
3661
|
-
{ name: 'not', defaultValue: false },
|
|
3662
|
-
{ name: 'operator' },
|
|
3663
|
-
{ name: 'value' }
|
|
3664
|
-
]
|
|
3665
|
-
};
|
|
3666
|
-
}
|
|
3667
|
-
case WhereRelationKind: {
|
|
3668
|
-
return {
|
|
3669
|
-
name: WhereRelationKind,
|
|
3670
|
-
properties: [
|
|
3671
|
-
{ name: 'not', defaultValue: false },
|
|
3672
|
-
{ name: 'operator' },
|
|
3673
|
-
{ name: 'value' }
|
|
3674
|
-
]
|
|
3675
|
-
};
|
|
3676
|
-
}
|
|
3677
|
-
case WhereRelationNegation: {
|
|
3678
|
-
return {
|
|
3679
|
-
name: WhereRelationNegation,
|
|
3680
|
-
properties: [
|
|
3681
|
-
{ name: 'value' }
|
|
3682
|
-
]
|
|
3683
|
-
};
|
|
3684
|
-
}
|
|
3685
|
-
case WhereRelationParticipantKind: {
|
|
3686
|
-
return {
|
|
3687
|
-
name: WhereRelationParticipantKind,
|
|
3688
|
-
properties: [
|
|
3689
|
-
{ name: 'not', defaultValue: false },
|
|
3690
|
-
{ name: 'operator' },
|
|
3691
|
-
{ name: 'participant' },
|
|
3692
|
-
{ name: 'value' }
|
|
3693
|
-
]
|
|
3694
|
-
};
|
|
3695
|
-
}
|
|
3696
|
-
case WhereRelationParticipantTag: {
|
|
3697
|
-
return {
|
|
3698
|
-
name: WhereRelationParticipantTag,
|
|
3699
|
-
properties: [
|
|
3700
|
-
{ name: 'not', defaultValue: false },
|
|
3701
|
-
{ name: 'operator' },
|
|
3702
|
-
{ name: 'participant' },
|
|
3703
|
-
{ name: 'value' }
|
|
3704
|
-
]
|
|
3705
|
-
};
|
|
3706
|
-
}
|
|
3707
|
-
case WhereRelationTag: {
|
|
3708
|
-
return {
|
|
3709
|
-
name: WhereRelationTag,
|
|
3710
|
-
properties: [
|
|
3711
|
-
{ name: 'not', defaultValue: false },
|
|
3712
|
-
{ name: 'operator' },
|
|
3713
|
-
{ name: 'value' }
|
|
3714
|
-
]
|
|
3715
|
-
};
|
|
3716
|
-
}
|
|
3717
|
-
case WildcardExpression: {
|
|
3718
|
-
return {
|
|
3719
|
-
name: WildcardExpression,
|
|
3720
|
-
properties: [
|
|
3721
|
-
{ name: 'isWildcard', defaultValue: false }
|
|
3722
|
-
]
|
|
3723
|
-
};
|
|
3724
|
-
}
|
|
3725
|
-
default: {
|
|
3726
|
-
return {
|
|
3727
|
-
name: type,
|
|
3728
|
-
properties: []
|
|
3729
|
-
};
|
|
3730
|
-
}
|
|
3731
|
-
}
|
|
3732
|
-
}
|
|
3733
|
-
}
|
|
3734
|
-
|
|
3735
|
-
export const reflection = new LikeC4AstReflection();
|