@prisma/orm-framework 8.0.0-rc.21-dev.6 → 8.0.0-rc.21-dev.7
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/{authoring-D75oR8Nt.d.mts → authoring-BKOoGNxH.d.mts} +56 -4
- package/dist/authoring-BKOoGNxH.d.mts.map +1 -0
- package/dist/{authoring-4wc_1ETR.mjs → authoring-CcfXu8Dz.mjs} +377 -31
- package/dist/authoring-CcfXu8Dz.mjs.map +1 -0
- package/dist/{framework-authoring-ebqZ8M_M-Bdi8MutX.d.mts → authoring-type-choice-CHcRX0RP-CkG1L8a9.d.mts} +111 -27
- package/dist/authoring-type-choice-CHcRX0RP-CkG1L8a9.d.mts.map +1 -0
- package/dist/{binder-BszqDG1t-pSH-fXt5.d.mts → binder-CMy3WM5A-DRrDzBAq.d.mts} +35 -17
- package/dist/{binder-BszqDG1t-pSH-fXt5.d.mts.map → binder-CMy3WM5A-DRrDzBAq.d.mts.map} +1 -1
- package/dist/{components-CHWGZJ5q.d.mts → components-BvnVHOK3.d.mts} +3 -3
- package/dist/{components-CHWGZJ5q.d.mts.map → components-BvnVHOK3.d.mts.map} +1 -1
- package/dist/components.d.mts +10 -10
- package/dist/components.mjs +4 -4
- package/dist/components__authoring.d.mts +4 -4
- package/dist/components__authoring.mjs +3 -3
- package/dist/components__components.d.mts +3 -3
- package/dist/components__control.d.mts +3 -3
- package/dist/components__control.mjs +2 -2
- package/dist/components__execution.d.mts +1 -1
- package/dist/components__psl-ast.d.mts +3 -3
- package/dist/{config-types-B0JjhuaX.d.mts → config-types-De3gHQOy.d.mts} +5 -5
- package/dist/{config-types-B0JjhuaX.d.mts.map → config-types-De3gHQOy.d.mts.map} +1 -1
- package/dist/config.d.mts +1 -1
- package/dist/config__config-types.d.mts +1 -1
- package/dist/contract-authoring.d.mts +2 -2
- package/dist/contract-authoring.mjs +3 -3
- package/dist/{control-DLpQIwer.mjs → control-BE0sjzPI.mjs} +6 -2
- package/dist/control-BE0sjzPI.mjs.map +1 -0
- package/dist/{control-BeXOxtXA-DyPvQsqJ.d.mts → control-BeXOxtXA-DOfRFBDx.d.mts} +2 -2
- package/dist/{control-BeXOxtXA-DyPvQsqJ.d.mts.map → control-BeXOxtXA-DOfRFBDx.d.mts.map} +1 -1
- package/dist/{control-BrO2h8ed.d.mts → control-DanUY6NX.d.mts} +5 -5
- package/dist/{control-BrO2h8ed.d.mts.map → control-DanUY6NX.d.mts.map} +1 -1
- package/dist/{control-MllEQmML-yjvIIvnf.mjs → control-MllEQmML-BgM0TgK3.mjs} +2 -2
- package/dist/{control-MllEQmML-yjvIIvnf.mjs.map → control-MllEQmML-BgM0TgK3.mjs.map} +1 -1
- package/dist/control-QJnHVB3m.d.mts +1 -0
- package/dist/{declarations-BgUAq1RG-D99LhVXe.mjs → declarations-BgUAq1RG-DvmyJ8LS.mjs} +2 -2
- package/dist/{declarations-BgUAq1RG-D99LhVXe.mjs.map → declarations-BgUAq1RG-DvmyJ8LS.mjs.map} +1 -1
- package/dist/errors.d.mts +4 -4
- package/dist/errors.mjs +3 -3
- package/dist/errors__control.d.mts +2 -2
- package/dist/errors__control.mjs +1 -1
- package/dist/errors__execution.d.mts +1 -1
- package/dist/errors__execution.mjs +1 -1
- package/dist/errors__migration.d.mts +1 -1
- package/dist/errors__migration.mjs +1 -1
- package/dist/{execution-CXXKXfwB.mjs → execution-BkFLjpfc.mjs} +2 -2
- package/dist/{execution-CXXKXfwB.mjs.map → execution-BkFLjpfc.mjs.map} +1 -1
- package/dist/{execution-Cgkrs6UV.d.mts → execution-C_12rfIR.d.mts} +2 -2
- package/dist/{execution-Cgkrs6UV.d.mts.map → execution-C_12rfIR.d.mts.map} +1 -1
- package/dist/{execution-BhFeCTkt.d.mts → execution-CyddhERj.d.mts} +2 -2
- package/dist/{execution-BhFeCTkt.d.mts.map → execution-CyddhERj.d.mts.map} +1 -1
- package/dist/{expressions-CMQzbnHk-Db8YJA0B.mjs → expressions-CMQzbnHk-B7zBWJ0c.mjs} +2 -2
- package/dist/{expressions-CMQzbnHk-Db8YJA0B.mjs.map → expressions-CMQzbnHk-B7zBWJ0c.mjs.map} +1 -1
- package/dist/{framework-components-BqHA1V92-D_nUDFf9.d.mts → framework-components-GBAmsfWO-DUJQpMpU.d.mts} +3 -3
- package/dist/{framework-components-BqHA1V92-D_nUDFf9.d.mts.map → framework-components-GBAmsfWO-DUJQpMpU.d.mts.map} +1 -1
- package/dist/{migration-CMMT3vcR.d.mts → migration-B7ur91Et.d.mts} +2 -2
- package/dist/{migration-CMMT3vcR.d.mts.map → migration-B7ur91Et.d.mts.map} +1 -1
- package/dist/{migration-B1TEF2ij.mjs → migration-CQufZA_7.mjs} +2 -2
- package/dist/{migration-B1TEF2ij.mjs.map → migration-CQufZA_7.mjs.map} +1 -1
- package/dist/{parse-bZgfjovA-CaBuZnet.mjs → parse-bZgfjovA-Vk8LMIu5.mjs} +3 -3
- package/dist/{parse-bZgfjovA-CaBuZnet.mjs.map → parse-bZgfjovA-Vk8LMIu5.mjs.map} +1 -1
- package/dist/{parse-djL5wker-Bf4uawTE.d.mts → parse-djL5wker-4_2Cqwev.d.mts} +6 -6
- package/dist/{parse-djL5wker-Bf4uawTE.d.mts.map → parse-djL5wker-4_2Cqwev.d.mts.map} +1 -1
- package/dist/{psl-ast-0oMzInxd-BjKbrwNk.d.mts → psl-ast-B4ZxpQdr-DT9LRqBC.d.mts} +3 -3
- package/dist/{psl-ast-0oMzInxd-BjKbrwNk.d.mts.map → psl-ast-B4ZxpQdr-DT9LRqBC.d.mts.map} +1 -1
- package/dist/psl-ast-Dsf1-QLK.d.mts +2 -0
- package/dist/psl-parser.d.mts +22 -13
- package/dist/psl-parser.d.mts.map +1 -1
- package/dist/psl-parser.mjs +29 -43
- package/dist/psl-parser.mjs.map +1 -1
- package/dist/psl-parser__format.d.mts +1 -1
- package/dist/psl-parser__format.mjs +3 -3
- package/dist/psl-parser__interpret.d.mts +64 -22
- package/dist/psl-parser__interpret.d.mts.map +1 -1
- package/dist/psl-parser__interpret.mjs +135 -140
- package/dist/psl-parser__interpret.mjs.map +1 -1
- package/dist/psl-parser__syntax.d.mts +1 -1
- package/dist/psl-parser__syntax.mjs +3 -3
- package/dist/psl-printer.d.mts +4 -4
- package/dist/psl-printer.mjs +1 -1
- package/dist/{temporal-type-aliases-C9tIy4rv-Dsun86cY.mjs → temporal-type-aliases-BI3SL5iB-DIP8j4Gv.mjs} +383 -172
- package/dist/temporal-type-aliases-BI3SL5iB-DIP8j4Gv.mjs.map +1 -0
- package/dist/{temporal-type-aliases-BIiamFSH-DLxWO37e.d.mts → temporal-type-aliases-D5QWPhYa-BNKiNvmd.d.mts} +3 -3
- package/dist/{temporal-type-aliases-BIiamFSH-DLxWO37e.d.mts.map → temporal-type-aliases-D5QWPhYa-BNKiNvmd.d.mts.map} +1 -1
- package/dist/type-constructor-calls-Bfg5ojed-DYHnzC9z.mjs +538 -0
- package/dist/type-constructor-calls-Bfg5ojed-DYHnzC9z.mjs.map +1 -0
- package/package.json +15 -15
- package/dist/authoring-4wc_1ETR.mjs.map +0 -1
- package/dist/authoring-D75oR8Nt.d.mts.map +0 -1
- package/dist/control-COPuZO7V.d.mts +0 -1
- package/dist/control-DLpQIwer.mjs.map +0 -1
- package/dist/framework-authoring-ebqZ8M_M-Bdi8MutX.d.mts.map +0 -1
- package/dist/psl-ast-DjTRQDW7.d.mts +0 -2
- package/dist/temporal-type-aliases-C9tIy4rv-Dsun86cY.mjs.map +0 -1
- package/dist/type-constructor-calls-CNd1Xlw2-CfYTYNSm.mjs +0 -306
- package/dist/type-constructor-calls-CNd1Xlw2-CfYTYNSm.mjs.map +0 -1
|
@@ -1,306 +0,0 @@
|
|
|
1
|
-
import { t as InternalError } from "./internal-error-ChGYPVpq-DhUD05u0.mjs";
|
|
2
|
-
import { n as notOk } from "./result-8OXF26MN.mjs";
|
|
3
|
-
import { h as describeTaggedLiteralFailure } from "./temporal-type-aliases-C9tIy4rv-Dsun86cY.mjs";
|
|
4
|
-
import { S as readWrittenValueAs, l as describeExpected, t as admittedForms } from "./authoring-4wc_1ETR.mjs";
|
|
5
|
-
import { C as printSyntax, a as IdentifierAst, c as ObjectLiteralExprAst, d as StringLiteralExprAst, i as FunctionCallAst, m as TaggedLiteralExprAst, o as NumberLiteralExprAst, r as BooleanLiteralExprAst, t as ArrayLiteralAst } from "./expressions-CMQzbnHk-Db8YJA0B.mjs";
|
|
6
|
-
//#region ../../../1-framework/2-authoring/psl-parser/dist/contributed-type-scope-CbBzMSUB.mjs
|
|
7
|
-
function diagnosticSource(sources, node) {
|
|
8
|
-
return {
|
|
9
|
-
sources,
|
|
10
|
-
node,
|
|
11
|
-
at(span) {
|
|
12
|
-
const sourceFile = sources.sourceFileFor(node);
|
|
13
|
-
const range = span === void 0 ? {
|
|
14
|
-
start: sourceFile.positionAt(node.offset),
|
|
15
|
-
end: sourceFile.positionAt(node.endOffset)
|
|
16
|
-
} : sourceFile.pslSpanToRange(span);
|
|
17
|
-
return {
|
|
18
|
-
filename: sourceFile.filename,
|
|
19
|
-
range
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
function diagnosticFromSpan(diagnostic, source) {
|
|
25
|
-
if (diagnostic.span === void 0) throw new InternalError("Owned PSL diagnostic has no span");
|
|
26
|
-
return {
|
|
27
|
-
code: diagnostic.code,
|
|
28
|
-
message: diagnostic.message,
|
|
29
|
-
...source.at(diagnostic.span),
|
|
30
|
-
...diagnostic.data === void 0 ? {} : { data: diagnostic.data }
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
function mapPslDiagnostics(diagnostics, sources) {
|
|
34
|
-
return diagnostics.map(({ filename, code, message, range, data }) => ({
|
|
35
|
-
code,
|
|
36
|
-
message,
|
|
37
|
-
sourceId: filename,
|
|
38
|
-
span: sources.sourceFileNamed(filename).rangeToPslSpan(range),
|
|
39
|
-
...data === void 0 ? {} : { data }
|
|
40
|
-
}));
|
|
41
|
-
}
|
|
42
|
-
function createPslDiagnosticCollector(sources) {
|
|
43
|
-
const entries = [];
|
|
44
|
-
return {
|
|
45
|
-
get length() {
|
|
46
|
-
return entries.length;
|
|
47
|
-
},
|
|
48
|
-
push(...diagnostics) {
|
|
49
|
-
for (const diagnostic of diagnostics) entries.push({
|
|
50
|
-
kind: "psl",
|
|
51
|
-
diagnostic
|
|
52
|
-
});
|
|
53
|
-
},
|
|
54
|
-
pushUnlocated(...diagnostics) {
|
|
55
|
-
for (const diagnostic of diagnostics) entries.push({
|
|
56
|
-
kind: "psl",
|
|
57
|
-
diagnostic,
|
|
58
|
-
omitSpan: true
|
|
59
|
-
});
|
|
60
|
-
},
|
|
61
|
-
pushExternal(...diagnostics) {
|
|
62
|
-
for (const diagnostic of diagnostics) entries.push({
|
|
63
|
-
kind: "external",
|
|
64
|
-
diagnostic
|
|
65
|
-
});
|
|
66
|
-
},
|
|
67
|
-
toExternal() {
|
|
68
|
-
return entries.flatMap((entry) => {
|
|
69
|
-
if (entry.kind === "external") return [entry.diagnostic];
|
|
70
|
-
if (entry.omitSpan) {
|
|
71
|
-
const { code, message, filename, data } = entry.diagnostic;
|
|
72
|
-
return [{
|
|
73
|
-
code,
|
|
74
|
-
message,
|
|
75
|
-
sourceId: filename,
|
|
76
|
-
...data === void 0 ? {} : { data }
|
|
77
|
-
}];
|
|
78
|
-
}
|
|
79
|
-
return mapPslDiagnostics([entry.diagnostic], sources);
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
function readResolvedAttribute(attribute, sources) {
|
|
85
|
-
return {
|
|
86
|
-
name: attributeName(attribute.name()),
|
|
87
|
-
args: readResolvedArgList(attribute.argList(), sources),
|
|
88
|
-
span: nodePslSpan(attribute.syntax, sources),
|
|
89
|
-
node: attribute
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
function readResolvedAttributes(attributes, sources) {
|
|
93
|
-
return Array.from(attributes, (attribute) => readResolvedAttribute(attribute, sources));
|
|
94
|
-
}
|
|
95
|
-
function readResolvedConstructorCall(annotation, sources) {
|
|
96
|
-
const argList = annotation?.argList();
|
|
97
|
-
if (annotation === void 0 || argList === void 0) return void 0;
|
|
98
|
-
return {
|
|
99
|
-
path: annotation.name()?.path() ?? [],
|
|
100
|
-
args: readResolvedArgList(argList, sources),
|
|
101
|
-
span: nodePslSpan(annotation.syntax, sources)
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
function readResolvedArgList(argList, sources) {
|
|
105
|
-
if (argList === void 0) return [];
|
|
106
|
-
const args = [];
|
|
107
|
-
for (const arg of argList.args()) {
|
|
108
|
-
const name = arg.name()?.name();
|
|
109
|
-
const expression = arg.value();
|
|
110
|
-
args.push({
|
|
111
|
-
kind: name !== void 0 ? "named" : "positional",
|
|
112
|
-
...name !== void 0 ? { name } : {},
|
|
113
|
-
value: renderExpression(expression),
|
|
114
|
-
...expression !== void 0 ? { expression } : {},
|
|
115
|
-
span: nodePslSpan(arg.syntax, sources),
|
|
116
|
-
node: arg
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
return args;
|
|
120
|
-
}
|
|
121
|
-
function attributeName(name) {
|
|
122
|
-
return name?.path().join(".") ?? "";
|
|
123
|
-
}
|
|
124
|
-
function renderExpression(expression) {
|
|
125
|
-
if (expression === void 0) return "";
|
|
126
|
-
return printSyntax(expression.syntax).trim();
|
|
127
|
-
}
|
|
128
|
-
function nodePslSpan(node, sources) {
|
|
129
|
-
const sourceFile = sources.sourceFileFor(node);
|
|
130
|
-
const start = node.offset;
|
|
131
|
-
const end = start + node.green.textLength;
|
|
132
|
-
return {
|
|
133
|
-
start: sourceFile.offsetToPslPosition(start),
|
|
134
|
-
end: sourceFile.offsetToPslPosition(end)
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
/** Unsupported-top-level-block diagnostics are anchored to the keyword token. */
|
|
138
|
-
function keywordPslSpan(node, keyword, sources) {
|
|
139
|
-
const sourceFile = sources.sourceFileFor(node);
|
|
140
|
-
const start = node.offset;
|
|
141
|
-
const end = start + keyword.length;
|
|
142
|
-
return {
|
|
143
|
-
start: sourceFile.offsetToPslPosition(start),
|
|
144
|
-
end: sourceFile.offsetToPslPosition(end)
|
|
145
|
-
};
|
|
146
|
-
}
|
|
147
|
-
const AN_EXPRESSION = {
|
|
148
|
-
ok: false,
|
|
149
|
-
reason: "not-a-literal",
|
|
150
|
-
found: "an expression"
|
|
151
|
-
};
|
|
152
|
-
function written(value) {
|
|
153
|
-
return {
|
|
154
|
-
ok: true,
|
|
155
|
-
written: value
|
|
156
|
-
};
|
|
157
|
-
}
|
|
158
|
-
/** Reads a PSL literal expression as a `WrittenScalar`, for a position that takes a value of a data type. ADR 254. */
|
|
159
|
-
function readWrittenScalar(expression) {
|
|
160
|
-
const syntax = expression.syntax;
|
|
161
|
-
const string = StringLiteralExprAst.cast(syntax)?.value();
|
|
162
|
-
if (string !== void 0) return written({
|
|
163
|
-
kind: "string",
|
|
164
|
-
text: string
|
|
165
|
-
});
|
|
166
|
-
const number = NumberLiteralExprAst.cast(syntax);
|
|
167
|
-
if (number !== void 0) {
|
|
168
|
-
const text = number.token()?.text;
|
|
169
|
-
return text === void 0 ? AN_EXPRESSION : written({
|
|
170
|
-
kind: "number",
|
|
171
|
-
text
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
const boolean = BooleanLiteralExprAst.cast(syntax)?.value();
|
|
175
|
-
if (boolean !== void 0) return written({
|
|
176
|
-
kind: "boolean",
|
|
177
|
-
value: boolean
|
|
178
|
-
});
|
|
179
|
-
const tagged = TaggedLiteralExprAst.cast(syntax);
|
|
180
|
-
if (tagged !== void 0) {
|
|
181
|
-
const canonicalization = tagged.canonicalization();
|
|
182
|
-
return canonicalization.ok ? written({
|
|
183
|
-
kind: "tag",
|
|
184
|
-
tag: tagged.tagName(),
|
|
185
|
-
text: canonicalization.text
|
|
186
|
-
}) : {
|
|
187
|
-
ok: false,
|
|
188
|
-
reason: canonicalization.reason
|
|
189
|
-
};
|
|
190
|
-
}
|
|
191
|
-
if (IdentifierAst.cast(syntax) !== void 0) return {
|
|
192
|
-
ok: false,
|
|
193
|
-
reason: "not-a-literal",
|
|
194
|
-
found: "an identifier"
|
|
195
|
-
};
|
|
196
|
-
if (FunctionCallAst.cast(syntax) !== void 0) return {
|
|
197
|
-
ok: false,
|
|
198
|
-
reason: "not-a-literal",
|
|
199
|
-
found: "a function call"
|
|
200
|
-
};
|
|
201
|
-
if (ArrayLiteralAst.cast(syntax) !== void 0) return {
|
|
202
|
-
ok: false,
|
|
203
|
-
reason: "not-a-literal",
|
|
204
|
-
found: "a list"
|
|
205
|
-
};
|
|
206
|
-
if (ObjectLiteralExprAst.cast(syntax) !== void 0) return {
|
|
207
|
-
ok: false,
|
|
208
|
-
reason: "not-a-literal",
|
|
209
|
-
found: "an object"
|
|
210
|
-
};
|
|
211
|
-
return AN_EXPRESSION;
|
|
212
|
-
}
|
|
213
|
-
function isContributedTypeDescriptor(value) {
|
|
214
|
-
return "kind" in value && (value.kind === "typeConstructor" || value.kind === "typeAlias");
|
|
215
|
-
}
|
|
216
|
-
/** The codec a column typed by `descriptor` is stored with. */
|
|
217
|
-
function contributedTypeCodecId(descriptor) {
|
|
218
|
-
return descriptor.kind === "typeAlias" ? descriptor.output.type.codecId : descriptor.output.codecId;
|
|
219
|
-
}
|
|
220
|
-
/** The descriptor at `path` in `namespace`, or `undefined` when none is contributed there. */
|
|
221
|
-
function contributedTypeAt(namespace, path) {
|
|
222
|
-
const [name, ...rest] = path;
|
|
223
|
-
if (name === void 0 || !Object.hasOwn(namespace, name)) return void 0;
|
|
224
|
-
const value = namespace[name];
|
|
225
|
-
if (value === void 0) return void 0;
|
|
226
|
-
if (isContributedTypeDescriptor(value)) return rest.length === 0 ? value : void 0;
|
|
227
|
-
return contributedTypeAt(value, rest);
|
|
228
|
-
}
|
|
229
|
-
function contributedTypeScope(contributedTypes) {
|
|
230
|
-
const members = collect(contributedTypes, []);
|
|
231
|
-
return {
|
|
232
|
-
lookup(name) {
|
|
233
|
-
return members.get(name);
|
|
234
|
-
},
|
|
235
|
-
entries() {
|
|
236
|
-
return members.entries();
|
|
237
|
-
}
|
|
238
|
-
};
|
|
239
|
-
}
|
|
240
|
-
function collect(namespace, prefix) {
|
|
241
|
-
const members = /* @__PURE__ */ new Map();
|
|
242
|
-
for (const [name, value] of Object.entries(namespace)) {
|
|
243
|
-
const path = [...prefix, name];
|
|
244
|
-
members.set(name, isContributedTypeDescriptor(value) ? {
|
|
245
|
-
kind: "contributedType",
|
|
246
|
-
name,
|
|
247
|
-
path,
|
|
248
|
-
descriptor: value
|
|
249
|
-
} : {
|
|
250
|
-
kind: "contributedNamespace",
|
|
251
|
-
name,
|
|
252
|
-
path,
|
|
253
|
-
members: collect(value, path)
|
|
254
|
-
});
|
|
255
|
-
}
|
|
256
|
-
return members;
|
|
257
|
-
}
|
|
258
|
-
//#endregion
|
|
259
|
-
//#region ../../../1-framework/2-authoring/psl-parser/dist/type-constructor-calls-CNd1Xlw2.mjs
|
|
260
|
-
const TAGGED_LITERAL_FAILURE_CODES = {
|
|
261
|
-
nul: "PSL_TAGGED_LITERAL_NUL",
|
|
262
|
-
"too-large": "PSL_TAGGED_LITERAL_TOO_LARGE"
|
|
263
|
-
};
|
|
264
|
-
/**
|
|
265
|
-
* Reads `expression` as a value of `dataType`: the literal is read through the authoring entry for its syntax, then taken into `dataType` directly or through a cast it declares. The read every argument typed by a data type takes, in an attribute or a type constructor. ADR 254.
|
|
266
|
-
*/
|
|
267
|
-
function readExpressionAs(support, dataType, expression) {
|
|
268
|
-
if (!support.lookup.has(dataType)) throw new InternalError(`An argument receives data type "${dataType}", which this stack does not register.`);
|
|
269
|
-
const forms = admittedForms(support, [dataType]);
|
|
270
|
-
if (forms.length === 0) throw new InternalError(`An argument receives data type "${dataType}", which nothing in this stack writes.`);
|
|
271
|
-
const literal = readWrittenScalar(expression);
|
|
272
|
-
if (!literal.ok) return literal.reason === "not-a-literal" ? notOk({
|
|
273
|
-
code: "PSL_INVALID_ATTRIBUTE_SYNTAX",
|
|
274
|
-
message: `${describeExpected(forms)}; got ${literal.found}`
|
|
275
|
-
}) : notOk({
|
|
276
|
-
code: TAGGED_LITERAL_FAILURE_CODES[literal.reason],
|
|
277
|
-
message: describeTaggedLiteralFailure(literal.reason)
|
|
278
|
-
});
|
|
279
|
-
return readWrittenValueAs(support, dataType, literal.written);
|
|
280
|
-
}
|
|
281
|
-
function isBareTypeConstructor(descriptor) {
|
|
282
|
-
return descriptor.entityRefArg === void 0 && (descriptor.args ?? []).every((arg) => arg.optional === true);
|
|
283
|
-
}
|
|
284
|
-
function argumentSpelling(descriptor) {
|
|
285
|
-
const args = descriptor.args ?? [];
|
|
286
|
-
const reference = descriptor.entityRefArg;
|
|
287
|
-
const count = Math.max(args.length, (reference?.index ?? -1) + 1);
|
|
288
|
-
const names = [];
|
|
289
|
-
for (let index = 0; index < count; index++) {
|
|
290
|
-
const arg = args[index];
|
|
291
|
-
if (index === reference?.index) names.push(reference.entityKind);
|
|
292
|
-
else if (arg !== void 0 && arg.optional !== true) names.push(arg.name ?? `argument${index + 1}`);
|
|
293
|
-
}
|
|
294
|
-
return names.join(", ");
|
|
295
|
-
}
|
|
296
|
-
function reportTypeConstructorNotCalled(input) {
|
|
297
|
-
input.diagnostics.push({
|
|
298
|
-
code: "PSL_TYPE_CONSTRUCTOR_NOT_CALLED",
|
|
299
|
-
message: `${input.entityLabel} uses type constructor "${input.path}" without arguments. Write ${input.path}(${argumentSpelling(input.descriptor)}).`,
|
|
300
|
-
...input.source.at(input.span)
|
|
301
|
-
});
|
|
302
|
-
}
|
|
303
|
-
//#endregion
|
|
304
|
-
export { contributedTypeCodecId as a, diagnosticFromSpan as c, mapPslDiagnostics as d, nodePslSpan as f, readWrittenScalar as g, readResolvedConstructorCall as h, contributedTypeAt as i, diagnosticSource as l, readResolvedAttributes as m, readExpressionAs as n, contributedTypeScope as o, readResolvedAttribute as p, reportTypeConstructorNotCalled as r, createPslDiagnosticCollector as s, isBareTypeConstructor as t, keywordPslSpan as u };
|
|
305
|
-
|
|
306
|
-
//# sourceMappingURL=type-constructor-calls-CNd1Xlw2-CfYTYNSm.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type-constructor-calls-CNd1Xlw2-CfYTYNSm.mjs","names":[],"sources":["../../../../1-framework/2-authoring/psl-parser/dist/contributed-type-scope-CbBzMSUB.mjs","../../../../1-framework/2-authoring/psl-parser/dist/type-constructor-calls-CNd1Xlw2.mjs"],"sourcesContent":["import { a as NumberLiteralExprAst, i as FunctionCallAst, l as StringLiteralExprAst, m as IdentifierAst, r as BooleanLiteralExprAst, s as ObjectLiteralExprAst, t as ArrayLiteralAst, u as TaggedLiteralExprAst, y as printSyntax } from \"./expressions-CMQzbnHk.mjs\";\nimport { InternalError } from \"@internal/utils/internal-error\";\n//#region src/diagnostic.ts\nfunction diagnosticSource(sources, node) {\n\treturn {\n\t\tsources,\n\t\tnode,\n\t\tat(span) {\n\t\t\tconst sourceFile = sources.sourceFileFor(node);\n\t\t\tconst range = span === void 0 ? {\n\t\t\t\tstart: sourceFile.positionAt(node.offset),\n\t\t\t\tend: sourceFile.positionAt(node.endOffset)\n\t\t\t} : sourceFile.pslSpanToRange(span);\n\t\t\treturn {\n\t\t\t\tfilename: sourceFile.filename,\n\t\t\t\trange\n\t\t\t};\n\t\t}\n\t};\n}\nfunction diagnosticFromSpan(diagnostic, source) {\n\tif (diagnostic.span === void 0) throw new InternalError(\"Owned PSL diagnostic has no span\");\n\treturn {\n\t\tcode: diagnostic.code,\n\t\tmessage: diagnostic.message,\n\t\t...source.at(diagnostic.span),\n\t\t...diagnostic.data === void 0 ? {} : { data: diagnostic.data }\n\t};\n}\nfunction mapPslDiagnostics(diagnostics, sources) {\n\treturn diagnostics.map(({ filename, code, message, range, data }) => ({\n\t\tcode,\n\t\tmessage,\n\t\tsourceId: filename,\n\t\tspan: sources.sourceFileNamed(filename).rangeToPslSpan(range),\n\t\t...data === void 0 ? {} : { data }\n\t}));\n}\nfunction createPslDiagnosticCollector(sources) {\n\tconst entries = [];\n\treturn {\n\t\tget length() {\n\t\t\treturn entries.length;\n\t\t},\n\t\tpush(...diagnostics) {\n\t\t\tfor (const diagnostic of diagnostics) entries.push({\n\t\t\t\tkind: \"psl\",\n\t\t\t\tdiagnostic\n\t\t\t});\n\t\t},\n\t\tpushUnlocated(...diagnostics) {\n\t\t\tfor (const diagnostic of diagnostics) entries.push({\n\t\t\t\tkind: \"psl\",\n\t\t\t\tdiagnostic,\n\t\t\t\tomitSpan: true\n\t\t\t});\n\t\t},\n\t\tpushExternal(...diagnostics) {\n\t\t\tfor (const diagnostic of diagnostics) entries.push({\n\t\t\t\tkind: \"external\",\n\t\t\t\tdiagnostic\n\t\t\t});\n\t\t},\n\t\ttoExternal() {\n\t\t\treturn entries.flatMap((entry) => {\n\t\t\t\tif (entry.kind === \"external\") return [entry.diagnostic];\n\t\t\t\tif (entry.omitSpan) {\n\t\t\t\t\tconst { code, message, filename, data } = entry.diagnostic;\n\t\t\t\t\treturn [{\n\t\t\t\t\t\tcode,\n\t\t\t\t\t\tmessage,\n\t\t\t\t\t\tsourceId: filename,\n\t\t\t\t\t\t...data === void 0 ? {} : { data }\n\t\t\t\t\t}];\n\t\t\t\t}\n\t\t\t\treturn mapPslDiagnostics([entry.diagnostic], sources);\n\t\t\t});\n\t\t}\n\t};\n}\n//#endregion\n//#region src/resolve.ts\nfunction readResolvedAttribute(attribute, sources) {\n\treturn {\n\t\tname: attributeName(attribute.name()),\n\t\targs: readResolvedArgList(attribute.argList(), sources),\n\t\tspan: nodePslSpan(attribute.syntax, sources),\n\t\tnode: attribute\n\t};\n}\nfunction readResolvedAttributes(attributes, sources) {\n\treturn Array.from(attributes, (attribute) => readResolvedAttribute(attribute, sources));\n}\nfunction readResolvedConstructorCall(annotation, sources) {\n\tconst argList = annotation?.argList();\n\tif (annotation === void 0 || argList === void 0) return void 0;\n\treturn {\n\t\tpath: annotation.name()?.path() ?? [],\n\t\targs: readResolvedArgList(argList, sources),\n\t\tspan: nodePslSpan(annotation.syntax, sources)\n\t};\n}\nfunction readResolvedArgList(argList, sources) {\n\tif (argList === void 0) return [];\n\tconst args = [];\n\tfor (const arg of argList.args()) {\n\t\tconst name = arg.name()?.name();\n\t\tconst expression = arg.value();\n\t\targs.push({\n\t\t\tkind: name !== void 0 ? \"named\" : \"positional\",\n\t\t\t...name !== void 0 ? { name } : {},\n\t\t\tvalue: renderExpression(expression),\n\t\t\t...expression !== void 0 ? { expression } : {},\n\t\t\tspan: nodePslSpan(arg.syntax, sources),\n\t\t\tnode: arg\n\t\t});\n\t}\n\treturn args;\n}\nfunction attributeName(name) {\n\treturn name?.path().join(\".\") ?? \"\";\n}\nfunction renderExpression(expression) {\n\tif (expression === void 0) return \"\";\n\treturn printSyntax(expression.syntax).trim();\n}\nfunction nodePslSpan(node, sources) {\n\tconst sourceFile = sources.sourceFileFor(node);\n\tconst start = node.offset;\n\tconst end = start + node.green.textLength;\n\treturn {\n\t\tstart: sourceFile.offsetToPslPosition(start),\n\t\tend: sourceFile.offsetToPslPosition(end)\n\t};\n}\n/** Unsupported-top-level-block diagnostics are anchored to the keyword token. */\nfunction keywordPslSpan(node, keyword, sources) {\n\tconst sourceFile = sources.sourceFileFor(node);\n\tconst start = node.offset;\n\tconst end = start + keyword.length;\n\treturn {\n\t\tstart: sourceFile.offsetToPslPosition(start),\n\t\tend: sourceFile.offsetToPslPosition(end)\n\t};\n}\n//#endregion\n//#region src/written-scalar.ts\nconst AN_EXPRESSION = {\n\tok: false,\n\treason: \"not-a-literal\",\n\tfound: \"an expression\"\n};\nfunction written(value) {\n\treturn {\n\t\tok: true,\n\t\twritten: value\n\t};\n}\n/** Reads a PSL literal expression as a `WrittenScalar`, for a position that takes a value of a data type. ADR 254. */\nfunction readWrittenScalar(expression) {\n\tconst syntax = expression.syntax;\n\tconst string = StringLiteralExprAst.cast(syntax)?.value();\n\tif (string !== void 0) return written({\n\t\tkind: \"string\",\n\t\ttext: string\n\t});\n\tconst number = NumberLiteralExprAst.cast(syntax);\n\tif (number !== void 0) {\n\t\tconst text = number.token()?.text;\n\t\treturn text === void 0 ? AN_EXPRESSION : written({\n\t\t\tkind: \"number\",\n\t\t\ttext\n\t\t});\n\t}\n\tconst boolean = BooleanLiteralExprAst.cast(syntax)?.value();\n\tif (boolean !== void 0) return written({\n\t\tkind: \"boolean\",\n\t\tvalue: boolean\n\t});\n\tconst tagged = TaggedLiteralExprAst.cast(syntax);\n\tif (tagged !== void 0) {\n\t\tconst canonicalization = tagged.canonicalization();\n\t\treturn canonicalization.ok ? written({\n\t\t\tkind: \"tag\",\n\t\t\ttag: tagged.tagName(),\n\t\t\ttext: canonicalization.text\n\t\t}) : {\n\t\t\tok: false,\n\t\t\treason: canonicalization.reason\n\t\t};\n\t}\n\tif (IdentifierAst.cast(syntax) !== void 0) return {\n\t\tok: false,\n\t\treason: \"not-a-literal\",\n\t\tfound: \"an identifier\"\n\t};\n\tif (FunctionCallAst.cast(syntax) !== void 0) return {\n\t\tok: false,\n\t\treason: \"not-a-literal\",\n\t\tfound: \"a function call\"\n\t};\n\tif (ArrayLiteralAst.cast(syntax) !== void 0) return {\n\t\tok: false,\n\t\treason: \"not-a-literal\",\n\t\tfound: \"a list\"\n\t};\n\tif (ObjectLiteralExprAst.cast(syntax) !== void 0) return {\n\t\tok: false,\n\t\treason: \"not-a-literal\",\n\t\tfound: \"an object\"\n\t};\n\treturn AN_EXPRESSION;\n}\n//#endregion\n//#region src/contributed-type-scope.ts\nfunction isContributedTypeDescriptor(value) {\n\treturn \"kind\" in value && (value.kind === \"typeConstructor\" || value.kind === \"typeAlias\");\n}\n/** The codec a column typed by `descriptor` is stored with. */\nfunction contributedTypeCodecId(descriptor) {\n\treturn descriptor.kind === \"typeAlias\" ? descriptor.output.type.codecId : descriptor.output.codecId;\n}\n/** The descriptor at `path` in `namespace`, or `undefined` when none is contributed there. */\nfunction contributedTypeAt(namespace, path) {\n\tconst [name, ...rest] = path;\n\tif (name === void 0 || !Object.hasOwn(namespace, name)) return void 0;\n\tconst value = namespace[name];\n\tif (value === void 0) return void 0;\n\tif (isContributedTypeDescriptor(value)) return rest.length === 0 ? value : void 0;\n\treturn contributedTypeAt(value, rest);\n}\nfunction contributedTypeScope(contributedTypes) {\n\tconst members = collect(contributedTypes, []);\n\treturn {\n\t\tlookup(name) {\n\t\t\treturn members.get(name);\n\t\t},\n\t\tentries() {\n\t\t\treturn members.entries();\n\t\t}\n\t};\n}\nfunction collect(namespace, prefix) {\n\tconst members = /* @__PURE__ */ new Map();\n\tfor (const [name, value] of Object.entries(namespace)) {\n\t\tconst path = [...prefix, name];\n\t\tmembers.set(name, isContributedTypeDescriptor(value) ? {\n\t\t\tkind: \"contributedType\",\n\t\t\tname,\n\t\t\tpath,\n\t\t\tdescriptor: value\n\t\t} : {\n\t\t\tkind: \"contributedNamespace\",\n\t\t\tname,\n\t\t\tpath,\n\t\t\tmembers: collect(value, path)\n\t\t});\n\t}\n\treturn members;\n}\n//#endregion\nexport { keywordPslSpan as a, readResolvedAttributes as c, diagnosticFromSpan as d, diagnosticSource as f, readWrittenScalar as i, readResolvedConstructorCall as l, contributedTypeCodecId as n, nodePslSpan as o, mapPslDiagnostics as p, contributedTypeScope as r, readResolvedAttribute as s, contributedTypeAt as t, createPslDiagnosticCollector as u };\n\n//# sourceMappingURL=contributed-type-scope-CbBzMSUB.mjs.map","import { i as readWrittenScalar } from \"./contributed-type-scope-CbBzMSUB.mjs\";\nimport { admittedForms, describeExpected, readWrittenValueAs } from \"@internal/framework-components/authoring\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { notOk } from \"@internal/utils/result\";\nimport { describeTaggedLiteralFailure } from \"@internal/framework-components/control\";\n//#region src/read-expression-as.ts\nconst TAGGED_LITERAL_FAILURE_CODES = {\n\tnul: \"PSL_TAGGED_LITERAL_NUL\",\n\t\"too-large\": \"PSL_TAGGED_LITERAL_TOO_LARGE\"\n};\n/**\n* Reads `expression` as a value of `dataType`: the literal is read through the authoring entry for its syntax, then taken into `dataType` directly or through a cast it declares. The read every argument typed by a data type takes, in an attribute or a type constructor. ADR 254.\n*/\nfunction readExpressionAs(support, dataType, expression) {\n\tif (!support.lookup.has(dataType)) throw new InternalError(`An argument receives data type \"${dataType}\", which this stack does not register.`);\n\tconst forms = admittedForms(support, [dataType]);\n\tif (forms.length === 0) throw new InternalError(`An argument receives data type \"${dataType}\", which nothing in this stack writes.`);\n\tconst literal = readWrittenScalar(expression);\n\tif (!literal.ok) return literal.reason === \"not-a-literal\" ? notOk({\n\t\tcode: \"PSL_INVALID_ATTRIBUTE_SYNTAX\",\n\t\tmessage: `${describeExpected(forms)}; got ${literal.found}`\n\t}) : notOk({\n\t\tcode: TAGGED_LITERAL_FAILURE_CODES[literal.reason],\n\t\tmessage: describeTaggedLiteralFailure(literal.reason)\n\t});\n\treturn readWrittenValueAs(support, dataType, literal.written);\n}\n//#endregion\n//#region src/type-constructor-calls.ts\nfunction isBareTypeConstructor(descriptor) {\n\treturn descriptor.entityRefArg === void 0 && (descriptor.args ?? []).every((arg) => arg.optional === true);\n}\nfunction argumentSpelling(descriptor) {\n\tconst args = descriptor.args ?? [];\n\tconst reference = descriptor.entityRefArg;\n\tconst count = Math.max(args.length, (reference?.index ?? -1) + 1);\n\tconst names = [];\n\tfor (let index = 0; index < count; index++) {\n\t\tconst arg = args[index];\n\t\tif (index === reference?.index) names.push(reference.entityKind);\n\t\telse if (arg !== void 0 && arg.optional !== true) names.push(arg.name ?? `argument${index + 1}`);\n\t}\n\treturn names.join(\", \");\n}\nfunction reportTypeConstructorNotCalled(input) {\n\tinput.diagnostics.push({\n\t\tcode: \"PSL_TYPE_CONSTRUCTOR_NOT_CALLED\",\n\t\tmessage: `${input.entityLabel} uses type constructor \"${input.path}\" without arguments. Write ${input.path}(${argumentSpelling(input.descriptor)}).`,\n\t\t...input.source.at(input.span)\n\t});\n}\n//#endregion\nexport { reportTypeConstructorNotCalled as n, readExpressionAs as r, isBareTypeConstructor as t };\n\n//# sourceMappingURL=type-constructor-calls-CNd1Xlw2.mjs.map"],"mappings":";;;;;;AAGA,SAAS,iBAAiB,SAAS,MAAM;CACxC,OAAO;EACN;EACA;EACA,GAAG,MAAM;GACR,MAAM,aAAa,QAAQ,cAAc,IAAI;GAC7C,MAAM,QAAQ,SAAS,KAAK,IAAI;IAC/B,OAAO,WAAW,WAAW,KAAK,MAAM;IACxC,KAAK,WAAW,WAAW,KAAK,SAAS;GAC1C,IAAI,WAAW,eAAe,IAAI;GAClC,OAAO;IACN,UAAU,WAAW;IACrB;GACD;EACD;CACD;AACD;AACA,SAAS,mBAAmB,YAAY,QAAQ;CAC/C,IAAI,WAAW,SAAS,KAAK,GAAG,MAAM,IAAI,cAAc,kCAAkC;CAC1F,OAAO;EACN,MAAM,WAAW;EACjB,SAAS,WAAW;EACpB,GAAG,OAAO,GAAG,WAAW,IAAI;EAC5B,GAAG,WAAW,SAAS,KAAK,IAAI,CAAC,IAAI,EAAE,MAAM,WAAW,KAAK;CAC9D;AACD;AACA,SAAS,kBAAkB,aAAa,SAAS;CAChD,OAAO,YAAY,KAAK,EAAE,UAAU,MAAM,SAAS,OAAO,YAAY;EACrE;EACA;EACA,UAAU;EACV,MAAM,QAAQ,gBAAgB,QAAQ,CAAC,CAAC,eAAe,KAAK;EAC5D,GAAG,SAAS,KAAK,IAAI,CAAC,IAAI,EAAE,KAAK;CAClC,EAAE;AACH;AACA,SAAS,6BAA6B,SAAS;CAC9C,MAAM,UAAU,CAAC;CACjB,OAAO;EACN,IAAI,SAAS;GACZ,OAAO,QAAQ;EAChB;EACA,KAAK,GAAG,aAAa;GACpB,KAAK,MAAM,cAAc,aAAa,QAAQ,KAAK;IAClD,MAAM;IACN;GACD,CAAC;EACF;EACA,cAAc,GAAG,aAAa;GAC7B,KAAK,MAAM,cAAc,aAAa,QAAQ,KAAK;IAClD,MAAM;IACN;I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