@scriptc/compiler 0.2.10 → 0.3.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.
Files changed (433) hide show
  1. package/ambient/scriptc-node-fallback.d.ts +2 -36
  2. package/ambient/scriptc-overrides.d.ts +1 -25
  3. package/ambient/scriptc.d.ts +1 -9
  4. package/dist/backend/cycle-analysis.test.js +1 -1
  5. package/dist/backend/cycle-mutability.d.ts +1 -1
  6. package/dist/backend/cycle-mutability.js +1 -18
  7. package/dist/backend/cycle-mutability.js.map +1 -1
  8. package/dist/backend/executable-features.d.ts +1 -1
  9. package/dist/backend/executable-features.js +3 -8
  10. package/dist/backend/executable-features.js.map +1 -1
  11. package/dist/backend/immutability.d.ts +1 -1
  12. package/dist/backend/immutability.js +1 -1
  13. package/dist/backend/immutability.test.js +1 -1
  14. package/dist/backend/library-pack.js +0 -2
  15. package/dist/backend/library-pack.js.map +1 -1
  16. package/dist/backend/linker.js +1 -1
  17. package/dist/backend/linker.js.map +1 -1
  18. package/dist/backend/llvm/checked-narrows.test.js +1 -1
  19. package/dist/backend/llvm/classes.js +3 -9
  20. package/dist/backend/llvm/classes.js.map +1 -1
  21. package/dist/backend/llvm/classes.test.js +7 -7
  22. package/dist/backend/llvm/constant-callbacks.d.ts +1 -1
  23. package/dist/backend/llvm/constant-callbacks.js +3 -3
  24. package/dist/backend/llvm/constant-callbacks.js.map +1 -1
  25. package/dist/backend/llvm/constant-callbacks.test.js +1 -1
  26. package/dist/backend/llvm/dense-array-access.test.js +1 -1
  27. package/dist/backend/llvm/dyn.d.ts +0 -1
  28. package/dist/backend/llvm/dyn.js +0 -73
  29. package/dist/backend/llvm/dyn.js.map +1 -1
  30. package/dist/backend/llvm/emitter.d.ts +3 -17
  31. package/dist/backend/llvm/emitter.js +53 -181
  32. package/dist/backend/llvm/emitter.js.map +1 -1
  33. package/dist/backend/llvm/emitter.test.js +3 -3
  34. package/dist/backend/llvm/expr-async.test.js +1 -1
  35. package/dist/backend/llvm/expr-containers.js +12 -8
  36. package/dist/backend/llvm/expr-containers.js.map +1 -1
  37. package/dist/backend/llvm/expr-control.js +4 -107
  38. package/dist/backend/llvm/expr-control.js.map +1 -1
  39. package/dist/backend/llvm/expr-dispatch.d.ts +1 -2
  40. package/dist/backend/llvm/expr-dispatch.js +0 -41
  41. package/dist/backend/llvm/expr-dispatch.js.map +1 -1
  42. package/dist/backend/llvm/expr-dynamic.d.ts +1 -1
  43. package/dist/backend/llvm/expr-dynamic.js +13 -27
  44. package/dist/backend/llvm/expr-dynamic.js.map +1 -1
  45. package/dist/backend/llvm/expr-primitives.test.js +2 -2
  46. package/dist/backend/llvm/expr-stream-bridges.test.js +1 -1
  47. package/dist/backend/llvm/lib-dispatch.js +0 -1
  48. package/dist/backend/llvm/lib-dispatch.js.map +1 -1
  49. package/dist/backend/llvm/lib-filesystem.js +0 -13
  50. package/dist/backend/llvm/lib-filesystem.js.map +1 -1
  51. package/dist/backend/llvm/lib-shared.js +0 -8
  52. package/dist/backend/llvm/lib-shared.js.map +1 -1
  53. package/dist/backend/llvm/local-array-reads.test.js +1 -1
  54. package/dist/backend/llvm/local-union-storage.test.js +1 -1
  55. package/dist/backend/llvm/map-number-lookup.d.ts +7 -0
  56. package/dist/backend/llvm/map-number-lookup.js +16 -2
  57. package/dist/backend/llvm/map-number-lookup.js.map +1 -1
  58. package/dist/backend/llvm/map-read-lifetimes.js +7 -1
  59. package/dist/backend/llvm/map-read-lifetimes.js.map +1 -1
  60. package/dist/backend/llvm/map-read-lifetimes.test.js +24 -7
  61. package/dist/backend/llvm/map-read-lifetimes.test.js.map +1 -1
  62. package/dist/backend/llvm/shapes.js +1 -2
  63. package/dist/backend/llvm/shapes.js.map +1 -1
  64. package/dist/backend/llvm/shapes.test.js +3 -3
  65. package/dist/backend/llvm/stack-unions.test.js +1 -1
  66. package/dist/backend/llvm/string-construction.test.js +1 -1
  67. package/dist/backend/llvm/string-lifetimes.test.js +1 -1
  68. package/dist/backend/llvm/switch-dispatch.test.js +1 -1
  69. package/dist/backend/may-throw.js +0 -9
  70. package/dist/backend/may-throw.js.map +1 -1
  71. package/dist/backend/may-throw.test.js +1 -1
  72. package/dist/backend/native/artifact-stamps.js +0 -2
  73. package/dist/backend/native/artifact-stamps.js.map +1 -1
  74. package/dist/backend/native/cache-warm.d.ts +1 -1
  75. package/dist/backend/native/cache-warm.js +2 -3
  76. package/dist/backend/native/cache-warm.js.map +1 -1
  77. package/dist/backend/native/compiler-fingerprint.d.ts +1 -1
  78. package/dist/backend/native/compiler-fingerprint.js +4 -7
  79. package/dist/backend/native/compiler-fingerprint.js.map +1 -1
  80. package/dist/backend/native/contracts.d.ts +3 -28
  81. package/dist/backend/native/driver.js +1 -3
  82. package/dist/backend/native/driver.js.map +1 -1
  83. package/dist/backend/native/executable.d.ts +0 -15
  84. package/dist/backend/native/executable.js +17 -172
  85. package/dist/backend/native/executable.js.map +1 -1
  86. package/dist/backend/native/tool-identity.js +0 -1
  87. package/dist/backend/native/tool-identity.js.map +1 -1
  88. package/dist/backend/native/vendor.d.ts +1 -1
  89. package/dist/backend/native/vendor.js +1 -1
  90. package/dist/backend/native/vendor.js.map +1 -1
  91. package/dist/backend/native-link-info-core.d.ts +0 -2
  92. package/dist/backend/native-link-info-core.js.map +1 -1
  93. package/dist/backend/native-toolchain.test.js +23 -33
  94. package/dist/backend/native-toolchain.test.js.map +1 -1
  95. package/dist/backend/publication.test.js +1 -1
  96. package/dist/backend/runtime-abi.d.ts +2 -2
  97. package/dist/backend/runtime-abi.js +2 -2
  98. package/dist/backend/runtime-pack-core.d.ts +1 -2
  99. package/dist/backend/runtime-pack-core.js +5 -14
  100. package/dist/backend/runtime-pack-core.js.map +1 -1
  101. package/dist/backend/runtime-pack-targets.test.js +3 -8
  102. package/dist/backend/runtime-pack-targets.test.js.map +1 -1
  103. package/dist/backend/runtime-pack.test.js +22 -19
  104. package/dist/backend/runtime-pack.test.js.map +1 -1
  105. package/dist/backend/target-diagnostics.d.ts +0 -5
  106. package/dist/backend/target-diagnostics.js +1 -11
  107. package/dist/backend/target-diagnostics.js.map +1 -1
  108. package/dist/backend/target-diagnostics.test.js +1 -1
  109. package/dist/backend/vendor-archives.d.ts +1 -7
  110. package/dist/backend/vendor-archives.js +9 -189
  111. package/dist/backend/vendor-archives.js.map +1 -1
  112. package/dist/backend/vendor-inputs.d.ts +0 -1
  113. package/dist/backend/vendor-inputs.js +0 -1
  114. package/dist/backend/vendor-inputs.js.map +1 -1
  115. package/dist/backend/warm-cache.js +3 -5
  116. package/dist/backend/warm-cache.js.map +1 -1
  117. package/dist/cli/command.js +4 -8
  118. package/dist/cli/command.js.map +1 -1
  119. package/dist/cli/host.d.ts +1 -1
  120. package/dist/cli/usage.d.ts +1 -5
  121. package/dist/cli/usage.js +4 -9
  122. package/dist/cli/usage.js.map +1 -1
  123. package/dist/compat/fetch-profile.d.ts +2 -2
  124. package/dist/compat/fetch-profile.js +16 -25
  125. package/dist/compat/fetch-profile.js.map +1 -1
  126. package/dist/compile-types.d.ts +2 -17
  127. package/dist/contracts/check.js +2 -6
  128. package/dist/contracts/check.js.map +1 -1
  129. package/dist/coverage/report.d.ts +5 -22
  130. package/dist/coverage/report.js +12 -76
  131. package/dist/coverage/report.js.map +1 -1
  132. package/dist/coverage/surface-manifest.d.ts +3 -3
  133. package/dist/coverage/surface-manifest.js +22 -27
  134. package/dist/coverage/surface-manifest.js.map +1 -1
  135. package/dist/coverage/verdict-cache.d.ts +1 -3
  136. package/dist/coverage/verdict-cache.js +2 -7
  137. package/dist/coverage/verdict-cache.js.map +1 -1
  138. package/dist/diagnostics/diagnostic.d.ts +11 -60
  139. package/dist/diagnostics/diagnostic.js +39 -118
  140. package/dist/diagnostics/diagnostic.js.map +1 -1
  141. package/dist/diagnostics/envelope.d.ts +3 -4
  142. package/dist/diagnostics/envelope.js +0 -9
  143. package/dist/diagnostics/envelope.js.map +1 -1
  144. package/dist/diagnostics/envelope.test.js +1 -1
  145. package/dist/diagnostics/envelope.test.js.map +1 -1
  146. package/dist/executable/executable-cache.d.ts +0 -3
  147. package/dist/executable/executable-cache.js +2 -4
  148. package/dist/executable/executable-cache.js.map +1 -1
  149. package/dist/executable/executable-cache.test.js +0 -4
  150. package/dist/executable/executable-cache.test.js.map +1 -1
  151. package/dist/executable/prepare.js +5 -2
  152. package/dist/executable/prepare.js.map +1 -1
  153. package/dist/frontend/analysis.js +10 -10
  154. package/dist/frontend/analysis.js.map +1 -1
  155. package/dist/frontend/cjs-syntax.js +0 -88
  156. package/dist/frontend/cjs-syntax.js.map +1 -1
  157. package/dist/frontend/dts-paths.d.ts +1 -1
  158. package/dist/frontend/dts-paths.js +1 -1
  159. package/dist/frontend/lowering/abstract-equality.js +1 -4
  160. package/dist/frontend/lowering/abstract-equality.js.map +1 -1
  161. package/dist/frontend/lowering/array-values.js +4 -11
  162. package/dist/frontend/lowering/array-values.js.map +1 -1
  163. package/dist/frontend/lowering/builtins/arguments.js +0 -13
  164. package/dist/frontend/lowering/builtins/arguments.js.map +1 -1
  165. package/dist/frontend/lowering/builtins/crypto.d.ts +0 -4
  166. package/dist/frontend/lowering/builtins/crypto.js +0 -4
  167. package/dist/frontend/lowering/builtins/crypto.js.map +1 -1
  168. package/dist/frontend/lowering/builtins/json.js +1 -39
  169. package/dist/frontend/lowering/builtins/json.js.map +1 -1
  170. package/dist/frontend/lowering/builtins/module-resolution.d.ts +0 -15
  171. package/dist/frontend/lowering/builtins/module-resolution.js +5 -44
  172. package/dist/frontend/lowering/builtins/module-resolution.js.map +1 -1
  173. package/dist/frontend/lowering/builtins/numbers.d.ts +0 -6
  174. package/dist/frontend/lowering/builtins/numbers.js +6 -57
  175. package/dist/frontend/lowering/builtins/numbers.js.map +1 -1
  176. package/dist/frontend/lowering/builtins/promises.js +4 -67
  177. package/dist/frontend/lowering/builtins/promises.js.map +1 -1
  178. package/dist/frontend/lowering/builtins/workers.js +1 -1
  179. package/dist/frontend/lowering/builtins/workers.js.map +1 -1
  180. package/dist/frontend/lowering/call-arguments.d.ts +1 -37
  181. package/dist/frontend/lowering/call-arguments.js +11 -94
  182. package/dist/frontend/lowering/call-arguments.js.map +1 -1
  183. package/dist/frontend/lowering/call-signatures.d.ts +1 -6
  184. package/dist/frontend/lowering/call-signatures.js +16 -68
  185. package/dist/frontend/lowering/call-signatures.js.map +1 -1
  186. package/dist/frontend/lowering/class-dynamic-dispatch.d.ts +19 -4
  187. package/dist/frontend/lowering/class-dynamic-dispatch.js +168 -98
  188. package/dist/frontend/lowering/class-dynamic-dispatch.js.map +1 -1
  189. package/dist/frontend/lowering/class-dynamic-dispatch.test.js +44 -4
  190. package/dist/frontend/lowering/class-dynamic-dispatch.test.js.map +1 -1
  191. package/dist/frontend/lowering/class-method-mutations.js +0 -2
  192. package/dist/frontend/lowering/class-method-mutations.js.map +1 -1
  193. package/dist/frontend/lowering/class-protocols.js +1 -1
  194. package/dist/frontend/lowering/class-protocols.js.map +1 -1
  195. package/dist/frontend/lowering/coercions/function-adapters.js +5 -35
  196. package/dist/frontend/lowering/coercions/function-adapters.js.map +1 -1
  197. package/dist/frontend/lowering/coercions/state.d.ts +0 -1
  198. package/dist/frontend/lowering/coercions/state.js +0 -1
  199. package/dist/frontend/lowering/coercions/state.js.map +1 -1
  200. package/dist/frontend/lowering/coercions/structural-plans.js +2 -4
  201. package/dist/frontend/lowering/coercions/structural-plans.js.map +1 -1
  202. package/dist/frontend/lowering/coercions/structural.js +2 -12
  203. package/dist/frontend/lowering/coercions/structural.js.map +1 -1
  204. package/dist/frontend/lowering/coercions/unions.js +0 -1
  205. package/dist/frontend/lowering/coercions/unions.js.map +1 -1
  206. package/dist/frontend/lowering/containers/array-callbacks.js +9 -28
  207. package/dist/frontend/lowering/containers/array-callbacks.js.map +1 -1
  208. package/dist/frontend/lowering/containers/array-construction.js +2 -3
  209. package/dist/frontend/lowering/containers/array-construction.js.map +1 -1
  210. package/dist/frontend/lowering/containers/array-methods.js +10 -54
  211. package/dist/frontend/lowering/containers/array-methods.js.map +1 -1
  212. package/dist/frontend/lowering/containers/bytes.js +0 -1
  213. package/dist/frontend/lowering/containers/bytes.js.map +1 -1
  214. package/dist/frontend/lowering/containers/callback-arguments.js +2 -10
  215. package/dist/frontend/lowering/containers/callback-arguments.js.map +1 -1
  216. package/dist/frontend/lowering/containers/collection-methods.js +1 -6
  217. package/dist/frontend/lowering/containers/collection-methods.js.map +1 -1
  218. package/dist/frontend/lowering/containers/indexed-objects.js +0 -2
  219. package/dist/frontend/lowering/containers/indexed-objects.js.map +1 -1
  220. package/dist/frontend/lowering/containers/string-and-regexp.d.ts +0 -6
  221. package/dist/frontend/lowering/containers/string-and-regexp.js +2 -10
  222. package/dist/frontend/lowering/containers/string-and-regexp.js.map +1 -1
  223. package/dist/frontend/lowering/expressions/evaluation-safety.js +0 -3
  224. package/dist/frontend/lowering/expressions/evaluation-safety.js.map +1 -1
  225. package/dist/frontend/lowering/expressions/native-proxy.js +1 -1
  226. package/dist/frontend/lowering/expressions/native-proxy.js.map +1 -1
  227. package/dist/frontend/lowering/expressions/nullish-assignment.js +0 -1
  228. package/dist/frontend/lowering/expressions/nullish-assignment.js.map +1 -1
  229. package/dist/frontend/lowering/expressions/object-literals.d.ts +0 -8
  230. package/dist/frontend/lowering/expressions/object-literals.js +8 -35
  231. package/dist/frontend/lowering/expressions/object-literals.js.map +1 -1
  232. package/dist/frontend/lowering/expressions/optional-chains.d.ts +0 -4
  233. package/dist/frontend/lowering/expressions/optional-chains.js +3 -66
  234. package/dist/frontend/lowering/expressions/optional-chains.js.map +1 -1
  235. package/dist/frontend/lowering/function-context.js +0 -1
  236. package/dist/frontend/lowering/function-context.js.map +1 -1
  237. package/dist/frontend/lowering/generic-functions.js +0 -1
  238. package/dist/frontend/lowering/generic-functions.js.map +1 -1
  239. package/dist/frontend/lowering/lib-boundary.js +10 -77
  240. package/dist/frontend/lowering/lib-boundary.js.map +1 -1
  241. package/dist/frontend/lowering/lower-array-sort.js +1 -10
  242. package/dist/frontend/lowering/lower-array-sort.js.map +1 -1
  243. package/dist/frontend/lowering/lower-array-sort.test.js +2 -2
  244. package/dist/frontend/lowering/lower-array-sort.test.js.map +1 -1
  245. package/dist/frontend/lowering/lower-assert.js +2 -3
  246. package/dist/frontend/lowering/lower-assert.js.map +1 -1
  247. package/dist/frontend/lowering/lower-async-iteration.js +1 -1
  248. package/dist/frontend/lowering/lower-calls.d.ts +2 -27
  249. package/dist/frontend/lowering/lower-calls.js +47 -463
  250. package/dist/frontend/lowering/lower-calls.js.map +1 -1
  251. package/dist/frontend/lowering/lower-classes.js +11 -49
  252. package/dist/frontend/lowering/lower-classes.js.map +1 -1
  253. package/dist/frontend/lowering/lower-comptime.js +2 -3
  254. package/dist/frontend/lowering/lower-comptime.js.map +1 -1
  255. package/dist/frontend/lowering/lower-enums.js +5 -8
  256. package/dist/frontend/lowering/lower-enums.js.map +1 -1
  257. package/dist/frontend/lowering/lower-event-emitter.js +3 -4
  258. package/dist/frontend/lowering/lower-event-emitter.js.map +1 -1
  259. package/dist/frontend/lowering/lower-expando.js +3 -5
  260. package/dist/frontend/lowering/lower-expando.js.map +1 -1
  261. package/dist/frontend/lowering/lower-exprs.d.ts +0 -8
  262. package/dist/frontend/lowering/lower-exprs.js +50 -907
  263. package/dist/frontend/lowering/lower-exprs.js.map +1 -1
  264. package/dist/frontend/lowering/lower-functions.js +2 -5
  265. package/dist/frontend/lowering/lower-functions.js.map +1 -1
  266. package/dist/frontend/lowering/lower-inspect.js +1 -50
  267. package/dist/frontend/lowering/lower-inspect.js.map +1 -1
  268. package/dist/frontend/lowering/lower-modules.d.ts +0 -43
  269. package/dist/frontend/lowering/lower-modules.js +25 -329
  270. package/dist/frontend/lowering/lower-modules.js.map +1 -1
  271. package/dist/frontend/lowering/lower-modules.test.js +5 -5
  272. package/dist/frontend/lowering/lower-modules.test.js.map +1 -1
  273. package/dist/frontend/lowering/lower-server.js +0 -30
  274. package/dist/frontend/lowering/lower-server.js.map +1 -1
  275. package/dist/frontend/lowering/lower-stdlib.d.ts +98 -0
  276. package/dist/frontend/lowering/{lower-island.js → lower-stdlib.js} +97 -1160
  277. package/dist/frontend/lowering/lower-stdlib.js.map +1 -0
  278. package/dist/frontend/lowering/lower-stmts.d.ts +0 -16
  279. package/dist/frontend/lowering/lower-stmts.js +58 -1016
  280. package/dist/frontend/lowering/lower-stmts.js.map +1 -1
  281. package/dist/frontend/lowering/lower-stmts.test.js +1 -1
  282. package/dist/frontend/lowering/lower-stmts.test.js.map +1 -1
  283. package/dist/frontend/lowering/lower-stream.js +1 -3
  284. package/dist/frontend/lowering/lower-stream.js.map +1 -1
  285. package/dist/frontend/lowering/lowerer.d.ts +17 -151
  286. package/dist/frontend/lowering/lowerer.js +73 -770
  287. package/dist/frontend/lowering/lowerer.js.map +1 -1
  288. package/dist/frontend/lowering/lowerer.test.js +4 -51
  289. package/dist/frontend/lowering/lowerer.test.js.map +1 -1
  290. package/dist/frontend/lowering/narrowing-stability.js +1 -1
  291. package/dist/frontend/lowering/narrowing-stability.js.map +1 -1
  292. package/dist/frontend/lowering/optional-arguments.js +0 -2
  293. package/dist/frontend/lowering/optional-arguments.js.map +1 -1
  294. package/dist/frontend/lowering/sanitize-class-types.test.js +2 -2
  295. package/dist/frontend/lowering/strict-equality.js +1 -1
  296. package/dist/frontend/lowering/strict-equality.js.map +1 -1
  297. package/dist/frontend/lowering/surfaces.d.ts +6 -45
  298. package/dist/frontend/lowering/surfaces.js +5 -65
  299. package/dist/frontend/lowering/surfaces.js.map +1 -1
  300. package/dist/frontend/module-syntax.d.ts +0 -3
  301. package/dist/frontend/module-syntax.js.map +1 -1
  302. package/dist/frontend/npm-node.d.ts +0 -7
  303. package/dist/frontend/npm-node.js +0 -7
  304. package/dist/frontend/npm-node.js.map +1 -1
  305. package/dist/frontend/npm-static-rewrite-syntax.d.ts +1 -1
  306. package/dist/frontend/npm-static-rewrite-syntax.js +6 -82
  307. package/dist/frontend/npm-static-rewrite-syntax.js.map +1 -1
  308. package/dist/frontend/npm-static.d.ts +1 -1
  309. package/dist/frontend/npm-static.js +6 -71
  310. package/dist/frontend/npm-static.js.map +1 -1
  311. package/dist/frontend/npm.d.ts +3 -319
  312. package/dist/frontend/npm.js +6 -1007
  313. package/dist/frontend/npm.js.map +1 -1
  314. package/dist/frontend/npm.test.js +2 -197
  315. package/dist/frontend/npm.test.js.map +1 -1
  316. package/dist/frontend/pipeline-native.js +1 -2
  317. package/dist/frontend/pipeline-native.js.map +1 -1
  318. package/dist/frontend/pipeline.d.ts +3 -11
  319. package/dist/frontend/pipeline.js +37 -56
  320. package/dist/frontend/pipeline.js.map +1 -1
  321. package/dist/frontend/pipeline.test.js +12 -6
  322. package/dist/frontend/pipeline.test.js.map +1 -1
  323. package/dist/frontend/program.d.ts +0 -34
  324. package/dist/frontend/program.js +12 -97
  325. package/dist/frontend/program.js.map +1 -1
  326. package/dist/frontend/provenance-core.d.ts +0 -4
  327. package/dist/frontend/provenance-core.js +4 -37
  328. package/dist/frontend/provenance-core.js.map +1 -1
  329. package/dist/frontend/provenance-registry.d.ts +0 -4
  330. package/dist/frontend/provenance-registry.js +0 -20
  331. package/dist/frontend/provenance-registry.js.map +1 -1
  332. package/dist/frontend/resolve.d.ts +0 -12
  333. package/dist/frontend/resolve.js +0 -34
  334. package/dist/frontend/resolve.js.map +1 -1
  335. package/dist/frontend/runtime-resolve.js +2 -2
  336. package/dist/frontend/runtime-resolve.js.map +1 -1
  337. package/dist/frontend/services-node.js +2 -3
  338. package/dist/frontend/services-node.js.map +1 -1
  339. package/dist/frontend/services.d.ts +1 -8
  340. package/dist/frontend/services.js +2 -22
  341. package/dist/frontend/services.js.map +1 -1
  342. package/dist/frontend/services.test.js +0 -38
  343. package/dist/frontend/services.test.js.map +1 -1
  344. package/dist/frontend/tsc-codes.js +0 -11
  345. package/dist/frontend/tsc-codes.js.map +1 -1
  346. package/dist/frontend/type-mapper.d.ts +2 -27
  347. package/dist/frontend/type-mapper.js +42 -153
  348. package/dist/frontend/type-mapper.js.map +1 -1
  349. package/dist/index.d.ts +1 -1
  350. package/dist/index.js +7 -10
  351. package/dist/index.js.map +1 -1
  352. package/dist/ir/api.d.ts +1 -1
  353. package/dist/ir/api.js +1 -1
  354. package/dist/ir/api.js.map +1 -1
  355. package/dist/ir/builtin-effects.js +0 -5
  356. package/dist/ir/builtin-effects.js.map +1 -1
  357. package/dist/ir/builtin-signatures.d.ts +1 -1
  358. package/dist/ir/builtin-signatures.js +1 -55
  359. package/dist/ir/builtin-signatures.js.map +1 -1
  360. package/dist/ir/constant-globals.test.js +1 -1
  361. package/dist/ir/constant-tables.test.js +1 -1
  362. package/dist/ir/final-fields.test.js +1 -1
  363. package/dist/ir/initializer-bindings.test.js +1 -1
  364. package/dist/ir/int32-slots.d.ts +3 -3
  365. package/dist/ir/int32-slots.js +5 -19
  366. package/dist/ir/int32-slots.js.map +1 -1
  367. package/dist/ir/int32-slots.test.js +1 -1
  368. package/dist/ir/ir.d.ts +12 -284
  369. package/dist/ir/ir.js +10 -259
  370. package/dist/ir/ir.js.map +1 -1
  371. package/dist/ir/ir.test.js +2 -7
  372. package/dist/ir/ir.test.js.map +1 -1
  373. package/dist/ir/runtime-features.d.ts +3 -30
  374. package/dist/ir/runtime-features.js +5 -41
  375. package/dist/ir/runtime-features.js.map +1 -1
  376. package/dist/ir/scalar-records.test.js +1 -1
  377. package/dist/ir/serialize.d.ts +1 -1
  378. package/dist/ir/serialize.js +3 -3
  379. package/dist/ir/serialize.js.map +1 -1
  380. package/dist/ir/traverse.js +0 -21
  381. package/dist/ir/traverse.js.map +1 -1
  382. package/dist/ir/unshare.test.js +1 -1
  383. package/dist/ir/validate.js +9 -207
  384. package/dist/ir/validate.js.map +1 -1
  385. package/dist/ir/validate.test.js +6 -6
  386. package/dist/library/fence-eval.test.js +1 -1
  387. package/dist/library/int-infer.test.js +4 -4
  388. package/dist/library/library-cache.test.js +5 -5
  389. package/dist/library/prepare.js +5 -20
  390. package/dist/library/prepare.js.map +1 -1
  391. package/dist/native/cli.js +0 -2
  392. package/dist/native/cli.js.map +1 -1
  393. package/dist/native/compiler.test.js +2 -4
  394. package/dist/native/compiler.test.js.map +1 -1
  395. package/dist/native/prepare.js +2 -4
  396. package/dist/native/prepare.js.map +1 -1
  397. package/dist/native/sanitizer.js +2 -16
  398. package/dist/native/sanitizer.js.map +1 -1
  399. package/dist/native/sanitizer.test.js +0 -3
  400. package/dist/native/sanitizer.test.js.map +1 -1
  401. package/dist/startup-cache.js +0 -2
  402. package/dist/startup-cache.js.map +1 -1
  403. package/package.json +20 -20
  404. package/surface-manifest.json +80 -88
  405. package/dist/backend/llvm/expr-island.d.ts +0 -15
  406. package/dist/backend/llvm/expr-island.js +0 -709
  407. package/dist/backend/llvm/expr-island.js.map +0 -1
  408. package/dist/frontend/lowering/coercions/island.d.ts +0 -37
  409. package/dist/frontend/lowering/coercions/island.js +0 -350
  410. package/dist/frontend/lowering/coercions/island.js.map +0 -1
  411. package/dist/frontend/lowering/lower-island.d.ts +0 -229
  412. package/dist/frontend/lowering/lower-island.js.map +0 -1
  413. package/dist/frontend/lowering/lower-island.test.d.ts +0 -1
  414. package/dist/frontend/lowering/lower-island.test.js +0 -56
  415. package/dist/frontend/lowering/lower-island.test.js.map +0 -1
  416. package/dist/frontend/npm-fetch-analysis.d.ts +0 -17
  417. package/dist/frontend/npm-fetch-analysis.js +0 -109
  418. package/dist/frontend/npm-fetch-analysis.js.map +0 -1
  419. package/dist/frontend/npm-fetch-analysis.test.d.ts +0 -1
  420. package/dist/frontend/npm-fetch-analysis.test.js +0 -130
  421. package/dist/frontend/npm-fetch-analysis.test.js.map +0 -1
  422. package/dist/frontend/npm-fetch-node.d.ts +0 -2
  423. package/dist/frontend/npm-fetch-node.js +0 -12
  424. package/dist/frontend/npm-fetch-node.js.map +0 -1
  425. package/dist/frontend/npm-fetch-syntax.d.ts +0 -6
  426. package/dist/frontend/npm-fetch-syntax.js +0 -202
  427. package/dist/frontend/npm-fetch-syntax.js.map +0 -1
  428. package/dist/native/runtime-typescript.d.ts +0 -4
  429. package/dist/native/runtime-typescript.js +0 -74
  430. package/dist/native/runtime-typescript.js.map +0 -1
  431. package/dist/native/runtime-typescript.test.d.ts +0 -1
  432. package/dist/native/runtime-typescript.test.js +0 -41
  433. package/dist/native/runtime-typescript.test.js.map +0 -1
