@scriptc/compiler 0.0.6 → 0.0.8
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/backend/emission/emit-exprs.js +47 -1
- package/dist/backend/emission/emit-exprs.js.map +1 -1
- package/dist/backend/emission/emit-island.js +9 -1
- package/dist/backend/emission/emit-island.js.map +1 -1
- package/dist/backend/emission/emit-stmts.js +3 -1
- package/dist/backend/emission/emit-stmts.js.map +1 -1
- package/dist/backend/emission/emit-walkers.js +22 -8
- package/dist/backend/emission/emit-walkers.js.map +1 -1
- package/dist/backend/emission/emitter.js +12 -1
- package/dist/backend/emission/emitter.js.map +1 -1
- package/dist/backend/emission/may-throw.js +4 -3
- package/dist/backend/emission/may-throw.js.map +1 -1
- package/dist/backend/llvm/emitter.js +105 -9
- package/dist/backend/llvm/emitter.js.map +1 -1
- package/dist/diagnostics/diagnostic.d.ts +49 -1
- package/dist/diagnostics/diagnostic.js +119 -5
- package/dist/diagnostics/diagnostic.js.map +1 -1
- package/dist/frontend/lib-contract.d.ts +114 -0
- package/dist/frontend/lib-contract.js +372 -0
- package/dist/frontend/lib-contract.js.map +1 -0
- package/dist/frontend/lowering/lower-builtins.js +16 -1
- package/dist/frontend/lowering/lower-builtins.js.map +1 -1
- package/dist/frontend/lowering/lower-calls.d.ts +47 -7
- package/dist/frontend/lowering/lower-calls.js +560 -36
- package/dist/frontend/lowering/lower-calls.js.map +1 -1
- package/dist/frontend/lowering/lower-classes.d.ts +14 -1
- package/dist/frontend/lowering/lower-classes.js +85 -15
- package/dist/frontend/lowering/lower-classes.js.map +1 -1
- package/dist/frontend/lowering/lower-containers.js +43 -1
- package/dist/frontend/lowering/lower-containers.js.map +1 -1
- package/dist/frontend/lowering/lower-emitter.js +1 -1
- package/dist/frontend/lowering/lower-emitter.js.map +1 -1
- package/dist/frontend/lowering/lower-exprs.d.ts +26 -3
- package/dist/frontend/lowering/lower-exprs.js +474 -44
- package/dist/frontend/lowering/lower-exprs.js.map +1 -1
- package/dist/frontend/lowering/lower-island.d.ts +7 -0
- package/dist/frontend/lowering/lower-island.js +71 -10
- package/dist/frontend/lowering/lower-island.js.map +1 -1
- package/dist/frontend/lowering/lower-mixins.d.ts +1 -1
- package/dist/frontend/lowering/lower-mixins.js +1 -1
- package/dist/frontend/lowering/lower-modules.js +95 -4
- package/dist/frontend/lowering/lower-modules.js.map +1 -1
- package/dist/frontend/lowering/lower-stmts.js +430 -44
- package/dist/frontend/lowering/lower-stmts.js.map +1 -1
- package/dist/frontend/lowering/lowerer.d.ts +19 -3
- package/dist/frontend/lowering/lowerer.js +188 -11
- package/dist/frontend/lowering/lowerer.js.map +1 -1
- package/dist/frontend/types.d.ts +28 -1
- package/dist/frontend/types.js +300 -8
- package/dist/frontend/types.js.map +1 -1
- package/dist/index.d.ts +11 -2
- package/dist/index.js +96 -7
- package/dist/index.js.map +1 -1
- package/dist/ir/nodes.d.ts +48 -2
- package/dist/ir/nodes.js +103 -3
- package/dist/ir/nodes.js.map +1 -1
- package/dist/ir/validate.js +35 -6
- package/dist/ir/validate.js.map +1 -1
- package/dist/library/profile.d.ts +53 -3
- package/dist/library/profile.js +143 -12
- package/dist/library/profile.js.map +1 -1
- package/dist/library/sidecar-validate.d.ts +4 -0
- package/dist/library/sidecar-validate.js +506 -0
- package/dist/library/sidecar-validate.js.map +1 -0
- package/dist/library/sidecar.d.ts +191 -0
- package/dist/library/sidecar.js +687 -0
- package/dist/library/sidecar.js.map +1 -0
- package/dist/library/trap-teaching.d.ts +11 -0
- package/dist/library/trap-teaching.js +49 -0
- package/dist/library/trap-teaching.js.map +1 -0
- package/dist/library/wyhash.d.ts +12 -0
- package/dist/library/wyhash.js +116 -0
- package/dist/library/wyhash.js.map +1 -0
- package/package.json +2 -2
- package/surface-manifest.json +37 -2
|
@@ -80,6 +80,28 @@ export declare function genericSignatureTypeDiag(typeText: string, loc: SrcLoc):
|
|
|
80
80
|
* Maps, promises, ...), or a declared `unknown` field under the signature.
|
|
81
81
|
* The message points at the working alternatives. */
|
|
82
82
|
export declare function indexSignatureTypeDiag(typeText: string, loc: SrcLoc): ScrDiagnostic;
|
|
83
|
+
/** A value whose type declares TWO OR MORE call signatures (an overloaded
|
|
84
|
+
* function type: `{ (x: "a"): string; (x: "b"): number }`, the on()-style
|
|
85
|
+
* listener registries, overloaded stdlib functions stored as values): a
|
|
86
|
+
* compiled function value is exactly one signature, so a multi-signature
|
|
87
|
+
* slot has no instance to hold. CALLS of overloaded declarations resolve
|
|
88
|
+
* per call site and compile — it is the VALUE position that fences. */
|
|
89
|
+
export declare function overloadedSignatureTypeDiag(typeText: string, loc: SrcLoc): ScrDiagnostic;
|
|
90
|
+
/** An intersection type that resolved to no lowering. The intersections
|
|
91
|
+
* that DO compile never reach this: object-member intersections resolve
|
|
92
|
+
* through the record path (`A & B` interns the combined shape),
|
|
93
|
+
* function-with-properties hybrids map to `%call` records, and
|
|
94
|
+
* mixin-instantiation intersections resolve by chain structure to their
|
|
95
|
+
* pinned instantiation. What lands here is the remainder — an intersection
|
|
96
|
+
* part outside those rules, or a mixin intersection no chain pins. */
|
|
97
|
+
export declare function intersectionTypeDiag(typeText: string, loc: SrcLoc): ScrDiagnostic;
|
|
98
|
+
/** A SUPPORTED shape over a component type outside its slot: the Map/Set
|
|
99
|
+
* key-value domains, array and tuple elements, union arms, function
|
|
100
|
+
* parameters/returns, and record members. The container is not the blocker
|
|
101
|
+
* — `detail` (computed by describeComponentBlocker/
|
|
102
|
+
* describeRecordMemberBlocker in frontend/types.ts, which mirror mapType's
|
|
103
|
+
* own rules) names the component and the slot it cannot fill. */
|
|
104
|
+
export declare function componentTypeDiag(typeText: string, detail: string, loc: SrcLoc): ScrDiagnostic;
|
|
83
105
|
/** A REACHED use of standard-library surface with no lowering — the scope
|
|
84
106
|
* fence of the real-lib type world. The checker sees the full es2025
|
|
85
107
|
* standard library, so `Symbol`, `new Date()`, `p.then(...)`, `Math.min`
|
|
@@ -174,8 +196,34 @@ export declare function libAsyncSurfaceDiag(surface: string, loc: SrcLoc, teachi
|
|
|
174
196
|
* --npm-static, npm imports, `any`-typed island surface. */
|
|
175
197
|
export declare function libDynamicDiag(what: string, loc: SrcLoc): ScrDiagnostic;
|
|
176
198
|
/** SC4007 — a mapped export whose signature keeps type parameters: every
|
|
177
|
-
* compiled function is one concrete signature (the
|
|
199
|
+
* compiled function is one concrete signature (the SC2005 monomorphization
|
|
178
200
|
* rule, re-anchored at the profile entry). */
|
|
179
201
|
export declare function libGenericExportDiag(exportName: string, loc: SrcLoc): ScrDiagnostic;
|
|
202
|
+
/** SC4009 — the contract sidecar cannot be projected: a profile
|
|
203
|
+
* designation names nothing the entry declares, a designated type falls
|
|
204
|
+
* outside the schema's closed vocabulary, or a contract convention const
|
|
205
|
+
* is malformed. The sidecar records verdicts, never guesses — anything
|
|
206
|
+
* unprojectable refuses with the offending declaration named. */
|
|
207
|
+
export declare function libSidecarDiag(detail: string, loc: SrcLoc, hint?: string): ScrDiagnostic;
|
|
208
|
+
/** SC4010 — a tabled or designated type's members gather from MORE THAN
|
|
209
|
+
* ONE declaration site (interface merging, module augmentation, a
|
|
210
|
+
* same-name exported declaration in another module): the merged member
|
|
211
|
+
* order is a checker implementation detail no sidecar consumer can
|
|
212
|
+
* reproduce from source, and declaration order IS the wire contract. The
|
|
213
|
+
* teaching names every contributing site. */
|
|
214
|
+
export declare function libSidecarMergedDiag(name: string, sites: readonly string[], loc: SrcLoc): ScrDiagnostic;
|
|
215
|
+
/** SC4011 — a conditional or mapped type produces a tabled or designated
|
|
216
|
+
* type: type-level computation has no author-visible declaration order,
|
|
217
|
+
* so its member order cannot be the wire contract. */
|
|
218
|
+
export declare function libSidecarComputedDiag(name: string, which: "conditional" | "mapped", loc: SrcLoc): ScrDiagnostic;
|
|
219
|
+
/** SC4012 — the library-mode host-contract violation trap a generated
|
|
220
|
+
* entry wrapper raises when an inbound bytes buffer's declared length falls
|
|
221
|
+
* outside the marshalling class's range (past 2^53−1 — no real buffer, so
|
|
222
|
+
* the host and the library disagree about the call contract). A RUNTIME
|
|
223
|
+
* code, never a compile-time refusal: it rides the structured trap-teaching
|
|
224
|
+
* message (library/trap-teaching.ts) the wrapper delivers through the panic
|
|
225
|
+
* sink, alongside the trapping export's C symbol and the profile's teaching
|
|
226
|
+
* and remediation text for this code when the profile supplies them. */
|
|
227
|
+
export declare const LIB_INBOUND_BYTES_TRAP_CODE = "SC4012";
|
|
180
228
|
export declare function iceDiag(message: string, loc: SrcLoc): ScrDiagnostic;
|
|
181
229
|
export {};
|
|
@@ -142,10 +142,20 @@ export const UNSUPPORTED = {
|
|
|
142
142
|
* (SC9001/SC9002) report problems or engine tiers, not language/stdlib
|
|
143
143
|
* surface. */
|
|
144
144
|
export const FENCE_CODES = {
|
|
145
|
-
SC2001
|
|
145
|
+
// SC2001 is the residual type fence: the named type-shape families each
|
|
146
|
+
// carry their own code (SC2005 generic signatures, SC2006 index
|
|
147
|
+
// signatures, SC2007 overloads, SC2008 intersections, SC2009 component
|
|
148
|
+
// fences; standard-library types with no lowering report SC2020). What
|
|
149
|
+
// remains here is the remainder the name enumerates.
|
|
150
|
+
SC2001: { name: "values of types outside the compilable set (bigint and symbol primitives, constructor objects, and library-derived or unresolved generic shapes)", status: "unsupported" },
|
|
146
151
|
SC2002: { name: "record width subtyping (shapes must match exactly)", status: "unsupported" },
|
|
147
152
|
SC2003: { name: "union-to-union conversions outside the re-tagging rule", status: "unsupported" },
|
|
148
153
|
SC2004: { name: "uses of a binding whose declaration did not compile (cascade marker)", status: "unsupported" },
|
|
154
|
+
SC2005: { name: "values whose type keeps a generic call signature (a compiled function is one concrete signature)", status: "unsupported" },
|
|
155
|
+
SC2006: { name: "index-signature object types outside the supported shape", status: "unsupported" },
|
|
156
|
+
SC2007: { name: "values of overloaded function type (a compiled function value is one signature)", status: "unsupported" },
|
|
157
|
+
SC2008: { name: "intersection types with no resolved lowering", status: "unsupported" },
|
|
158
|
+
SC2009: { name: "supported container and function shapes over a component type outside its slot", status: "unsupported" },
|
|
149
159
|
SC2010: { name: "constructs that exist only in the embedded dynamic engine", status: "dynamic-only" },
|
|
150
160
|
SC2011: { name: "'any'-typed values and the operations on them", status: "dynamic-only" },
|
|
151
161
|
SC2012: { name: "standard-library surface that runs in the embedded dynamic engine", status: "dynamic-only" },
|
|
@@ -245,6 +255,12 @@ export function unsupportedTypeDiag(typeText, loc) {
|
|
|
245
255
|
hint: "build with --dynamic to run 'any'-typed code in the embedded engine (adds ~620KB to the binary), or stay static with 'unknown' and a checked cast ('x as T')",
|
|
246
256
|
};
|
|
247
257
|
}
|
|
258
|
+
// The RESIDUAL type fence: the named families (generic signatures —
|
|
259
|
+
// SC2005, index signatures — SC2006, overloads — SC2007, intersections —
|
|
260
|
+
// SC2008, component fences — SC2009, standard-library types — SC2020)
|
|
261
|
+
// all speak before badType reaches for this, so what lands here is the
|
|
262
|
+
// remainder the registry entry enumerates: bigint/symbol primitives,
|
|
263
|
+
// constructor objects, and library-derived or unresolved generic shapes.
|
|
248
264
|
return {
|
|
249
265
|
code: "SC2001",
|
|
250
266
|
message: `values of type '${typeText}' cannot be compiled yet ` +
|
|
@@ -278,8 +294,8 @@ export function requiresDynamicTypeDiag(typeText, loc) {
|
|
|
278
294
|
* supported-types recitation. */
|
|
279
295
|
export function genericSignatureTypeDiag(typeText, loc) {
|
|
280
296
|
return {
|
|
281
|
-
code: "
|
|
282
|
-
message: `values of type '${typeText}' cannot be compiled: the signature keeps its type parameters, and a compiled function is always one concrete signature (generic functions monomorphize per pinned signature — declarations, methods, and never-reassigned
|
|
297
|
+
code: "SC2005",
|
|
298
|
+
message: `values of type '${typeText}' cannot be compiled: the signature keeps its type parameters, and a compiled function is always one concrete signature (generic functions monomorphize per pinned signature — declarations, methods, and never-reassigned bindings holding a generic arrow/function expression, an alias of a registered generic function, or a function initializer under a generic-signature annotation)`,
|
|
283
299
|
loc,
|
|
284
300
|
milestone: "M2",
|
|
285
301
|
hint: "annotate the destination with a concrete signature (e.g. '(x: number) => number'), instantiate explicitly ('f<number>'), or call the generic function directly",
|
|
@@ -294,13 +310,59 @@ export function genericSignatureTypeDiag(typeText, loc) {
|
|
|
294
310
|
* The message points at the working alternatives. */
|
|
295
311
|
export function indexSignatureTypeDiag(typeText, loc) {
|
|
296
312
|
return {
|
|
297
|
-
code: "
|
|
313
|
+
code: "SC2006",
|
|
298
314
|
message: `values of type '${typeText}' cannot be compiled: this index signature is outside the supported shape (string or number keys; values limited to numbers, strings, booleans, records, classes, arrays, unions, or 'unknown')`,
|
|
299
315
|
loc,
|
|
300
316
|
milestone: "M2",
|
|
301
317
|
hint: "string- and number-keyed index signatures over the supported value types compile directly; richer value types want Map<string, V>, and symbol keys have no lowering",
|
|
302
318
|
};
|
|
303
319
|
}
|
|
320
|
+
/** A value whose type declares TWO OR MORE call signatures (an overloaded
|
|
321
|
+
* function type: `{ (x: "a"): string; (x: "b"): number }`, the on()-style
|
|
322
|
+
* listener registries, overloaded stdlib functions stored as values): a
|
|
323
|
+
* compiled function value is exactly one signature, so a multi-signature
|
|
324
|
+
* slot has no instance to hold. CALLS of overloaded declarations resolve
|
|
325
|
+
* per call site and compile — it is the VALUE position that fences. */
|
|
326
|
+
export function overloadedSignatureTypeDiag(typeText, loc) {
|
|
327
|
+
return {
|
|
328
|
+
code: "SC2007",
|
|
329
|
+
message: `values of type '${typeText}' cannot be compiled: the type declares multiple call signatures (overloads), and a compiled function value is always one concrete signature`,
|
|
330
|
+
loc,
|
|
331
|
+
milestone: "M2",
|
|
332
|
+
hint: "annotate the slot with the ONE signature the program actually calls (e.g. '(x: number) => string'), or wrap the overloaded function in a single-signature arrow",
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
/** An intersection type that resolved to no lowering. The intersections
|
|
336
|
+
* that DO compile never reach this: object-member intersections resolve
|
|
337
|
+
* through the record path (`A & B` interns the combined shape),
|
|
338
|
+
* function-with-properties hybrids map to `%call` records, and
|
|
339
|
+
* mixin-instantiation intersections resolve by chain structure to their
|
|
340
|
+
* pinned instantiation. What lands here is the remainder — an intersection
|
|
341
|
+
* part outside those rules, or a mixin intersection no chain pins. */
|
|
342
|
+
export function intersectionTypeDiag(typeText, loc) {
|
|
343
|
+
return {
|
|
344
|
+
code: "SC2008",
|
|
345
|
+
message: `values of type '${typeText}' cannot be compiled: this intersection resolves to no runtime shape`,
|
|
346
|
+
loc,
|
|
347
|
+
milestone: "M2",
|
|
348
|
+
hint: "restate the intersection as a single interface or type literal with the combined members; mixin-produced intersections compile where the mixin chain pins one instantiation",
|
|
349
|
+
};
|
|
350
|
+
}
|
|
351
|
+
/** A SUPPORTED shape over a component type outside its slot: the Map/Set
|
|
352
|
+
* key-value domains, array and tuple elements, union arms, function
|
|
353
|
+
* parameters/returns, and record members. The container is not the blocker
|
|
354
|
+
* — `detail` (computed by describeComponentBlocker/
|
|
355
|
+
* describeRecordMemberBlocker in frontend/types.ts, which mirror mapType's
|
|
356
|
+
* own rules) names the component and the slot it cannot fill. */
|
|
357
|
+
export function componentTypeDiag(typeText, detail, loc) {
|
|
358
|
+
return {
|
|
359
|
+
code: "SC2009",
|
|
360
|
+
message: `values of type '${typeText}' cannot be compiled: ${detail}`,
|
|
361
|
+
loc,
|
|
362
|
+
milestone: "M2",
|
|
363
|
+
hint: "the outer shape is supported — the named component is the blocker; restate it inside the compilable set (number, string, boolean, arrays, Maps, Sets, RegExp, functions, classes, records, unions of those, and 'unknown')",
|
|
364
|
+
};
|
|
365
|
+
}
|
|
304
366
|
/** A REACHED use of standard-library surface with no lowering — the scope
|
|
305
367
|
* fence of the real-lib type world. The checker sees the full es2025
|
|
306
368
|
* standard library, so `Symbol`, `new Date()`, `p.then(...)`, `Math.min`
|
|
@@ -547,7 +609,7 @@ export function libDynamicDiag(what, loc) {
|
|
|
547
609
|
};
|
|
548
610
|
}
|
|
549
611
|
/** SC4007 — a mapped export whose signature keeps type parameters: every
|
|
550
|
-
* compiled function is one concrete signature (the
|
|
612
|
+
* compiled function is one concrete signature (the SC2005 monomorphization
|
|
551
613
|
* rule, re-anchored at the profile entry). */
|
|
552
614
|
export function libGenericExportDiag(exportName, loc) {
|
|
553
615
|
return {
|
|
@@ -558,6 +620,58 @@ export function libGenericExportDiag(exportName, loc) {
|
|
|
558
620
|
"export const update_f64 = update<number>",
|
|
559
621
|
};
|
|
560
622
|
}
|
|
623
|
+
/** SC4009 — the contract sidecar cannot be projected: a profile
|
|
624
|
+
* designation names nothing the entry declares, a designated type falls
|
|
625
|
+
* outside the schema's closed vocabulary, or a contract convention const
|
|
626
|
+
* is malformed. The sidecar records verdicts, never guesses — anything
|
|
627
|
+
* unprojectable refuses with the offending declaration named. */
|
|
628
|
+
export function libSidecarDiag(detail, loc, hint) {
|
|
629
|
+
return {
|
|
630
|
+
code: "SC4009",
|
|
631
|
+
message: `contract sidecar: ${detail}`,
|
|
632
|
+
loc,
|
|
633
|
+
hint: hint ??
|
|
634
|
+
"the sidecar's type table speaks a closed vocabulary (bool, number, string/Uint8Array, optional, arrays, " +
|
|
635
|
+
"named records, string-literal-union enums, and kind-tagged unions of object literals) read from the entry " +
|
|
636
|
+
"module's exported declarations in source order",
|
|
637
|
+
};
|
|
638
|
+
}
|
|
639
|
+
/** SC4010 — a tabled or designated type's members gather from MORE THAN
|
|
640
|
+
* ONE declaration site (interface merging, module augmentation, a
|
|
641
|
+
* same-name exported declaration in another module): the merged member
|
|
642
|
+
* order is a checker implementation detail no sidecar consumer can
|
|
643
|
+
* reproduce from source, and declaration order IS the wire contract. The
|
|
644
|
+
* teaching names every contributing site. */
|
|
645
|
+
export function libSidecarMergedDiag(name, sites, loc) {
|
|
646
|
+
return {
|
|
647
|
+
code: "SC4010",
|
|
648
|
+
message: `contract sidecar: '${name}' gathers members from ${sites.length} declaration sites (${sites.join(", ")}) — a tabled type's order must derive from ONE declaration site`,
|
|
649
|
+
loc,
|
|
650
|
+
hint: `merged declaration order is a checker implementation detail that no sidecar consumer can reproduce from source — ` +
|
|
651
|
+
`collapse '${name}' into a single declaration and delete or rename the other site(s): ${sites.join(", ")}`,
|
|
652
|
+
};
|
|
653
|
+
}
|
|
654
|
+
/** SC4011 — a conditional or mapped type produces a tabled or designated
|
|
655
|
+
* type: type-level computation has no author-visible declaration order,
|
|
656
|
+
* so its member order cannot be the wire contract. */
|
|
657
|
+
export function libSidecarComputedDiag(name, which, loc) {
|
|
658
|
+
return {
|
|
659
|
+
code: "SC4011",
|
|
660
|
+
message: `contract sidecar: '${name}' is produced by a ${which} type — a tabled or designated type needs literal, declaration-ordered members`,
|
|
661
|
+
loc,
|
|
662
|
+
hint: "table and arm order is wire contract read from the declaration site, and a computed type's member order is " +
|
|
663
|
+
"checker evaluation, not source — spell the union's arms (or the record's fields) literally in one declaration",
|
|
664
|
+
};
|
|
665
|
+
}
|
|
666
|
+
/** SC4012 — the library-mode host-contract violation trap a generated
|
|
667
|
+
* entry wrapper raises when an inbound bytes buffer's declared length falls
|
|
668
|
+
* outside the marshalling class's range (past 2^53−1 — no real buffer, so
|
|
669
|
+
* the host and the library disagree about the call contract). A RUNTIME
|
|
670
|
+
* code, never a compile-time refusal: it rides the structured trap-teaching
|
|
671
|
+
* message (library/trap-teaching.ts) the wrapper delivers through the panic
|
|
672
|
+
* sink, alongside the trapping export's C symbol and the profile's teaching
|
|
673
|
+
* and remediation text for this code when the profile supplies them. */
|
|
674
|
+
export const LIB_INBOUND_BYTES_TRAP_CODE = "SC4012";
|
|
561
675
|
export function iceDiag(message, loc) {
|
|
562
676
|
return {
|
|
563
677
|
code: "SC9001",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diagnostic.js","sourceRoot":"","sources":["../../src/diagnostics/diagnostic.ts"],"names":[],"mappings":"AA6CA,MAAM,CAAC,MAAM,WAAW,GAAqC;IAC3D,MAAM,EAAE;QACN,OAAO,EAAE,iBAAiB;QAC1B,SAAS,EAAE,IAAI;QACf,IAAI,EACF,wEAAwE;YACxE,kEAAkE;YAClE,sEAAsE;YACtE,iEAAiE;YACjE,iEAAiE;Y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,OAAO,uBAAuB;QACnE,GAAG;KACJ,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import * as ts from "./ts7/adapter.js";
|
|
2
|
+
import type { SrcLoc } from "../ir/nodes.js";
|
|
3
|
+
/** A syntactic type shape — exactly what the source spells, no checker. */
|
|
4
|
+
export type ContractTypeShape = {
|
|
5
|
+
k: "bool";
|
|
6
|
+
} | {
|
|
7
|
+
k: "number";
|
|
8
|
+
} | {
|
|
9
|
+
k: "text";
|
|
10
|
+
} | {
|
|
11
|
+
k: "bytes";
|
|
12
|
+
} | {
|
|
13
|
+
k: "void";
|
|
14
|
+
} | {
|
|
15
|
+
k: "absent";
|
|
16
|
+
} | {
|
|
17
|
+
k: "ref";
|
|
18
|
+
name: string;
|
|
19
|
+
} | {
|
|
20
|
+
k: "array";
|
|
21
|
+
elem: ContractTypeShape;
|
|
22
|
+
} | {
|
|
23
|
+
k: "tuple";
|
|
24
|
+
elems: ContractTypeShape[];
|
|
25
|
+
} | {
|
|
26
|
+
k: "object";
|
|
27
|
+
fields: ContractField[];
|
|
28
|
+
} | {
|
|
29
|
+
k: "stringLit";
|
|
30
|
+
text: string;
|
|
31
|
+
} | {
|
|
32
|
+
k: "union";
|
|
33
|
+
parts: ContractTypeShape[];
|
|
34
|
+
}
|
|
35
|
+
/** `computed` marks type-level computation (conditional/mapped types):
|
|
36
|
+
* the members such a type produces have no author-visible declaration
|
|
37
|
+
* order, so a tabled/designated one refuses with its own teaching. */
|
|
38
|
+
| {
|
|
39
|
+
k: "unsupported";
|
|
40
|
+
text: string;
|
|
41
|
+
computed?: "conditional" | "mapped";
|
|
42
|
+
};
|
|
43
|
+
export interface ContractField {
|
|
44
|
+
name: string;
|
|
45
|
+
optional: boolean;
|
|
46
|
+
shape: ContractTypeShape;
|
|
47
|
+
loc: SrcLoc;
|
|
48
|
+
}
|
|
49
|
+
export interface ContractTypeDecl {
|
|
50
|
+
name: string;
|
|
51
|
+
/** `interface` projects to a by-reference record; a type-alias object
|
|
52
|
+
* literal to a by-value record; alias unions classify downstream. */
|
|
53
|
+
form: "interface" | "alias";
|
|
54
|
+
shape: ContractTypeShape;
|
|
55
|
+
loc: SrcLoc;
|
|
56
|
+
}
|
|
57
|
+
export interface ContractFnDecl {
|
|
58
|
+
name: string;
|
|
59
|
+
params: {
|
|
60
|
+
name: string;
|
|
61
|
+
shape: ContractTypeShape | null;
|
|
62
|
+
}[];
|
|
63
|
+
returns: ContractTypeShape | null;
|
|
64
|
+
generic: boolean;
|
|
65
|
+
loc: SrcLoc;
|
|
66
|
+
}
|
|
67
|
+
/** One recognized exported-const convention value; `malformed` carries the
|
|
68
|
+
* reason when the initializer does not fit the convention's shape. */
|
|
69
|
+
export interface ContractConst<T> {
|
|
70
|
+
value: T;
|
|
71
|
+
loc: SrcLoc;
|
|
72
|
+
}
|
|
73
|
+
export interface ContractFacts {
|
|
74
|
+
/** Exported interface/type-alias declarations: the entry module's in
|
|
75
|
+
* statement order, then the other modules' (canonical path order, each
|
|
76
|
+
* module's in statement order). One entry per name — a later same-name
|
|
77
|
+
* exported declaration lands in `multiSiteTypes` instead. */
|
|
78
|
+
types: ContractTypeDecl[];
|
|
79
|
+
/** Type names whose members gather from more than one declaration site
|
|
80
|
+
* (see the module comment). `sites` are `file:line`, in scan order
|
|
81
|
+
* (entry first, then path-ordered modules) — the emitter's refusal
|
|
82
|
+
* names every site. */
|
|
83
|
+
multiSiteTypes: {
|
|
84
|
+
name: string;
|
|
85
|
+
sites: string[];
|
|
86
|
+
}[];
|
|
87
|
+
/** Exported function declarations, statement order. */
|
|
88
|
+
functions: ContractFnDecl[];
|
|
89
|
+
modelUnbound: ContractConst<string[]> | null;
|
|
90
|
+
msgUnbound: ContractConst<string[]> | null;
|
|
91
|
+
appearanceMsg: ContractConst<string> | null;
|
|
92
|
+
chromeMsg: ContractConst<string> | null;
|
|
93
|
+
envMsgs: ContractConst<{
|
|
94
|
+
env: string;
|
|
95
|
+
msg: string;
|
|
96
|
+
}[]> | null;
|
|
97
|
+
/** Convention-named consts whose initializers do not fit the expected
|
|
98
|
+
* shape — refusals, never guesses. */
|
|
99
|
+
malformedConsts: {
|
|
100
|
+
name: string;
|
|
101
|
+
detail: string;
|
|
102
|
+
loc: SrcLoc;
|
|
103
|
+
}[];
|
|
104
|
+
}
|
|
105
|
+
/** The syntactic shape of a type node, over the closed vocabulary the
|
|
106
|
+
* sidecar schema can express. Anything else lands as `unsupported` with
|
|
107
|
+
* the source text preserved for the refusal message. */
|
|
108
|
+
export declare function typeShape(file: ts.SourceFile, node: ts.TypeNode): ContractTypeShape;
|
|
109
|
+
/** Everything the sidecar projection needs from the program's syntax
|
|
110
|
+
* trees: functions and convention consts from the entry module, type
|
|
111
|
+
* declarations from the whole graph (entry first, other modules in
|
|
112
|
+
* canonical path order), each in statement (declaration) order. Call
|
|
113
|
+
* before the frontend is disposed. */
|
|
114
|
+
export declare function entryContractFacts(entry: ts.SourceFile, modules?: readonly ts.SourceFile[]): ContractFacts;
|