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