@likec4/language-server 1.17.0 → 1.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.cjs +1 -1
- package/dist/browser.d.cts +2 -2
- package/dist/browser.d.mts +2 -2
- package/dist/browser.d.ts +2 -2
- package/dist/browser.mjs +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/model-graph/index.cjs +1 -1
- package/dist/model-graph/index.mjs +1 -1
- package/dist/shared/{language-server.B8qSDsWW.mjs → language-server.BIbAD1T-.mjs} +8 -3
- package/dist/shared/{language-server.DJo88TnT.d.cts → language-server.BQRvVmE0.d.cts} +2 -37
- package/dist/shared/{language-server.Bmpq16Gw.d.ts → language-server.BysPcTxr.d.ts} +2 -37
- package/dist/shared/{language-server.N8HLDQqz.cjs → language-server.D2QdbOJO.cjs} +40 -12
- package/dist/shared/{language-server.BXFhlTPo.mjs → language-server.DGrBGmsd.mjs} +40 -12
- package/dist/shared/{language-server.DZRuJVSg.cjs → language-server.DKV_FdPN.cjs} +8 -3
- package/dist/shared/{language-server.BGGRJRnr.d.mts → language-server._wkyPgso.d.mts} +2 -37
- package/package.json +14 -14
- package/src/formatting/LikeC4Formatter.ts +9 -4
- package/src/generated/ast.ts +1 -1
- package/src/generated/grammar.ts +1 -1
- package/src/generated/module.ts +3 -2
- package/src/model-graph/dynamic-view/compute.ts +47 -15
- package/dist/shared/language-server.BgDKnNok.d.mts +0 -1338
- package/dist/shared/language-server.C1ZfM22X.d.cts +0 -1338
- package/dist/shared/language-server.PEjk7U9s.d.ts +0 -1338
package/dist/browser.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const lsp = require('langium/lsp');
|
|
4
4
|
const browser = require('vscode-languageserver/browser');
|
|
5
|
-
const module$1 = require('./shared/language-server.
|
|
5
|
+
const module$1 = require('./shared/language-server.DKV_FdPN.cjs');
|
|
6
6
|
|
|
7
7
|
function startLanguageServer() {
|
|
8
8
|
const messageReader = new browser.BrowserMessageReader(self);
|
package/dist/browser.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as LikeC4SharedServices, a as LikeC4Services } from './shared/language-server.
|
|
2
|
-
export { f as FqnIndex, F as FqnIndexEntry, I as IsValidFn, k as LanguageServicesContext, j as LikeC4AddedServices, g as LikeC4ModelBuilder, h as LikeC4ModelLocator, i as LikeC4ModelParser, d as LikeC4Module, M as ModelParsedListener, e as computeDocumentFqn, c as createCustomLanguageServices, b as createLanguageServices, l as createSharedServices, s as setLogLevel } from './shared/language-server.
|
|
1
|
+
import { L as LikeC4SharedServices, a as LikeC4Services } from './shared/language-server.BQRvVmE0.cjs';
|
|
2
|
+
export { f as FqnIndex, F as FqnIndexEntry, I as IsValidFn, k as LanguageServicesContext, j as LikeC4AddedServices, g as LikeC4ModelBuilder, h as LikeC4ModelLocator, i as LikeC4ModelParser, d as LikeC4Module, M as ModelParsedListener, e as computeDocumentFqn, c as createCustomLanguageServices, b as createLanguageServices, l as createSharedServices, s as setLogLevel } from './shared/language-server.BQRvVmE0.cjs';
|
|
3
3
|
import * as vscode_languageserver from 'vscode-languageserver';
|
|
4
4
|
import { BrowserMessageReader, BrowserMessageWriter } from 'vscode-languageserver/browser';
|
|
5
5
|
import 'langium';
|
package/dist/browser.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as LikeC4SharedServices, a as LikeC4Services } from './shared/language-server.
|
|
2
|
-
export { f as FqnIndex, F as FqnIndexEntry, I as IsValidFn, k as LanguageServicesContext, j as LikeC4AddedServices, g as LikeC4ModelBuilder, h as LikeC4ModelLocator, i as LikeC4ModelParser, d as LikeC4Module, M as ModelParsedListener, e as computeDocumentFqn, c as createCustomLanguageServices, b as createLanguageServices, l as createSharedServices, s as setLogLevel } from './shared/language-server.
|
|
1
|
+
import { L as LikeC4SharedServices, a as LikeC4Services } from './shared/language-server._wkyPgso.mjs';
|
|
2
|
+
export { f as FqnIndex, F as FqnIndexEntry, I as IsValidFn, k as LanguageServicesContext, j as LikeC4AddedServices, g as LikeC4ModelBuilder, h as LikeC4ModelLocator, i as LikeC4ModelParser, d as LikeC4Module, M as ModelParsedListener, e as computeDocumentFqn, c as createCustomLanguageServices, b as createLanguageServices, l as createSharedServices, s as setLogLevel } from './shared/language-server._wkyPgso.mjs';
|
|
3
3
|
import * as vscode_languageserver from 'vscode-languageserver';
|
|
4
4
|
import { BrowserMessageReader, BrowserMessageWriter } from 'vscode-languageserver/browser';
|
|
5
5
|
import 'langium';
|
package/dist/browser.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as LikeC4SharedServices, a as LikeC4Services } from './shared/language-server.
|
|
2
|
-
export { f as FqnIndex, F as FqnIndexEntry, I as IsValidFn, k as LanguageServicesContext, j as LikeC4AddedServices, g as LikeC4ModelBuilder, h as LikeC4ModelLocator, i as LikeC4ModelParser, d as LikeC4Module, M as ModelParsedListener, e as computeDocumentFqn, c as createCustomLanguageServices, b as createLanguageServices, l as createSharedServices, s as setLogLevel } from './shared/language-server.
|
|
1
|
+
import { L as LikeC4SharedServices, a as LikeC4Services } from './shared/language-server.BysPcTxr.js';
|
|
2
|
+
export { f as FqnIndex, F as FqnIndexEntry, I as IsValidFn, k as LanguageServicesContext, j as LikeC4AddedServices, g as LikeC4ModelBuilder, h as LikeC4ModelLocator, i as LikeC4ModelParser, d as LikeC4Module, M as ModelParsedListener, e as computeDocumentFqn, c as createCustomLanguageServices, b as createLanguageServices, l as createSharedServices, s as setLogLevel } from './shared/language-server.BysPcTxr.js';
|
|
3
3
|
import * as vscode_languageserver from 'vscode-languageserver';
|
|
4
4
|
import { BrowserMessageReader, BrowserMessageWriter } from 'vscode-languageserver/browser';
|
|
5
5
|
import 'langium';
|
package/dist/browser.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { startLanguageServer as startLanguageServer$1 } from 'langium/lsp';
|
|
2
2
|
import { BrowserMessageReader, BrowserMessageWriter, createConnection } from 'vscode-languageserver/browser';
|
|
3
|
-
import { c as createLanguageServices } from './shared/language-server.
|
|
4
|
-
export { L as LikeC4Module, a as createCustomLanguageServices, s as setLogLevel } from './shared/language-server.
|
|
3
|
+
import { c as createLanguageServices } from './shared/language-server.BIbAD1T-.mjs';
|
|
4
|
+
export { L as LikeC4Module, a as createCustomLanguageServices, s as setLogLevel } from './shared/language-server.BIbAD1T-.mjs';
|
|
5
5
|
|
|
6
6
|
function startLanguageServer() {
|
|
7
7
|
const messageReader = new BrowserMessageReader(self);
|
package/dist/index.cjs
CHANGED
|
@@ -7,7 +7,7 @@ const node = require('langium/node');
|
|
|
7
7
|
const node_fs = require('node:fs');
|
|
8
8
|
const promises = require('node:fs/promises');
|
|
9
9
|
const node_path = require('node:path');
|
|
10
|
-
const module$1 = require('./shared/language-server.
|
|
10
|
+
const module$1 = require('./shared/language-server.DKV_FdPN.cjs');
|
|
11
11
|
|
|
12
12
|
const LikeC4FileSystem = {
|
|
13
13
|
fileSystemProvider: () => new SymLinkTraversingFileSystemProvider()
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as LikeC4SharedServices, a as LikeC4Services } from './shared/language-server.
|
|
2
|
-
export { f as FqnIndex, F as FqnIndexEntry, I as IsValidFn, k as LanguageServicesContext, j as LikeC4AddedServices, g as LikeC4ModelBuilder, h as LikeC4ModelLocator, i as LikeC4ModelParser, d as LikeC4Module, M as ModelParsedListener, e as computeDocumentFqn, c as createCustomLanguageServices, b as createLanguageServices, l as createSharedServices, m as lspLogger, s as setLogLevel } from './shared/language-server.
|
|
1
|
+
import { L as LikeC4SharedServices, a as LikeC4Services } from './shared/language-server.BQRvVmE0.cjs';
|
|
2
|
+
export { f as FqnIndex, F as FqnIndexEntry, I as IsValidFn, k as LanguageServicesContext, j as LikeC4AddedServices, g as LikeC4ModelBuilder, h as LikeC4ModelLocator, i as LikeC4ModelParser, d as LikeC4Module, M as ModelParsedListener, e as computeDocumentFqn, c as createCustomLanguageServices, b as createLanguageServices, l as createSharedServices, m as lspLogger, s as setLogLevel } from './shared/language-server.BQRvVmE0.cjs';
|
|
3
3
|
import * as vscode_languageserver_lib_common_inlineCompletion_proposed from 'vscode-languageserver/lib/common/inlineCompletion.proposed';
|
|
4
4
|
import * as vscode_languageserver from 'vscode-languageserver';
|
|
5
5
|
import { URI, FileSystemNode } from 'langium';
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as LikeC4SharedServices, a as LikeC4Services } from './shared/language-server.
|
|
2
|
-
export { f as FqnIndex, F as FqnIndexEntry, I as IsValidFn, k as LanguageServicesContext, j as LikeC4AddedServices, g as LikeC4ModelBuilder, h as LikeC4ModelLocator, i as LikeC4ModelParser, d as LikeC4Module, M as ModelParsedListener, e as computeDocumentFqn, c as createCustomLanguageServices, b as createLanguageServices, l as createSharedServices, m as lspLogger, s as setLogLevel } from './shared/language-server.
|
|
1
|
+
import { L as LikeC4SharedServices, a as LikeC4Services } from './shared/language-server._wkyPgso.mjs';
|
|
2
|
+
export { f as FqnIndex, F as FqnIndexEntry, I as IsValidFn, k as LanguageServicesContext, j as LikeC4AddedServices, g as LikeC4ModelBuilder, h as LikeC4ModelLocator, i as LikeC4ModelParser, d as LikeC4Module, M as ModelParsedListener, e as computeDocumentFqn, c as createCustomLanguageServices, b as createLanguageServices, l as createSharedServices, m as lspLogger, s as setLogLevel } from './shared/language-server._wkyPgso.mjs';
|
|
3
3
|
import * as vscode_languageserver_lib_common_inlineCompletion_proposed from 'vscode-languageserver/lib/common/inlineCompletion.proposed';
|
|
4
4
|
import * as vscode_languageserver from 'vscode-languageserver';
|
|
5
5
|
import { URI, FileSystemNode } from 'langium';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as LikeC4SharedServices, a as LikeC4Services } from './shared/language-server.
|
|
2
|
-
export { f as FqnIndex, F as FqnIndexEntry, I as IsValidFn, k as LanguageServicesContext, j as LikeC4AddedServices, g as LikeC4ModelBuilder, h as LikeC4ModelLocator, i as LikeC4ModelParser, d as LikeC4Module, M as ModelParsedListener, e as computeDocumentFqn, c as createCustomLanguageServices, b as createLanguageServices, l as createSharedServices, m as lspLogger, s as setLogLevel } from './shared/language-server.
|
|
1
|
+
import { L as LikeC4SharedServices, a as LikeC4Services } from './shared/language-server.BysPcTxr.js';
|
|
2
|
+
export { f as FqnIndex, F as FqnIndexEntry, I as IsValidFn, k as LanguageServicesContext, j as LikeC4AddedServices, g as LikeC4ModelBuilder, h as LikeC4ModelLocator, i as LikeC4ModelParser, d as LikeC4Module, M as ModelParsedListener, e as computeDocumentFqn, c as createCustomLanguageServices, b as createLanguageServices, l as createSharedServices, m as lspLogger, s as setLogLevel } from './shared/language-server.BysPcTxr.js';
|
|
3
3
|
import * as vscode_languageserver_lib_common_inlineCompletion_proposed from 'vscode-languageserver/lib/common/inlineCompletion.proposed';
|
|
4
4
|
import * as vscode_languageserver from 'vscode-languageserver';
|
|
5
5
|
import { URI, FileSystemNode } from 'langium';
|
package/dist/index.mjs
CHANGED
|
@@ -5,8 +5,8 @@ import { NodeFileSystemProvider } from 'langium/node';
|
|
|
5
5
|
import { lstatSync, readlinkSync } from 'node:fs';
|
|
6
6
|
import { readdir } from 'node:fs/promises';
|
|
7
7
|
import { dirname, resolve } from 'node:path';
|
|
8
|
-
import { c as createLanguageServices } from './shared/language-server.
|
|
9
|
-
export { L as LikeC4Module, a as createCustomLanguageServices, l as lspLogger, s as setLogLevel } from './shared/language-server.
|
|
8
|
+
import { c as createLanguageServices } from './shared/language-server.BIbAD1T-.mjs';
|
|
9
|
+
export { L as LikeC4Module, a as createCustomLanguageServices, l as lspLogger, s as setLogLevel } from './shared/language-server.BIbAD1T-.mjs';
|
|
10
10
|
|
|
11
11
|
const LikeC4FileSystem = {
|
|
12
12
|
fileSystemProvider: () => new SymLinkTraversingFileSystemProvider()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { L as LikeC4ModelGraph, b as computeDynamicView, c as computeElementView, a as computeView } from '../shared/language-server.
|
|
1
|
+
export { L as LikeC4ModelGraph, b as computeDynamicView, c as computeElementView, a as computeView } from '../shared/language-server.DGrBGmsd.mjs';
|
|
@@ -13,7 +13,7 @@ import { URI as URI$1 } from 'vscode-uri';
|
|
|
13
13
|
import stripIndent from 'strip-indent';
|
|
14
14
|
import hash from 'string-hash';
|
|
15
15
|
import { deepEqual } from 'fast-equals';
|
|
16
|
-
import { G as Graph, i as isAcyclic, f as findCycles, p as postorder, L as LikeC4ModelGraph, a as computeView, b as computeDynamicView } from './language-server.
|
|
16
|
+
import { G as Graph, i as isAcyclic, f as findCycles, p as postorder, L as LikeC4ModelGraph, a as computeView, b as computeDynamicView } from './language-server.DGrBGmsd.mjs';
|
|
17
17
|
import { hasProtocol, hasLeadingSlash, isRelative, withoutLeadingSlash, withoutBase, parsePath } from 'ufo';
|
|
18
18
|
import { DocumentHighlight, DocumentHighlightKind } from 'vscode-languageserver';
|
|
19
19
|
|
|
@@ -1530,7 +1530,8 @@ const LikeC4Grammar = () => loadedLikeC4Grammar ?? (loadedLikeC4Grammar = loadGr
|
|
|
1530
1530
|
const LikeC4LanguageMetaData = {
|
|
1531
1531
|
languageId: "likec4",
|
|
1532
1532
|
fileExtensions: [".c4", ".likec4", ".like-c4"],
|
|
1533
|
-
caseInsensitive: false
|
|
1533
|
+
caseInsensitive: false,
|
|
1534
|
+
mode: "production"
|
|
1534
1535
|
};
|
|
1535
1536
|
const parserConfig = {
|
|
1536
1537
|
skipValidations: true,
|
|
@@ -5973,7 +5974,11 @@ class LikeC4Formatter extends AbstractFormatter {
|
|
|
5973
5974
|
f.cst(sourceNodes).append(FormattingOptions.oneSpace);
|
|
5974
5975
|
f.keywords("]->").prepend(FormattingOptions.noSpace);
|
|
5975
5976
|
f.keywords("-[").append(FormattingOptions.noSpace);
|
|
5976
|
-
f.
|
|
5977
|
+
f.nodes(...filter([
|
|
5978
|
+
n.target,
|
|
5979
|
+
n.tags
|
|
5980
|
+
], isTruthy)).prepend(FormattingOptions.oneSpace);
|
|
5981
|
+
f.properties("title", "technology").prepend(FormattingOptions.oneSpace);
|
|
5977
5982
|
});
|
|
5978
5983
|
this.on(node, isDynamicViewStep, (n, f) => {
|
|
5979
5984
|
f.keywords("->", "<-").surround(FormattingOptions.oneSpace);
|
|
@@ -39,7 +39,7 @@ declare class LikeC4DocumentLinkProvider implements DocumentLinkProvider {
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
/******************************************************************************
|
|
42
|
-
* This file was generated by langium-cli 3.
|
|
42
|
+
* This file was generated by langium-cli 3.3.0.
|
|
43
43
|
* DO NOT EDIT MANUALLY!
|
|
44
44
|
******************************************************************************/
|
|
45
45
|
|
|
@@ -49,23 +49,19 @@ type CustomColorId = 'element' | 'model' | ArrowType | ElementShape | LineOption
|
|
|
49
49
|
type CustomColorValue = string;
|
|
50
50
|
type DynamicViewRule = DynamicViewGlobalPredicateRef | DynamicViewIncludePredicate | ViewRuleAutoLayout | ViewRuleStyleOrGlobalRef;
|
|
51
51
|
declare const DynamicViewRule = "DynamicViewRule";
|
|
52
|
-
declare function isDynamicViewRule(item: unknown): item is DynamicViewRule;
|
|
53
52
|
type ElementExpression = ElementDescedantsExpression | ElementKindExpression | ElementRef | ElementTagExpression | ExpandElementExpression | WildcardExpression;
|
|
54
53
|
declare const ElementExpression = "ElementExpression";
|
|
55
|
-
declare function isElementExpression(item: unknown): item is ElementExpression;
|
|
56
54
|
type ElementPredicate = ElementPredicateOrWhere | ElementPredicateWith;
|
|
57
55
|
declare const ElementPredicate = "ElementPredicate";
|
|
58
56
|
type ElementPredicateOrWhere = ElementExpression | ElementPredicateWhere;
|
|
59
57
|
declare const ElementPredicateOrWhere = "ElementPredicateOrWhere";
|
|
60
58
|
type ElementProperty = ElementStringProperty | ElementStyleProperty | IconProperty | LinkProperty | MetadataProperty;
|
|
61
59
|
declare const ElementProperty = "ElementProperty";
|
|
62
|
-
declare function isElementProperty(item: unknown): item is ElementProperty;
|
|
63
60
|
type ElementShape = 'browser' | 'cylinder' | 'mobile' | 'person' | 'queue' | 'rectangle' | 'storage';
|
|
64
61
|
type IconId = string;
|
|
65
62
|
type Id = 'element' | 'group' | 'model' | ArrowType | ElementShape | LineOptions | ThemeColor | string;
|
|
66
63
|
type LikeC4View = DynamicView | ElementView;
|
|
67
64
|
declare const LikeC4View = "LikeC4View";
|
|
68
|
-
declare function isLikeC4View(item: unknown): item is LikeC4View;
|
|
69
65
|
type LineOptions = 'dashed' | 'dotted' | 'solid';
|
|
70
66
|
type MetadataProperty = MetadataBody;
|
|
71
67
|
declare const MetadataProperty = "MetadataProperty";
|
|
@@ -73,30 +69,25 @@ type Predicate = ElementPredicate | RelationPredicate;
|
|
|
73
69
|
declare const Predicate = "Predicate";
|
|
74
70
|
type RelationExpression = DirectedRelationExpression | InOutRelationExpression | IncomingRelationExpression | OutgoingRelationExpression;
|
|
75
71
|
declare const RelationExpression = "RelationExpression";
|
|
76
|
-
declare function isRelationExpression(item: unknown): item is RelationExpression;
|
|
77
72
|
type RelationPredicate = RelationPredicateOrWhere | RelationPredicateWith;
|
|
78
73
|
declare const RelationPredicate = "RelationPredicate";
|
|
79
74
|
type RelationPredicateOrWhere = RelationExpression | RelationPredicateWhere;
|
|
80
75
|
declare const RelationPredicateOrWhere = "RelationPredicateOrWhere";
|
|
81
76
|
type RelationProperty = LinkProperty | MetadataProperty | RelationNavigateToProperty | RelationStringProperty | RelationStyleProperty;
|
|
82
77
|
declare const RelationProperty = "RelationProperty";
|
|
83
|
-
declare function isRelationProperty(item: unknown): item is RelationProperty;
|
|
84
78
|
type RelationshipStyleProperty = ArrowProperty | ColorProperty | LineProperty;
|
|
85
79
|
declare const RelationshipStyleProperty = "RelationshipStyleProperty";
|
|
86
80
|
type StringProperty = ElementStringProperty | MetadataAttribute | NotationProperty | NotesProperty | RelationStringProperty | SpecificationElementStringProperty | SpecificationRelationshipStringProperty | ViewStringProperty;
|
|
87
81
|
declare const StringProperty = "StringProperty";
|
|
88
82
|
type StyleProperty = BorderProperty | ColorProperty | IconProperty | OpacityProperty | ShapeProperty;
|
|
89
83
|
declare const StyleProperty = "StyleProperty";
|
|
90
|
-
declare function isStyleProperty(item: unknown): item is StyleProperty;
|
|
91
84
|
type ThemeColor = 'amber' | 'blue' | 'gray' | 'green' | 'indigo' | 'muted' | 'primary' | 'red' | 'secondary' | 'sky' | 'slate';
|
|
92
85
|
type Uri = string;
|
|
93
86
|
type ViewLayoutDirection = 'BottomTop' | 'LeftRight' | 'RightLeft' | 'TopBottom';
|
|
94
87
|
type ViewProperty = LinkProperty | ViewStringProperty;
|
|
95
88
|
declare const ViewProperty = "ViewProperty";
|
|
96
|
-
declare function isViewProperty(item: unknown): item is ViewProperty;
|
|
97
89
|
type ViewRule = ViewRuleAutoLayout | ViewRuleGlobalPredicateRef | ViewRuleGroup | ViewRulePredicate | ViewRuleStyleOrGlobalRef;
|
|
98
90
|
declare const ViewRule = "ViewRule";
|
|
99
|
-
declare function isViewRule(item: unknown): item is ViewRule;
|
|
100
91
|
type ViewRulePredicate = ExcludePredicate | IncludePredicate;
|
|
101
92
|
declare const ViewRulePredicate = "ViewRulePredicate";
|
|
102
93
|
type ViewRuleStyleOrGlobalRef = ViewRuleGlobalStyle | ViewRuleStyle;
|
|
@@ -178,7 +169,6 @@ interface DynamicViewBody extends AstNode {
|
|
|
178
169
|
tags?: Tags;
|
|
179
170
|
}
|
|
180
171
|
declare const DynamicViewBody = "DynamicViewBody";
|
|
181
|
-
declare function isDynamicViewBody(item: unknown): item is DynamicViewBody;
|
|
182
172
|
interface DynamicViewGlobalPredicateRef extends AstNode {
|
|
183
173
|
readonly $container: DynamicViewBody;
|
|
184
174
|
readonly $type: 'DynamicViewGlobalPredicateRef';
|
|
@@ -197,7 +187,6 @@ interface DynamicViewParallelSteps extends AstNode {
|
|
|
197
187
|
steps: Array<DynamicViewStep>;
|
|
198
188
|
}
|
|
199
189
|
declare const DynamicViewParallelSteps = "DynamicViewParallelSteps";
|
|
200
|
-
declare function isDynamicViewParallelSteps(item: unknown): item is DynamicViewParallelSteps;
|
|
201
190
|
interface DynamicViewPredicateIterator extends AstNode {
|
|
202
191
|
readonly $container: DynamicViewIncludePredicate | DynamicViewPredicateIterator;
|
|
203
192
|
readonly $type: 'DynamicViewPredicateIterator';
|
|
@@ -205,7 +194,6 @@ interface DynamicViewPredicateIterator extends AstNode {
|
|
|
205
194
|
value: ElementPredicate;
|
|
206
195
|
}
|
|
207
196
|
declare const DynamicViewPredicateIterator = "DynamicViewPredicateIterator";
|
|
208
|
-
declare function isDynamicViewPredicateIterator(item: unknown): item is DynamicViewPredicateIterator;
|
|
209
197
|
interface DynamicViewRef extends AstNode {
|
|
210
198
|
readonly $container: RelationNavigateToProperty;
|
|
211
199
|
readonly $type: 'DynamicViewRef';
|
|
@@ -223,7 +211,6 @@ interface DynamicViewStep extends AstNode {
|
|
|
223
211
|
title?: string;
|
|
224
212
|
}
|
|
225
213
|
declare const DynamicViewStep = "DynamicViewStep";
|
|
226
|
-
declare function isDynamicViewStep(item: unknown): item is DynamicViewStep;
|
|
227
214
|
interface Element extends AstNode {
|
|
228
215
|
readonly $container: ElementBody | ExtendElementBody | Model;
|
|
229
216
|
readonly $type: 'Element';
|
|
@@ -233,7 +220,6 @@ interface Element extends AstNode {
|
|
|
233
220
|
props: Array<string>;
|
|
234
221
|
}
|
|
235
222
|
declare const Element = "Element";
|
|
236
|
-
declare function isElement(item: unknown): item is Element;
|
|
237
223
|
interface ElementBody extends AstNode {
|
|
238
224
|
readonly $container: Element;
|
|
239
225
|
readonly $type: 'ElementBody';
|
|
@@ -242,7 +228,6 @@ interface ElementBody extends AstNode {
|
|
|
242
228
|
tags?: Tags;
|
|
243
229
|
}
|
|
244
230
|
declare const ElementBody = "ElementBody";
|
|
245
|
-
declare function isElementBody(item: unknown): item is ElementBody;
|
|
246
231
|
interface ElementDescedantsExpression extends AstNode {
|
|
247
232
|
readonly $container: DirectedRelationExpression | DynamicViewPredicateIterator | ElementExpressionsIterator | ElementPredicateWhere | ElementPredicateWith | IncomingRelationExpression | OutgoingRelationExpression | Predicates;
|
|
248
233
|
readonly $type: 'ElementDescedantsExpression';
|
|
@@ -283,7 +268,6 @@ interface ElementPredicateWith extends AstNode {
|
|
|
283
268
|
subject: ElementPredicateOrWhere;
|
|
284
269
|
}
|
|
285
270
|
declare const ElementPredicateWith = "ElementPredicateWith";
|
|
286
|
-
declare function isElementPredicateWith(item: unknown): item is ElementPredicateWith;
|
|
287
271
|
interface ElementRef extends AstNode {
|
|
288
272
|
readonly $container: DirectedRelationExpression | DynamicViewPredicateIterator | DynamicViewStep | ElementDescedantsExpression | ElementExpressionsIterator | ElementPredicateWhere | ElementPredicateWith | ElementRef | ElementView | ExpandElementExpression | IncomingRelationExpression | OutgoingRelationExpression | Predicates | Relation;
|
|
289
273
|
readonly $type: 'ElementRef';
|
|
@@ -329,7 +313,6 @@ interface ElementViewBody extends AstNode {
|
|
|
329
313
|
tags?: Tags;
|
|
330
314
|
}
|
|
331
315
|
declare const ElementViewBody = "ElementViewBody";
|
|
332
|
-
declare function isElementViewBody(item: unknown): item is ElementViewBody;
|
|
333
316
|
interface ElementViewRef extends AstNode {
|
|
334
317
|
readonly $container: ElementView;
|
|
335
318
|
readonly $type: 'ElementViewRef';
|
|
@@ -355,14 +338,12 @@ interface ExtendElement extends AstNode {
|
|
|
355
338
|
element: FqnElementRef;
|
|
356
339
|
}
|
|
357
340
|
declare const ExtendElement = "ExtendElement";
|
|
358
|
-
declare function isExtendElement(item: unknown): item is ExtendElement;
|
|
359
341
|
interface ExtendElementBody extends AstNode {
|
|
360
342
|
readonly $container: ExtendElement;
|
|
361
343
|
readonly $type: 'ExtendElementBody';
|
|
362
344
|
elements: Array<Element | Relation>;
|
|
363
345
|
}
|
|
364
346
|
declare const ExtendElementBody = "ExtendElementBody";
|
|
365
|
-
declare function isExtendElementBody(item: unknown): item is ExtendElementBody;
|
|
366
347
|
interface FqnElementRef extends AstNode {
|
|
367
348
|
readonly $container: ExtendElement | FqnElementRef;
|
|
368
349
|
readonly $type: 'FqnElementRef';
|
|
@@ -377,7 +358,6 @@ interface GlobalDynamicPredicateGroup extends AstNode {
|
|
|
377
358
|
predicates: Array<DynamicViewIncludePredicate>;
|
|
378
359
|
}
|
|
379
360
|
declare const GlobalDynamicPredicateGroup = "GlobalDynamicPredicateGroup";
|
|
380
|
-
declare function isGlobalDynamicPredicateGroup(item: unknown): item is GlobalDynamicPredicateGroup;
|
|
381
361
|
interface GlobalPredicateGroup extends AstNode {
|
|
382
362
|
readonly $container: Globals;
|
|
383
363
|
readonly $type: 'GlobalPredicateGroup';
|
|
@@ -385,7 +365,6 @@ interface GlobalPredicateGroup extends AstNode {
|
|
|
385
365
|
predicates: Array<ViewRulePredicate>;
|
|
386
366
|
}
|
|
387
367
|
declare const GlobalPredicateGroup = "GlobalPredicateGroup";
|
|
388
|
-
declare function isGlobalPredicateGroup(item: unknown): item is GlobalPredicateGroup;
|
|
389
368
|
interface Globals extends AstNode {
|
|
390
369
|
readonly $container: LikeC4Grammar;
|
|
391
370
|
readonly $type: 'Globals';
|
|
@@ -394,7 +373,6 @@ interface Globals extends AstNode {
|
|
|
394
373
|
styles: Array<GlobalStyle | GlobalStyleGroup>;
|
|
395
374
|
}
|
|
396
375
|
declare const Globals = "Globals";
|
|
397
|
-
declare function isGlobals(item: unknown): item is Globals;
|
|
398
376
|
interface GlobalStyle extends AstNode {
|
|
399
377
|
readonly $container: Globals;
|
|
400
378
|
readonly $type: 'GlobalStyle';
|
|
@@ -403,7 +381,6 @@ interface GlobalStyle extends AstNode {
|
|
|
403
381
|
target: ElementExpressionsIterator;
|
|
404
382
|
}
|
|
405
383
|
declare const GlobalStyle = "GlobalStyle";
|
|
406
|
-
declare function isGlobalStyle(item: unknown): item is GlobalStyle;
|
|
407
384
|
interface GlobalStyleGroup extends AstNode {
|
|
408
385
|
readonly $container: Globals;
|
|
409
386
|
readonly $type: 'GlobalStyleGroup';
|
|
@@ -411,7 +388,6 @@ interface GlobalStyleGroup extends AstNode {
|
|
|
411
388
|
styles: Array<ViewRuleStyle>;
|
|
412
389
|
}
|
|
413
390
|
declare const GlobalStyleGroup = "GlobalStyleGroup";
|
|
414
|
-
declare function isGlobalStyleGroup(item: unknown): item is GlobalStyleGroup;
|
|
415
391
|
interface GlobalStyleId extends AstNode {
|
|
416
392
|
readonly $container: GlobalStyle | GlobalStyleGroup;
|
|
417
393
|
readonly $type: 'GlobalStyleId';
|
|
@@ -500,7 +476,6 @@ interface Model extends AstNode {
|
|
|
500
476
|
name: 'model';
|
|
501
477
|
}
|
|
502
478
|
declare const Model = "Model";
|
|
503
|
-
declare function isModel(item: unknown): item is Model;
|
|
504
479
|
interface ModelViews extends AstNode {
|
|
505
480
|
readonly $container: LikeC4Grammar;
|
|
506
481
|
readonly $type: 'ModelViews';
|
|
@@ -509,7 +484,6 @@ interface ModelViews extends AstNode {
|
|
|
509
484
|
views: Array<LikeC4View>;
|
|
510
485
|
}
|
|
511
486
|
declare const ModelViews = "ModelViews";
|
|
512
|
-
declare function isModelViews(item: unknown): item is ModelViews;
|
|
513
487
|
interface NavigateToProperty extends AstNode {
|
|
514
488
|
readonly $container: CustomElementProperties;
|
|
515
489
|
readonly $type: 'NavigateToProperty';
|
|
@@ -565,7 +539,6 @@ interface Relation extends AstNode {
|
|
|
565
539
|
title?: string;
|
|
566
540
|
}
|
|
567
541
|
declare const Relation = "Relation";
|
|
568
|
-
declare function isRelation(item: unknown): item is Relation;
|
|
569
542
|
interface RelationBody extends AstNode {
|
|
570
543
|
readonly $container: Relation;
|
|
571
544
|
readonly $type: 'RelationBody';
|
|
@@ -573,7 +546,6 @@ interface RelationBody extends AstNode {
|
|
|
573
546
|
tags?: Tags;
|
|
574
547
|
}
|
|
575
548
|
declare const RelationBody = "RelationBody";
|
|
576
|
-
declare function isRelationBody(item: unknown): item is RelationBody;
|
|
577
549
|
interface RelationNavigateToProperty extends AstNode {
|
|
578
550
|
readonly $container: CustomRelationProperties | RelationBody;
|
|
579
551
|
readonly $type: 'RelationNavigateToProperty';
|
|
@@ -595,7 +567,6 @@ interface RelationPredicateWith extends AstNode {
|
|
|
595
567
|
subject: RelationPredicateOrWhere;
|
|
596
568
|
}
|
|
597
569
|
declare const RelationPredicateWith = "RelationPredicateWith";
|
|
598
|
-
declare function isRelationPredicateWith(item: unknown): item is RelationPredicateWith;
|
|
599
570
|
interface RelationshipKind extends AstNode {
|
|
600
571
|
readonly $container: SpecificationRelationshipKind;
|
|
601
572
|
readonly $type: 'RelationshipKind';
|
|
@@ -630,7 +601,6 @@ interface SpecificationColor extends AstNode {
|
|
|
630
601
|
name: CustomColor;
|
|
631
602
|
}
|
|
632
603
|
declare const SpecificationColor = "SpecificationColor";
|
|
633
|
-
declare function isSpecificationColor(item: unknown): item is SpecificationColor;
|
|
634
604
|
interface SpecificationElementKind extends AstNode {
|
|
635
605
|
readonly $container: SpecificationRule;
|
|
636
606
|
readonly $type: 'SpecificationElementKind';
|
|
@@ -638,7 +608,6 @@ interface SpecificationElementKind extends AstNode {
|
|
|
638
608
|
props: Array<ElementStyleProperty | SpecificationElementStringProperty>;
|
|
639
609
|
}
|
|
640
610
|
declare const SpecificationElementKind = "SpecificationElementKind";
|
|
641
|
-
declare function isSpecificationElementKind(item: unknown): item is SpecificationElementKind;
|
|
642
611
|
interface SpecificationElementStringProperty extends AstNode {
|
|
643
612
|
readonly $container: SpecificationElementKind;
|
|
644
613
|
readonly $type: 'SpecificationElementStringProperty';
|
|
@@ -653,7 +622,6 @@ interface SpecificationRelationshipKind extends AstNode {
|
|
|
653
622
|
props: Array<RelationshipStyleProperty | SpecificationRelationshipStringProperty>;
|
|
654
623
|
}
|
|
655
624
|
declare const SpecificationRelationshipKind = "SpecificationRelationshipKind";
|
|
656
|
-
declare function isSpecificationRelationshipKind(item: unknown): item is SpecificationRelationshipKind;
|
|
657
625
|
interface SpecificationRelationshipStringProperty extends AstNode {
|
|
658
626
|
readonly $container: SpecificationRelationshipKind;
|
|
659
627
|
readonly $type: 'SpecificationRelationshipStringProperty';
|
|
@@ -671,14 +639,12 @@ interface SpecificationRule extends AstNode {
|
|
|
671
639
|
tags: Array<SpecificationTag>;
|
|
672
640
|
}
|
|
673
641
|
declare const SpecificationRule = "SpecificationRule";
|
|
674
|
-
declare function isSpecificationRule(item: unknown): item is SpecificationRule;
|
|
675
642
|
interface SpecificationTag extends AstNode {
|
|
676
643
|
readonly $container: SpecificationRule;
|
|
677
644
|
readonly $type: 'SpecificationTag';
|
|
678
645
|
tag: Tag;
|
|
679
646
|
}
|
|
680
647
|
declare const SpecificationTag = "SpecificationTag";
|
|
681
|
-
declare function isSpecificationTag(item: unknown): item is SpecificationTag;
|
|
682
648
|
interface Tag extends AstNode {
|
|
683
649
|
readonly $container: SpecificationTag;
|
|
684
650
|
readonly $type: 'Tag';
|
|
@@ -692,7 +658,6 @@ interface Tags extends AstNode {
|
|
|
692
658
|
values: Array<Reference<Tag>>;
|
|
693
659
|
}
|
|
694
660
|
declare const Tags = "Tags";
|
|
695
|
-
declare function isTags(item: unknown): item is Tags;
|
|
696
661
|
interface ViewRef extends AstNode {
|
|
697
662
|
readonly $container: NavigateToProperty;
|
|
698
663
|
readonly $type: 'ViewRef';
|
|
@@ -1046,7 +1011,7 @@ interface ParsedLikeC4LangiumDocument extends Omit<LangiumDocument<LikeC4Grammar
|
|
|
1046
1011
|
}
|
|
1047
1012
|
type Guard<N extends AstNode> = (n: AstNode) => n is N;
|
|
1048
1013
|
type Guarded<G> = G extends Guard<infer N> ? N : never;
|
|
1049
|
-
declare const isValidatableAstNode: (n: AstNode) => n is
|
|
1014
|
+
declare const isValidatableAstNode: (n: AstNode) => n is RelationStyleProperty | SpecificationRelationshipKind | DynamicViewStep | RelationPredicateWith | DynamicViewBody | DynamicViewParallelSteps | DynamicView | ModelViews | ExcludePredicate | IncludePredicate | ElementViewBody | GlobalPredicateGroup | ViewRuleGroup | ElementView | Globals | RelationBody | Relation | ElementBody | ExtendElementBody | Model | Element | ExtendElement | SpecificationRule | BorderProperty | ElementStyleProperty | GlobalStyle | ViewRuleStyle | ElementPredicateWith | DynamicViewPredicateIterator | DynamicViewIncludePredicate | GlobalDynamicPredicateGroup | SpecificationElementKind | GlobalStyleGroup | ColorProperty | SpecificationColor | DirectedRelationExpression | DynamicViewGlobalPredicateRef | RelationNavigateToProperty | ViewRuleAutoLayout | ViewRuleGlobalStyle | ElementDescedantsExpression | IncomingRelationExpression | OutgoingRelationExpression | InOutRelationExpression | ElementKindExpression | ElementRef | ElementTagExpression | ExpandElementExpression | WildcardExpression | ElementStringProperty | IconProperty | LinkProperty | MetadataBody | OpacityProperty | RelationStringProperty | ShapeProperty | SpecificationTag | ViewStringProperty | Tags | ViewRuleGlobalPredicateRef;
|
|
1050
1015
|
type ValidatableAstNode = Guarded<typeof isValidatableAstNode>;
|
|
1051
1016
|
declare function checksFromDiagnostics(doc: LikeC4LangiumDocument): {
|
|
1052
1017
|
isValid: (n: ValidatableAstNode) => boolean;
|