@likec4/language-server 1.17.1 → 1.19.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/contrib/likec4.tmLanguage.json +1 -1
- package/dist/LikeC4FileSystem.d.ts +13 -0
- package/dist/LikeC4FileSystem.js +27 -0
- package/dist/Rpc.d.ts +9 -0
- package/dist/Rpc.js +126 -0
- package/dist/ast.d.ts +200 -0
- package/dist/ast.js +276 -0
- package/dist/browser.d.ts +6 -20
- package/dist/browser.js +13 -0
- package/dist/formatting/LikeC4Formatter.d.ts +27 -0
- package/dist/formatting/LikeC4Formatter.js +261 -0
- package/dist/formatting/utils.d.ts +6 -0
- package/dist/formatting/utils.js +15 -0
- package/dist/generated/ast.d.ts +1242 -0
- package/dist/generated/ast.js +1945 -0
- package/dist/generated/grammar.d.ts +6 -0
- package/dist/generated/grammar.js +3 -0
- package/dist/generated/module.d.ts +9 -0
- package/dist/generated/module.js +23 -0
- package/dist/generated-lib/icons.d.ts +1 -0
- package/dist/{likec4lib.mjs → generated-lib/icons.js} +1 -6
- package/dist/index.d.ts +8 -31
- package/dist/index.js +13 -0
- package/dist/like-c4.langium +845 -0
- package/dist/likec4lib.d.ts +4 -6
- package/dist/likec4lib.js +4 -0
- package/dist/logger.d.ts +7 -0
- package/dist/logger.js +73 -0
- package/dist/lsp/CodeLensProvider.d.ts +9 -0
- package/dist/lsp/CodeLensProvider.js +40 -0
- package/dist/lsp/CompletionProvider.d.ts +6 -0
- package/dist/lsp/CompletionProvider.js +135 -0
- package/dist/lsp/DocumentHighlightProvider.d.ts +9 -0
- package/dist/lsp/DocumentHighlightProvider.js +10 -0
- package/dist/lsp/DocumentLinkProvider.d.ts +11 -0
- package/dist/lsp/DocumentLinkProvider.js +49 -0
- package/dist/lsp/DocumentSymbolProvider.d.ts +23 -0
- package/dist/lsp/DocumentSymbolProvider.js +202 -0
- package/dist/lsp/HoverProvider.d.ts +10 -0
- package/dist/lsp/HoverProvider.js +69 -0
- package/dist/lsp/RenameProvider.d.ts +5 -0
- package/dist/lsp/RenameProvider.js +6 -0
- package/dist/lsp/SemanticTokenProvider.d.ts +7 -0
- package/dist/lsp/SemanticTokenProvider.js +297 -0
- package/dist/lsp/index.d.ts +7 -0
- package/dist/lsp/index.js +7 -0
- package/dist/model/deployments-index.d.ts +60 -0
- package/dist/model/deployments-index.js +181 -0
- package/dist/model/fqn-computation.d.ts +3 -0
- package/dist/model/fqn-computation.js +72 -0
- package/dist/model/fqn-index.d.ts +25 -0
- package/dist/model/fqn-index.js +96 -0
- package/dist/model/index.d.ts +6 -0
- package/dist/model/index.js +6 -0
- package/dist/model/model-builder.d.ts +32 -0
- package/dist/model/model-builder.js +598 -0
- package/dist/model/model-locator.d.ts +23 -0
- package/dist/model/model-locator.js +126 -0
- package/dist/model/model-parser-where.d.ts +3 -0
- package/dist/model/model-parser-where.js +70 -0
- package/dist/model/model-parser.d.ts +292 -0
- package/dist/model/model-parser.js +72 -0
- package/dist/model/parser/Base.d.ts +28 -0
- package/dist/model/parser/Base.js +87 -0
- package/dist/model/parser/DeploymentModelParser.d.ts +33 -0
- package/dist/model/parser/DeploymentModelParser.js +162 -0
- package/dist/model/parser/DeploymentViewParser.d.ts +38 -0
- package/dist/model/parser/DeploymentViewParser.js +98 -0
- package/dist/model/parser/FqnRefParser.d.ts +29 -0
- package/dist/model/parser/FqnRefParser.js +108 -0
- package/dist/model/parser/GlobalsParser.d.ts +66 -0
- package/dist/model/parser/GlobalsParser.js +80 -0
- package/dist/model/parser/ModelParser.d.ts +27 -0
- package/dist/model/parser/ModelParser.js +122 -0
- package/dist/model/parser/PredicatesParser.d.ts +34 -0
- package/dist/model/parser/PredicatesParser.js +272 -0
- package/dist/model/parser/SpecificationParser.d.ts +27 -0
- package/dist/model/parser/SpecificationParser.js +120 -0
- package/dist/model/parser/ViewsParser.d.ts +64 -0
- package/dist/model/parser/ViewsParser.js +377 -0
- package/dist/model-change/ModelChanges.d.ts +15 -0
- package/dist/model-change/ModelChanges.js +89 -0
- package/dist/model-change/changeElementStyle.d.ts +16 -0
- package/dist/model-change/changeElementStyle.js +136 -0
- package/dist/model-change/changeViewLayout.d.ts +12 -0
- package/dist/model-change/changeViewLayout.js +32 -0
- package/dist/model-change/saveManualLayout.d.ts +11 -0
- package/dist/model-change/saveManualLayout.js +27 -0
- package/dist/module.d.ts +62 -0
- package/dist/module.js +123 -0
- package/dist/protocol.d.ts +27 -27
- package/dist/protocol.js +14 -0
- package/dist/references/index.d.ts +3 -0
- package/dist/references/index.js +3 -0
- package/dist/references/name-provider.d.ts +9 -0
- package/dist/references/name-provider.js +33 -0
- package/dist/references/scope-computation.d.ts +20 -0
- package/dist/references/scope-computation.js +281 -0
- package/dist/references/scope-provider.d.ts +16 -0
- package/dist/references/scope-provider.js +165 -0
- package/dist/shared/NodeKindProvider.d.ts +15 -0
- package/dist/shared/NodeKindProvider.js +108 -0
- package/dist/shared/WorkspaceManager.d.ts +18 -0
- package/dist/shared/WorkspaceManager.js +36 -0
- package/dist/shared/WorkspaceSymbolProvider.d.ts +3 -0
- package/dist/shared/WorkspaceSymbolProvider.js +3 -0
- package/dist/shared/index.d.ts +3 -0
- package/dist/shared/index.js +3 -0
- package/dist/test/index.d.ts +1 -0
- package/dist/test/index.js +1 -0
- package/dist/test/setup.d.ts +1 -0
- package/dist/test/setup.js +7 -0
- package/dist/test/testServices.d.ts +22 -0
- package/dist/test/testServices.js +119 -0
- package/dist/utils/elementRef.d.ts +11 -0
- package/dist/utils/elementRef.js +15 -0
- package/dist/utils/fqnRef.d.ts +8 -0
- package/dist/utils/fqnRef.js +46 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/printDocs.d.ts +2 -0
- package/dist/utils/printDocs.js +1 -0
- package/dist/utils/stringHash.d.ts +1 -0
- package/dist/utils/stringHash.js +5 -0
- package/dist/validation/_shared.d.ts +3 -0
- package/dist/validation/_shared.js +22 -0
- package/dist/validation/deployment-checks.d.ts +6 -0
- package/dist/validation/deployment-checks.js +114 -0
- package/dist/validation/dynamic-view-rule.d.ts +4 -0
- package/dist/validation/dynamic-view-rule.js +16 -0
- package/dist/validation/dynamic-view-step.d.ts +4 -0
- package/dist/validation/dynamic-view-step.js +33 -0
- package/dist/validation/element.d.ts +4 -0
- package/dist/validation/element.js +49 -0
- package/dist/validation/index.d.ts +15 -0
- package/dist/validation/index.js +152 -0
- package/dist/validation/property-checks.d.ts +6 -0
- package/dist/validation/property-checks.js +38 -0
- package/dist/validation/relation.d.ts +5 -0
- package/dist/validation/relation.js +56 -0
- package/dist/validation/specification.d.ts +11 -0
- package/dist/validation/specification.js +136 -0
- package/dist/validation/view-predicates/element-with.d.ts +4 -0
- package/dist/validation/view-predicates/element-with.js +30 -0
- package/dist/validation/view-predicates/expanded-element.d.ts +4 -0
- package/dist/validation/view-predicates/expanded-element.js +11 -0
- package/dist/validation/view-predicates/expression-v2.d.ts +5 -0
- package/dist/validation/view-predicates/expression-v2.js +83 -0
- package/dist/validation/view-predicates/incoming.d.ts +4 -0
- package/dist/validation/view-predicates/incoming.js +15 -0
- package/dist/validation/view-predicates/index.d.ts +6 -0
- package/dist/validation/view-predicates/index.js +6 -0
- package/dist/validation/view-predicates/outgoing.d.ts +4 -0
- package/dist/validation/view-predicates/outgoing.js +15 -0
- package/dist/validation/view-predicates/relation-with.d.ts +4 -0
- package/dist/validation/view-predicates/relation-with.js +12 -0
- package/dist/validation/view.d.ts +4 -0
- package/dist/validation/view.js +23 -0
- package/dist/view-utils/assignNavigateTo.d.ts +2 -0
- package/dist/view-utils/assignNavigateTo.js +25 -0
- package/dist/view-utils/index.d.ts +2 -0
- package/dist/view-utils/index.js +2 -0
- package/dist/view-utils/manual-layout.d.ts +7 -0
- package/dist/view-utils/manual-layout.js +99 -0
- package/dist/view-utils/resolve-relative-paths.d.ts +2 -0
- package/dist/view-utils/resolve-relative-paths.js +78 -0
- package/package.json +42 -73
- package/src/LikeC4FileSystem.ts +22 -21
- package/src/Rpc.ts +6 -3
- package/src/ast.ts +136 -172
- package/src/browser.ts +10 -11
- package/src/generated/ast.ts +656 -40
- package/src/generated/grammar.ts +1 -1
- package/src/index.ts +11 -8
- package/src/like-c4.langium +173 -22
- package/src/logger.ts +41 -57
- package/src/lsp/CodeLensProvider.ts +0 -1
- package/src/lsp/CompletionProvider.ts +20 -5
- package/src/lsp/DocumentSymbolProvider.ts +5 -2
- package/src/lsp/HoverProvider.ts +37 -3
- package/src/lsp/SemanticTokenProvider.ts +58 -32
- package/src/model/deployments-index.ts +222 -0
- package/src/model/fqn-computation.ts +1 -1
- package/src/model/fqn-index.ts +0 -1
- package/src/model/index.ts +1 -0
- package/src/model/model-builder.ts +176 -39
- package/src/model/model-locator.ts +36 -7
- package/src/model/model-parser.ts +69 -1119
- package/src/model/parser/Base.ts +107 -0
- package/src/model/parser/DeploymentModelParser.ts +192 -0
- package/src/model/parser/DeploymentViewParser.ts +116 -0
- package/src/model/parser/FqnRefParser.ts +118 -0
- package/src/model/parser/GlobalsParser.ts +96 -0
- package/src/model/parser/ModelParser.ts +141 -0
- package/src/model/parser/PredicatesParser.ts +291 -0
- package/src/model/parser/SpecificationParser.ts +133 -0
- package/src/model/parser/ViewsParser.ts +428 -0
- package/src/model-change/changeViewLayout.ts +2 -2
- package/src/module.ts +26 -21
- package/src/protocol.ts +10 -6
- package/src/references/index.ts +1 -0
- package/src/references/name-provider.ts +37 -0
- package/src/references/scope-computation.ts +130 -21
- package/src/references/scope-provider.ts +68 -35
- package/src/shared/NodeKindProvider.ts +15 -3
- package/src/{elementRef.ts → utils/elementRef.ts} +1 -1
- package/src/utils/fqnRef.ts +56 -0
- package/src/utils/stringHash.ts +2 -2
- package/src/validation/_shared.ts +6 -5
- package/src/validation/deployment-checks.ts +131 -0
- package/src/validation/dynamic-view-step.ts +1 -1
- package/src/validation/index.ts +104 -6
- package/src/validation/relation.ts +1 -1
- package/src/validation/view-predicates/expression-v2.ts +101 -0
- package/src/validation/view-predicates/index.ts +1 -0
- package/src/view-utils/assignNavigateTo.ts +6 -5
- package/src/view-utils/index.ts +0 -1
- package/src/view-utils/manual-layout.ts +25 -0
- package/dist/browser.cjs +0 -25
- package/dist/browser.d.cts +0 -23
- package/dist/browser.d.mts +0 -23
- package/dist/browser.mjs +0 -20
- package/dist/index.cjs +0 -53
- package/dist/index.d.cts +0 -34
- package/dist/index.d.mts +0 -34
- package/dist/index.mjs +0 -46
- package/dist/likec4lib.cjs +0 -1546
- package/dist/likec4lib.d.cts +0 -6
- package/dist/likec4lib.d.mts +0 -6
- package/dist/model-graph/index.cjs +0 -10
- package/dist/model-graph/index.d.cts +0 -81
- package/dist/model-graph/index.d.mts +0 -81
- package/dist/model-graph/index.d.ts +0 -81
- package/dist/model-graph/index.mjs +0 -1
- package/dist/protocol.cjs +0 -25
- package/dist/protocol.d.cts +0 -45
- package/dist/protocol.d.mts +0 -45
- package/dist/protocol.mjs +0 -17
- package/dist/shared/language-server.BIbAD1T-.mjs +0 -6292
- package/dist/shared/language-server.BQRvVmE0.d.cts +0 -1303
- package/dist/shared/language-server.BysPcTxr.d.ts +0 -1303
- package/dist/shared/language-server.D2QdbOJO.cjs +0 -1995
- package/dist/shared/language-server.DGrBGmsd.mjs +0 -1981
- package/dist/shared/language-server.DKV_FdPN.cjs +0 -6304
- package/dist/shared/language-server._wkyPgso.d.mts +0 -1303
- package/src/model-graph/LikeC4ModelGraph.ts +0 -338
- package/src/model-graph/compute-view/__test__/fixture.ts +0 -630
- package/src/model-graph/compute-view/compute.ts +0 -788
- package/src/model-graph/compute-view/index.ts +0 -33
- package/src/model-graph/compute-view/predicates.ts +0 -509
- package/src/model-graph/dynamic-view/__test__/fixture.ts +0 -61
- package/src/model-graph/dynamic-view/compute.ts +0 -313
- package/src/model-graph/dynamic-view/index.ts +0 -29
- package/src/model-graph/index.ts +0 -3
- package/src/model-graph/utils/applyCustomElementProperties.ts +0 -65
- package/src/model-graph/utils/applyCustomRelationProperties.ts +0 -41
- package/src/model-graph/utils/applyViewRuleStyles.ts +0 -49
- package/src/model-graph/utils/buildComputeNodes.ts +0 -113
- package/src/model-graph/utils/buildElementNotations.ts +0 -63
- package/src/model-graph/utils/elementExpressionToPredicate.ts +0 -39
- package/src/model-graph/utils/relationExpressionToPredicates.ts +0 -43
- package/src/model-graph/utils/sortNodes.ts +0 -105
- package/src/model-graph/utils/uniqueTags.test.ts +0 -42
- package/src/model-graph/utils/uniqueTags.ts +0 -19
- package/src/utils/graphlib.ts +0 -9
- package/src/view-utils/resolve-extended-views.ts +0 -66
- package/src/view-utils/resolve-global-rules.ts +0 -88
- package/src/view-utils/view-hash.ts +0 -27
|
@@ -0,0 +1,1945 @@
|
|
|
1
|
+
import { AbstractAstReflection } from "langium";
|
|
2
|
+
export const LikeC4Terminals = {
|
|
3
|
+
BLOCK_COMMENT: /\/\*[\s\S]*?\*\//,
|
|
4
|
+
LINE_COMMENT: /\/\/[^\n\r]*/,
|
|
5
|
+
WS: /[\t ]+/,
|
|
6
|
+
NL: /[\r\n]+/,
|
|
7
|
+
LIB_ICON: /(aws|azure|gcp|tech):[-\w]*/,
|
|
8
|
+
URI_WITH_SCHEMA: /\w+:\/\/\S+/,
|
|
9
|
+
URI_RELATIVE: /\.{0,2}\/[^\/]\S+/,
|
|
10
|
+
DotUnderscore: /\b\._(?![_a-zA-Z])/,
|
|
11
|
+
DotWildcard: /\b\.\*{1,2}/,
|
|
12
|
+
Hash: /#/,
|
|
13
|
+
StickyDot: /\b\./,
|
|
14
|
+
Dot: /\./,
|
|
15
|
+
NotEqual: /\!\={1,2}/,
|
|
16
|
+
Eq: /\={1,2}/,
|
|
17
|
+
Percent: /\b\d+%/,
|
|
18
|
+
String: /"[^"]*"|'[^']*'/,
|
|
19
|
+
IdTerminal: /[_]*[a-zA-Z][-\w]*/,
|
|
20
|
+
Number: /\b\d+\b/,
|
|
21
|
+
Hex: /\b[a-zA-Z0-9]+\b/
|
|
22
|
+
};
|
|
23
|
+
export function isArrowType(item) {
|
|
24
|
+
return item === "none" || item === "normal" || item === "onormal" || item === "dot" || item === "odot" || item === "diamond" || item === "odiamond" || item === "crow" || item === "open" || item === "vee";
|
|
25
|
+
}
|
|
26
|
+
export function isBorderStyleValue(item) {
|
|
27
|
+
return isLineOptions(item) || item === "none";
|
|
28
|
+
}
|
|
29
|
+
export function isCustomColorId(item) {
|
|
30
|
+
return isElementShape(item) || isArrowType(item) || isLineOptions(item) || item === "element" || item === "model" || typeof item === "string" && /[_]*[a-zA-Z][-\w]*/.test(item);
|
|
31
|
+
}
|
|
32
|
+
export function isCustomColorValue(item) {
|
|
33
|
+
return typeof item === "string";
|
|
34
|
+
}
|
|
35
|
+
export const DeploymentElement = "DeploymentElement";
|
|
36
|
+
export function isDeploymentElement(item) {
|
|
37
|
+
return reflection.isInstance(item, DeploymentElement);
|
|
38
|
+
}
|
|
39
|
+
export const DeploymentViewRule = "DeploymentViewRule";
|
|
40
|
+
export function isDeploymentViewRule(item) {
|
|
41
|
+
return reflection.isInstance(item, DeploymentViewRule);
|
|
42
|
+
}
|
|
43
|
+
export function isDotId(item) {
|
|
44
|
+
return typeof item === "string";
|
|
45
|
+
}
|
|
46
|
+
export const DynamicViewRule = "DynamicViewRule";
|
|
47
|
+
export function isDynamicViewRule(item) {
|
|
48
|
+
return reflection.isInstance(item, DynamicViewRule);
|
|
49
|
+
}
|
|
50
|
+
export const ElementExpression = "ElementExpression";
|
|
51
|
+
export function isElementExpression(item) {
|
|
52
|
+
return reflection.isInstance(item, ElementExpression);
|
|
53
|
+
}
|
|
54
|
+
export const ElementPredicate = "ElementPredicate";
|
|
55
|
+
export function isElementPredicate(item) {
|
|
56
|
+
return reflection.isInstance(item, ElementPredicate);
|
|
57
|
+
}
|
|
58
|
+
export const ElementPredicateOrWhere = "ElementPredicateOrWhere";
|
|
59
|
+
export function isElementPredicateOrWhere(item) {
|
|
60
|
+
return reflection.isInstance(item, ElementPredicateOrWhere);
|
|
61
|
+
}
|
|
62
|
+
export const ElementProperty = "ElementProperty";
|
|
63
|
+
export function isElementProperty(item) {
|
|
64
|
+
return reflection.isInstance(item, ElementProperty);
|
|
65
|
+
}
|
|
66
|
+
export function isElementShape(item) {
|
|
67
|
+
return item === "rectangle" || item === "person" || item === "browser" || item === "mobile" || item === "cylinder" || item === "storage" || item === "queue";
|
|
68
|
+
}
|
|
69
|
+
export const ExpressionV2 = "ExpressionV2";
|
|
70
|
+
export function isExpressionV2(item) {
|
|
71
|
+
return reflection.isInstance(item, ExpressionV2);
|
|
72
|
+
}
|
|
73
|
+
export const FqnExpr = "FqnExpr";
|
|
74
|
+
export function isFqnExpr(item) {
|
|
75
|
+
return reflection.isInstance(item, FqnExpr);
|
|
76
|
+
}
|
|
77
|
+
export const FqnReferenceable = "FqnReferenceable";
|
|
78
|
+
export function isFqnReferenceable(item) {
|
|
79
|
+
return reflection.isInstance(item, FqnReferenceable);
|
|
80
|
+
}
|
|
81
|
+
export function isIconId(item) {
|
|
82
|
+
return typeof item === "string" && /(aws|azure|gcp|tech):[-\w]*/.test(item);
|
|
83
|
+
}
|
|
84
|
+
export function isId(item) {
|
|
85
|
+
return isElementShape(item) || isThemeColor(item) || isArrowType(item) || isLineOptions(item) || item === "element" || item === "model" || item === "group" || item === "node" || item === "deployment" || item === "instance" || typeof item === "string" && /[_]*[a-zA-Z][-\w]*/.test(item);
|
|
86
|
+
}
|
|
87
|
+
export const LikeC4View = "LikeC4View";
|
|
88
|
+
export function isLikeC4View(item) {
|
|
89
|
+
return reflection.isInstance(item, LikeC4View);
|
|
90
|
+
}
|
|
91
|
+
export function isLineOptions(item) {
|
|
92
|
+
return item === "solid" || item === "dashed" || item === "dotted";
|
|
93
|
+
}
|
|
94
|
+
export const MetadataProperty = "MetadataProperty";
|
|
95
|
+
export function isMetadataProperty(item) {
|
|
96
|
+
return reflection.isInstance(item, MetadataProperty);
|
|
97
|
+
}
|
|
98
|
+
export const Predicate = "Predicate";
|
|
99
|
+
export function isPredicate(item) {
|
|
100
|
+
return reflection.isInstance(item, Predicate);
|
|
101
|
+
}
|
|
102
|
+
export const Referenceable = "Referenceable";
|
|
103
|
+
export function isReferenceable(item) {
|
|
104
|
+
return reflection.isInstance(item, Referenceable);
|
|
105
|
+
}
|
|
106
|
+
export const RelationExpr = "RelationExpr";
|
|
107
|
+
export function isRelationExpr(item) {
|
|
108
|
+
return reflection.isInstance(item, RelationExpr);
|
|
109
|
+
}
|
|
110
|
+
export const RelationExpression = "RelationExpression";
|
|
111
|
+
export function isRelationExpression(item) {
|
|
112
|
+
return reflection.isInstance(item, RelationExpression);
|
|
113
|
+
}
|
|
114
|
+
export const RelationPredicate = "RelationPredicate";
|
|
115
|
+
export function isRelationPredicate(item) {
|
|
116
|
+
return reflection.isInstance(item, RelationPredicate);
|
|
117
|
+
}
|
|
118
|
+
export const RelationPredicateOrWhere = "RelationPredicateOrWhere";
|
|
119
|
+
export function isRelationPredicateOrWhere(item) {
|
|
120
|
+
return reflection.isInstance(item, RelationPredicateOrWhere);
|
|
121
|
+
}
|
|
122
|
+
export const RelationProperty = "RelationProperty";
|
|
123
|
+
export function isRelationProperty(item) {
|
|
124
|
+
return reflection.isInstance(item, RelationProperty);
|
|
125
|
+
}
|
|
126
|
+
export const RelationshipStyleProperty = "RelationshipStyleProperty";
|
|
127
|
+
export function isRelationshipStyleProperty(item) {
|
|
128
|
+
return reflection.isInstance(item, RelationshipStyleProperty);
|
|
129
|
+
}
|
|
130
|
+
export const StringProperty = "StringProperty";
|
|
131
|
+
export function isStringProperty(item) {
|
|
132
|
+
return reflection.isInstance(item, StringProperty);
|
|
133
|
+
}
|
|
134
|
+
export const StyleProperty = "StyleProperty";
|
|
135
|
+
export function isStyleProperty(item) {
|
|
136
|
+
return reflection.isInstance(item, StyleProperty);
|
|
137
|
+
}
|
|
138
|
+
export function isTagId(item) {
|
|
139
|
+
return typeof item === "string";
|
|
140
|
+
}
|
|
141
|
+
export function isThemeColor(item) {
|
|
142
|
+
return item === "primary" || item === "secondary" || item === "muted" || item === "slate" || item === "blue" || item === "indigo" || item === "sky" || item === "red" || item === "gray" || item === "green" || item === "amber";
|
|
143
|
+
}
|
|
144
|
+
export function isUri(item) {
|
|
145
|
+
return typeof item === "string" && (/\w+:\/\/\S+/.test(item) || /\.{0,2}\/[^\/]\S+/.test(item));
|
|
146
|
+
}
|
|
147
|
+
export function isViewLayoutDirection(item) {
|
|
148
|
+
return item === "TopBottom" || item === "LeftRight" || item === "BottomTop" || item === "RightLeft";
|
|
149
|
+
}
|
|
150
|
+
export const ViewProperty = "ViewProperty";
|
|
151
|
+
export function isViewProperty(item) {
|
|
152
|
+
return reflection.isInstance(item, ViewProperty);
|
|
153
|
+
}
|
|
154
|
+
export const ViewRule = "ViewRule";
|
|
155
|
+
export function isViewRule(item) {
|
|
156
|
+
return reflection.isInstance(item, ViewRule);
|
|
157
|
+
}
|
|
158
|
+
export const ViewRulePredicate = "ViewRulePredicate";
|
|
159
|
+
export function isViewRulePredicate(item) {
|
|
160
|
+
return reflection.isInstance(item, ViewRulePredicate);
|
|
161
|
+
}
|
|
162
|
+
export const ViewRuleStyleOrGlobalRef = "ViewRuleStyleOrGlobalRef";
|
|
163
|
+
export function isViewRuleStyleOrGlobalRef(item) {
|
|
164
|
+
return reflection.isInstance(item, ViewRuleStyleOrGlobalRef);
|
|
165
|
+
}
|
|
166
|
+
export const WhereElement = "WhereElement";
|
|
167
|
+
export function isWhereElement(item) {
|
|
168
|
+
return reflection.isInstance(item, WhereElement);
|
|
169
|
+
}
|
|
170
|
+
export const WhereElementExpression = "WhereElementExpression";
|
|
171
|
+
export function isWhereElementExpression(item) {
|
|
172
|
+
return reflection.isInstance(item, WhereElementExpression);
|
|
173
|
+
}
|
|
174
|
+
export const WhereExpression = "WhereExpression";
|
|
175
|
+
export function isWhereExpression(item) {
|
|
176
|
+
return reflection.isInstance(item, WhereExpression);
|
|
177
|
+
}
|
|
178
|
+
export const WhereKindEqual = "WhereKindEqual";
|
|
179
|
+
export function isWhereKindEqual(item) {
|
|
180
|
+
return reflection.isInstance(item, WhereKindEqual);
|
|
181
|
+
}
|
|
182
|
+
export const WhereRelation = "WhereRelation";
|
|
183
|
+
export function isWhereRelation(item) {
|
|
184
|
+
return reflection.isInstance(item, WhereRelation);
|
|
185
|
+
}
|
|
186
|
+
export const WhereRelationExpression = "WhereRelationExpression";
|
|
187
|
+
export function isWhereRelationExpression(item) {
|
|
188
|
+
return reflection.isInstance(item, WhereRelationExpression);
|
|
189
|
+
}
|
|
190
|
+
export const WhereTagEqual = "WhereTagEqual";
|
|
191
|
+
export function isWhereTagEqual(item) {
|
|
192
|
+
return reflection.isInstance(item, WhereTagEqual);
|
|
193
|
+
}
|
|
194
|
+
export const ArrowProperty = "ArrowProperty";
|
|
195
|
+
export function isArrowProperty(item) {
|
|
196
|
+
return reflection.isInstance(item, ArrowProperty);
|
|
197
|
+
}
|
|
198
|
+
export const BorderProperty = "BorderProperty";
|
|
199
|
+
export function isBorderProperty(item) {
|
|
200
|
+
return reflection.isInstance(item, BorderProperty);
|
|
201
|
+
}
|
|
202
|
+
export const ColorProperty = "ColorProperty";
|
|
203
|
+
export function isColorProperty(item) {
|
|
204
|
+
return reflection.isInstance(item, ColorProperty);
|
|
205
|
+
}
|
|
206
|
+
export const CustomColor = "CustomColor";
|
|
207
|
+
export function isCustomColor(item) {
|
|
208
|
+
return reflection.isInstance(item, CustomColor);
|
|
209
|
+
}
|
|
210
|
+
export const CustomElementProperties = "CustomElementProperties";
|
|
211
|
+
export function isCustomElementProperties(item) {
|
|
212
|
+
return reflection.isInstance(item, CustomElementProperties);
|
|
213
|
+
}
|
|
214
|
+
export const CustomRelationProperties = "CustomRelationProperties";
|
|
215
|
+
export function isCustomRelationProperties(item) {
|
|
216
|
+
return reflection.isInstance(item, CustomRelationProperties);
|
|
217
|
+
}
|
|
218
|
+
export const DeployedInstance = "DeployedInstance";
|
|
219
|
+
export function isDeployedInstance(item) {
|
|
220
|
+
return reflection.isInstance(item, DeployedInstance);
|
|
221
|
+
}
|
|
222
|
+
export const DeployedInstanceBody = "DeployedInstanceBody";
|
|
223
|
+
export function isDeployedInstanceBody(item) {
|
|
224
|
+
return reflection.isInstance(item, DeployedInstanceBody);
|
|
225
|
+
}
|
|
226
|
+
export const DeploymentNode = "DeploymentNode";
|
|
227
|
+
export function isDeploymentNode(item) {
|
|
228
|
+
return reflection.isInstance(item, DeploymentNode);
|
|
229
|
+
}
|
|
230
|
+
export const DeploymentNodeBody = "DeploymentNodeBody";
|
|
231
|
+
export function isDeploymentNodeBody(item) {
|
|
232
|
+
return reflection.isInstance(item, DeploymentNodeBody);
|
|
233
|
+
}
|
|
234
|
+
export const DeploymentNodeKind = "DeploymentNodeKind";
|
|
235
|
+
export function isDeploymentNodeKind(item) {
|
|
236
|
+
return reflection.isInstance(item, DeploymentNodeKind);
|
|
237
|
+
}
|
|
238
|
+
export const DeploymentRelation = "DeploymentRelation";
|
|
239
|
+
export function isDeploymentRelation(item) {
|
|
240
|
+
return reflection.isInstance(item, DeploymentRelation);
|
|
241
|
+
}
|
|
242
|
+
export const DeploymentRelationBody = "DeploymentRelationBody";
|
|
243
|
+
export function isDeploymentRelationBody(item) {
|
|
244
|
+
return reflection.isInstance(item, DeploymentRelationBody);
|
|
245
|
+
}
|
|
246
|
+
export const DeploymentView = "DeploymentView";
|
|
247
|
+
export function isDeploymentView(item) {
|
|
248
|
+
return reflection.isInstance(item, DeploymentView);
|
|
249
|
+
}
|
|
250
|
+
export const DeploymentViewBody = "DeploymentViewBody";
|
|
251
|
+
export function isDeploymentViewBody(item) {
|
|
252
|
+
return reflection.isInstance(item, DeploymentViewBody);
|
|
253
|
+
}
|
|
254
|
+
export const DeploymentViewRulePredicate = "DeploymentViewRulePredicate";
|
|
255
|
+
export function isDeploymentViewRulePredicate(item) {
|
|
256
|
+
return reflection.isInstance(item, DeploymentViewRulePredicate);
|
|
257
|
+
}
|
|
258
|
+
export const DeploymentViewRulePredicateExpression = "DeploymentViewRulePredicateExpression";
|
|
259
|
+
export function isDeploymentViewRulePredicateExpression(item) {
|
|
260
|
+
return reflection.isInstance(item, DeploymentViewRulePredicateExpression);
|
|
261
|
+
}
|
|
262
|
+
export const DeploymentViewRuleStyle = "DeploymentViewRuleStyle";
|
|
263
|
+
export function isDeploymentViewRuleStyle(item) {
|
|
264
|
+
return reflection.isInstance(item, DeploymentViewRuleStyle);
|
|
265
|
+
}
|
|
266
|
+
export const DirectedRelationExpr = "DirectedRelationExpr";
|
|
267
|
+
export function isDirectedRelationExpr(item) {
|
|
268
|
+
return reflection.isInstance(item, DirectedRelationExpr);
|
|
269
|
+
}
|
|
270
|
+
export const DirectedRelationExpression = "DirectedRelationExpression";
|
|
271
|
+
export function isDirectedRelationExpression(item) {
|
|
272
|
+
return reflection.isInstance(item, DirectedRelationExpression);
|
|
273
|
+
}
|
|
274
|
+
export const DynamicView = "DynamicView";
|
|
275
|
+
export function isDynamicView(item) {
|
|
276
|
+
return reflection.isInstance(item, DynamicView);
|
|
277
|
+
}
|
|
278
|
+
export const DynamicViewBody = "DynamicViewBody";
|
|
279
|
+
export function isDynamicViewBody(item) {
|
|
280
|
+
return reflection.isInstance(item, DynamicViewBody);
|
|
281
|
+
}
|
|
282
|
+
export const DynamicViewGlobalPredicateRef = "DynamicViewGlobalPredicateRef";
|
|
283
|
+
export function isDynamicViewGlobalPredicateRef(item) {
|
|
284
|
+
return reflection.isInstance(item, DynamicViewGlobalPredicateRef);
|
|
285
|
+
}
|
|
286
|
+
export const DynamicViewIncludePredicate = "DynamicViewIncludePredicate";
|
|
287
|
+
export function isDynamicViewIncludePredicate(item) {
|
|
288
|
+
return reflection.isInstance(item, DynamicViewIncludePredicate);
|
|
289
|
+
}
|
|
290
|
+
export const DynamicViewParallelSteps = "DynamicViewParallelSteps";
|
|
291
|
+
export function isDynamicViewParallelSteps(item) {
|
|
292
|
+
return reflection.isInstance(item, DynamicViewParallelSteps);
|
|
293
|
+
}
|
|
294
|
+
export const DynamicViewPredicateIterator = "DynamicViewPredicateIterator";
|
|
295
|
+
export function isDynamicViewPredicateIterator(item) {
|
|
296
|
+
return reflection.isInstance(item, DynamicViewPredicateIterator);
|
|
297
|
+
}
|
|
298
|
+
export const DynamicViewRef = "DynamicViewRef";
|
|
299
|
+
export function isDynamicViewRef(item) {
|
|
300
|
+
return reflection.isInstance(item, DynamicViewRef);
|
|
301
|
+
}
|
|
302
|
+
export const DynamicViewStep = "DynamicViewStep";
|
|
303
|
+
export function isDynamicViewStep(item) {
|
|
304
|
+
return reflection.isInstance(item, DynamicViewStep);
|
|
305
|
+
}
|
|
306
|
+
export const Element = "Element";
|
|
307
|
+
export function isElement(item) {
|
|
308
|
+
return reflection.isInstance(item, Element);
|
|
309
|
+
}
|
|
310
|
+
export const ElementBody = "ElementBody";
|
|
311
|
+
export function isElementBody(item) {
|
|
312
|
+
return reflection.isInstance(item, ElementBody);
|
|
313
|
+
}
|
|
314
|
+
export const ElementDescedantsExpression = "ElementDescedantsExpression";
|
|
315
|
+
export function isElementDescedantsExpression(item) {
|
|
316
|
+
return reflection.isInstance(item, ElementDescedantsExpression);
|
|
317
|
+
}
|
|
318
|
+
export const ElementExpressionsIterator = "ElementExpressionsIterator";
|
|
319
|
+
export function isElementExpressionsIterator(item) {
|
|
320
|
+
return reflection.isInstance(item, ElementExpressionsIterator);
|
|
321
|
+
}
|
|
322
|
+
export const ElementKind = "ElementKind";
|
|
323
|
+
export function isElementKind(item) {
|
|
324
|
+
return reflection.isInstance(item, ElementKind);
|
|
325
|
+
}
|
|
326
|
+
export const ElementKindExpression = "ElementKindExpression";
|
|
327
|
+
export function isElementKindExpression(item) {
|
|
328
|
+
return reflection.isInstance(item, ElementKindExpression);
|
|
329
|
+
}
|
|
330
|
+
export const ElementPredicateWhere = "ElementPredicateWhere";
|
|
331
|
+
export function isElementPredicateWhere(item) {
|
|
332
|
+
return reflection.isInstance(item, ElementPredicateWhere);
|
|
333
|
+
}
|
|
334
|
+
export const ElementPredicateWith = "ElementPredicateWith";
|
|
335
|
+
export function isElementPredicateWith(item) {
|
|
336
|
+
return reflection.isInstance(item, ElementPredicateWith);
|
|
337
|
+
}
|
|
338
|
+
export const ElementRef = "ElementRef";
|
|
339
|
+
export function isElementRef(item) {
|
|
340
|
+
return reflection.isInstance(item, ElementRef);
|
|
341
|
+
}
|
|
342
|
+
export const ElementStringProperty = "ElementStringProperty";
|
|
343
|
+
export function isElementStringProperty(item) {
|
|
344
|
+
return reflection.isInstance(item, ElementStringProperty);
|
|
345
|
+
}
|
|
346
|
+
export const ElementStyleProperty = "ElementStyleProperty";
|
|
347
|
+
export function isElementStyleProperty(item) {
|
|
348
|
+
return reflection.isInstance(item, ElementStyleProperty);
|
|
349
|
+
}
|
|
350
|
+
export const ElementTagExpression = "ElementTagExpression";
|
|
351
|
+
export function isElementTagExpression(item) {
|
|
352
|
+
return reflection.isInstance(item, ElementTagExpression);
|
|
353
|
+
}
|
|
354
|
+
export const ElementView = "ElementView";
|
|
355
|
+
export function isElementView(item) {
|
|
356
|
+
return reflection.isInstance(item, ElementView);
|
|
357
|
+
}
|
|
358
|
+
export const ElementViewBody = "ElementViewBody";
|
|
359
|
+
export function isElementViewBody(item) {
|
|
360
|
+
return reflection.isInstance(item, ElementViewBody);
|
|
361
|
+
}
|
|
362
|
+
export const ElementViewRef = "ElementViewRef";
|
|
363
|
+
export function isElementViewRef(item) {
|
|
364
|
+
return reflection.isInstance(item, ElementViewRef);
|
|
365
|
+
}
|
|
366
|
+
export const ExcludePredicate = "ExcludePredicate";
|
|
367
|
+
export function isExcludePredicate(item) {
|
|
368
|
+
return reflection.isInstance(item, ExcludePredicate);
|
|
369
|
+
}
|
|
370
|
+
export const ExpandElementExpression = "ExpandElementExpression";
|
|
371
|
+
export function isExpandElementExpression(item) {
|
|
372
|
+
return reflection.isInstance(item, ExpandElementExpression);
|
|
373
|
+
}
|
|
374
|
+
export const ExtendElement = "ExtendElement";
|
|
375
|
+
export function isExtendElement(item) {
|
|
376
|
+
return reflection.isInstance(item, ExtendElement);
|
|
377
|
+
}
|
|
378
|
+
export const ExtendElementBody = "ExtendElementBody";
|
|
379
|
+
export function isExtendElementBody(item) {
|
|
380
|
+
return reflection.isInstance(item, ExtendElementBody);
|
|
381
|
+
}
|
|
382
|
+
export const FqnElementRef = "FqnElementRef";
|
|
383
|
+
export function isFqnElementRef(item) {
|
|
384
|
+
return reflection.isInstance(item, FqnElementRef);
|
|
385
|
+
}
|
|
386
|
+
export const FqnExpressions = "FqnExpressions";
|
|
387
|
+
export function isFqnExpressions(item) {
|
|
388
|
+
return reflection.isInstance(item, FqnExpressions);
|
|
389
|
+
}
|
|
390
|
+
export const FqnRef = "FqnRef";
|
|
391
|
+
export function isFqnRef(item) {
|
|
392
|
+
return reflection.isInstance(item, FqnRef);
|
|
393
|
+
}
|
|
394
|
+
export const FqnRefExpr = "FqnRefExpr";
|
|
395
|
+
export function isFqnRefExpr(item) {
|
|
396
|
+
return reflection.isInstance(item, FqnRefExpr);
|
|
397
|
+
}
|
|
398
|
+
export const GlobalDynamicPredicateGroup = "GlobalDynamicPredicateGroup";
|
|
399
|
+
export function isGlobalDynamicPredicateGroup(item) {
|
|
400
|
+
return reflection.isInstance(item, GlobalDynamicPredicateGroup);
|
|
401
|
+
}
|
|
402
|
+
export const GlobalPredicateGroup = "GlobalPredicateGroup";
|
|
403
|
+
export function isGlobalPredicateGroup(item) {
|
|
404
|
+
return reflection.isInstance(item, GlobalPredicateGroup);
|
|
405
|
+
}
|
|
406
|
+
export const Globals = "Globals";
|
|
407
|
+
export function isGlobals(item) {
|
|
408
|
+
return reflection.isInstance(item, Globals);
|
|
409
|
+
}
|
|
410
|
+
export const GlobalStyle = "GlobalStyle";
|
|
411
|
+
export function isGlobalStyle(item) {
|
|
412
|
+
return reflection.isInstance(item, GlobalStyle);
|
|
413
|
+
}
|
|
414
|
+
export const GlobalStyleGroup = "GlobalStyleGroup";
|
|
415
|
+
export function isGlobalStyleGroup(item) {
|
|
416
|
+
return reflection.isInstance(item, GlobalStyleGroup);
|
|
417
|
+
}
|
|
418
|
+
export const GlobalStyleId = "GlobalStyleId";
|
|
419
|
+
export function isGlobalStyleId(item) {
|
|
420
|
+
return reflection.isInstance(item, GlobalStyleId);
|
|
421
|
+
}
|
|
422
|
+
export const IconProperty = "IconProperty";
|
|
423
|
+
export function isIconProperty(item) {
|
|
424
|
+
return reflection.isInstance(item, IconProperty);
|
|
425
|
+
}
|
|
426
|
+
export const IncludePredicate = "IncludePredicate";
|
|
427
|
+
export function isIncludePredicate(item) {
|
|
428
|
+
return reflection.isInstance(item, IncludePredicate);
|
|
429
|
+
}
|
|
430
|
+
export const IncomingRelationExpr = "IncomingRelationExpr";
|
|
431
|
+
export function isIncomingRelationExpr(item) {
|
|
432
|
+
return reflection.isInstance(item, IncomingRelationExpr);
|
|
433
|
+
}
|
|
434
|
+
export const IncomingRelationExpression = "IncomingRelationExpression";
|
|
435
|
+
export function isIncomingRelationExpression(item) {
|
|
436
|
+
return reflection.isInstance(item, IncomingRelationExpression);
|
|
437
|
+
}
|
|
438
|
+
export const InOutRelationExpr = "InOutRelationExpr";
|
|
439
|
+
export function isInOutRelationExpr(item) {
|
|
440
|
+
return reflection.isInstance(item, InOutRelationExpr);
|
|
441
|
+
}
|
|
442
|
+
export const InOutRelationExpression = "InOutRelationExpression";
|
|
443
|
+
export function isInOutRelationExpression(item) {
|
|
444
|
+
return reflection.isInstance(item, InOutRelationExpression);
|
|
445
|
+
}
|
|
446
|
+
export const LibIcon = "LibIcon";
|
|
447
|
+
export function isLibIcon(item) {
|
|
448
|
+
return reflection.isInstance(item, LibIcon);
|
|
449
|
+
}
|
|
450
|
+
export const LikeC4Grammar = "LikeC4Grammar";
|
|
451
|
+
export function isLikeC4Grammar(item) {
|
|
452
|
+
return reflection.isInstance(item, LikeC4Grammar);
|
|
453
|
+
}
|
|
454
|
+
export const LikeC4Lib = "LikeC4Lib";
|
|
455
|
+
export function isLikeC4Lib(item) {
|
|
456
|
+
return reflection.isInstance(item, LikeC4Lib);
|
|
457
|
+
}
|
|
458
|
+
export const LineProperty = "LineProperty";
|
|
459
|
+
export function isLineProperty(item) {
|
|
460
|
+
return reflection.isInstance(item, LineProperty);
|
|
461
|
+
}
|
|
462
|
+
export const LinkProperty = "LinkProperty";
|
|
463
|
+
export function isLinkProperty(item) {
|
|
464
|
+
return reflection.isInstance(item, LinkProperty);
|
|
465
|
+
}
|
|
466
|
+
export const MetadataAttribute = "MetadataAttribute";
|
|
467
|
+
export function isMetadataAttribute(item) {
|
|
468
|
+
return reflection.isInstance(item, MetadataAttribute);
|
|
469
|
+
}
|
|
470
|
+
export const MetadataBody = "MetadataBody";
|
|
471
|
+
export function isMetadataBody(item) {
|
|
472
|
+
return reflection.isInstance(item, MetadataBody);
|
|
473
|
+
}
|
|
474
|
+
export const Model = "Model";
|
|
475
|
+
export function isModel(item) {
|
|
476
|
+
return reflection.isInstance(item, Model);
|
|
477
|
+
}
|
|
478
|
+
export const ModelDeployments = "ModelDeployments";
|
|
479
|
+
export function isModelDeployments(item) {
|
|
480
|
+
return reflection.isInstance(item, ModelDeployments);
|
|
481
|
+
}
|
|
482
|
+
export const ModelViews = "ModelViews";
|
|
483
|
+
export function isModelViews(item) {
|
|
484
|
+
return reflection.isInstance(item, ModelViews);
|
|
485
|
+
}
|
|
486
|
+
export const NavigateToProperty = "NavigateToProperty";
|
|
487
|
+
export function isNavigateToProperty(item) {
|
|
488
|
+
return reflection.isInstance(item, NavigateToProperty);
|
|
489
|
+
}
|
|
490
|
+
export const NotationProperty = "NotationProperty";
|
|
491
|
+
export function isNotationProperty(item) {
|
|
492
|
+
return reflection.isInstance(item, NotationProperty);
|
|
493
|
+
}
|
|
494
|
+
export const NotesProperty = "NotesProperty";
|
|
495
|
+
export function isNotesProperty(item) {
|
|
496
|
+
return reflection.isInstance(item, NotesProperty);
|
|
497
|
+
}
|
|
498
|
+
export const OpacityProperty = "OpacityProperty";
|
|
499
|
+
export function isOpacityProperty(item) {
|
|
500
|
+
return reflection.isInstance(item, OpacityProperty);
|
|
501
|
+
}
|
|
502
|
+
export const OutgoingRelationExpr = "OutgoingRelationExpr";
|
|
503
|
+
export function isOutgoingRelationExpr(item) {
|
|
504
|
+
return reflection.isInstance(item, OutgoingRelationExpr);
|
|
505
|
+
}
|
|
506
|
+
export const OutgoingRelationExpression = "OutgoingRelationExpression";
|
|
507
|
+
export function isOutgoingRelationExpression(item) {
|
|
508
|
+
return reflection.isInstance(item, OutgoingRelationExpression);
|
|
509
|
+
}
|
|
510
|
+
export const Predicates = "Predicates";
|
|
511
|
+
export function isPredicates(item) {
|
|
512
|
+
return reflection.isInstance(item, Predicates);
|
|
513
|
+
}
|
|
514
|
+
export const Relation = "Relation";
|
|
515
|
+
export function isRelation(item) {
|
|
516
|
+
return reflection.isInstance(item, Relation);
|
|
517
|
+
}
|
|
518
|
+
export const RelationBody = "RelationBody";
|
|
519
|
+
export function isRelationBody(item) {
|
|
520
|
+
return reflection.isInstance(item, RelationBody);
|
|
521
|
+
}
|
|
522
|
+
export const RelationNavigateToProperty = "RelationNavigateToProperty";
|
|
523
|
+
export function isRelationNavigateToProperty(item) {
|
|
524
|
+
return reflection.isInstance(item, RelationNavigateToProperty);
|
|
525
|
+
}
|
|
526
|
+
export const RelationPredicateWhere = "RelationPredicateWhere";
|
|
527
|
+
export function isRelationPredicateWhere(item) {
|
|
528
|
+
return reflection.isInstance(item, RelationPredicateWhere);
|
|
529
|
+
}
|
|
530
|
+
export const RelationPredicateWith = "RelationPredicateWith";
|
|
531
|
+
export function isRelationPredicateWith(item) {
|
|
532
|
+
return reflection.isInstance(item, RelationPredicateWith);
|
|
533
|
+
}
|
|
534
|
+
export const RelationshipKind = "RelationshipKind";
|
|
535
|
+
export function isRelationshipKind(item) {
|
|
536
|
+
return reflection.isInstance(item, RelationshipKind);
|
|
537
|
+
}
|
|
538
|
+
export const RelationStringProperty = "RelationStringProperty";
|
|
539
|
+
export function isRelationStringProperty(item) {
|
|
540
|
+
return reflection.isInstance(item, RelationStringProperty);
|
|
541
|
+
}
|
|
542
|
+
export const RelationStyleProperty = "RelationStyleProperty";
|
|
543
|
+
export function isRelationStyleProperty(item) {
|
|
544
|
+
return reflection.isInstance(item, RelationStyleProperty);
|
|
545
|
+
}
|
|
546
|
+
export const ShapeProperty = "ShapeProperty";
|
|
547
|
+
export function isShapeProperty(item) {
|
|
548
|
+
return reflection.isInstance(item, ShapeProperty);
|
|
549
|
+
}
|
|
550
|
+
export const SpecificationColor = "SpecificationColor";
|
|
551
|
+
export function isSpecificationColor(item) {
|
|
552
|
+
return reflection.isInstance(item, SpecificationColor);
|
|
553
|
+
}
|
|
554
|
+
export const SpecificationDeploymentNodeKind = "SpecificationDeploymentNodeKind";
|
|
555
|
+
export function isSpecificationDeploymentNodeKind(item) {
|
|
556
|
+
return reflection.isInstance(item, SpecificationDeploymentNodeKind);
|
|
557
|
+
}
|
|
558
|
+
export const SpecificationElementKind = "SpecificationElementKind";
|
|
559
|
+
export function isSpecificationElementKind(item) {
|
|
560
|
+
return reflection.isInstance(item, SpecificationElementKind);
|
|
561
|
+
}
|
|
562
|
+
export const SpecificationElementStringProperty = "SpecificationElementStringProperty";
|
|
563
|
+
export function isSpecificationElementStringProperty(item) {
|
|
564
|
+
return reflection.isInstance(item, SpecificationElementStringProperty);
|
|
565
|
+
}
|
|
566
|
+
export const SpecificationRelationshipKind = "SpecificationRelationshipKind";
|
|
567
|
+
export function isSpecificationRelationshipKind(item) {
|
|
568
|
+
return reflection.isInstance(item, SpecificationRelationshipKind);
|
|
569
|
+
}
|
|
570
|
+
export const SpecificationRelationshipStringProperty = "SpecificationRelationshipStringProperty";
|
|
571
|
+
export function isSpecificationRelationshipStringProperty(item) {
|
|
572
|
+
return reflection.isInstance(item, SpecificationRelationshipStringProperty);
|
|
573
|
+
}
|
|
574
|
+
export const SpecificationRule = "SpecificationRule";
|
|
575
|
+
export function isSpecificationRule(item) {
|
|
576
|
+
return reflection.isInstance(item, SpecificationRule);
|
|
577
|
+
}
|
|
578
|
+
export const SpecificationTag = "SpecificationTag";
|
|
579
|
+
export function isSpecificationTag(item) {
|
|
580
|
+
return reflection.isInstance(item, SpecificationTag);
|
|
581
|
+
}
|
|
582
|
+
export const Tag = "Tag";
|
|
583
|
+
export function isTag(item) {
|
|
584
|
+
return reflection.isInstance(item, Tag);
|
|
585
|
+
}
|
|
586
|
+
export const Tags = "Tags";
|
|
587
|
+
export function isTags(item) {
|
|
588
|
+
return reflection.isInstance(item, Tags);
|
|
589
|
+
}
|
|
590
|
+
export const ViewRef = "ViewRef";
|
|
591
|
+
export function isViewRef(item) {
|
|
592
|
+
return reflection.isInstance(item, ViewRef);
|
|
593
|
+
}
|
|
594
|
+
export const ViewRuleAutoLayout = "ViewRuleAutoLayout";
|
|
595
|
+
export function isViewRuleAutoLayout(item) {
|
|
596
|
+
return reflection.isInstance(item, ViewRuleAutoLayout);
|
|
597
|
+
}
|
|
598
|
+
export const ViewRuleGlobalPredicateRef = "ViewRuleGlobalPredicateRef";
|
|
599
|
+
export function isViewRuleGlobalPredicateRef(item) {
|
|
600
|
+
return reflection.isInstance(item, ViewRuleGlobalPredicateRef);
|
|
601
|
+
}
|
|
602
|
+
export const ViewRuleGlobalStyle = "ViewRuleGlobalStyle";
|
|
603
|
+
export function isViewRuleGlobalStyle(item) {
|
|
604
|
+
return reflection.isInstance(item, ViewRuleGlobalStyle);
|
|
605
|
+
}
|
|
606
|
+
export const ViewRuleGroup = "ViewRuleGroup";
|
|
607
|
+
export function isViewRuleGroup(item) {
|
|
608
|
+
return reflection.isInstance(item, ViewRuleGroup);
|
|
609
|
+
}
|
|
610
|
+
export const ViewRuleStyle = "ViewRuleStyle";
|
|
611
|
+
export function isViewRuleStyle(item) {
|
|
612
|
+
return reflection.isInstance(item, ViewRuleStyle);
|
|
613
|
+
}
|
|
614
|
+
export const ViewStringProperty = "ViewStringProperty";
|
|
615
|
+
export function isViewStringProperty(item) {
|
|
616
|
+
return reflection.isInstance(item, ViewStringProperty);
|
|
617
|
+
}
|
|
618
|
+
export const WhereBinaryExpression = "WhereBinaryExpression";
|
|
619
|
+
export function isWhereBinaryExpression(item) {
|
|
620
|
+
return reflection.isInstance(item, WhereBinaryExpression);
|
|
621
|
+
}
|
|
622
|
+
export const WhereElementKind = "WhereElementKind";
|
|
623
|
+
export function isWhereElementKind(item) {
|
|
624
|
+
return reflection.isInstance(item, WhereElementKind);
|
|
625
|
+
}
|
|
626
|
+
export const WhereElementNegation = "WhereElementNegation";
|
|
627
|
+
export function isWhereElementNegation(item) {
|
|
628
|
+
return reflection.isInstance(item, WhereElementNegation);
|
|
629
|
+
}
|
|
630
|
+
export const WhereElementTag = "WhereElementTag";
|
|
631
|
+
export function isWhereElementTag(item) {
|
|
632
|
+
return reflection.isInstance(item, WhereElementTag);
|
|
633
|
+
}
|
|
634
|
+
export const WhereRelationKind = "WhereRelationKind";
|
|
635
|
+
export function isWhereRelationKind(item) {
|
|
636
|
+
return reflection.isInstance(item, WhereRelationKind);
|
|
637
|
+
}
|
|
638
|
+
export const WhereRelationNegation = "WhereRelationNegation";
|
|
639
|
+
export function isWhereRelationNegation(item) {
|
|
640
|
+
return reflection.isInstance(item, WhereRelationNegation);
|
|
641
|
+
}
|
|
642
|
+
export const WhereRelationTag = "WhereRelationTag";
|
|
643
|
+
export function isWhereRelationTag(item) {
|
|
644
|
+
return reflection.isInstance(item, WhereRelationTag);
|
|
645
|
+
}
|
|
646
|
+
export const WildcardExpression = "WildcardExpression";
|
|
647
|
+
export function isWildcardExpression(item) {
|
|
648
|
+
return reflection.isInstance(item, WildcardExpression);
|
|
649
|
+
}
|
|
650
|
+
export class LikeC4AstReflection extends AbstractAstReflection {
|
|
651
|
+
getAllTypes() {
|
|
652
|
+
return [ArrowProperty, BorderProperty, ColorProperty, CustomColor, CustomElementProperties, CustomRelationProperties, DeployedInstance, DeployedInstanceBody, DeploymentElement, DeploymentNode, DeploymentNodeBody, DeploymentNodeKind, 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, ElementPredicateWhere, ElementPredicateWith, ElementProperty, ElementRef, ElementStringProperty, ElementStyleProperty, ElementTagExpression, ElementView, ElementViewBody, ElementViewRef, ExcludePredicate, ExpandElementExpression, ExpressionV2, ExtendElement, ExtendElementBody, FqnElementRef, 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, NavigateToProperty, NotationProperty, NotesProperty, OpacityProperty, OutgoingRelationExpr, OutgoingRelationExpression, Predicate, Predicates, Referenceable, Relation, RelationBody, RelationExpr, RelationExpression, RelationNavigateToProperty, RelationPredicate, RelationPredicateOrWhere, RelationPredicateWhere, RelationPredicateWith, RelationProperty, RelationStringProperty, RelationStyleProperty, RelationshipKind, RelationshipStyleProperty, ShapeProperty, SpecificationColor, SpecificationDeploymentNodeKind, SpecificationElementKind, SpecificationElementStringProperty, SpecificationRelationshipKind, SpecificationRelationshipStringProperty, SpecificationRule, SpecificationTag, StringProperty, StyleProperty, Tag, Tags, ViewProperty, ViewRef, ViewRule, ViewRuleAutoLayout, ViewRuleGlobalPredicateRef, ViewRuleGlobalStyle, ViewRuleGroup, ViewRulePredicate, ViewRuleStyle, ViewRuleStyleOrGlobalRef, ViewStringProperty, WhereBinaryExpression, WhereElement, WhereElementExpression, WhereElementKind, WhereElementNegation, WhereElementTag, WhereExpression, WhereKindEqual, WhereRelation, WhereRelationExpression, WhereRelationKind, WhereRelationNegation, WhereRelationTag, WhereTagEqual, WildcardExpression];
|
|
653
|
+
}
|
|
654
|
+
computeIsSubtype(subtype, supertype) {
|
|
655
|
+
switch (subtype) {
|
|
656
|
+
case ArrowProperty:
|
|
657
|
+
case LineProperty: {
|
|
658
|
+
return this.isSubtype(RelationshipStyleProperty, supertype);
|
|
659
|
+
}
|
|
660
|
+
case BorderProperty:
|
|
661
|
+
case OpacityProperty:
|
|
662
|
+
case ShapeProperty: {
|
|
663
|
+
return this.isSubtype(StyleProperty, supertype);
|
|
664
|
+
}
|
|
665
|
+
case ColorProperty: {
|
|
666
|
+
return this.isSubtype(RelationshipStyleProperty, supertype) || this.isSubtype(StyleProperty, supertype);
|
|
667
|
+
}
|
|
668
|
+
case DeployedInstance:
|
|
669
|
+
case DeploymentNode: {
|
|
670
|
+
return this.isSubtype(DeploymentElement, supertype) || this.isSubtype(Referenceable, supertype);
|
|
671
|
+
}
|
|
672
|
+
case DeploymentView:
|
|
673
|
+
case DynamicView:
|
|
674
|
+
case ElementView: {
|
|
675
|
+
return this.isSubtype(LikeC4View, supertype);
|
|
676
|
+
}
|
|
677
|
+
case DeploymentViewRulePredicate:
|
|
678
|
+
case DeploymentViewRuleStyle: {
|
|
679
|
+
return this.isSubtype(DeploymentViewRule, supertype);
|
|
680
|
+
}
|
|
681
|
+
case DirectedRelationExpr:
|
|
682
|
+
case IncomingRelationExpr:
|
|
683
|
+
case InOutRelationExpr:
|
|
684
|
+
case OutgoingRelationExpr: {
|
|
685
|
+
return this.isSubtype(RelationExpr, supertype);
|
|
686
|
+
}
|
|
687
|
+
case DirectedRelationExpression:
|
|
688
|
+
case IncomingRelationExpression:
|
|
689
|
+
case InOutRelationExpression:
|
|
690
|
+
case OutgoingRelationExpression: {
|
|
691
|
+
return this.isSubtype(RelationExpression, supertype);
|
|
692
|
+
}
|
|
693
|
+
case DynamicViewGlobalPredicateRef:
|
|
694
|
+
case DynamicViewIncludePredicate: {
|
|
695
|
+
return this.isSubtype(DynamicViewRule, supertype);
|
|
696
|
+
}
|
|
697
|
+
case Element: {
|
|
698
|
+
return this.isSubtype(FqnReferenceable, supertype) || this.isSubtype(Referenceable, supertype);
|
|
699
|
+
}
|
|
700
|
+
case ElementDescedantsExpression:
|
|
701
|
+
case ElementKindExpression:
|
|
702
|
+
case ElementRef:
|
|
703
|
+
case ElementTagExpression:
|
|
704
|
+
case ExpandElementExpression: {
|
|
705
|
+
return this.isSubtype(ElementExpression, supertype);
|
|
706
|
+
}
|
|
707
|
+
case ElementExpression:
|
|
708
|
+
case ElementPredicateWhere: {
|
|
709
|
+
return this.isSubtype(ElementPredicateOrWhere, supertype);
|
|
710
|
+
}
|
|
711
|
+
case ElementPredicate:
|
|
712
|
+
case RelationPredicate: {
|
|
713
|
+
return this.isSubtype(Predicate, supertype);
|
|
714
|
+
}
|
|
715
|
+
case ElementPredicateOrWhere:
|
|
716
|
+
case ElementPredicateWith: {
|
|
717
|
+
return this.isSubtype(ElementPredicate, supertype);
|
|
718
|
+
}
|
|
719
|
+
case ElementStringProperty: {
|
|
720
|
+
return this.isSubtype(ElementProperty, supertype) || this.isSubtype(StringProperty, supertype);
|
|
721
|
+
}
|
|
722
|
+
case ElementStyleProperty: {
|
|
723
|
+
return this.isSubtype(ElementProperty, supertype);
|
|
724
|
+
}
|
|
725
|
+
case ExcludePredicate:
|
|
726
|
+
case IncludePredicate: {
|
|
727
|
+
return this.isSubtype(ViewRulePredicate, supertype);
|
|
728
|
+
}
|
|
729
|
+
case ExtendElement:
|
|
730
|
+
case Referenceable: {
|
|
731
|
+
return this.isSubtype(FqnReferenceable, supertype);
|
|
732
|
+
}
|
|
733
|
+
case FqnExpr:
|
|
734
|
+
case RelationExpr: {
|
|
735
|
+
return this.isSubtype(ExpressionV2, supertype);
|
|
736
|
+
}
|
|
737
|
+
case FqnRefExpr: {
|
|
738
|
+
return this.isSubtype(FqnExpr, supertype);
|
|
739
|
+
}
|
|
740
|
+
case IconProperty: {
|
|
741
|
+
return this.isSubtype(ElementProperty, supertype) || this.isSubtype(StyleProperty, supertype);
|
|
742
|
+
}
|
|
743
|
+
case LinkProperty: {
|
|
744
|
+
return this.isSubtype(ElementProperty, supertype) || this.isSubtype(RelationProperty, supertype) || this.isSubtype(ViewProperty, supertype);
|
|
745
|
+
}
|
|
746
|
+
case MetadataAttribute:
|
|
747
|
+
case NotationProperty:
|
|
748
|
+
case NotesProperty:
|
|
749
|
+
case SpecificationElementStringProperty:
|
|
750
|
+
case SpecificationRelationshipStringProperty: {
|
|
751
|
+
return this.isSubtype(StringProperty, supertype);
|
|
752
|
+
}
|
|
753
|
+
case MetadataBody: {
|
|
754
|
+
return this.isSubtype(MetadataProperty, supertype);
|
|
755
|
+
}
|
|
756
|
+
case MetadataProperty: {
|
|
757
|
+
return this.isSubtype(ElementProperty, supertype) || this.isSubtype(RelationProperty, supertype);
|
|
758
|
+
}
|
|
759
|
+
case RelationExpression:
|
|
760
|
+
case RelationPredicateWhere: {
|
|
761
|
+
return this.isSubtype(RelationPredicateOrWhere, supertype);
|
|
762
|
+
}
|
|
763
|
+
case RelationNavigateToProperty:
|
|
764
|
+
case RelationStyleProperty: {
|
|
765
|
+
return this.isSubtype(RelationProperty, supertype);
|
|
766
|
+
}
|
|
767
|
+
case RelationPredicateOrWhere:
|
|
768
|
+
case RelationPredicateWith: {
|
|
769
|
+
return this.isSubtype(RelationPredicate, supertype);
|
|
770
|
+
}
|
|
771
|
+
case RelationStringProperty: {
|
|
772
|
+
return this.isSubtype(RelationProperty, supertype) || this.isSubtype(StringProperty, supertype);
|
|
773
|
+
}
|
|
774
|
+
case ViewRuleAutoLayout: {
|
|
775
|
+
return this.isSubtype(DeploymentViewRule, supertype) || this.isSubtype(DynamicViewRule, supertype) || this.isSubtype(ViewRule, supertype);
|
|
776
|
+
}
|
|
777
|
+
case ViewRuleGlobalPredicateRef:
|
|
778
|
+
case ViewRuleGroup:
|
|
779
|
+
case ViewRulePredicate: {
|
|
780
|
+
return this.isSubtype(ViewRule, supertype);
|
|
781
|
+
}
|
|
782
|
+
case ViewRuleGlobalStyle:
|
|
783
|
+
case ViewRuleStyle: {
|
|
784
|
+
return this.isSubtype(ViewRuleStyleOrGlobalRef, supertype);
|
|
785
|
+
}
|
|
786
|
+
case ViewRuleStyleOrGlobalRef: {
|
|
787
|
+
return this.isSubtype(DynamicViewRule, supertype) || this.isSubtype(ViewRule, supertype);
|
|
788
|
+
}
|
|
789
|
+
case ViewStringProperty: {
|
|
790
|
+
return this.isSubtype(StringProperty, supertype) || this.isSubtype(ViewProperty, supertype);
|
|
791
|
+
}
|
|
792
|
+
case WhereBinaryExpression: {
|
|
793
|
+
return this.isSubtype(WhereElementExpression, supertype) || this.isSubtype(WhereRelationExpression, supertype);
|
|
794
|
+
}
|
|
795
|
+
case WhereElement:
|
|
796
|
+
case WhereElementNegation: {
|
|
797
|
+
return this.isSubtype(WhereElementExpression, supertype);
|
|
798
|
+
}
|
|
799
|
+
case WhereElementExpression:
|
|
800
|
+
case WhereRelationExpression: {
|
|
801
|
+
return this.isSubtype(WhereExpression, supertype);
|
|
802
|
+
}
|
|
803
|
+
case WhereElementKind: {
|
|
804
|
+
return this.isSubtype(WhereElement, supertype) || this.isSubtype(WhereKindEqual, supertype);
|
|
805
|
+
}
|
|
806
|
+
case WhereElementTag: {
|
|
807
|
+
return this.isSubtype(WhereElement, supertype) || this.isSubtype(WhereTagEqual, supertype);
|
|
808
|
+
}
|
|
809
|
+
case WhereRelation:
|
|
810
|
+
case WhereRelationNegation: {
|
|
811
|
+
return this.isSubtype(WhereRelationExpression, supertype);
|
|
812
|
+
}
|
|
813
|
+
case WhereRelationKind: {
|
|
814
|
+
return this.isSubtype(WhereKindEqual, supertype) || this.isSubtype(WhereRelation, supertype);
|
|
815
|
+
}
|
|
816
|
+
case WhereRelationTag: {
|
|
817
|
+
return this.isSubtype(WhereRelation, supertype) || this.isSubtype(WhereTagEqual, supertype);
|
|
818
|
+
}
|
|
819
|
+
case WildcardExpression: {
|
|
820
|
+
return this.isSubtype(ElementExpression, supertype) || this.isSubtype(FqnExpr, supertype);
|
|
821
|
+
}
|
|
822
|
+
default: {
|
|
823
|
+
return false;
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
getReferenceType(refInfo) {
|
|
828
|
+
const referenceId = `${refInfo.container.$type}:${refInfo.property}`;
|
|
829
|
+
switch (referenceId) {
|
|
830
|
+
case "ColorProperty:customColor": {
|
|
831
|
+
return CustomColor;
|
|
832
|
+
}
|
|
833
|
+
case "DeploymentNode:kind": {
|
|
834
|
+
return DeploymentNodeKind;
|
|
835
|
+
}
|
|
836
|
+
case "DeploymentRelation:kind":
|
|
837
|
+
case "DynamicViewStep:kind":
|
|
838
|
+
case "OutgoingRelationExpr:kind":
|
|
839
|
+
case "OutgoingRelationExpression:kind":
|
|
840
|
+
case "Relation:kind":
|
|
841
|
+
case "WhereRelationKind:value": {
|
|
842
|
+
return RelationshipKind;
|
|
843
|
+
}
|
|
844
|
+
case "DynamicViewGlobalPredicateRef:predicate": {
|
|
845
|
+
return GlobalDynamicPredicateGroup;
|
|
846
|
+
}
|
|
847
|
+
case "DynamicViewRef:view": {
|
|
848
|
+
return DynamicView;
|
|
849
|
+
}
|
|
850
|
+
case "Element:kind":
|
|
851
|
+
case "ElementKindExpression:kind":
|
|
852
|
+
case "WhereElementKind:value": {
|
|
853
|
+
return ElementKind;
|
|
854
|
+
}
|
|
855
|
+
case "ElementRef:el":
|
|
856
|
+
case "FqnElementRef:el": {
|
|
857
|
+
return Element;
|
|
858
|
+
}
|
|
859
|
+
case "ElementTagExpression:tag":
|
|
860
|
+
case "Tags:values":
|
|
861
|
+
case "WhereElementTag:value":
|
|
862
|
+
case "WhereRelationTag:value": {
|
|
863
|
+
return Tag;
|
|
864
|
+
}
|
|
865
|
+
case "ElementViewRef:view": {
|
|
866
|
+
return ElementView;
|
|
867
|
+
}
|
|
868
|
+
case "FqnRef:value": {
|
|
869
|
+
return Referenceable;
|
|
870
|
+
}
|
|
871
|
+
case "IconProperty:libicon": {
|
|
872
|
+
return LibIcon;
|
|
873
|
+
}
|
|
874
|
+
case "ViewRef:view": {
|
|
875
|
+
return LikeC4View;
|
|
876
|
+
}
|
|
877
|
+
case "ViewRuleGlobalPredicateRef:predicate": {
|
|
878
|
+
return GlobalPredicateGroup;
|
|
879
|
+
}
|
|
880
|
+
case "ViewRuleGlobalStyle:style": {
|
|
881
|
+
return GlobalStyleId;
|
|
882
|
+
}
|
|
883
|
+
default: {
|
|
884
|
+
throw new Error(`${referenceId} is not a valid reference id.`);
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
getTypeMetaData(type) {
|
|
889
|
+
switch (type) {
|
|
890
|
+
case ArrowProperty: {
|
|
891
|
+
return {
|
|
892
|
+
name: ArrowProperty,
|
|
893
|
+
properties: [
|
|
894
|
+
{ name: "key" },
|
|
895
|
+
{ name: "value" }
|
|
896
|
+
]
|
|
897
|
+
};
|
|
898
|
+
}
|
|
899
|
+
case BorderProperty: {
|
|
900
|
+
return {
|
|
901
|
+
name: BorderProperty,
|
|
902
|
+
properties: [
|
|
903
|
+
{ name: "key" },
|
|
904
|
+
{ name: "value" }
|
|
905
|
+
]
|
|
906
|
+
};
|
|
907
|
+
}
|
|
908
|
+
case ColorProperty: {
|
|
909
|
+
return {
|
|
910
|
+
name: ColorProperty,
|
|
911
|
+
properties: [
|
|
912
|
+
{ name: "customColor" },
|
|
913
|
+
{ name: "key" },
|
|
914
|
+
{ name: "themeColor" }
|
|
915
|
+
]
|
|
916
|
+
};
|
|
917
|
+
}
|
|
918
|
+
case CustomColor: {
|
|
919
|
+
return {
|
|
920
|
+
name: CustomColor,
|
|
921
|
+
properties: [
|
|
922
|
+
{ name: "name" }
|
|
923
|
+
]
|
|
924
|
+
};
|
|
925
|
+
}
|
|
926
|
+
case CustomElementProperties: {
|
|
927
|
+
return {
|
|
928
|
+
name: CustomElementProperties,
|
|
929
|
+
properties: [
|
|
930
|
+
{ name: "props", defaultValue: [] }
|
|
931
|
+
]
|
|
932
|
+
};
|
|
933
|
+
}
|
|
934
|
+
case CustomRelationProperties: {
|
|
935
|
+
return {
|
|
936
|
+
name: CustomRelationProperties,
|
|
937
|
+
properties: [
|
|
938
|
+
{ name: "props", defaultValue: [] }
|
|
939
|
+
]
|
|
940
|
+
};
|
|
941
|
+
}
|
|
942
|
+
case DeployedInstance: {
|
|
943
|
+
return {
|
|
944
|
+
name: DeployedInstance,
|
|
945
|
+
properties: [
|
|
946
|
+
{ name: "body" },
|
|
947
|
+
{ name: "element" },
|
|
948
|
+
{ name: "name" },
|
|
949
|
+
{ name: "title" }
|
|
950
|
+
]
|
|
951
|
+
};
|
|
952
|
+
}
|
|
953
|
+
case DeployedInstanceBody: {
|
|
954
|
+
return {
|
|
955
|
+
name: DeployedInstanceBody,
|
|
956
|
+
properties: [
|
|
957
|
+
{ name: "props", defaultValue: [] },
|
|
958
|
+
{ name: "tags" }
|
|
959
|
+
]
|
|
960
|
+
};
|
|
961
|
+
}
|
|
962
|
+
case DeploymentNode: {
|
|
963
|
+
return {
|
|
964
|
+
name: DeploymentNode,
|
|
965
|
+
properties: [
|
|
966
|
+
{ name: "body" },
|
|
967
|
+
{ name: "kind" },
|
|
968
|
+
{ name: "name" },
|
|
969
|
+
{ name: "title" }
|
|
970
|
+
]
|
|
971
|
+
};
|
|
972
|
+
}
|
|
973
|
+
case DeploymentNodeBody: {
|
|
974
|
+
return {
|
|
975
|
+
name: DeploymentNodeBody,
|
|
976
|
+
properties: [
|
|
977
|
+
{ name: "elements", defaultValue: [] },
|
|
978
|
+
{ name: "props", defaultValue: [] },
|
|
979
|
+
{ name: "tags" }
|
|
980
|
+
]
|
|
981
|
+
};
|
|
982
|
+
}
|
|
983
|
+
case DeploymentNodeKind: {
|
|
984
|
+
return {
|
|
985
|
+
name: DeploymentNodeKind,
|
|
986
|
+
properties: [
|
|
987
|
+
{ name: "name" }
|
|
988
|
+
]
|
|
989
|
+
};
|
|
990
|
+
}
|
|
991
|
+
case DeploymentRelation: {
|
|
992
|
+
return {
|
|
993
|
+
name: DeploymentRelation,
|
|
994
|
+
properties: [
|
|
995
|
+
{ name: "body" },
|
|
996
|
+
{ name: "kind" },
|
|
997
|
+
{ name: "source" },
|
|
998
|
+
{ name: "tags" },
|
|
999
|
+
{ name: "target" },
|
|
1000
|
+
{ name: "technology" },
|
|
1001
|
+
{ name: "title" }
|
|
1002
|
+
]
|
|
1003
|
+
};
|
|
1004
|
+
}
|
|
1005
|
+
case DeploymentRelationBody: {
|
|
1006
|
+
return {
|
|
1007
|
+
name: DeploymentRelationBody,
|
|
1008
|
+
properties: [
|
|
1009
|
+
{ name: "props", defaultValue: [] },
|
|
1010
|
+
{ name: "tags" }
|
|
1011
|
+
]
|
|
1012
|
+
};
|
|
1013
|
+
}
|
|
1014
|
+
case DeploymentView: {
|
|
1015
|
+
return {
|
|
1016
|
+
name: DeploymentView,
|
|
1017
|
+
properties: [
|
|
1018
|
+
{ name: "body" },
|
|
1019
|
+
{ name: "name" }
|
|
1020
|
+
]
|
|
1021
|
+
};
|
|
1022
|
+
}
|
|
1023
|
+
case DeploymentViewBody: {
|
|
1024
|
+
return {
|
|
1025
|
+
name: DeploymentViewBody,
|
|
1026
|
+
properties: [
|
|
1027
|
+
{ name: "props", defaultValue: [] },
|
|
1028
|
+
{ name: "rules", defaultValue: [] },
|
|
1029
|
+
{ name: "tags" }
|
|
1030
|
+
]
|
|
1031
|
+
};
|
|
1032
|
+
}
|
|
1033
|
+
case DeploymentViewRulePredicate: {
|
|
1034
|
+
return {
|
|
1035
|
+
name: DeploymentViewRulePredicate,
|
|
1036
|
+
properties: [
|
|
1037
|
+
{ name: "expr" },
|
|
1038
|
+
{ name: "isInclude", defaultValue: false }
|
|
1039
|
+
]
|
|
1040
|
+
};
|
|
1041
|
+
}
|
|
1042
|
+
case DeploymentViewRulePredicateExpression: {
|
|
1043
|
+
return {
|
|
1044
|
+
name: DeploymentViewRulePredicateExpression,
|
|
1045
|
+
properties: [
|
|
1046
|
+
{ name: "prev" },
|
|
1047
|
+
{ name: "value" }
|
|
1048
|
+
]
|
|
1049
|
+
};
|
|
1050
|
+
}
|
|
1051
|
+
case DeploymentViewRuleStyle: {
|
|
1052
|
+
return {
|
|
1053
|
+
name: DeploymentViewRuleStyle,
|
|
1054
|
+
properties: [
|
|
1055
|
+
{ name: "props", defaultValue: [] },
|
|
1056
|
+
{ name: "targets" }
|
|
1057
|
+
]
|
|
1058
|
+
};
|
|
1059
|
+
}
|
|
1060
|
+
case DirectedRelationExpr: {
|
|
1061
|
+
return {
|
|
1062
|
+
name: DirectedRelationExpr,
|
|
1063
|
+
properties: [
|
|
1064
|
+
{ name: "source" },
|
|
1065
|
+
{ name: "target" }
|
|
1066
|
+
]
|
|
1067
|
+
};
|
|
1068
|
+
}
|
|
1069
|
+
case DirectedRelationExpression: {
|
|
1070
|
+
return {
|
|
1071
|
+
name: DirectedRelationExpression,
|
|
1072
|
+
properties: [
|
|
1073
|
+
{ name: "source" },
|
|
1074
|
+
{ name: "target" }
|
|
1075
|
+
]
|
|
1076
|
+
};
|
|
1077
|
+
}
|
|
1078
|
+
case DynamicView: {
|
|
1079
|
+
return {
|
|
1080
|
+
name: DynamicView,
|
|
1081
|
+
properties: [
|
|
1082
|
+
{ name: "body" },
|
|
1083
|
+
{ name: "name" }
|
|
1084
|
+
]
|
|
1085
|
+
};
|
|
1086
|
+
}
|
|
1087
|
+
case DynamicViewBody: {
|
|
1088
|
+
return {
|
|
1089
|
+
name: DynamicViewBody,
|
|
1090
|
+
properties: [
|
|
1091
|
+
{ name: "props", defaultValue: [] },
|
|
1092
|
+
{ name: "rules", defaultValue: [] },
|
|
1093
|
+
{ name: "steps", defaultValue: [] },
|
|
1094
|
+
{ name: "tags" }
|
|
1095
|
+
]
|
|
1096
|
+
};
|
|
1097
|
+
}
|
|
1098
|
+
case DynamicViewGlobalPredicateRef: {
|
|
1099
|
+
return {
|
|
1100
|
+
name: DynamicViewGlobalPredicateRef,
|
|
1101
|
+
properties: [
|
|
1102
|
+
{ name: "predicate" }
|
|
1103
|
+
]
|
|
1104
|
+
};
|
|
1105
|
+
}
|
|
1106
|
+
case DynamicViewIncludePredicate: {
|
|
1107
|
+
return {
|
|
1108
|
+
name: DynamicViewIncludePredicate,
|
|
1109
|
+
properties: [
|
|
1110
|
+
{ name: "predicates" }
|
|
1111
|
+
]
|
|
1112
|
+
};
|
|
1113
|
+
}
|
|
1114
|
+
case DynamicViewParallelSteps: {
|
|
1115
|
+
return {
|
|
1116
|
+
name: DynamicViewParallelSteps,
|
|
1117
|
+
properties: [
|
|
1118
|
+
{ name: "steps", defaultValue: [] }
|
|
1119
|
+
]
|
|
1120
|
+
};
|
|
1121
|
+
}
|
|
1122
|
+
case DynamicViewPredicateIterator: {
|
|
1123
|
+
return {
|
|
1124
|
+
name: DynamicViewPredicateIterator,
|
|
1125
|
+
properties: [
|
|
1126
|
+
{ name: "prev" },
|
|
1127
|
+
{ name: "value" }
|
|
1128
|
+
]
|
|
1129
|
+
};
|
|
1130
|
+
}
|
|
1131
|
+
case DynamicViewRef: {
|
|
1132
|
+
return {
|
|
1133
|
+
name: DynamicViewRef,
|
|
1134
|
+
properties: [
|
|
1135
|
+
{ name: "view" }
|
|
1136
|
+
]
|
|
1137
|
+
};
|
|
1138
|
+
}
|
|
1139
|
+
case DynamicViewStep: {
|
|
1140
|
+
return {
|
|
1141
|
+
name: DynamicViewStep,
|
|
1142
|
+
properties: [
|
|
1143
|
+
{ name: "custom" },
|
|
1144
|
+
{ name: "isBackward", defaultValue: false },
|
|
1145
|
+
{ name: "kind" },
|
|
1146
|
+
{ name: "source" },
|
|
1147
|
+
{ name: "target" },
|
|
1148
|
+
{ name: "title" }
|
|
1149
|
+
]
|
|
1150
|
+
};
|
|
1151
|
+
}
|
|
1152
|
+
case Element: {
|
|
1153
|
+
return {
|
|
1154
|
+
name: Element,
|
|
1155
|
+
properties: [
|
|
1156
|
+
{ name: "body" },
|
|
1157
|
+
{ name: "kind" },
|
|
1158
|
+
{ name: "name" },
|
|
1159
|
+
{ name: "props", defaultValue: [] }
|
|
1160
|
+
]
|
|
1161
|
+
};
|
|
1162
|
+
}
|
|
1163
|
+
case ElementBody: {
|
|
1164
|
+
return {
|
|
1165
|
+
name: ElementBody,
|
|
1166
|
+
properties: [
|
|
1167
|
+
{ name: "elements", defaultValue: [] },
|
|
1168
|
+
{ name: "props", defaultValue: [] },
|
|
1169
|
+
{ name: "tags" }
|
|
1170
|
+
]
|
|
1171
|
+
};
|
|
1172
|
+
}
|
|
1173
|
+
case ElementDescedantsExpression: {
|
|
1174
|
+
return {
|
|
1175
|
+
name: ElementDescedantsExpression,
|
|
1176
|
+
properties: [
|
|
1177
|
+
{ name: "parent" },
|
|
1178
|
+
{ name: "suffix" }
|
|
1179
|
+
]
|
|
1180
|
+
};
|
|
1181
|
+
}
|
|
1182
|
+
case ElementExpressionsIterator: {
|
|
1183
|
+
return {
|
|
1184
|
+
name: ElementExpressionsIterator,
|
|
1185
|
+
properties: [
|
|
1186
|
+
{ name: "prev" },
|
|
1187
|
+
{ name: "value" }
|
|
1188
|
+
]
|
|
1189
|
+
};
|
|
1190
|
+
}
|
|
1191
|
+
case ElementKind: {
|
|
1192
|
+
return {
|
|
1193
|
+
name: ElementKind,
|
|
1194
|
+
properties: [
|
|
1195
|
+
{ name: "name" }
|
|
1196
|
+
]
|
|
1197
|
+
};
|
|
1198
|
+
}
|
|
1199
|
+
case ElementKindExpression: {
|
|
1200
|
+
return {
|
|
1201
|
+
name: ElementKindExpression,
|
|
1202
|
+
properties: [
|
|
1203
|
+
{ name: "isEqual", defaultValue: false },
|
|
1204
|
+
{ name: "kind" }
|
|
1205
|
+
]
|
|
1206
|
+
};
|
|
1207
|
+
}
|
|
1208
|
+
case ElementPredicateWhere: {
|
|
1209
|
+
return {
|
|
1210
|
+
name: ElementPredicateWhere,
|
|
1211
|
+
properties: [
|
|
1212
|
+
{ name: "subject" },
|
|
1213
|
+
{ name: "where" }
|
|
1214
|
+
]
|
|
1215
|
+
};
|
|
1216
|
+
}
|
|
1217
|
+
case ElementPredicateWith: {
|
|
1218
|
+
return {
|
|
1219
|
+
name: ElementPredicateWith,
|
|
1220
|
+
properties: [
|
|
1221
|
+
{ name: "custom" },
|
|
1222
|
+
{ name: "subject" }
|
|
1223
|
+
]
|
|
1224
|
+
};
|
|
1225
|
+
}
|
|
1226
|
+
case ElementRef: {
|
|
1227
|
+
return {
|
|
1228
|
+
name: ElementRef,
|
|
1229
|
+
properties: [
|
|
1230
|
+
{ name: "el" },
|
|
1231
|
+
{ name: "parent" }
|
|
1232
|
+
]
|
|
1233
|
+
};
|
|
1234
|
+
}
|
|
1235
|
+
case ElementStringProperty: {
|
|
1236
|
+
return {
|
|
1237
|
+
name: ElementStringProperty,
|
|
1238
|
+
properties: [
|
|
1239
|
+
{ name: "key" },
|
|
1240
|
+
{ name: "value" }
|
|
1241
|
+
]
|
|
1242
|
+
};
|
|
1243
|
+
}
|
|
1244
|
+
case ElementStyleProperty: {
|
|
1245
|
+
return {
|
|
1246
|
+
name: ElementStyleProperty,
|
|
1247
|
+
properties: [
|
|
1248
|
+
{ name: "key" },
|
|
1249
|
+
{ name: "props", defaultValue: [] }
|
|
1250
|
+
]
|
|
1251
|
+
};
|
|
1252
|
+
}
|
|
1253
|
+
case ElementTagExpression: {
|
|
1254
|
+
return {
|
|
1255
|
+
name: ElementTagExpression,
|
|
1256
|
+
properties: [
|
|
1257
|
+
{ name: "isEqual", defaultValue: false },
|
|
1258
|
+
{ name: "tag" }
|
|
1259
|
+
]
|
|
1260
|
+
};
|
|
1261
|
+
}
|
|
1262
|
+
case ElementView: {
|
|
1263
|
+
return {
|
|
1264
|
+
name: ElementView,
|
|
1265
|
+
properties: [
|
|
1266
|
+
{ name: "body" },
|
|
1267
|
+
{ name: "extends" },
|
|
1268
|
+
{ name: "name" },
|
|
1269
|
+
{ name: "viewOf" }
|
|
1270
|
+
]
|
|
1271
|
+
};
|
|
1272
|
+
}
|
|
1273
|
+
case ElementViewBody: {
|
|
1274
|
+
return {
|
|
1275
|
+
name: ElementViewBody,
|
|
1276
|
+
properties: [
|
|
1277
|
+
{ name: "props", defaultValue: [] },
|
|
1278
|
+
{ name: "rules", defaultValue: [] },
|
|
1279
|
+
{ name: "tags" }
|
|
1280
|
+
]
|
|
1281
|
+
};
|
|
1282
|
+
}
|
|
1283
|
+
case ElementViewRef: {
|
|
1284
|
+
return {
|
|
1285
|
+
name: ElementViewRef,
|
|
1286
|
+
properties: [
|
|
1287
|
+
{ name: "view" }
|
|
1288
|
+
]
|
|
1289
|
+
};
|
|
1290
|
+
}
|
|
1291
|
+
case ExcludePredicate: {
|
|
1292
|
+
return {
|
|
1293
|
+
name: ExcludePredicate,
|
|
1294
|
+
properties: [
|
|
1295
|
+
{ name: "predicates" }
|
|
1296
|
+
]
|
|
1297
|
+
};
|
|
1298
|
+
}
|
|
1299
|
+
case ExpandElementExpression: {
|
|
1300
|
+
return {
|
|
1301
|
+
name: ExpandElementExpression,
|
|
1302
|
+
properties: [
|
|
1303
|
+
{ name: "expand" }
|
|
1304
|
+
]
|
|
1305
|
+
};
|
|
1306
|
+
}
|
|
1307
|
+
case ExtendElement: {
|
|
1308
|
+
return {
|
|
1309
|
+
name: ExtendElement,
|
|
1310
|
+
properties: [
|
|
1311
|
+
{ name: "body" },
|
|
1312
|
+
{ name: "element" }
|
|
1313
|
+
]
|
|
1314
|
+
};
|
|
1315
|
+
}
|
|
1316
|
+
case ExtendElementBody: {
|
|
1317
|
+
return {
|
|
1318
|
+
name: ExtendElementBody,
|
|
1319
|
+
properties: [
|
|
1320
|
+
{ name: "elements", defaultValue: [] }
|
|
1321
|
+
]
|
|
1322
|
+
};
|
|
1323
|
+
}
|
|
1324
|
+
case FqnElementRef: {
|
|
1325
|
+
return {
|
|
1326
|
+
name: FqnElementRef,
|
|
1327
|
+
properties: [
|
|
1328
|
+
{ name: "el" },
|
|
1329
|
+
{ name: "parent" }
|
|
1330
|
+
]
|
|
1331
|
+
};
|
|
1332
|
+
}
|
|
1333
|
+
case FqnExpressions: {
|
|
1334
|
+
return {
|
|
1335
|
+
name: FqnExpressions,
|
|
1336
|
+
properties: [
|
|
1337
|
+
{ name: "prev" },
|
|
1338
|
+
{ name: "value" }
|
|
1339
|
+
]
|
|
1340
|
+
};
|
|
1341
|
+
}
|
|
1342
|
+
case FqnRef: {
|
|
1343
|
+
return {
|
|
1344
|
+
name: FqnRef,
|
|
1345
|
+
properties: [
|
|
1346
|
+
{ name: "parent" },
|
|
1347
|
+
{ name: "value" }
|
|
1348
|
+
]
|
|
1349
|
+
};
|
|
1350
|
+
}
|
|
1351
|
+
case FqnRefExpr: {
|
|
1352
|
+
return {
|
|
1353
|
+
name: FqnRefExpr,
|
|
1354
|
+
properties: [
|
|
1355
|
+
{ name: "ref" },
|
|
1356
|
+
{ name: "selector" }
|
|
1357
|
+
]
|
|
1358
|
+
};
|
|
1359
|
+
}
|
|
1360
|
+
case GlobalDynamicPredicateGroup: {
|
|
1361
|
+
return {
|
|
1362
|
+
name: GlobalDynamicPredicateGroup,
|
|
1363
|
+
properties: [
|
|
1364
|
+
{ name: "name" },
|
|
1365
|
+
{ name: "predicates", defaultValue: [] }
|
|
1366
|
+
]
|
|
1367
|
+
};
|
|
1368
|
+
}
|
|
1369
|
+
case GlobalPredicateGroup: {
|
|
1370
|
+
return {
|
|
1371
|
+
name: GlobalPredicateGroup,
|
|
1372
|
+
properties: [
|
|
1373
|
+
{ name: "name" },
|
|
1374
|
+
{ name: "predicates", defaultValue: [] }
|
|
1375
|
+
]
|
|
1376
|
+
};
|
|
1377
|
+
}
|
|
1378
|
+
case Globals: {
|
|
1379
|
+
return {
|
|
1380
|
+
name: Globals,
|
|
1381
|
+
properties: [
|
|
1382
|
+
{ name: "name" },
|
|
1383
|
+
{ name: "predicates", defaultValue: [] },
|
|
1384
|
+
{ name: "styles", defaultValue: [] }
|
|
1385
|
+
]
|
|
1386
|
+
};
|
|
1387
|
+
}
|
|
1388
|
+
case GlobalStyle: {
|
|
1389
|
+
return {
|
|
1390
|
+
name: GlobalStyle,
|
|
1391
|
+
properties: [
|
|
1392
|
+
{ name: "id" },
|
|
1393
|
+
{ name: "props", defaultValue: [] },
|
|
1394
|
+
{ name: "target" }
|
|
1395
|
+
]
|
|
1396
|
+
};
|
|
1397
|
+
}
|
|
1398
|
+
case GlobalStyleGroup: {
|
|
1399
|
+
return {
|
|
1400
|
+
name: GlobalStyleGroup,
|
|
1401
|
+
properties: [
|
|
1402
|
+
{ name: "id" },
|
|
1403
|
+
{ name: "styles", defaultValue: [] }
|
|
1404
|
+
]
|
|
1405
|
+
};
|
|
1406
|
+
}
|
|
1407
|
+
case GlobalStyleId: {
|
|
1408
|
+
return {
|
|
1409
|
+
name: GlobalStyleId,
|
|
1410
|
+
properties: [
|
|
1411
|
+
{ name: "name" }
|
|
1412
|
+
]
|
|
1413
|
+
};
|
|
1414
|
+
}
|
|
1415
|
+
case IconProperty: {
|
|
1416
|
+
return {
|
|
1417
|
+
name: IconProperty,
|
|
1418
|
+
properties: [
|
|
1419
|
+
{ name: "key" },
|
|
1420
|
+
{ name: "libicon" },
|
|
1421
|
+
{ name: "value" }
|
|
1422
|
+
]
|
|
1423
|
+
};
|
|
1424
|
+
}
|
|
1425
|
+
case IncludePredicate: {
|
|
1426
|
+
return {
|
|
1427
|
+
name: IncludePredicate,
|
|
1428
|
+
properties: [
|
|
1429
|
+
{ name: "predicates" }
|
|
1430
|
+
]
|
|
1431
|
+
};
|
|
1432
|
+
}
|
|
1433
|
+
case IncomingRelationExpr: {
|
|
1434
|
+
return {
|
|
1435
|
+
name: IncomingRelationExpr,
|
|
1436
|
+
properties: [
|
|
1437
|
+
{ name: "to" }
|
|
1438
|
+
]
|
|
1439
|
+
};
|
|
1440
|
+
}
|
|
1441
|
+
case IncomingRelationExpression: {
|
|
1442
|
+
return {
|
|
1443
|
+
name: IncomingRelationExpression,
|
|
1444
|
+
properties: [
|
|
1445
|
+
{ name: "to" }
|
|
1446
|
+
]
|
|
1447
|
+
};
|
|
1448
|
+
}
|
|
1449
|
+
case InOutRelationExpr: {
|
|
1450
|
+
return {
|
|
1451
|
+
name: InOutRelationExpr,
|
|
1452
|
+
properties: [
|
|
1453
|
+
{ name: "inout" }
|
|
1454
|
+
]
|
|
1455
|
+
};
|
|
1456
|
+
}
|
|
1457
|
+
case InOutRelationExpression: {
|
|
1458
|
+
return {
|
|
1459
|
+
name: InOutRelationExpression,
|
|
1460
|
+
properties: [
|
|
1461
|
+
{ name: "inout" }
|
|
1462
|
+
]
|
|
1463
|
+
};
|
|
1464
|
+
}
|
|
1465
|
+
case LibIcon: {
|
|
1466
|
+
return {
|
|
1467
|
+
name: LibIcon,
|
|
1468
|
+
properties: [
|
|
1469
|
+
{ name: "name" }
|
|
1470
|
+
]
|
|
1471
|
+
};
|
|
1472
|
+
}
|
|
1473
|
+
case LikeC4Grammar: {
|
|
1474
|
+
return {
|
|
1475
|
+
name: LikeC4Grammar,
|
|
1476
|
+
properties: [
|
|
1477
|
+
{ name: "deployments", defaultValue: [] },
|
|
1478
|
+
{ name: "globals", defaultValue: [] },
|
|
1479
|
+
{ name: "likec4lib", defaultValue: [] },
|
|
1480
|
+
{ name: "models", defaultValue: [] },
|
|
1481
|
+
{ name: "specifications", defaultValue: [] },
|
|
1482
|
+
{ name: "views", defaultValue: [] }
|
|
1483
|
+
]
|
|
1484
|
+
};
|
|
1485
|
+
}
|
|
1486
|
+
case LikeC4Lib: {
|
|
1487
|
+
return {
|
|
1488
|
+
name: LikeC4Lib,
|
|
1489
|
+
properties: [
|
|
1490
|
+
{ name: "icons", defaultValue: [] }
|
|
1491
|
+
]
|
|
1492
|
+
};
|
|
1493
|
+
}
|
|
1494
|
+
case LineProperty: {
|
|
1495
|
+
return {
|
|
1496
|
+
name: LineProperty,
|
|
1497
|
+
properties: [
|
|
1498
|
+
{ name: "key" },
|
|
1499
|
+
{ name: "value" }
|
|
1500
|
+
]
|
|
1501
|
+
};
|
|
1502
|
+
}
|
|
1503
|
+
case LinkProperty: {
|
|
1504
|
+
return {
|
|
1505
|
+
name: LinkProperty,
|
|
1506
|
+
properties: [
|
|
1507
|
+
{ name: "key" },
|
|
1508
|
+
{ name: "title" },
|
|
1509
|
+
{ name: "value" }
|
|
1510
|
+
]
|
|
1511
|
+
};
|
|
1512
|
+
}
|
|
1513
|
+
case MetadataAttribute: {
|
|
1514
|
+
return {
|
|
1515
|
+
name: MetadataAttribute,
|
|
1516
|
+
properties: [
|
|
1517
|
+
{ name: "key" },
|
|
1518
|
+
{ name: "value" }
|
|
1519
|
+
]
|
|
1520
|
+
};
|
|
1521
|
+
}
|
|
1522
|
+
case MetadataBody: {
|
|
1523
|
+
return {
|
|
1524
|
+
name: MetadataBody,
|
|
1525
|
+
properties: [
|
|
1526
|
+
{ name: "props", defaultValue: [] }
|
|
1527
|
+
]
|
|
1528
|
+
};
|
|
1529
|
+
}
|
|
1530
|
+
case Model: {
|
|
1531
|
+
return {
|
|
1532
|
+
name: Model,
|
|
1533
|
+
properties: [
|
|
1534
|
+
{ name: "elements", defaultValue: [] },
|
|
1535
|
+
{ name: "name" }
|
|
1536
|
+
]
|
|
1537
|
+
};
|
|
1538
|
+
}
|
|
1539
|
+
case ModelDeployments: {
|
|
1540
|
+
return {
|
|
1541
|
+
name: ModelDeployments,
|
|
1542
|
+
properties: [
|
|
1543
|
+
{ name: "elements", defaultValue: [] },
|
|
1544
|
+
{ name: "name" }
|
|
1545
|
+
]
|
|
1546
|
+
};
|
|
1547
|
+
}
|
|
1548
|
+
case ModelViews: {
|
|
1549
|
+
return {
|
|
1550
|
+
name: ModelViews,
|
|
1551
|
+
properties: [
|
|
1552
|
+
{ name: "name" },
|
|
1553
|
+
{ name: "styles", defaultValue: [] },
|
|
1554
|
+
{ name: "views", defaultValue: [] }
|
|
1555
|
+
]
|
|
1556
|
+
};
|
|
1557
|
+
}
|
|
1558
|
+
case NavigateToProperty: {
|
|
1559
|
+
return {
|
|
1560
|
+
name: NavigateToProperty,
|
|
1561
|
+
properties: [
|
|
1562
|
+
{ name: "key" },
|
|
1563
|
+
{ name: "value" }
|
|
1564
|
+
]
|
|
1565
|
+
};
|
|
1566
|
+
}
|
|
1567
|
+
case NotationProperty: {
|
|
1568
|
+
return {
|
|
1569
|
+
name: NotationProperty,
|
|
1570
|
+
properties: [
|
|
1571
|
+
{ name: "key" },
|
|
1572
|
+
{ name: "value" }
|
|
1573
|
+
]
|
|
1574
|
+
};
|
|
1575
|
+
}
|
|
1576
|
+
case NotesProperty: {
|
|
1577
|
+
return {
|
|
1578
|
+
name: NotesProperty,
|
|
1579
|
+
properties: [
|
|
1580
|
+
{ name: "key" },
|
|
1581
|
+
{ name: "value" }
|
|
1582
|
+
]
|
|
1583
|
+
};
|
|
1584
|
+
}
|
|
1585
|
+
case OpacityProperty: {
|
|
1586
|
+
return {
|
|
1587
|
+
name: OpacityProperty,
|
|
1588
|
+
properties: [
|
|
1589
|
+
{ name: "key" },
|
|
1590
|
+
{ name: "value" }
|
|
1591
|
+
]
|
|
1592
|
+
};
|
|
1593
|
+
}
|
|
1594
|
+
case OutgoingRelationExpr: {
|
|
1595
|
+
return {
|
|
1596
|
+
name: OutgoingRelationExpr,
|
|
1597
|
+
properties: [
|
|
1598
|
+
{ name: "from" },
|
|
1599
|
+
{ name: "isBidirectional", defaultValue: false },
|
|
1600
|
+
{ name: "kind" }
|
|
1601
|
+
]
|
|
1602
|
+
};
|
|
1603
|
+
}
|
|
1604
|
+
case OutgoingRelationExpression: {
|
|
1605
|
+
return {
|
|
1606
|
+
name: OutgoingRelationExpression,
|
|
1607
|
+
properties: [
|
|
1608
|
+
{ name: "from" },
|
|
1609
|
+
{ name: "isBidirectional", defaultValue: false },
|
|
1610
|
+
{ name: "kind" }
|
|
1611
|
+
]
|
|
1612
|
+
};
|
|
1613
|
+
}
|
|
1614
|
+
case Predicates: {
|
|
1615
|
+
return {
|
|
1616
|
+
name: Predicates,
|
|
1617
|
+
properties: [
|
|
1618
|
+
{ name: "prev" },
|
|
1619
|
+
{ name: "value" }
|
|
1620
|
+
]
|
|
1621
|
+
};
|
|
1622
|
+
}
|
|
1623
|
+
case Relation: {
|
|
1624
|
+
return {
|
|
1625
|
+
name: Relation,
|
|
1626
|
+
properties: [
|
|
1627
|
+
{ name: "body" },
|
|
1628
|
+
{ name: "kind" },
|
|
1629
|
+
{ name: "source" },
|
|
1630
|
+
{ name: "tags" },
|
|
1631
|
+
{ name: "target" },
|
|
1632
|
+
{ name: "technology" },
|
|
1633
|
+
{ name: "title" }
|
|
1634
|
+
]
|
|
1635
|
+
};
|
|
1636
|
+
}
|
|
1637
|
+
case RelationBody: {
|
|
1638
|
+
return {
|
|
1639
|
+
name: RelationBody,
|
|
1640
|
+
properties: [
|
|
1641
|
+
{ name: "props", defaultValue: [] },
|
|
1642
|
+
{ name: "tags" }
|
|
1643
|
+
]
|
|
1644
|
+
};
|
|
1645
|
+
}
|
|
1646
|
+
case RelationNavigateToProperty: {
|
|
1647
|
+
return {
|
|
1648
|
+
name: RelationNavigateToProperty,
|
|
1649
|
+
properties: [
|
|
1650
|
+
{ name: "key" },
|
|
1651
|
+
{ name: "value" }
|
|
1652
|
+
]
|
|
1653
|
+
};
|
|
1654
|
+
}
|
|
1655
|
+
case RelationPredicateWhere: {
|
|
1656
|
+
return {
|
|
1657
|
+
name: RelationPredicateWhere,
|
|
1658
|
+
properties: [
|
|
1659
|
+
{ name: "subject" },
|
|
1660
|
+
{ name: "where" }
|
|
1661
|
+
]
|
|
1662
|
+
};
|
|
1663
|
+
}
|
|
1664
|
+
case RelationPredicateWith: {
|
|
1665
|
+
return {
|
|
1666
|
+
name: RelationPredicateWith,
|
|
1667
|
+
properties: [
|
|
1668
|
+
{ name: "custom" },
|
|
1669
|
+
{ name: "subject" }
|
|
1670
|
+
]
|
|
1671
|
+
};
|
|
1672
|
+
}
|
|
1673
|
+
case RelationshipKind: {
|
|
1674
|
+
return {
|
|
1675
|
+
name: RelationshipKind,
|
|
1676
|
+
properties: [
|
|
1677
|
+
{ name: "name" }
|
|
1678
|
+
]
|
|
1679
|
+
};
|
|
1680
|
+
}
|
|
1681
|
+
case RelationStringProperty: {
|
|
1682
|
+
return {
|
|
1683
|
+
name: RelationStringProperty,
|
|
1684
|
+
properties: [
|
|
1685
|
+
{ name: "key" },
|
|
1686
|
+
{ name: "value" }
|
|
1687
|
+
]
|
|
1688
|
+
};
|
|
1689
|
+
}
|
|
1690
|
+
case RelationStyleProperty: {
|
|
1691
|
+
return {
|
|
1692
|
+
name: RelationStyleProperty,
|
|
1693
|
+
properties: [
|
|
1694
|
+
{ name: "key" },
|
|
1695
|
+
{ name: "props", defaultValue: [] }
|
|
1696
|
+
]
|
|
1697
|
+
};
|
|
1698
|
+
}
|
|
1699
|
+
case ShapeProperty: {
|
|
1700
|
+
return {
|
|
1701
|
+
name: ShapeProperty,
|
|
1702
|
+
properties: [
|
|
1703
|
+
{ name: "key" },
|
|
1704
|
+
{ name: "value" }
|
|
1705
|
+
]
|
|
1706
|
+
};
|
|
1707
|
+
}
|
|
1708
|
+
case SpecificationColor: {
|
|
1709
|
+
return {
|
|
1710
|
+
name: SpecificationColor,
|
|
1711
|
+
properties: [
|
|
1712
|
+
{ name: "color" },
|
|
1713
|
+
{ name: "name" }
|
|
1714
|
+
]
|
|
1715
|
+
};
|
|
1716
|
+
}
|
|
1717
|
+
case SpecificationDeploymentNodeKind: {
|
|
1718
|
+
return {
|
|
1719
|
+
name: SpecificationDeploymentNodeKind,
|
|
1720
|
+
properties: [
|
|
1721
|
+
{ name: "kind" },
|
|
1722
|
+
{ name: "props", defaultValue: [] }
|
|
1723
|
+
]
|
|
1724
|
+
};
|
|
1725
|
+
}
|
|
1726
|
+
case SpecificationElementKind: {
|
|
1727
|
+
return {
|
|
1728
|
+
name: SpecificationElementKind,
|
|
1729
|
+
properties: [
|
|
1730
|
+
{ name: "kind" },
|
|
1731
|
+
{ name: "props", defaultValue: [] }
|
|
1732
|
+
]
|
|
1733
|
+
};
|
|
1734
|
+
}
|
|
1735
|
+
case SpecificationElementStringProperty: {
|
|
1736
|
+
return {
|
|
1737
|
+
name: SpecificationElementStringProperty,
|
|
1738
|
+
properties: [
|
|
1739
|
+
{ name: "key" },
|
|
1740
|
+
{ name: "value" }
|
|
1741
|
+
]
|
|
1742
|
+
};
|
|
1743
|
+
}
|
|
1744
|
+
case SpecificationRelationshipKind: {
|
|
1745
|
+
return {
|
|
1746
|
+
name: SpecificationRelationshipKind,
|
|
1747
|
+
properties: [
|
|
1748
|
+
{ name: "kind" },
|
|
1749
|
+
{ name: "props", defaultValue: [] }
|
|
1750
|
+
]
|
|
1751
|
+
};
|
|
1752
|
+
}
|
|
1753
|
+
case SpecificationRelationshipStringProperty: {
|
|
1754
|
+
return {
|
|
1755
|
+
name: SpecificationRelationshipStringProperty,
|
|
1756
|
+
properties: [
|
|
1757
|
+
{ name: "key" },
|
|
1758
|
+
{ name: "value" }
|
|
1759
|
+
]
|
|
1760
|
+
};
|
|
1761
|
+
}
|
|
1762
|
+
case SpecificationRule: {
|
|
1763
|
+
return {
|
|
1764
|
+
name: SpecificationRule,
|
|
1765
|
+
properties: [
|
|
1766
|
+
{ name: "colors", defaultValue: [] },
|
|
1767
|
+
{ name: "deploymentNodes", defaultValue: [] },
|
|
1768
|
+
{ name: "elements", defaultValue: [] },
|
|
1769
|
+
{ name: "name" },
|
|
1770
|
+
{ name: "relationships", defaultValue: [] },
|
|
1771
|
+
{ name: "tags", defaultValue: [] }
|
|
1772
|
+
]
|
|
1773
|
+
};
|
|
1774
|
+
}
|
|
1775
|
+
case SpecificationTag: {
|
|
1776
|
+
return {
|
|
1777
|
+
name: SpecificationTag,
|
|
1778
|
+
properties: [
|
|
1779
|
+
{ name: "tag" }
|
|
1780
|
+
]
|
|
1781
|
+
};
|
|
1782
|
+
}
|
|
1783
|
+
case Tag: {
|
|
1784
|
+
return {
|
|
1785
|
+
name: Tag,
|
|
1786
|
+
properties: [
|
|
1787
|
+
{ name: "name" }
|
|
1788
|
+
]
|
|
1789
|
+
};
|
|
1790
|
+
}
|
|
1791
|
+
case Tags: {
|
|
1792
|
+
return {
|
|
1793
|
+
name: Tags,
|
|
1794
|
+
properties: [
|
|
1795
|
+
{ name: "prev" },
|
|
1796
|
+
{ name: "values", defaultValue: [] }
|
|
1797
|
+
]
|
|
1798
|
+
};
|
|
1799
|
+
}
|
|
1800
|
+
case ViewRef: {
|
|
1801
|
+
return {
|
|
1802
|
+
name: ViewRef,
|
|
1803
|
+
properties: [
|
|
1804
|
+
{ name: "view" }
|
|
1805
|
+
]
|
|
1806
|
+
};
|
|
1807
|
+
}
|
|
1808
|
+
case ViewRuleAutoLayout: {
|
|
1809
|
+
return {
|
|
1810
|
+
name: ViewRuleAutoLayout,
|
|
1811
|
+
properties: [
|
|
1812
|
+
{ name: "direction" },
|
|
1813
|
+
{ name: "nodeSep" },
|
|
1814
|
+
{ name: "rankSep" }
|
|
1815
|
+
]
|
|
1816
|
+
};
|
|
1817
|
+
}
|
|
1818
|
+
case ViewRuleGlobalPredicateRef: {
|
|
1819
|
+
return {
|
|
1820
|
+
name: ViewRuleGlobalPredicateRef,
|
|
1821
|
+
properties: [
|
|
1822
|
+
{ name: "predicate" }
|
|
1823
|
+
]
|
|
1824
|
+
};
|
|
1825
|
+
}
|
|
1826
|
+
case ViewRuleGlobalStyle: {
|
|
1827
|
+
return {
|
|
1828
|
+
name: ViewRuleGlobalStyle,
|
|
1829
|
+
properties: [
|
|
1830
|
+
{ name: "style" }
|
|
1831
|
+
]
|
|
1832
|
+
};
|
|
1833
|
+
}
|
|
1834
|
+
case ViewRuleGroup: {
|
|
1835
|
+
return {
|
|
1836
|
+
name: ViewRuleGroup,
|
|
1837
|
+
properties: [
|
|
1838
|
+
{ name: "groupRules", defaultValue: [] },
|
|
1839
|
+
{ name: "props", defaultValue: [] },
|
|
1840
|
+
{ name: "title" }
|
|
1841
|
+
]
|
|
1842
|
+
};
|
|
1843
|
+
}
|
|
1844
|
+
case ViewRuleStyle: {
|
|
1845
|
+
return {
|
|
1846
|
+
name: ViewRuleStyle,
|
|
1847
|
+
properties: [
|
|
1848
|
+
{ name: "props", defaultValue: [] },
|
|
1849
|
+
{ name: "target" }
|
|
1850
|
+
]
|
|
1851
|
+
};
|
|
1852
|
+
}
|
|
1853
|
+
case ViewStringProperty: {
|
|
1854
|
+
return {
|
|
1855
|
+
name: ViewStringProperty,
|
|
1856
|
+
properties: [
|
|
1857
|
+
{ name: "key" },
|
|
1858
|
+
{ name: "value" }
|
|
1859
|
+
]
|
|
1860
|
+
};
|
|
1861
|
+
}
|
|
1862
|
+
case WhereBinaryExpression: {
|
|
1863
|
+
return {
|
|
1864
|
+
name: WhereBinaryExpression,
|
|
1865
|
+
properties: [
|
|
1866
|
+
{ name: "left" },
|
|
1867
|
+
{ name: "operator" },
|
|
1868
|
+
{ name: "right" }
|
|
1869
|
+
]
|
|
1870
|
+
};
|
|
1871
|
+
}
|
|
1872
|
+
case WhereElementKind: {
|
|
1873
|
+
return {
|
|
1874
|
+
name: WhereElementKind,
|
|
1875
|
+
properties: [
|
|
1876
|
+
{ name: "not", defaultValue: false },
|
|
1877
|
+
{ name: "operator" },
|
|
1878
|
+
{ name: "value" }
|
|
1879
|
+
]
|
|
1880
|
+
};
|
|
1881
|
+
}
|
|
1882
|
+
case WhereElementNegation: {
|
|
1883
|
+
return {
|
|
1884
|
+
name: WhereElementNegation,
|
|
1885
|
+
properties: [
|
|
1886
|
+
{ name: "value" }
|
|
1887
|
+
]
|
|
1888
|
+
};
|
|
1889
|
+
}
|
|
1890
|
+
case WhereElementTag: {
|
|
1891
|
+
return {
|
|
1892
|
+
name: WhereElementTag,
|
|
1893
|
+
properties: [
|
|
1894
|
+
{ name: "not", defaultValue: false },
|
|
1895
|
+
{ name: "operator" },
|
|
1896
|
+
{ name: "value" }
|
|
1897
|
+
]
|
|
1898
|
+
};
|
|
1899
|
+
}
|
|
1900
|
+
case WhereRelationKind: {
|
|
1901
|
+
return {
|
|
1902
|
+
name: WhereRelationKind,
|
|
1903
|
+
properties: [
|
|
1904
|
+
{ name: "not", defaultValue: false },
|
|
1905
|
+
{ name: "operator" },
|
|
1906
|
+
{ name: "value" }
|
|
1907
|
+
]
|
|
1908
|
+
};
|
|
1909
|
+
}
|
|
1910
|
+
case WhereRelationNegation: {
|
|
1911
|
+
return {
|
|
1912
|
+
name: WhereRelationNegation,
|
|
1913
|
+
properties: [
|
|
1914
|
+
{ name: "value" }
|
|
1915
|
+
]
|
|
1916
|
+
};
|
|
1917
|
+
}
|
|
1918
|
+
case WhereRelationTag: {
|
|
1919
|
+
return {
|
|
1920
|
+
name: WhereRelationTag,
|
|
1921
|
+
properties: [
|
|
1922
|
+
{ name: "not", defaultValue: false },
|
|
1923
|
+
{ name: "operator" },
|
|
1924
|
+
{ name: "value" }
|
|
1925
|
+
]
|
|
1926
|
+
};
|
|
1927
|
+
}
|
|
1928
|
+
case WildcardExpression: {
|
|
1929
|
+
return {
|
|
1930
|
+
name: WildcardExpression,
|
|
1931
|
+
properties: [
|
|
1932
|
+
{ name: "isWildcard", defaultValue: false }
|
|
1933
|
+
]
|
|
1934
|
+
};
|
|
1935
|
+
}
|
|
1936
|
+
default: {
|
|
1937
|
+
return {
|
|
1938
|
+
name: type,
|
|
1939
|
+
properties: []
|
|
1940
|
+
};
|
|
1941
|
+
}
|
|
1942
|
+
}
|
|
1943
|
+
}
|
|
1944
|
+
}
|
|
1945
|
+
export const reflection = new LikeC4AstReflection();
|