@@ -19,10 +19,9 @@ import { type UnionLiteral } from "../union-discriminants.js";
19
19
  import type { ScrDiagnostic } from "../../diagnostics/diagnostic.js";
20
20
  import { UNSUPPORTED } from "../../diagnostics/diagnostic.js";
21
21
  import type { IrClassDef, IrExpr, IrFfiImport, IrFunction, IrGlobal, IrLocal, IrModule, IrParam, IrRecordShape, IrStmt, IrType, IrUnionDef, SrcLoc } from "../../ir/ir.js";
22
- import type { DynamicImportResolution, NpmBuiltinUse, NpmLazyTrap } from "../npm.js";
23
22
  import { type StartupCrash } from "../program.js";
24
23
  import { ShapeRegistry, type TypeMapperCtx, UnionRegistry } from "../type-mapper.js";
25
- import { type CompoundOp, type IslandFnEntry, type BuiltinModuleFn } from "./surfaces.js";
24
+ import { type CompoundOp, type StdlibFnEntry, type BuiltinModuleFn } from "./surfaces.js";
26
25
  import { type FileParts } from "./lower-modules.js";
27
26
  import { type ClassInfo, type ClassIteratorInfo, type GenericClassInfo, findStaticOn } from "./lower-classes.js";
28
27
  import { type MixinFnShape } from "./lower-mixins.js";
