@eventcatalog/language-server 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +71 -0
- package/SPEC.md +1939 -0
- package/dist/ast-utils.d.ts +96 -0
- package/dist/ast-utils.d.ts.map +1 -0
- package/dist/ast-utils.js +241 -0
- package/dist/ast-utils.js.map +1 -0
- package/dist/compiler.d.ts +7 -0
- package/dist/compiler.d.ts.map +1 -0
- package/dist/compiler.js +654 -0
- package/dist/compiler.js.map +1 -0
- package/dist/ec-completion-provider.d.ts +15 -0
- package/dist/ec-completion-provider.d.ts.map +1 -0
- package/dist/ec-completion-provider.js +202 -0
- package/dist/ec-completion-provider.js.map +1 -0
- package/dist/ec-module.d.ts +18 -0
- package/dist/ec-module.d.ts.map +1 -0
- package/dist/ec-module.js +27 -0
- package/dist/ec-module.js.map +1 -0
- package/dist/ec-scope-provider.d.ts +2 -0
- package/dist/ec-scope-provider.d.ts.map +1 -0
- package/dist/ec-scope-provider.js +2 -0
- package/dist/ec-scope-provider.js.map +1 -0
- package/dist/ec-scope.d.ts +10 -0
- package/dist/ec-scope.d.ts.map +1 -0
- package/dist/ec-scope.js +18 -0
- package/dist/ec-scope.js.map +1 -0
- package/dist/ec-validator.d.ts +9 -0
- package/dist/ec-validator.d.ts.map +1 -0
- package/dist/ec-validator.js +238 -0
- package/dist/ec-validator.js.map +1 -0
- package/dist/formatter.d.ts +6 -0
- package/dist/formatter.d.ts.map +1 -0
- package/dist/formatter.js +88 -0
- package/dist/formatter.js.map +1 -0
- package/dist/generated/ast.d.ts +970 -0
- package/dist/generated/ast.d.ts.map +1 -0
- package/dist/generated/ast.js +1537 -0
- package/dist/generated/ast.js.map +1 -0
- package/dist/generated/grammar.d.ts +7 -0
- package/dist/generated/grammar.d.ts.map +1 -0
- package/dist/generated/grammar.js +6062 -0
- package/dist/generated/grammar.js.map +1 -0
- package/dist/generated/module.d.ts +14 -0
- package/dist/generated/module.d.ts.map +1 -0
- package/dist/generated/module.js +21 -0
- package/dist/generated/module.js.map +1 -0
- package/dist/graph-types.d.ts +32 -0
- package/dist/graph-types.d.ts.map +1 -0
- package/dist/graph-types.js +2 -0
- package/dist/graph-types.js.map +1 -0
- package/dist/graph.d.ts +4 -0
- package/dist/graph.d.ts.map +1 -0
- package/dist/graph.js +931 -0
- package/dist/graph.js.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -0
- package/dist/main-browser.d.ts +2 -0
- package/dist/main-browser.d.ts.map +1 -0
- package/dist/main-browser.js +16 -0
- package/dist/main-browser.js.map +1 -0
- package/dist/main.d.ts +2 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +15 -0
- package/dist/main.js.map +1 -0
- package/package.json +55 -0
- package/specification/00-overview.md +99 -0
- package/specification/01-domain.md +80 -0
- package/specification/02-service.md +50 -0
- package/specification/03-event.md +28 -0
- package/specification/04-command.md +25 -0
- package/specification/05-query.md +25 -0
- package/specification/06-channel.md +131 -0
- package/specification/08-container.md +54 -0
- package/specification/09-data-product.md +39 -0
- package/specification/10-flow.md +163 -0
- package/specification/11-diagram.md +3 -0
- package/specification/12-user.md +54 -0
- package/specification/13-team.md +62 -0
- package/specification/14-relationships.md +89 -0
- package/specification/15-versioning.md +41 -0
- package/specification/16-annotations.md +100 -0
- package/specification/17-examples.md +373 -0
- package/specification/18-grammar.md +242 -0
- package/specification/19-visualizer.md +197 -0
- package/specification/build-spec.sh +49 -0
- package/syntaxes/ec.tmLanguage.json +61 -0
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import type { AstNode } from "langium";
|
|
2
|
+
import type { Annotation, ChannelRefStmt, DataProductRefStmt, ContainerDef, ContainerRefStmt, DomainRefStmt, FlowEntryChain, FlowWhenBlock, FlowRefStmt, FromClause, InputStmt, OutputStmt, ParameterDecl, ReadsFromStmt, ReceivesStmt, RouteStmt, SendsStmt, ServiceDef, ServiceRefStmt, SubdomainDef, ToClause, WritesToStmt } from "./generated/ast.js";
|
|
3
|
+
/**
|
|
4
|
+
* Strip surrounding double-quotes from a STRING terminal value.
|
|
5
|
+
* Langium keeps the quotes in the parsed string – this helper removes them.
|
|
6
|
+
*/
|
|
7
|
+
export declare function stripQuotes(s: string): string;
|
|
8
|
+
/** Return the first VersionStmt value found in `body`, or `undefined`. */
|
|
9
|
+
export declare function getVersion(body: AstNode[]): string | undefined;
|
|
10
|
+
/** Return the first NameStmt value (quotes stripped) found in `body`, or `undefined`. */
|
|
11
|
+
export declare function getName(body: AstNode[]): string | undefined;
|
|
12
|
+
/** Return the first SummaryStmt value (quotes stripped) found in `body`, or `undefined`. */
|
|
13
|
+
export declare function getSummary(body: AstNode[]): string | undefined;
|
|
14
|
+
/** Collect all OwnerStmt `ownerRef` values from `body`. */
|
|
15
|
+
export declare function getOwners(body: AstNode[]): string[];
|
|
16
|
+
/** Return the first DeprecatedStmt value found in `body`, or `undefined`. */
|
|
17
|
+
export declare function getDeprecated(body: AstNode[]): boolean | undefined;
|
|
18
|
+
/** Return the first DraftStmt value found in `body`, or `undefined`. */
|
|
19
|
+
export declare function getDraft(body: AstNode[]): boolean | undefined;
|
|
20
|
+
/** Return the first LegendStmt value found in `body`, or `undefined`. */
|
|
21
|
+
export declare function getLegend(body: AstNode[]): boolean | undefined;
|
|
22
|
+
/** Return the first SearchStmt value found in `body`, or `undefined`. */
|
|
23
|
+
export declare function getSearch(body: AstNode[]): boolean | undefined;
|
|
24
|
+
/** Return the first ToolbarStmt value found in `body`, or `undefined`. */
|
|
25
|
+
export declare function getToolbar(body: AstNode[]): boolean | undefined;
|
|
26
|
+
/** Return the first FocusModeStmt value found in `body`, or `undefined`. */
|
|
27
|
+
export declare function getFocusMode(body: AstNode[]): boolean | undefined;
|
|
28
|
+
/** Return the first AnimatedStmt value found in `body`, or `undefined`. */
|
|
29
|
+
export declare function getAnimated(body: AstNode[]): boolean | undefined;
|
|
30
|
+
/** Return the first StyleStmt value found in `body`, or `undefined`. */
|
|
31
|
+
export declare function getStyle(body: AstNode[]): string | undefined;
|
|
32
|
+
/** Return the first SchemaStmt value (quotes stripped) found in `body`, or `undefined`. */
|
|
33
|
+
export declare function getSchema(body: AstNode[]): string | undefined;
|
|
34
|
+
/** Return all inline ServiceDef nodes from `body`. */
|
|
35
|
+
export declare function getServices(body: AstNode[]): ServiceDef[];
|
|
36
|
+
/** Return all SubdomainDef nodes from `body`. */
|
|
37
|
+
export declare function getSubdomains(body: AstNode[]): SubdomainDef[];
|
|
38
|
+
/** Return all inline ContainerDef nodes from `body`. */
|
|
39
|
+
export declare function getContainers(body: AstNode[]): ContainerDef[];
|
|
40
|
+
/** Return all FlowRefStmt nodes from `body`. */
|
|
41
|
+
export declare function getFlowRefs(body: AstNode[]): FlowRefStmt[];
|
|
42
|
+
/** Return all DataProductRefStmt nodes from `body`. */
|
|
43
|
+
export declare function getDataProductRefs(body: AstNode[]): DataProductRefStmt[];
|
|
44
|
+
/** Return all SendsStmt nodes from `body`. */
|
|
45
|
+
export declare function getSends(body: AstNode[]): SendsStmt[];
|
|
46
|
+
/** Return all ReceivesStmt nodes from `body`. */
|
|
47
|
+
export declare function getReceives(body: AstNode[]): ReceivesStmt[];
|
|
48
|
+
/** Return all Annotation nodes from `body`. */
|
|
49
|
+
export declare function getAnnotations(body: AstNode[]): Annotation[];
|
|
50
|
+
/** Return all WritesToStmt nodes from `body`. */
|
|
51
|
+
export declare function getWritesToRefs(body: AstNode[]): WritesToStmt[];
|
|
52
|
+
/** Return all ReadsFromStmt nodes from `body`. */
|
|
53
|
+
export declare function getReadsFromRefs(body: AstNode[]): ReadsFromStmt[];
|
|
54
|
+
/** Return all ChannelRefStmt nodes from `body`. */
|
|
55
|
+
export declare function getChannelRefs(body: AstNode[]): ChannelRefStmt[];
|
|
56
|
+
/** Return the first AddressStmt value (quotes stripped) from `body`, or `undefined`. */
|
|
57
|
+
export declare function getAddress(body: AstNode[]): string | undefined;
|
|
58
|
+
/** Collect all ProtocolStmt values (quotes stripped) from `body`. */
|
|
59
|
+
export declare function getProtocols(body: AstNode[]): string[];
|
|
60
|
+
/** Return all ParameterDecl nodes from `body`. */
|
|
61
|
+
export declare function getParameters(body: AstNode[]): ParameterDecl[];
|
|
62
|
+
/** Return all RouteStmt nodes from `body`. */
|
|
63
|
+
export declare function getRoutes(body: AstNode[]): RouteStmt[];
|
|
64
|
+
/** Return all ServiceRefStmt nodes from `body`. */
|
|
65
|
+
export declare function getServiceRefs(body: AstNode[]): ServiceRefStmt[];
|
|
66
|
+
/** Return all DomainRefStmt nodes from `body`. */
|
|
67
|
+
export declare function getDomainRefs(body: AstNode[]): DomainRefStmt[];
|
|
68
|
+
/** Return all ContainerRefStmt nodes from `body`. */
|
|
69
|
+
export declare function getContainerRefs(body: AstNode[]): ContainerRefStmt[];
|
|
70
|
+
/** Return the first ContainerTypeStmt value from `body`, or `undefined`. */
|
|
71
|
+
export declare function getContainerType(body: AstNode[]): string | undefined;
|
|
72
|
+
/** Return the first TechnologyStmt value (quotes stripped) from `body`, or `undefined`. */
|
|
73
|
+
export declare function getTechnology(body: AstNode[]): string | undefined;
|
|
74
|
+
/** Return the first AuthoritativeStmt value from `body`, or `undefined`. */
|
|
75
|
+
export declare function getAuthoritative(body: AstNode[]): boolean | undefined;
|
|
76
|
+
/** Return the first AccessModeStmt value from `body`, or `undefined`. */
|
|
77
|
+
export declare function getAccessMode(body: AstNode[]): string | undefined;
|
|
78
|
+
/** Return the first ClassificationStmt value from `body`, or `undefined`. */
|
|
79
|
+
export declare function getClassification(body: AstNode[]): string | undefined;
|
|
80
|
+
/** Return the first ResidencyStmt value (quotes stripped) from `body`, or `undefined`. */
|
|
81
|
+
export declare function getResidency(body: AstNode[]): string | undefined;
|
|
82
|
+
/** Return the first RetentionStmt value (quotes stripped) from `body`, or `undefined`. */
|
|
83
|
+
export declare function getRetention(body: AstNode[]): string | undefined;
|
|
84
|
+
/** Return all InputStmt nodes from `body`. */
|
|
85
|
+
export declare function getInputs(body: AstNode[]): InputStmt[];
|
|
86
|
+
/** Return all OutputStmt nodes from `body`. */
|
|
87
|
+
export declare function getOutputs(body: AstNode[]): OutputStmt[];
|
|
88
|
+
/** Return all FlowEntryChain nodes from `body`. */
|
|
89
|
+
export declare function getFlowEntryChains(body: AstNode[]): FlowEntryChain[];
|
|
90
|
+
/** Return all FlowWhenBlock nodes from `body`. */
|
|
91
|
+
export declare function getFlowWhenBlocks(body: AstNode[]): FlowWhenBlock[];
|
|
92
|
+
/** Return the first ToClause from `body`, or `undefined`. */
|
|
93
|
+
export declare function getToClause(body: AstNode[]): ToClause | undefined;
|
|
94
|
+
/** Return the first FromClause from `body`, or `undefined`. */
|
|
95
|
+
export declare function getFromClause(body: AstNode[]): FromClause | undefined;
|
|
96
|
+
//# sourceMappingURL=ast-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ast-utils.d.ts","sourceRoot":"","sources":["../src/ast-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AA+CvC,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACd,kBAAkB,EAClB,YAAY,EACZ,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,aAAa,EACb,WAAW,EACX,UAAU,EACV,SAAS,EACT,UAAU,EACV,aAAa,EACb,aAAa,EACb,YAAY,EACZ,SAAS,EACT,SAAS,EACT,UAAU,EACV,cAAc,EACd,YAAY,EACZ,QAAQ,EACR,YAAY,EACb,MAAM,oBAAoB,CAAC;AAM5B;;;GAGG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAK7C;AAMD,0EAA0E;AAC1E,wBAAgB,UAAU,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,MAAM,GAAG,SAAS,CAG9D;AAED,yFAAyF;AACzF,wBAAgB,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,MAA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,IAAI,EAAE,OAAO,EAAE,GAAG,aAAa,EAAE,CAElE;AAMD,6DAA6D;AAC7D,wBAAgB,WAAW,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,QAAQ,GAAG,SAAS,CAEjE;AAED,+DAA+D;AAC/D,wBAAgB,aAAa,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,UAAU,GAAG,SAAS,CAErE"}
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import { isVersionStmt, isNameStmt, isSummaryStmt, isOwnerStmt, isDeprecatedStmt, isDraftStmt, isLegendStmt, isSearchStmt, isToolbarStmt, isFocusModeStmt, isAnimatedStmt, isStyleStmt, isSchemaStmt, isServiceDef, isSubdomainDef, isContainerDef, isFlowRefStmt, isDataProductRefStmt, isSendsStmt, isReceivesStmt, isWritesToStmt, isReadsFromStmt, isAnnotation, isChannelRefStmt, isAddressStmt, isProtocolStmt, isParameterDecl, isRouteStmt, isServiceRefStmt, isDomainRefStmt, isContainerRefStmt, isContainerTypeStmt, isTechnologyStmt, isAuthoritativeStmt, isAccessModeStmt, isClassificationStmt, isResidencyStmt, isRetentionStmt, isInputStmt, isOutputStmt, isFlowEntryChain, isFlowWhenBlock, isToClause, isFromClause, } from "./generated/ast.js";
|
|
2
|
+
// ---------------------------------------------------------------------------
|
|
3
|
+
// String helpers
|
|
4
|
+
// ---------------------------------------------------------------------------
|
|
5
|
+
/**
|
|
6
|
+
* Strip surrounding double-quotes from a STRING terminal value.
|
|
7
|
+
* Langium keeps the quotes in the parsed string – this helper removes them.
|
|
8
|
+
*/
|
|
9
|
+
export function stripQuotes(s) {
|
|
10
|
+
if (s.length >= 2 && s.startsWith('"') && s.endsWith('"')) {
|
|
11
|
+
return s.slice(1, -1);
|
|
12
|
+
}
|
|
13
|
+
return s;
|
|
14
|
+
}
|
|
15
|
+
// ---------------------------------------------------------------------------
|
|
16
|
+
// Common body helpers
|
|
17
|
+
// ---------------------------------------------------------------------------
|
|
18
|
+
/** Return the first VersionStmt value found in `body`, or `undefined`. */
|
|
19
|
+
export function getVersion(body) {
|
|
20
|
+
const stmt = body.find(isVersionStmt);
|
|
21
|
+
return stmt ? stmt.value : undefined;
|
|
22
|
+
}
|
|
23
|
+
/** Return the first NameStmt value (quotes stripped) found in `body`, or `undefined`. */
|
|
24
|
+
export function getName(body) {
|
|
25
|
+
const stmt = body.find(isNameStmt);
|
|
26
|
+
return stmt ? stripQuotes(stmt.value) : undefined;
|
|
27
|
+
}
|
|
28
|
+
/** Return the first SummaryStmt value (quotes stripped) found in `body`, or `undefined`. */
|
|
29
|
+
export function getSummary(body) {
|
|
30
|
+
const stmt = body.find(isSummaryStmt);
|
|
31
|
+
return stmt ? stripQuotes(stmt.value) : undefined;
|
|
32
|
+
}
|
|
33
|
+
/** Collect all OwnerStmt `ownerRef` values from `body`. */
|
|
34
|
+
export function getOwners(body) {
|
|
35
|
+
return body.filter(isOwnerStmt).map((s) => s.ownerRef);
|
|
36
|
+
}
|
|
37
|
+
/** Return the first DeprecatedStmt value found in `body`, or `undefined`. */
|
|
38
|
+
export function getDeprecated(body) {
|
|
39
|
+
const stmt = body.find(isDeprecatedStmt);
|
|
40
|
+
return stmt ? stmt.value : undefined;
|
|
41
|
+
}
|
|
42
|
+
/** Return the first DraftStmt value found in `body`, or `undefined`. */
|
|
43
|
+
export function getDraft(body) {
|
|
44
|
+
const stmt = body.find(isDraftStmt);
|
|
45
|
+
return stmt ? stmt.value : undefined;
|
|
46
|
+
}
|
|
47
|
+
/** Return the first LegendStmt value found in `body`, or `undefined`. */
|
|
48
|
+
export function getLegend(body) {
|
|
49
|
+
const stmt = body.find(isLegendStmt);
|
|
50
|
+
return stmt ? stmt.value : undefined;
|
|
51
|
+
}
|
|
52
|
+
/** Return the first SearchStmt value found in `body`, or `undefined`. */
|
|
53
|
+
export function getSearch(body) {
|
|
54
|
+
const stmt = body.find(isSearchStmt);
|
|
55
|
+
return stmt ? stmt.value : undefined;
|
|
56
|
+
}
|
|
57
|
+
/** Return the first ToolbarStmt value found in `body`, or `undefined`. */
|
|
58
|
+
export function getToolbar(body) {
|
|
59
|
+
const stmt = body.find(isToolbarStmt);
|
|
60
|
+
return stmt ? stmt.value : undefined;
|
|
61
|
+
}
|
|
62
|
+
/** Return the first FocusModeStmt value found in `body`, or `undefined`. */
|
|
63
|
+
export function getFocusMode(body) {
|
|
64
|
+
const stmt = body.find(isFocusModeStmt);
|
|
65
|
+
return stmt ? stmt.value : undefined;
|
|
66
|
+
}
|
|
67
|
+
/** Return the first AnimatedStmt value found in `body`, or `undefined`. */
|
|
68
|
+
export function getAnimated(body) {
|
|
69
|
+
const stmt = body.find(isAnimatedStmt);
|
|
70
|
+
return stmt ? stmt.value : undefined;
|
|
71
|
+
}
|
|
72
|
+
/** Return the first StyleStmt value found in `body`, or `undefined`. */
|
|
73
|
+
export function getStyle(body) {
|
|
74
|
+
const stmt = body.find(isStyleStmt);
|
|
75
|
+
return stmt ? stmt.value : undefined;
|
|
76
|
+
}
|
|
77
|
+
/** Return the first SchemaStmt value (quotes stripped) found in `body`, or `undefined`. */
|
|
78
|
+
export function getSchema(body) {
|
|
79
|
+
const stmt = body.find(isSchemaStmt);
|
|
80
|
+
return stmt ? stripQuotes(stmt.value) : undefined;
|
|
81
|
+
}
|
|
82
|
+
// ---------------------------------------------------------------------------
|
|
83
|
+
// Domain body helpers
|
|
84
|
+
// ---------------------------------------------------------------------------
|
|
85
|
+
/** Return all inline ServiceDef nodes from `body`. */
|
|
86
|
+
export function getServices(body) {
|
|
87
|
+
return body.filter(isServiceDef);
|
|
88
|
+
}
|
|
89
|
+
/** Return all SubdomainDef nodes from `body`. */
|
|
90
|
+
export function getSubdomains(body) {
|
|
91
|
+
return body.filter(isSubdomainDef);
|
|
92
|
+
}
|
|
93
|
+
/** Return all inline ContainerDef nodes from `body`. */
|
|
94
|
+
export function getContainers(body) {
|
|
95
|
+
return body.filter(isContainerDef);
|
|
96
|
+
}
|
|
97
|
+
/** Return all FlowRefStmt nodes from `body`. */
|
|
98
|
+
export function getFlowRefs(body) {
|
|
99
|
+
return body.filter(isFlowRefStmt);
|
|
100
|
+
}
|
|
101
|
+
/** Return all DataProductRefStmt nodes from `body`. */
|
|
102
|
+
export function getDataProductRefs(body) {
|
|
103
|
+
return body.filter(isDataProductRefStmt);
|
|
104
|
+
}
|
|
105
|
+
/** Return all SendsStmt nodes from `body`. */
|
|
106
|
+
export function getSends(body) {
|
|
107
|
+
return body.filter(isSendsStmt);
|
|
108
|
+
}
|
|
109
|
+
/** Return all ReceivesStmt nodes from `body`. */
|
|
110
|
+
export function getReceives(body) {
|
|
111
|
+
return body.filter(isReceivesStmt);
|
|
112
|
+
}
|
|
113
|
+
/** Return all Annotation nodes from `body`. */
|
|
114
|
+
export function getAnnotations(body) {
|
|
115
|
+
return body.filter(isAnnotation);
|
|
116
|
+
}
|
|
117
|
+
// ---------------------------------------------------------------------------
|
|
118
|
+
// Service body helpers
|
|
119
|
+
// ---------------------------------------------------------------------------
|
|
120
|
+
/** Return all WritesToStmt nodes from `body`. */
|
|
121
|
+
export function getWritesToRefs(body) {
|
|
122
|
+
return body.filter(isWritesToStmt);
|
|
123
|
+
}
|
|
124
|
+
/** Return all ReadsFromStmt nodes from `body`. */
|
|
125
|
+
export function getReadsFromRefs(body) {
|
|
126
|
+
return body.filter(isReadsFromStmt);
|
|
127
|
+
}
|
|
128
|
+
// ---------------------------------------------------------------------------
|
|
129
|
+
// Message body helpers
|
|
130
|
+
// ---------------------------------------------------------------------------
|
|
131
|
+
/** Return all ChannelRefStmt nodes from `body`. */
|
|
132
|
+
export function getChannelRefs(body) {
|
|
133
|
+
return body.filter(isChannelRefStmt);
|
|
134
|
+
}
|
|
135
|
+
// ---------------------------------------------------------------------------
|
|
136
|
+
// Channel body helpers
|
|
137
|
+
// ---------------------------------------------------------------------------
|
|
138
|
+
/** Return the first AddressStmt value (quotes stripped) from `body`, or `undefined`. */
|
|
139
|
+
export function getAddress(body) {
|
|
140
|
+
const stmt = body.find(isAddressStmt);
|
|
141
|
+
return stmt ? stripQuotes(stmt.value) : undefined;
|
|
142
|
+
}
|
|
143
|
+
/** Collect all ProtocolStmt values (quotes stripped) from `body`. */
|
|
144
|
+
export function getProtocols(body) {
|
|
145
|
+
return body.filter(isProtocolStmt).map((s) => stripQuotes(s.value));
|
|
146
|
+
}
|
|
147
|
+
/** Return all ParameterDecl nodes from `body`. */
|
|
148
|
+
export function getParameters(body) {
|
|
149
|
+
return body.filter(isParameterDecl);
|
|
150
|
+
}
|
|
151
|
+
/** Return all RouteStmt nodes from `body`. */
|
|
152
|
+
export function getRoutes(body) {
|
|
153
|
+
return body.filter(isRouteStmt);
|
|
154
|
+
}
|
|
155
|
+
// ---------------------------------------------------------------------------
|
|
156
|
+
// Relationship helpers
|
|
157
|
+
// ---------------------------------------------------------------------------
|
|
158
|
+
/** Return all ServiceRefStmt nodes from `body`. */
|
|
159
|
+
export function getServiceRefs(body) {
|
|
160
|
+
return body.filter(isServiceRefStmt);
|
|
161
|
+
}
|
|
162
|
+
/** Return all DomainRefStmt nodes from `body`. */
|
|
163
|
+
export function getDomainRefs(body) {
|
|
164
|
+
return body.filter(isDomainRefStmt);
|
|
165
|
+
}
|
|
166
|
+
/** Return all ContainerRefStmt nodes from `body`. */
|
|
167
|
+
export function getContainerRefs(body) {
|
|
168
|
+
return body.filter(isContainerRefStmt);
|
|
169
|
+
}
|
|
170
|
+
// ---------------------------------------------------------------------------
|
|
171
|
+
// Container body helpers
|
|
172
|
+
// ---------------------------------------------------------------------------
|
|
173
|
+
/** Return the first ContainerTypeStmt value from `body`, or `undefined`. */
|
|
174
|
+
export function getContainerType(body) {
|
|
175
|
+
const stmt = body.find(isContainerTypeStmt);
|
|
176
|
+
return stmt ? stmt.value : undefined;
|
|
177
|
+
}
|
|
178
|
+
/** Return the first TechnologyStmt value (quotes stripped) from `body`, or `undefined`. */
|
|
179
|
+
export function getTechnology(body) {
|
|
180
|
+
const stmt = body.find(isTechnologyStmt);
|
|
181
|
+
return stmt ? stripQuotes(stmt.value) : undefined;
|
|
182
|
+
}
|
|
183
|
+
/** Return the first AuthoritativeStmt value from `body`, or `undefined`. */
|
|
184
|
+
export function getAuthoritative(body) {
|
|
185
|
+
const stmt = body.find(isAuthoritativeStmt);
|
|
186
|
+
return stmt ? stmt.value : undefined;
|
|
187
|
+
}
|
|
188
|
+
/** Return the first AccessModeStmt value from `body`, or `undefined`. */
|
|
189
|
+
export function getAccessMode(body) {
|
|
190
|
+
const stmt = body.find(isAccessModeStmt);
|
|
191
|
+
return stmt ? stmt.value : undefined;
|
|
192
|
+
}
|
|
193
|
+
/** Return the first ClassificationStmt value from `body`, or `undefined`. */
|
|
194
|
+
export function getClassification(body) {
|
|
195
|
+
const stmt = body.find(isClassificationStmt);
|
|
196
|
+
return stmt ? stmt.value : undefined;
|
|
197
|
+
}
|
|
198
|
+
/** Return the first ResidencyStmt value (quotes stripped) from `body`, or `undefined`. */
|
|
199
|
+
export function getResidency(body) {
|
|
200
|
+
const stmt = body.find(isResidencyStmt);
|
|
201
|
+
return stmt ? stripQuotes(stmt.value) : undefined;
|
|
202
|
+
}
|
|
203
|
+
/** Return the first RetentionStmt value (quotes stripped) from `body`, or `undefined`. */
|
|
204
|
+
export function getRetention(body) {
|
|
205
|
+
const stmt = body.find(isRetentionStmt);
|
|
206
|
+
return stmt ? stripQuotes(stmt.value) : undefined;
|
|
207
|
+
}
|
|
208
|
+
// ---------------------------------------------------------------------------
|
|
209
|
+
// Data-product body helpers
|
|
210
|
+
// ---------------------------------------------------------------------------
|
|
211
|
+
/** Return all InputStmt nodes from `body`. */
|
|
212
|
+
export function getInputs(body) {
|
|
213
|
+
return body.filter(isInputStmt);
|
|
214
|
+
}
|
|
215
|
+
/** Return all OutputStmt nodes from `body`. */
|
|
216
|
+
export function getOutputs(body) {
|
|
217
|
+
return body.filter(isOutputStmt);
|
|
218
|
+
}
|
|
219
|
+
// ---------------------------------------------------------------------------
|
|
220
|
+
// Flow body helpers
|
|
221
|
+
// ---------------------------------------------------------------------------
|
|
222
|
+
/** Return all FlowEntryChain nodes from `body`. */
|
|
223
|
+
export function getFlowEntryChains(body) {
|
|
224
|
+
return body.filter(isFlowEntryChain);
|
|
225
|
+
}
|
|
226
|
+
/** Return all FlowWhenBlock nodes from `body`. */
|
|
227
|
+
export function getFlowWhenBlocks(body) {
|
|
228
|
+
return body.filter(isFlowWhenBlock);
|
|
229
|
+
}
|
|
230
|
+
// ---------------------------------------------------------------------------
|
|
231
|
+
// Sends / Receives body helpers
|
|
232
|
+
// ---------------------------------------------------------------------------
|
|
233
|
+
/** Return the first ToClause from `body`, or `undefined`. */
|
|
234
|
+
export function getToClause(body) {
|
|
235
|
+
return body.find(isToClause);
|
|
236
|
+
}
|
|
237
|
+
/** Return the first FromClause from `body`, or `undefined`. */
|
|
238
|
+
export function getFromClause(body) {
|
|
239
|
+
return body.find(isFromClause);
|
|
240
|
+
}
|
|
241
|
+
//# sourceMappingURL=ast-utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ast-utils.js","sourceRoot":"","sources":["../src/ast-utils.ts"],"names":[],"mappings":"AACA,OAAO,EACL,aAAa,EACb,UAAU,EACV,aAAa,EACb,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,eAAe,EACf,cAAc,EACd,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,cAAc,EACd,aAAa,EACb,oBAAoB,EACpB,WAAW,EACX,cAAc,EACd,cAAc,EACd,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,eAAe,EACf,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EACpB,eAAe,EACf,eAAe,EACf,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,UAAU,EACV,YAAY,GACb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