@@ -66,11 +65,6 @@ export interface LowerStats {
66
65
  * statements inside a poisoned construct were never reached and don't). */
67
66
  statementsTotal: number;
68
67
  statementsFailed: number;
69
- /** Statements that LOWERED but contain island constructs (jsOp/jsExit —
70
- * package calls, island-backed lib members): they compile, but their
71
- * work runs in the embedded engine. Only a --dynamic analysis produces
72
- * these; coverage renders them as "compile dynamically". */
73
- statementsIsland: number;
74
68
  /** Functions whose signature couldn't be analyzed (bodies not counted). */
75
69
  functionsSkipped: number;
76
70
  }
@@ -78,9 +72,6 @@ export interface LowerStats {
78
72
  * identifiers of a (possibly nested) destructuring pattern in source
79
73
  * order. */
80
74
  export declare function boundIdentifiersOf(name: ts.BindingName): ts.Identifier[];
81
- /** Inspect executable children directly, without boxing the statement tree
82
- * into checked-dynamic storage just to calculate coverage. */
83
- export declare function stmtUsesIsland(stmts: IrStmt | IrStmt[]): boolean;
84
75
  /** Statements a never-lowered body would have contributed to the coverage
85
76
  * totals: every element of a statement list (blocks, case clauses), plus
86
77
  * the single-statement bodies of control flow, nested functions included —
@@ -102,7 +93,6 @@ export interface LowerResult {
102
93
  statsByFile?: Map<string, {
103
94
  total: number;
104
95
  failed: number;
105
- island: number;
106
96
  }>;
107
97
  /** --provenance-sources only: diagnostics of elided pure-annotated dead
108
98
  * consts in fetched source modules — off the build, on the report. */
@@ -117,21 +107,10 @@ export interface LowerResult {
117
107
  /** Compile-time-detectable behavior differences from Node (SC6xxx
118
108
  * divergence warnings) in the program's own modules. Never failures. */
119
109
  divergences?: ScrDiagnostic[];
120
- /** --dynamic only: every Node builtin the embedded npm graph imports,
121
- * shimmed or not — the coverage report's island honesty. */
122
- npmBuiltins?: NpmBuiltinUse[];
123
- /** --dynamic only: unresolvable specifiers reached ONLY by require()/
124
- * import() edges — the build embeds Node's call-time error as a runtime
125
- * trap; the coverage report lists them beside the builtins. */
126
- npmLazyTraps?: NpmLazyTrap[];
127
110
  }
128
111
  export interface LowerOptions {
129
112
  /** Parser/checker services owned by the load; required for npm graph analysis. */
130
113
  frontendServices?: FrontendServices | undefined;
131
- /** --dynamic: the island engine is linked, so island constructs
132
- * (__island_eval) may lower. Off by default — without it they produce a
133
- * requires-dynamic diagnostic instead. */
134
- dynamic?: boolean;
135
114
  /** Coverage: additionally lower the unreached remainder (bodies nothing
136
115
  * on the entry path reaches) in a throwaway pass and report its
137
116
  * diagnostics and stats under `unreached` — the whole-program analysis
@@ -258,30 +237,13 @@ export interface LowererMode {
258
237
  * diagnostics nothing flushed), reported separately: whole-program analysis without
259
238
  * letting unreached code fail builds. */
260
239
  export declare function lowerToIr(program: ts.Program, entry: ts.SourceFile, moduleOrder: ts.SourceFile[], options?: LowerOptions): LowerResult;
261
- /** The island-handle type a `import(...)` initializer gives a binding
262
- * whose DECLARED type has no static mapping (`Promise<typeof
263
- * import("./m")>` — module-namespace types don't map): the direct form
264
- * holds the static promise-of-handle, the awaited form holds the handle
265
- * itself. Null for every other initializer shape. */
266
- export declare function importCallHandleType(expr: ts.Expression | undefined): IrType | null;
267
240
  /** The native namespace type produced by a literal static import() of a
268
241
  * compiled program module or supported Node builtin. This syntax-level
269
242
  * fallback is used where the checker exposes an anonymous builtin-module
270
243
  * object type with no stable module symbol (locals/globals are still
271
244
  * represented nominally by the value they actually receive). */
272
245
  export declare function staticImportNamespaceType(lowerer: Lowerer, expr: ts.Expression | undefined): IrType | null;
273
- /** True when `expr` is a call that resolved to an overload SIGNATURE of a
274
- * source-implemented function whose implementation returns an island value
275
- * (`any` under --dynamic): tsc never checks overload return types against
276
- * the body — only the implementation signature is checked — so the
277
- * overload's return is an unverifiable claim about an island value. The
278
- * binding stores the HANDLE instead of trap-extracting the claimed type
279
- * (reconcileOverloadReturn keeps the call jsval by the same rule), and
280
- * uses dispatch to engine ops — exactly the value Node's binding holds.
281
- * Ambient (.d.ts) declarations never reach this: they have no compiled
282
- * implementation, so their calls lower through the island/builtin paths
283
- * whose validated exits keep the checker-trust trap. */
284
- export declare function uncheckedOverloadHandleCall(lowerer: Lowerer, expr: ts.Expression | undefined): boolean;
246
+ export declare function uncheckedOverloadHandleCall(_lowerer: Lowerer, _expr: ts.Expression | undefined): boolean;
285
247
  /** The JavaScript declaration fallback for unmappable binding types (see
286
248
  * irTypeOf): `any` and every other inference residue is the checked-
287
249
  * dynamic 'unknown' kind, and array types keep their array-ness with the
@@ -308,29 +270,6 @@ export declare function neverTaintedJsType(lowerer: Lowerer, node: ts.Node, t: t
308
270
  * ledger exactly like a deferred statement fence — nothing silently
309
271
  * drops off the coverage report. */
310
272
  export declare function ladderFenceExpr(lowerer: Lowerer, surface: string, node: ts.Node, hint?: string): IrExpr;
311
- /** The checked-dynamic declaration fallback for unmappable binding types
312
- * (see irTypeOf), two gates over one story:
313
- *
314
- * JAVASCRIPT files: `any` and every other inference residue is the
315
- * checked-dynamic 'unknown' kind, and array types keep their array-ness
316
- * with the fallback applied to the ELEMENT (any[]/never[] evolving arrays
317
- * become unknown[], so length/push/index still lower).
318
- *
319
- * TYPESCRIPT files: genuine checker-`any` residue ONLY — a bare `any`
320
- * binding (`flags & Any`), or a single-call-signature function type whose
321
- * only unmappable pieces are `any` (`(value: any) => value is string` —
322
- * the arrow the binding holds lowers those params to dyn, so the binding
323
- * keeps its func-ness with the same per-piece fallback). The honest
324
- * static subset of `any` is a binding whose VALUES are dyn-representable:
325
- * the binding is 'unknown' storage with the boundary conversions
326
- * coerceToExpected already applies (dynFrom into the slot, validated
327
- * dynCheck out) and per-site SC2011 fences for the operations the checked-dynamic tree
328
- * cannot carry JS-exactly (the island still lifts those). Every OTHER
329
- * unmappable TS type keeps its own diagnostic — annotations exist there,
330
- * and the fence names the real blocker. `--dynamic` builds never reach
331
- * this fallback for `any` (mapType answers jsval first).
332
- *
333
- * Null for void (no value exists to represent). */
334
273
  export declare function dynFallbackType(lowerer: Lowerer, node: ts.Node, t: ts.Type): IrType | null;
335
274
  /** The JS `Function.prototype.name` of an expression flowing into a dyn
336
275
  * slot. Immutable identifier aliases retain their creation-site name; property
@@ -343,7 +282,6 @@ export declare class Lowerer {
343
282
  readonly program: ts.Program;
344
283
  readonly entry: ts.SourceFile;
345
284
  readonly moduleOrder: ts.SourceFile[];
346
- readonly dynamic: boolean;
347
285
  readonly frontendServices: FrontendServices | undefined;
348
286
  readonly checker: ts.TypeChecker;
349
287
  readonly diags: ScrDiagnostic[];
@@ -763,33 +701,21 @@ export declare class Lowerer {
763
701
  * falls back through the shared node (collectGlobals registers both). */
764
702
  readonly globalsByDeclNode: Map<import("../ts7/ast-node.js").AstNode, IrGlobal>;
765
703
  readonly globalsList: IrGlobal[];
766
- /** npm-import init statements (--dynamic), keyed by file AND import
767
- * declaration: the island.import assignments/side-effect loads for that
768
- * statement. lowerFileInit splices them into the importing file's %init
769
- * header at the statement's position — Node evaluates each imported
770
- * module (island packages included) where the import appears, so an
771
- * `import "polyfill"` before an `import "./app.js"` runs the package
772
- * top-level BEFORE app's init, not after. */
773
704
  readonly npmInitActions: Map<ts.SourceFile, Map<ts.StatementBase, IrStmt[]>>;
774
705
  /** Per-file %init PRELUDE statements for JSON imports: bakeable DATA
775
706
  * assignments with no observable evaluation order of their own —
776
707
  * prepended by lowerFileInit so the bindings are live before any
777
708
  * top-level statement runs. */
778
709
  readonly jsonInitActions: Map<ts.SourceFile, IrStmt[]>;
779
- /** The embedded npm runtime graph (collectNpmImports), attached to the
780
- * emitted module. Null without npm imports or without --dynamic. */
781
- npmEmbedded: IrModule["embedded"] | null;
782
- npmBuiltins: NpmBuiltinUse[] | null;
783
- npmLazyTraps: NpmLazyTrap[] | null;
784
710
  /** Dynamic `import("literal")` resolutions, keyed
785
711
  * `fileName\u0000specifier` (collectDynamicImports fills it during npm
786
712
  * collection; lowerDynamicImportCall reads it per site). */
787
- readonly dynImports: Map<string, DynamicImportResolution>;
788
- /** createRequire-require resolutions of BARE npm specifiers, keyed
789
- * `fileName\u0000specifier` (collectCreateRequires fills it during npm
790
- * collection under --dynamic — the require-condition entry key plus its
791
- * embedded format; lowerCreateRequireCall reads it per site; "" marks a
792
- * failed resolution already reported at collection). */
713
+ readonly dynImports: Map<string, {
714
+ kind: "program-module";
715
+ } | {
716
+ kind: "static-builtin";
717
+ module: string;
718
+ }>;
793
719
  readonly createRequireImports: Map<string, "" | {
794
720
  entryKey: string;
795
721
  format: "esm" | "cjs" | "json";
@@ -798,11 +724,6 @@ export declare class Lowerer {
798
724
  * (lowerOwnModuleImport): every `import()` of the same program module
799
725
  * shares one builder. */
800
726
  readonly dynNsBuilders: Map<ts.SourceFile, string>;
801
- /** Parameters forced to the island-handle type (jsval) regardless of
802
- * their checker type: then-handler params whose settled value is an
803
- * engine handle (a dynamic import's namespace object) — paramShape's
804
- * early-out. */
805
- readonly jsvalParamOverrides: Set<ts.ParameterDeclaration>;
806
727
  readonly checkedCallbackParams: Set<ts.ParameterDeclaration>;
807
728
  /** Inline Promise.then parameters whose contextual type is a builtin
808
729
  * module namespace anonymous object. The settled native token is the
@@ -1011,13 +932,12 @@ export declare class Lowerer {
1011
932
  readonly statsByFile: Map<string, {
1012
933
  total: number;
1013
934
  failed: number;
1014
- island: number;
1015
935
  }>;
1016
936
  /** Bumps the per-file attribution counter (no-op unless provenance is
1017
937
  * active and this is the emit/discovery lane — mirror the CALLER's
1018
938
  * suppressStats guard, this method only gates remainder). */
1019
- bumpFileStat(file: string, kind: "total" | "failed" | "island"): void;
1020
- constructor(program: ts.Program, entry: ts.SourceFile, moduleOrder: ts.SourceFile[], dynamic: boolean, mode?: LowererMode);
939
+ bumpFileStat(file: string, kind: "total" | "failed"): void;
940
+ constructor(program: ts.Program, entry: ts.SourceFile, moduleOrder: ts.SourceFile[], mode?: LowererMode);
1021
941
  registerBuiltinErrorClasses(): void;
1022
942
  private classProtocols;
1023
943
  classImplementedProtocol(type: ts.Type): boolean;
@@ -1234,19 +1154,10 @@ export declare class Lowerer {
1234
1154
  pushDiag(diag: ScrDiagnostic): void;
1235
1155
  unsupported(code: keyof typeof UNSUPPORTED & `SC${number}`, node: ts.Node, featureOverride?: string, hintOverride?: string): never;
1236
1156
  externalHostFence(specifier: string, node: ts.Node, valueUse?: boolean): never;
1237
- /** The dynamic-family fence for an OPERATION on an `any`-origin
1238
- * checked-dynamic value that only the engine can execute (operators,
1239
- * iteration, computed member names, ...). Carries SC2011 — the same
1240
- * code as the `any` type fence — so the coverage report groups it with
1241
- * the dynamic-capable family and the two-tier retry knows the island
1242
- * lifts the site. Use exactly when the blocking operand IS dyn-typed
1243
- * and its checker type is `any`-flavored; genuine `unknown` keeps the
1244
- * SC1100-family fences (tsc constrains what unknown can do, so those
1245
- * sites are checker-error territory, not engine territory). */
1246
1157
  anyOpFence(feature: string, node: ts.Node): never;
1247
1158
  /** True when this expression's CHECKER type is `any`-flavored — the
1248
1159
  * gate anyOpFence's call sites use to tell `any`-origin dyn values
1249
- * (the engine could run the operation) from genuine `unknown` ones. */
1160
+ * with an unsupported operation from genuine `unknown` ones. */
1250
1161
  anyOrigin(node: ts.Node): boolean;
1251
1162
  badType(node: ts.Node, type: ts.Type): never;
1252
1163
  /** The lib fence (SC2020): a reached use of standard-library surface
@@ -1261,10 +1172,6 @@ export declare class Lowerer {
1261
1172
  fenceStaticAbortControllerMemberRead(access: ts.PropertyAccessExpression | ts.ElementAccessExpression): IrExpr | null;
1262
1173
  fenceStaticHeadersIteration(node: ts.Node): void;
1263
1174
  fenceFetchObjectAssignment(target: ts.ObjectLiteralExpression, source: ts.Expression): void;
1264
- lowerDynamicHeadersIteratorCall(call: ts.CallExpression, access: ts.ElementAccessExpression): IrExpr | null;
1265
- lowerDynamicHeadersSpread(node: ts.Expression, type: IrType & {
1266
- kind: "array";
1267
- }): IrExpr | null;
1268
1175
  fenceStaticReadableStreamMember(access: ts.PropertyAccessExpression | ts.ElementAccessExpression, use: "read" | "call"): IrExpr | null;
1269
1176
  typeOf(node: ts.Node): ts.Type;
1270
1177
  /** mapType with this Lowerer's registries and (while a generic instance
@@ -1315,17 +1222,6 @@ export declare class Lowerer {
1315
1222
  * union in field position is JSON-safe (isJsonSafeType), so a record that
1316
1223
  * still fails the fence does so for some other reason. */
1317
1224
  bareUndefinedArmedUnion(t: IrType): boolean;
1318
- /** canCrossIslandBoundary with this Lowerer's registries — THE test
1319
- * behind every marshal/exit decision (the implicit coercions, jsvalIn,
1320
- * the checked island-exit cast). Rejections that follow a false answer
1321
- * speak through boundaryIntoIslandMsg / boundaryOutOfIslandMsg. */
1322
- boundarySafe(t: IrType): boolean;
1323
- /** canExitIslandToType with this Lowerer's registries — the EXIT
1324
- * direction's slightly wider test (bare undefined-armed unions of
1325
- * JSON-safe data arms exit; the engine's undefined takes the undefined
1326
- * arm before the JSON round trip). */
1327
- boundaryExitSafe(t: IrType): boolean;
1328
- isIslandExpr(node: ts.Expression): boolean;
1329
1225
  /** True when this node's CHECKER type is proven `any[]`/`unknown[]`,
1330
1226
  * directly or through the intersection tsc builds for a readonly tuple
1331
1227
  * union (`(Model | readonly [Model, Command]) & any[]`; TS7 distributes
@@ -1466,13 +1362,6 @@ export declare class Lowerer {
1466
1362
  narrowedArmHelper(fromId: string, target: IrType, loc: SrcLoc): string | null;
1467
1363
  checkedNarrowCall(helper: string, value: IrExpr, type: IrType, loc: SrcLoc): IrExpr;
1468
1364
  deferredReadHelper(fromId: string, target: IrType, loc: SrcLoc): string | null;
1469
- jsvalLiftable(t: IrType, visiting?: Set<string>): boolean;
1470
- jsvalLiftExpr(e: IrExpr, loc: SrcLoc): IrExpr;
1471
- unionToJsvalHelper(unionId: string, loc: SrcLoc): string;
1472
- recordToJsvalHelper(shapeId: string, loc: SrcLoc): string;
1473
- arrayToJsvalHelper(elem: IrType, loc: SrcLoc): string;
1474
- arrayToJsvalArrayHelper(fromElem: IrType, loc: SrcLoc): string | null;
1475
- jsvalIn(e: IrExpr, node: ts.Node): IrExpr;
1476
1365
  /** THE coercion path for values flowing into a typed slot: union arms
1477
1366
  * wrap implicitly (coerceToExpected), then the exact-type fence runs
1478
1367
  * (SC2002 for record shapes, SC2003 for unions). Every slot-directed
@@ -1480,9 +1369,8 @@ export declare class Lowerer {
1480
1369
  * directly when the expression was already lowered. */
1481
1370
  coerceInto(node: ts.Node, expr: IrExpr, expected: IrType): IrExpr;
1482
1371
  /** The unit an 'any' expression PROVABLY holds on every run, or null
1483
- * when no proof exists. Two spellings prove: the lowered value IS the
1484
- * engine unit literal (`null as any`, an any-contextual `undefined`),
1485
- * or the node is an identifier whose every declaration is a plain,
1372
+ * when no proof exists. The node must be an identifier whose every
1373
+ * declaration is a plain,
1486
1374
  * non-ambient `var`/`let`/`const` declarator under a variable STATEMENT
1487
1375
  * (catch bindings, for-of/for-in cursors, parameters, and imports all
1488
1376
  * fail this shape test — each receives values from elsewhere), each
@@ -1493,7 +1381,7 @@ export declare class Lowerer {
1493
1381
  * bindings are read-only, so cross-file writes don't exist). A hoisted
1494
1382
  * `var` read before its unit-initialized statement holds undefined —
1495
1383
  * also a unit — so the mixed case reports both names. */
1496
- provenUnitAnyOf(node: ts.Node, value: IrExpr): string | null;
1384
+ provenUnitAnyOf(node: ts.Node, _value: IrExpr): string | null;
1497
1385
  /** A key conversion may rebox or upcast a reference, but must never copy
1498
1386
  * its referent. Apply the ordinary checked narrowing to absent arms from
1499
1387
  * runtime-optional reads; only present reference arms participate here. */
@@ -1581,14 +1469,6 @@ export declare class Lowerer {
1581
1469
  * undefined-armed union fields, which can be absent, and `true` for
1582
1470
  * every other declared field. */
1583
1471
  recordFieldPresent(obj: IrExpr, shapeId: string, field: string, loc: SrcLoc): IrExpr;
1584
- /** The entry value of a binding JS initializes to `undefined` (an
1585
- * initializer-less declaration, a hoisted `var` before its statement):
1586
- * undefined-armed unions hold the interned undefined arm, and 'any'
1587
- * slots hold the ENGINE's undefined — tsc's definite-assignment
1588
- * analysis never guards `any` reads, so a jsval slot IS readable before
1589
- * any assignment and must never stay a C-level NULL (a validated exit
1590
- * or engine op on NULL is memory-unsafe, not a TypeError). Null for
1591
- * every other type: tsc rejects their pre-assignment reads. */
1592
1472
  unassignedSlotInit(type: IrType, loc: SrcLoc): IrExpr | null;
1593
1473
  undefinedArgFor(type: IrType, loc: SrcLoc, blame: ts.Node): IrExpr;
1594
1474
  requireExactArityValue(blame: ts.Node, contextual: ts.Expression | null, shapes: readonly ParamShape[], funcType: IrType): void;
@@ -1802,13 +1682,6 @@ export declare class Lowerer {
1802
1682
  * through arrows (function expressions/declarations reset `this` in JS;
1803
1683
  * their bodies never see an enclosing method's binding). */
1804
1684
  resolveThis(): IrLocal | null;
1805
- /** READ-ONLY twin of resolveLocal for PROBES (isIslandExpr): answers
1806
- * the nearest binding entry without boxing, threading, or predeclaring.
1807
- * resolveKey mutates capture state as a side effect, and a speculative
1808
- * island-ness query through a context that takes no captures (a plain
1809
- * declared function between the origin and the reference) was an ICE —
1810
- * the REAL lowering path still resolves (and diagnoses) the reference
1811
- * itself. */
1812
1685
  peekLocal(ident: ts.Identifier): IrLocal | null;
1813
1686
  resolveKey(symbol: ts.Symbol | undefined, blame?: ts.Node): IrLocal | null;
1814
1687
  isSelfReference(ident: ts.Identifier): boolean;
@@ -1864,13 +1737,6 @@ export declare class Lowerer {
1864
1737
  * supported-surface provenance check. */
1865
1738
  readonly isStdlibFile: (sf: ts.SourceFile) => boolean;
1866
1739
  nodeTypesOnlySymbol(sym: ts.Symbol | null | undefined): boolean;
1867
- /** True for an npm package's shipped declaration files — under
1868
- * node_modules but NOT the standard library (typescript's own lib files
1869
- * live under node_modules too), or inside a registered workspace-linked
1870
- * package (a node_modules symlink whose realpath'd files carry no
1871
- * node_modules segment — workspace-registry.ts). The provenance half of the npm
1872
- * typing rule (package types are island handles) and of the per-package
1873
- * requires-dynamic attribution. */
1874
1740
  readonly isNpmFile: (sf: ts.SourceFile) => boolean;
1875
1741
  npmPackageOf(type: ts.Type): string | null;
1876
1742
  npmMemberFence(access: ts.PropertyAccessExpression): void;
@@ -2105,8 +1971,8 @@ export declare class Lowerer {
2105
1971
  lowerPromiseMethodCall(call: ts.CallExpression, access: ts.PropertyAccessExpression): IrExpr | null;
2106
1972
  lowerPromiseStaticCall(call: ts.CallExpression, access: ts.PropertyAccessExpression): IrExpr | null;
2107
1973
  lowerNumberStaticProperty(expr: ts.PropertyAccessExpression): IrExpr | null;
2108
- requireDynamicApi(feature: string, node: ts.Node, hint?: string): void;
1974
+ refuseUnsupportedApi(feature: string, node: ts.Node, hint?: string): never;
2109
1975
  lowerMathProperty(expr: ts.PropertyAccessExpression): IrExpr | null;
2110
- islandGlobalFnOf(ident: ts.Identifier): IslandFnEntry | null;
2111
- lowerIslandMethodCall(call: ts.CallExpression, access: ts.PropertyAccessExpression): IrExpr | null;
1976
+ stdlibGlobalFnOf(ident: ts.Identifier): StdlibFnEntry | null;
1977
+ lowerStdlibMethodCall(call: ts.CallExpression, access: ts.PropertyAccessExpression): IrExpr | null;
2112
1978
  }