@prisma/orm-framework 8.0.0-rc.2-dev.2 → 8.0.0-rc.20

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 (354) hide show
  1. package/README.md +1 -5
  2. package/dist/{apply-specifier-default-control-policy-CAxiXxKg.d.mts → apply-specifier-default-control-policy-Dlz0iwnK.d.mts} +2 -2
  3. package/dist/apply-specifier-default-control-policy-Dlz0iwnK.d.mts.map +1 -0
  4. package/dist/{assertions-Cz-GWH8P.mjs → assertions-Dw1lZz_Q.mjs} +2 -2
  5. package/dist/{assertions-Cz-GWH8P.mjs.map → assertions-Dw1lZz_Q.mjs.map} +1 -1
  6. package/dist/authoring-CNUti739.mjs +764 -0
  7. package/dist/authoring-CNUti739.mjs.map +1 -0
  8. package/dist/authoring-CjwinhU5.d.mts +206 -0
  9. package/dist/authoring-CjwinhU5.d.mts.map +1 -0
  10. package/dist/binder-D_4RBHbt-BJ6VKwEZ.d.mts +515 -0
  11. package/dist/binder-D_4RBHbt-BJ6VKwEZ.d.mts.map +1 -0
  12. package/dist/{canonicalization-DFpB09nP-4OdB2nsy.d.mts → canonicalization-CyrrXGmj-CeKUkht1.d.mts} +3 -3
  13. package/dist/{canonicalization-DFpB09nP-4OdB2nsy.d.mts.map → canonicalization-CyrrXGmj-CeKUkht1.d.mts.map} +1 -1
  14. package/dist/{hashing-utils-DQgS3nOe.mjs → canonicalization-path-match-D88xLEq6-BFQC39ZG.mjs} +23 -3
  15. package/dist/canonicalization-path-match-D88xLEq6-BFQC39ZG.mjs.map +1 -0
  16. package/dist/{utils-DMAM0unR.mjs → canonicalize-json-ZPawceQR-Dua1VNEB.mjs} +2 -2
  17. package/dist/canonicalize-json-ZPawceQR-Dua1VNEB.mjs.map +1 -0
  18. package/dist/codec-B4ypaota.d.mts +289 -0
  19. package/dist/codec-B4ypaota.d.mts.map +1 -0
  20. package/dist/codec-Do8tfXqk.mjs +457 -0
  21. package/dist/codec-Do8tfXqk.mjs.map +1 -0
  22. package/dist/codec-descriptor-D0oY-hgs-C5e11ola.mjs +93 -0
  23. package/dist/codec-descriptor-D0oY-hgs-C5e11ola.mjs.map +1 -0
  24. package/dist/codec-types-BXLUbk-Y-DpGfKGK0.mjs +22 -0
  25. package/dist/codec-types-BXLUbk-Y-DpGfKGK0.mjs.map +1 -0
  26. package/dist/codec-types-CPgEZoIq-BL9hisr8.d.mts +384 -0
  27. package/dist/codec-types-CPgEZoIq-BL9hisr8.d.mts.map +1 -0
  28. package/dist/{components-dZRz3T5y.mjs → components-BaV9iCkq.mjs} +34 -3
  29. package/dist/components-BaV9iCkq.mjs.map +1 -0
  30. package/dist/components-CRBcIta_.d.mts +86 -0
  31. package/dist/components-CRBcIta_.d.mts.map +1 -0
  32. package/dist/components.d.mts +19 -17
  33. package/dist/components.mjs +16 -12
  34. package/dist/components__authoring.d.mts +4 -3
  35. package/dist/components__authoring.mjs +3 -2
  36. package/dist/components__codec.d.mts +3 -3
  37. package/dist/components__codec.mjs +6 -4
  38. package/dist/components__components.d.mts +6 -4
  39. package/dist/components__components.mjs +4 -3
  40. package/dist/components__control.d.mts +5 -4
  41. package/dist/components__control.mjs +3 -2
  42. package/dist/components__emission.d.mts +4 -4
  43. package/dist/components__execution.d.mts +1 -1
  44. package/dist/components__ir.d.mts +1 -1
  45. package/dist/components__ir.mjs +2 -1
  46. package/dist/components__psl-ast.d.mts +4 -4
  47. package/dist/components__psl-ast.mjs +2 -2
  48. package/dist/components__runtime.d.mts +3 -2
  49. package/dist/components__runtime.mjs +2 -2
  50. package/dist/components__utils.mjs +1 -1
  51. package/dist/{config-types-CW4PDwMC.d.mts → config-types-BTFT7QfJ.d.mts} +73 -41
  52. package/dist/config-types-BTFT7QfJ.d.mts.map +1 -0
  53. package/dist/config-types-D0mYyP62.mjs +61 -0
  54. package/dist/config-types-D0mYyP62.mjs.map +1 -0
  55. package/dist/config.d.mts +2 -3
  56. package/dist/config.mjs +2 -3
  57. package/dist/config__config-types.d.mts +2 -2
  58. package/dist/config__config-types.mjs +2 -2
  59. package/dist/contract-authoring.d.mts +152 -17
  60. package/dist/contract-authoring.d.mts.map +1 -1
  61. package/dist/contract-authoring.mjs +190 -9
  62. package/dist/contract-authoring.mjs.map +1 -1
  63. package/dist/{contract-types-CkdMH7F7-9EHXSwbH.d.mts → contract-types-DEIEpzU_-DvAVuBr5.d.mts} +14 -8
  64. package/dist/contract-types-DEIEpzU_-DvAVuBr5.d.mts.map +1 -0
  65. package/dist/{contract-validation-error-DEiWp_EI-CRwtUgRw.mjs → contract-validation-error-CAnTGhkt-DSnujRaK.mjs} +6 -3
  66. package/dist/contract-validation-error-CAnTGhkt-DSnujRaK.mjs.map +1 -0
  67. package/dist/{contract-validation-error-R7cMoK04.d.mts → contract-validation-error-D1QAeOh5.d.mts} +4 -2
  68. package/dist/contract-validation-error-D1QAeOh5.d.mts.map +1 -0
  69. package/dist/contract.d.mts +13 -12
  70. package/dist/contract.mjs +9 -9
  71. package/dist/contract__apply-specifier-default-control-policy.d.mts +1 -1
  72. package/dist/contract__contract-validation-error.d.mts +1 -1
  73. package/dist/contract__contract-validation-error.mjs +1 -1
  74. package/dist/contract__default-namespace.mjs +1 -1
  75. package/dist/contract__enum-accessor.d.mts +2 -2
  76. package/dist/contract__enum-accessor.mjs +1 -1
  77. package/dist/contract__hashing-utils.d.mts +2 -2
  78. package/dist/contract__hashing-utils.mjs +2 -3
  79. package/dist/contract__hashing.d.mts +3 -3
  80. package/dist/contract__hashing.mjs +2 -2
  81. package/dist/contract__resolve-domain-model.d.mts +1 -1
  82. package/dist/contract__types.d.mts +5 -5
  83. package/dist/contract__types.mjs +3 -3
  84. package/dist/contract__validate-domain.d.mts +1 -1
  85. package/dist/contract__validate-domain.mjs +1 -1
  86. package/dist/contract__validate-once.d.mts +2 -0
  87. package/dist/contract__validate-once.mjs +2 -0
  88. package/dist/{control-ql9N9u4f-r3Vv41kZ.d.mts → control-B5ezUWD2-BIAYxeSk.d.mts} +34 -6
  89. package/dist/control-B5ezUWD2-BIAYxeSk.d.mts.map +1 -0
  90. package/dist/{control-DLEm6u5m.mjs → control-DMJqhnwU.mjs} +309 -36
  91. package/dist/control-DMJqhnwU.mjs.map +1 -0
  92. package/dist/control-DrDTlxCS.d.mts +1 -0
  93. package/dist/{control-BD96JZi8-NUhO5Kkw.mjs → control-KsXr4fYD-D2Ows0NI.mjs} +70 -24
  94. package/dist/control-KsXr4fYD-D2Ows0NI.mjs.map +1 -0
  95. package/dist/{control-BF8qzdnM.d.mts → control-s5ECUABR.d.mts} +635 -156
  96. package/dist/control-s5ECUABR.d.mts.map +1 -0
  97. package/dist/data-type-V6mcDhcG-DVQAPOQT.mjs +275 -0
  98. package/dist/data-type-V6mcDhcG-DVQAPOQT.mjs.map +1 -0
  99. package/dist/declarations-BgUAq1RG-Dz_-EI1Q.mjs +459 -0
  100. package/dist/declarations-BgUAq1RG-Dz_-EI1Q.mjs.map +1 -0
  101. package/dist/{default-namespace-D4vCwkXg-lzVN7gSc.mjs → default-namespace-D4vCwkXg-BEZbN38y.mjs} +2 -2
  102. package/dist/{default-namespace-D4vCwkXg-lzVN7gSc.mjs.map → default-namespace-D4vCwkXg-BEZbN38y.mjs.map} +1 -1
  103. package/dist/{dist-Dqbo77p7.mjs → dist-D1f6xr7F.mjs} +51 -24
  104. package/dist/dist-D1f6xr7F.mjs.map +1 -0
  105. package/dist/{domain-envelope-D6Wn9AmZ-BqZKTT9U.d.mts → domain-envelope-CN721GnP-4huRt7Wc.d.mts} +27 -13
  106. package/dist/domain-envelope-CN721GnP-4huRt7Wc.d.mts.map +1 -0
  107. package/dist/emission-BtJvV97M.d.mts +2 -0
  108. package/dist/{emission-types-DLXP34Ki-CFms3VrX.d.mts → emission-types-B-jKEbjI-D7BW8Gk1.d.mts} +17 -16
  109. package/dist/emission-types-B-jKEbjI-D7BW8Gk1.d.mts.map +1 -0
  110. package/dist/enum-accessor-2OZgavDX.d.mts +104 -0
  111. package/dist/enum-accessor-2OZgavDX.d.mts.map +1 -0
  112. package/dist/enum-accessor-B-A2wNok.mjs +122 -0
  113. package/dist/enum-accessor-B-A2wNok.mjs.map +1 -0
  114. package/dist/errors.d.mts +5 -4
  115. package/dist/errors.mjs +4 -4
  116. package/dist/errors__control.d.mts +3 -2
  117. package/dist/errors__control.mjs +2 -2
  118. package/dist/errors__execution.d.mts +2 -2
  119. package/dist/errors__execution.mjs +2 -2
  120. package/dist/errors__migration.d.mts +2 -2
  121. package/dist/errors__migration.mjs +2 -2
  122. package/dist/execution-CjX5CCTb.d.mts +76 -0
  123. package/dist/execution-CjX5CCTb.d.mts.map +1 -0
  124. package/dist/{execution-CSnQT8EX.d.mts → execution-lMPVFj5o.d.mts} +2 -2
  125. package/dist/{execution-CSnQT8EX.d.mts.map → execution-lMPVFj5o.d.mts.map} +1 -1
  126. package/dist/execution-vfY4d-SZ.mjs +138 -0
  127. package/dist/execution-vfY4d-SZ.mjs.map +1 -0
  128. package/dist/{declarations-DR6To8_k-BFwkCGeP.mjs → expressions-CMQzbnHk-BL2zN0Iv.mjs} +199 -350
  129. package/dist/expressions-CMQzbnHk-BL2zN0Iv.mjs.map +1 -0
  130. package/dist/framework-authoring-DDxddXZm-uZYdhoE0.d.mts +1096 -0
  131. package/dist/framework-authoring-DDxddXZm-uZYdhoE0.d.mts.map +1 -0
  132. package/dist/{framework-components-hZ2tO-KH-CdRXBOYd.d.mts → framework-components-DKoQnPdB-lax1COaf.d.mts} +28 -91
  133. package/dist/framework-components-DKoQnPdB-lax1COaf.d.mts.map +1 -0
  134. package/dist/generator-functions-CXbQfvYu-BIFU1Ryx.mjs +271 -0
  135. package/dist/generator-functions-CXbQfvYu-BIFU1Ryx.mjs.map +1 -0
  136. package/dist/{hash-content-DwEUh-Rx.d.mts → hash-content-Bde14N2-.d.mts} +2 -2
  137. package/dist/{hash-content-DwEUh-Rx.d.mts.map → hash-content-Bde14N2-.d.mts.map} +1 -1
  138. package/dist/{hash-content-Bugg_nZn.mjs → hash-content-Bdl-HSfq.mjs} +2 -2
  139. package/dist/hash-content-Bdl-HSfq.mjs.map +1 -0
  140. package/dist/{hashing-BtIZVNYX.mjs → hashing-CLRfNAxh.mjs} +28 -9
  141. package/dist/hashing-CLRfNAxh.mjs.map +1 -0
  142. package/dist/hashing-D-DHz0zl.d.mts +36 -0
  143. package/dist/hashing-D-DHz0zl.d.mts.map +1 -0
  144. package/dist/{hashing-utils-qKu59RSC.d.mts → hashing-utils-DiGHKd3b.d.mts} +4 -3
  145. package/dist/{hashing-utils-qKu59RSC.d.mts.map → hashing-utils-DiGHKd3b.d.mts.map} +1 -1
  146. package/dist/ids.d.mts +90 -13
  147. package/dist/ids.d.mts.map +1 -1
  148. package/dist/ids.mjs +45 -59
  149. package/dist/ids.mjs.map +1 -1
  150. package/dist/ids__runtime.d.mts +1 -1
  151. package/dist/ids__runtime.mjs +1 -1
  152. package/dist/{index-CDk9yEbw.d.mts → index-MU-ksXsh.d.mts} +23 -6
  153. package/dist/index-MU-ksXsh.d.mts.map +1 -0
  154. package/dist/{internal-error-kK8QvlDE.d.mts → internal-error-2fJ9fcZX.d.mts} +2 -2
  155. package/dist/{internal-error-kK8QvlDE.d.mts.map → internal-error-2fJ9fcZX.d.mts.map} +1 -1
  156. package/dist/{internal-error-BIc-ehme-ouBQPoEL.mjs → internal-error-ChGYPVpq-DhUD05u0.mjs} +3 -3
  157. package/dist/internal-error-ChGYPVpq-DhUD05u0.mjs.map +1 -0
  158. package/dist/{ir-BvE7L9FK.d.mts → ir-LV4tXsw3.d.mts} +6 -5
  159. package/dist/{ir-BvE7L9FK.d.mts.map → ir-LV4tXsw3.d.mts.map} +1 -1
  160. package/dist/{ir-ChmSSAhX.mjs → ir-uDGU9vaj.mjs} +7 -53
  161. package/dist/ir-uDGU9vaj.mjs.map +1 -0
  162. package/dist/{migration-BvrgDZXw.d.mts → migration-Dluwnqe9.d.mts} +20 -3
  163. package/dist/migration-Dluwnqe9.d.mts.map +1 -0
  164. package/dist/{migration-C57VKLUY.mjs → migration-uC-bSKA4.mjs} +30 -4
  165. package/dist/migration-uC-bSKA4.mjs.map +1 -0
  166. package/dist/namespace-VUH2dgnS-By5y75h9.mjs +53 -0
  167. package/dist/namespace-VUH2dgnS-By5y75h9.mjs.map +1 -0
  168. package/dist/operations.mjs +1 -1
  169. package/dist/{parse-GbZGfMUj-BFSrD2AN.mjs → parse-bZgfjovA-BNgYhylT.mjs} +311 -55
  170. package/dist/parse-bZgfjovA-BNgYhylT.mjs.map +1 -0
  171. package/dist/{parse-0ZJjj_2N-DhQpSVmQ.d.mts → parse-djL5wker-B610mXG4.d.mts} +181 -52
  172. package/dist/parse-djL5wker-B610mXG4.d.mts.map +1 -0
  173. package/dist/psl-ast-COcYtLlz.d.mts +2 -0
  174. package/dist/psl-ast-CyvE6CR-.mjs +116 -0
  175. package/dist/psl-ast-CyvE6CR-.mjs.map +1 -0
  176. package/dist/{psl-ast-CWJQF8LA-Vr5JNPdn.d.mts → psl-ast-rY25o3Ze-ClLY3CYt.d.mts} +10 -40
  177. package/dist/psl-ast-rY25o3Ze-ClLY3CYt.d.mts.map +1 -0
  178. package/dist/psl-parser.d.mts +415 -101
  179. package/dist/psl-parser.d.mts.map +1 -1
  180. package/dist/psl-parser.mjs +2451 -537
  181. package/dist/psl-parser.mjs.map +1 -1
  182. package/dist/psl-parser__format.d.mts +8 -2
  183. package/dist/psl-parser__format.d.mts.map +1 -1
  184. package/dist/psl-parser__format.mjs +65 -34
  185. package/dist/psl-parser__format.mjs.map +1 -1
  186. package/dist/psl-parser__interpret.d.mts +98 -10
  187. package/dist/psl-parser__interpret.d.mts.map +1 -1
  188. package/dist/psl-parser__interpret.mjs +393 -2
  189. package/dist/psl-parser__interpret.mjs.map +1 -1
  190. package/dist/psl-parser__syntax.d.mts +3 -3
  191. package/dist/psl-parser__syntax.mjs +4 -43
  192. package/dist/psl-parser__tokenizer.d.mts +1 -1
  193. package/dist/psl-parser__tokenizer.mjs +1 -1
  194. package/dist/psl-printer.d.mts +7 -17
  195. package/dist/psl-printer.d.mts.map +1 -1
  196. package/dist/psl-printer.mjs +35 -104
  197. package/dist/psl-printer.mjs.map +1 -1
  198. package/dist/resolve-codec-qqMjZrmn-Cok8elAo.mjs +74 -0
  199. package/dist/resolve-codec-qqMjZrmn-Cok8elAo.mjs.map +1 -0
  200. package/dist/{resolve-domain-model-BVSb5wS5-C6Yq0dsD.d.mts → resolve-domain-model-BNr1glea-BLuR-phK.d.mts} +3 -3
  201. package/dist/resolve-domain-model-BNr1glea-BLuR-phK.d.mts.map +1 -0
  202. package/dist/{result-CBZ8X9mU.mjs → result-8OXF26MN.mjs} +14 -3
  203. package/dist/{result-CBZ8X9mU.mjs.map → result-8OXF26MN.mjs.map} +1 -1
  204. package/dist/{result-Bpupv5vO.d.mts → result-BYCOANWy.d.mts} +4 -2
  205. package/dist/result-BYCOANWy.d.mts.map +1 -0
  206. package/dist/runtime-B-YYuWy2.d.mts +899 -0
  207. package/dist/runtime-B-YYuWy2.d.mts.map +1 -0
  208. package/dist/runtime-DSYSc98Y.mjs +1059 -0
  209. package/dist/runtime-DSYSc98Y.mjs.map +1 -0
  210. package/dist/runtime-error-CO4MA3Px-YW5SCUcH.d.mts +19 -0
  211. package/dist/runtime-error-CO4MA3Px-YW5SCUcH.d.mts.map +1 -0
  212. package/dist/{structured-error-CgiSMpdU.mjs → structured-error-BXbihKQ-.mjs} +3 -3
  213. package/dist/{structured-error-CgiSMpdU.mjs.map → structured-error-BXbihKQ-.mjs.map} +1 -1
  214. package/dist/{structured-error-BsNT4Hun.d.mts → structured-error-Cc7AIRsp.d.mts} +19 -5
  215. package/dist/structured-error-Cc7AIRsp.d.mts.map +1 -0
  216. package/dist/suppress-idle-connection-errors-CKrTbp5P.d.mts +18 -0
  217. package/dist/suppress-idle-connection-errors-CKrTbp5P.d.mts.map +1 -0
  218. package/dist/suppress-idle-connection-errors-DzApeUb3.mjs +22 -0
  219. package/dist/suppress-idle-connection-errors-DzApeUb3.mjs.map +1 -0
  220. package/dist/temporal-presets-5TK1pTYJ-DmhrnMP1.mjs +1276 -0
  221. package/dist/temporal-presets-5TK1pTYJ-DmhrnMP1.mjs.map +1 -0
  222. package/dist/temporal-presets-BuMqk7h8-DZSuu4Z_.d.mts +258 -0
  223. package/dist/temporal-presets-BuMqk7h8-DZSuu4Z_.d.mts.map +1 -0
  224. package/dist/text-C3TTEtgd.mjs +35 -0
  225. package/dist/text-C3TTEtgd.mjs.map +1 -0
  226. package/dist/text-C8_-rheN.d.mts +15 -0
  227. package/dist/text-C8_-rheN.d.mts.map +1 -0
  228. package/dist/{tokenizer-1hAHZzmp-QGPORvmA.mjs → tokenizer-C-GTKKjR-B1vOzJy0.mjs} +54 -10
  229. package/dist/tokenizer-C-GTKKjR-B1vOzJy0.mjs.map +1 -0
  230. package/dist/{tokenizer-DcYI0Xrq-C-nNE9mE.d.mts → tokenizer-i8RaVWVa-7fRwlCPP.d.mts} +9 -4
  231. package/dist/tokenizer-i8RaVWVa-7fRwlCPP.d.mts.map +1 -0
  232. package/dist/ts-render.d.mts +2 -2
  233. package/dist/ts-render.mjs +2 -2
  234. package/dist/type-constructor-calls-BLf-HsFy-D_jbIqj8.mjs +261 -0
  235. package/dist/type-constructor-calls-BLf-HsFy-D_jbIqj8.mjs.map +1 -0
  236. package/dist/{types-BnH4zYvN.mjs → types-B8ULzMAX.mjs} +36 -3
  237. package/dist/types-B8ULzMAX.mjs.map +1 -0
  238. package/dist/types-GNXJ7xW2.d.mts +131 -0
  239. package/dist/types-GNXJ7xW2.d.mts.map +1 -0
  240. package/dist/{types-import-spec-3mjbVBhI-DQI6BvKU.d.mts → types-import-spec-DQjfX-gM-zVncuzs0.d.mts} +6 -6
  241. package/dist/types-import-spec-DQjfX-gM-zVncuzs0.d.mts.map +1 -0
  242. package/dist/utils.d.mts +7 -5
  243. package/dist/utils.mjs +9 -7
  244. package/dist/utils__assertions.mjs +1 -1
  245. package/dist/utils__hash-content.d.mts +1 -1
  246. package/dist/utils__hash-content.mjs +1 -1
  247. package/dist/utils__internal-error.d.mts +1 -1
  248. package/dist/utils__internal-error.mjs +1 -1
  249. package/dist/utils__result.d.mts +2 -2
  250. package/dist/utils__result.mjs +2 -2
  251. package/dist/utils__structured-error.d.mts +2 -2
  252. package/dist/utils__structured-error.mjs +1 -1
  253. package/dist/utils__suppress-idle-connection-errors.d.mts +2 -0
  254. package/dist/utils__suppress-idle-connection-errors.mjs +2 -0
  255. package/dist/utils__text.d.mts +2 -0
  256. package/dist/utils__text.mjs +2 -0
  257. package/dist/{validate-domain-BNBs-TVv.d.mts → validate-domain-B5kmlBFB.d.mts} +10 -6
  258. package/dist/validate-domain-B5kmlBFB.d.mts.map +1 -0
  259. package/dist/{validate-domain-BkvFlY3B.mjs → validate-domain-CbXHDYpF.mjs} +43 -22
  260. package/dist/validate-domain-CbXHDYpF.mjs.map +1 -0
  261. package/dist/validate-once-D-IwXHYP.mjs +42 -0
  262. package/dist/validate-once-D-IwXHYP.mjs.map +1 -0
  263. package/dist/validate-once-gfCOHsDh.d.mts +16 -0
  264. package/dist/validate-once-gfCOHsDh.d.mts.map +1 -0
  265. package/package.json +24 -20
  266. package/dist/apply-specifier-default-control-policy-CAxiXxKg.d.mts.map +0 -1
  267. package/dist/authoring-B2H-9qCv.d.mts +0 -1
  268. package/dist/canonicalization-path-match-CNgHuwM_-CCPBeUuk.mjs +0 -25
  269. package/dist/canonicalization-path-match-CNgHuwM_-CCPBeUuk.mjs.map +0 -1
  270. package/dist/capabilities-BCEONw9w-C-lo3rF8.mjs +0 -120
  271. package/dist/capabilities-BCEONw9w-C-lo3rF8.mjs.map +0 -1
  272. package/dist/codec-Cd0QcxAx.mjs +0 -63
  273. package/dist/codec-Cd0QcxAx.mjs.map +0 -1
  274. package/dist/codec-Ce07W3Mz.d.mts +0 -112
  275. package/dist/codec-Ce07W3Mz.d.mts.map +0 -1
  276. package/dist/codec-types-D6VRj2RE-BLElXc-O.d.mts +0 -223
  277. package/dist/codec-types-D6VRj2RE-BLElXc-O.d.mts.map +0 -1
  278. package/dist/codec-types-DcNvNeY1-BO6kUiH0.mjs +0 -30
  279. package/dist/codec-types-DcNvNeY1-BO6kUiH0.mjs.map +0 -1
  280. package/dist/components-CGA_WwEG.d.mts +0 -50
  281. package/dist/components-CGA_WwEG.d.mts.map +0 -1
  282. package/dist/components-dZRz3T5y.mjs.map +0 -1
  283. package/dist/config-types-BqhNxw0z.mjs +0 -67
  284. package/dist/config-types-BqhNxw0z.mjs.map +0 -1
  285. package/dist/config-types-CW4PDwMC.d.mts.map +0 -1
  286. package/dist/config-validation-DPt5hwQx.mjs +0 -168
  287. package/dist/config-validation-DPt5hwQx.mjs.map +0 -1
  288. package/dist/config-validation-Wiqew2J9.d.mts +0 -21
  289. package/dist/config-validation-Wiqew2J9.d.mts.map +0 -1
  290. package/dist/config__config-validation.d.mts +0 -2
  291. package/dist/config__config-validation.mjs +0 -2
  292. package/dist/contract-types-CkdMH7F7-9EHXSwbH.d.mts.map +0 -1
  293. package/dist/contract-validation-error-DEiWp_EI-CRwtUgRw.mjs.map +0 -1
  294. package/dist/contract-validation-error-R7cMoK04.d.mts.map +0 -1
  295. package/dist/control-BD96JZi8-NUhO5Kkw.mjs.map +0 -1
  296. package/dist/control-BF8qzdnM.d.mts.map +0 -1
  297. package/dist/control-DLEm6u5m.mjs.map +0 -1
  298. package/dist/control-ql9N9u4f-r3Vv41kZ.d.mts.map +0 -1
  299. package/dist/declarations-DR6To8_k-BFwkCGeP.mjs.map +0 -1
  300. package/dist/dist-Dqbo77p7.mjs.map +0 -1
  301. package/dist/domain-envelope-D6Wn9AmZ-BqZKTT9U.d.mts.map +0 -1
  302. package/dist/emission-CmUO03gQ.d.mts +0 -2
  303. package/dist/emission-types-DLXP34Ki-CFms3VrX.d.mts.map +0 -1
  304. package/dist/enum-accessor-Db5DaTNX.mjs +0 -35
  305. package/dist/enum-accessor-Db5DaTNX.mjs.map +0 -1
  306. package/dist/enum-accessor-PH5vjghI.d.mts +0 -85
  307. package/dist/enum-accessor-PH5vjghI.d.mts.map +0 -1
  308. package/dist/execution-Crk6IfTs.mjs +0 -218
  309. package/dist/execution-Crk6IfTs.mjs.map +0 -1
  310. package/dist/execution-Cyl2dXxX.d.mts +0 -115
  311. package/dist/execution-Cyl2dXxX.d.mts.map +0 -1
  312. package/dist/framework-authoring-BhctBwih-DQ_6noDM.d.mts +0 -777
  313. package/dist/framework-authoring-BhctBwih-DQ_6noDM.d.mts.map +0 -1
  314. package/dist/framework-authoring-CDEvlouU-DKklu-fL.mjs +0 -698
  315. package/dist/framework-authoring-CDEvlouU-DKklu-fL.mjs.map +0 -1
  316. package/dist/framework-components-hZ2tO-KH-CdRXBOYd.d.mts.map +0 -1
  317. package/dist/hash-content-Bugg_nZn.mjs.map +0 -1
  318. package/dist/hashing-BtIZVNYX.mjs.map +0 -1
  319. package/dist/hashing-CccSPELN.d.mts +0 -25
  320. package/dist/hashing-CccSPELN.d.mts.map +0 -1
  321. package/dist/hashing-utils-DQgS3nOe.mjs.map +0 -1
  322. package/dist/index-CDk9yEbw.d.mts.map +0 -1
  323. package/dist/internal-error-BIc-ehme-ouBQPoEL.mjs.map +0 -1
  324. package/dist/ir-ChmSSAhX.mjs.map +0 -1
  325. package/dist/migration-BvrgDZXw.d.mts.map +0 -1
  326. package/dist/migration-C57VKLUY.mjs.map +0 -1
  327. package/dist/parse-0ZJjj_2N-DhQpSVmQ.d.mts.map +0 -1
  328. package/dist/parse-GbZGfMUj-BFSrD2AN.mjs.map +0 -1
  329. package/dist/psl-ast-BXZoFQBk.d.mts +0 -37
  330. package/dist/psl-ast-BXZoFQBk.d.mts.map +0 -1
  331. package/dist/psl-ast-CWJQF8LA-Vr5JNPdn.d.mts.map +0 -1
  332. package/dist/psl-ast-DUCvVXbB.mjs +0 -239
  333. package/dist/psl-ast-DUCvVXbB.mjs.map +0 -1
  334. package/dist/psl-parser__syntax.mjs.map +0 -1
  335. package/dist/resolve-codec-BZF8TZh_-D-xORT9Q.mjs +0 -59
  336. package/dist/resolve-codec-BZF8TZh_-D-xORT9Q.mjs.map +0 -1
  337. package/dist/resolve-domain-model-BVSb5wS5-C6Yq0dsD.d.mts.map +0 -1
  338. package/dist/result-Bpupv5vO.d.mts.map +0 -1
  339. package/dist/runtime-BqzioOmU.mjs +0 -670
  340. package/dist/runtime-BqzioOmU.mjs.map +0 -1
  341. package/dist/runtime-Cuxw8obj.d.mts +0 -1038
  342. package/dist/runtime-Cuxw8obj.d.mts.map +0 -1
  343. package/dist/structured-error-BsNT4Hun.d.mts.map +0 -1
  344. package/dist/symbol-table-CZ7EVCTL-CR-ncCpD.d.mts +0 -125
  345. package/dist/symbol-table-CZ7EVCTL-CR-ncCpD.d.mts.map +0 -1
  346. package/dist/tokenizer-1hAHZzmp-QGPORvmA.mjs.map +0 -1
  347. package/dist/tokenizer-DcYI0Xrq-C-nNE9mE.d.mts.map +0 -1
  348. package/dist/types-BnH4zYvN.mjs.map +0 -1
  349. package/dist/types-ByeQhU9p.d.mts +0 -17
  350. package/dist/types-ByeQhU9p.d.mts.map +0 -1
  351. package/dist/types-import-spec-3mjbVBhI-DQI6BvKU.d.mts.map +0 -1
  352. package/dist/utils-DMAM0unR.mjs.map +0 -1
  353. package/dist/validate-domain-BNBs-TVv.d.mts.map +0 -1
  354. package/dist/validate-domain-BkvFlY3B.mjs.map +0 -1
@@ -1,4 +1,6 @@
1
- //#region ../../../1-framework/2-authoring/psl-parser/dist/declarations-DR6To8_k.mjs
1
+ import { d as canonicalizeTaggedLiteralBody, z as resolvePslBacktickEscapes } from "./temporal-presets-5TK1pTYJ-DmhrnMP1.mjs";
2
+ import { r as isTerminatedStringLiteral } from "./tokenizer-C-GTKKjR-B1vOzJy0.mjs";
3
+ //#region ../../../1-framework/2-authoring/psl-parser/dist/expressions-CMQzbnHk.mjs
2
4
  /**
3
5
  * A token in the red tree. Unlike the green-layer {@link Token} (kind + text
4
6
  * only), a red token also carries its absolute `offset` within the source and a
@@ -37,11 +39,11 @@ var SyntaxToken = class {
37
39
  }
38
40
  /** The sibling element immediately after this token within its parent. */
39
41
  get nextSiblingOrToken() {
40
- return childAt(this.parent, this.index + 1);
42
+ return this.parent.childAt(this.index + 1);
41
43
  }
42
44
  /** The sibling element immediately before this token within its parent. */
43
45
  get prevSiblingOrToken() {
44
- return childAt(this.parent, this.index - 1);
46
+ return this.parent.childAt(this.index - 1);
45
47
  }
46
48
  /** The next token in document order, crossing node boundaries. */
47
49
  get nextToken() {
@@ -106,12 +108,45 @@ var SyntaxNode = class SyntaxNode {
106
108
  parent;
107
109
  /** Position within the parent's children, enabling O(1) sibling navigation without rescanning the green layer. */
108
110
  index;
111
+ #childSlots;
112
+ #childOffsets;
109
113
  constructor(green, offset, parent, index) {
110
114
  this.green = green;
111
115
  this.offset = offset;
112
116
  this.parent = parent;
113
117
  this.index = index;
114
118
  }
119
+ #slots() {
120
+ let slots = this.#childSlots;
121
+ if (slots === void 0) {
122
+ slots = new Array(this.green.children.length).fill(void 0);
123
+ this.#childSlots = slots;
124
+ }
125
+ return slots;
126
+ }
127
+ #childOffset(index) {
128
+ let offsets = this.#childOffsets;
129
+ if (offsets === void 0) {
130
+ offsets = [];
131
+ this.#childOffsets = offsets;
132
+ }
133
+ for (let known = offsets.length; known <= index; known++) {
134
+ const previousOffset = offsets[known - 1];
135
+ const previousChild = this.green.children[known - 1];
136
+ offsets.push(previousOffset === void 0 || previousChild === void 0 ? this.offset : previousOffset + elementTextLength(previousChild));
137
+ }
138
+ return offsets[index] ?? this.offset;
139
+ }
140
+ childAt(index) {
141
+ const green = this.green.children[index];
142
+ if (green === void 0) return void 0;
143
+ const slots = this.#slots();
144
+ const cached = slots[index];
145
+ if (cached !== void 0) return cached;
146
+ const created = wrapElement(green, this.#childOffset(index), this, index);
147
+ slots[index] = created;
148
+ return created;
149
+ }
115
150
  get kind() {
116
151
  return this.green.kind;
117
152
  }
@@ -129,18 +164,16 @@ var SyntaxNode = class SyntaxNode {
129
164
  return !this.isInside(offset);
130
165
  }
131
166
  get firstChild() {
132
- return childAt(this, 0);
167
+ return this.childAt(0);
133
168
  }
134
169
  get lastChild() {
135
- const len = this.green.children.length;
136
- if (len === 0) return void 0;
137
- return childAt(this, len - 1);
170
+ return this.childAt(this.green.children.length - 1);
138
171
  }
139
172
  get nextSibling() {
140
- return this.parent === void 0 ? void 0 : childAt(this.parent, this.index + 1);
173
+ return this.parent?.childAt(this.index + 1);
141
174
  }
142
175
  get prevSibling() {
143
- return this.parent === void 0 ? void 0 : childAt(this.parent, this.index - 1);
176
+ return this.parent?.childAt(this.index - 1);
144
177
  }
145
178
  /** The sibling element immediately after this node within its parent. */
146
179
  get nextSiblingOrToken() {
@@ -159,17 +192,20 @@ var SyntaxNode = class SyntaxNode {
159
192
  return lastToken(this);
160
193
  }
161
194
  *children() {
162
- let offset = this.offset;
163
- let index = 0;
164
- for (const child of this.green.children) {
165
- yield wrapElement(child, offset, this, index);
166
- offset += elementTextLength(child);
167
- index++;
195
+ const count = this.green.children.length;
196
+ for (let index = 0; index < count; index++) {
197
+ const child = this.childAt(index);
198
+ if (child !== void 0) yield child;
168
199
  }
169
200
  }
170
201
  *childNodes() {
171
202
  for (const child of this.children()) if (child instanceof SyntaxNode) yield child;
172
203
  }
204
+ root() {
205
+ let current = this;
206
+ for (const parent of this.ancestors()) current = parent;
207
+ return current;
208
+ }
173
209
  *ancestors() {
174
210
  let current = this.parent;
175
211
  while (current) {
@@ -292,7 +328,7 @@ function climbingNext(el) {
292
328
  for (;;) {
293
329
  const parent = current.parent;
294
330
  if (parent === void 0) return void 0;
295
- const sibling = childAt(parent, current.index + 1);
331
+ const sibling = parent.childAt(current.index + 1);
296
332
  if (sibling !== void 0) return sibling;
297
333
  current = parent;
298
334
  }
@@ -302,7 +338,7 @@ function climbingPrev(el) {
302
338
  for (;;) {
303
339
  const parent = current.parent;
304
340
  if (parent === void 0) return void 0;
305
- const sibling = childAt(parent, current.index - 1);
341
+ const sibling = parent.childAt(current.index - 1);
306
342
  if (sibling !== void 0) return sibling;
307
343
  current = parent;
308
344
  }
@@ -311,20 +347,47 @@ function wrapElement(green, offset, parent, index) {
311
347
  if (green.type === "token") return new SyntaxToken(green, offset, parent, index);
312
348
  return new SyntaxNode(green, offset, parent, index);
313
349
  }
314
- function childAt(node, index) {
315
- const children = node.green.children;
316
- const target = children[index];
317
- if (target === void 0) return void 0;
318
- let offset = node.offset;
319
- for (let i = 0; i < index; i++) {
320
- const child = children[i];
321
- if (child !== void 0) offset += elementTextLength(child);
322
- }
323
- return wrapElement(target, offset, node, index);
324
- }
325
350
  function createSyntaxTree(green) {
326
351
  return new SyntaxNode(green, 0, void 0, 0);
327
352
  }
353
+ /**
354
+ * Walks back through `node`'s preceding sibling tokens collecting a
355
+ * contiguous `///` run: only whitespace and single newlines may sit between
356
+ * consecutive `///` lines. Stops at a blank line, a non-`///` comment, or any
357
+ * other non-trivia element. Each line has its `///` marker and one following
358
+ * space stripped; the lines join with `\n`.
359
+ */
360
+ function readDocComment(node) {
361
+ const lines = [];
362
+ let current = node;
363
+ let newlinesSinceComment = 0;
364
+ for (;;) {
365
+ const sibling = current.prevSiblingOrToken;
366
+ if (!(sibling instanceof SyntaxToken)) break;
367
+ if (sibling.kind === "Whitespace") {
368
+ current = sibling;
369
+ continue;
370
+ }
371
+ if (sibling.kind === "Newline") {
372
+ newlinesSinceComment += 1;
373
+ if (newlinesSinceComment > 1) break;
374
+ current = sibling;
375
+ continue;
376
+ }
377
+ if (sibling.kind === "Comment" && sibling.text.startsWith("///")) {
378
+ lines.push(stripDocCommentMarker(sibling.text));
379
+ newlinesSinceComment = 0;
380
+ current = sibling;
381
+ continue;
382
+ }
383
+ break;
384
+ }
385
+ return lines.length === 0 ? void 0 : lines.reverse().join("\n");
386
+ }
387
+ function stripDocCommentMarker(text) {
388
+ const withoutMarker = text.slice(3);
389
+ return withoutMarker.startsWith(" ") ? withoutMarker.slice(1) : withoutMarker;
390
+ }
328
391
  function findChildToken(node, kind) {
329
392
  for (const child of node.children()) if (!(child instanceof SyntaxNode) && child.kind === kind) return child;
330
393
  }
@@ -417,13 +480,16 @@ var QualifiedNameAst = class QualifiedNameAst {
417
480
  if (colon) return this.#segmentAfter(colon.offset);
418
481
  return findFirstChild(this.syntax, IdentifierAst.cast);
419
482
  }
483
+ segments() {
484
+ return filterChildren(this.syntax, IdentifierAst.cast);
485
+ }
420
486
  /**
421
487
  * Every identifier segment, in source order. A bare `Vector` yields
422
488
  * `['Vector']`; a qualified `pgvector.Vector` yields `['pgvector', 'Vector']`.
423
489
  */
424
490
  path() {
425
491
  const segments = [];
426
- for (const segment of filterChildren(this.syntax, IdentifierAst.cast)) {
492
+ for (const segment of this.segments()) {
427
493
  const text = segment.token()?.text;
428
494
  if (text !== void 0) segments.push(text);
429
495
  }
@@ -450,23 +516,22 @@ var FunctionCallAst = class FunctionCallAst {
450
516
  constructor(syntax) {
451
517
  this.syntax = syntax;
452
518
  }
453
- /** The qualified-name callee, or `undefined` when identifier segments sit directly under the node. */
519
+ /** The callee when it is a bare name, such as `now` in `now()`; `undefined` when the callee is dotted. */
454
520
  name() {
455
521
  return findFirstChild(this.syntax, QualifiedNameAst.cast);
456
522
  }
457
523
  /**
458
- * The dotted call path, in source order. A bare `Vector(…)` yields
459
- * `['Vector']`; a namespace-qualified `pgvector.Vector(…)` yields
460
- * `['pgvector', 'Vector']`. Empty when the call carries no identifier.
524
+ * The callee's segments, in source order. A bare `Vector(…)` yields
525
+ * `['Vector']`; `pgvector.Vector(…)` yields `['pgvector', 'Vector']`;
526
+ * `address.geo.lat(…)` yields `['address', 'geo', 'lat']`. Empty when the
527
+ * call carries no identifier.
461
528
  */
462
529
  path() {
463
- const qualified = this.name();
464
- const segments = [];
465
- for (const segment of filterChildren(qualified?.syntax ?? this.syntax, IdentifierAst.cast)) {
466
- const text = segment.token()?.text;
467
- if (text !== void 0) segments.push(text);
468
- }
469
- return segments;
530
+ return segmentNames((this.name() ?? this.memberPath())?.syntax ?? this.syntax);
531
+ }
532
+ /** The callee when it is dotted, such as `address.city` in `address.city(sort: Asc)`; `undefined` for a bare callee. */
533
+ memberPath() {
534
+ return findFirstChild(this.syntax, PathExprAst.cast);
470
535
  }
471
536
  lparen() {
472
537
  return findChildToken(this.syntax, "LParen");
@@ -481,6 +546,35 @@ var FunctionCallAst = class FunctionCallAst {
481
546
  return node.kind === "FunctionCall" ? new FunctionCallAst(node) : void 0;
482
547
  }
483
548
  };
549
+ function segmentNames(node) {
550
+ const segments = [];
551
+ for (const segment of filterChildren(node, IdentifierAst.cast)) {
552
+ const text = segment.token()?.text;
553
+ if (text !== void 0) segments.push(text);
554
+ }
555
+ return segments;
556
+ }
557
+ /** A dotted member path in expression position, such as `address.city` in `@@index([address.city])`. */
558
+ var PathExprAst = class PathExprAst {
559
+ syntax;
560
+ constructor(syntax) {
561
+ this.syntax = syntax;
562
+ }
563
+ *segments() {
564
+ yield* filterChildren(this.syntax, IdentifierAst.cast);
565
+ }
566
+ /**
567
+ * The segment names, in source order: `['address', 'city']` for `address.city`. A path that ends
568
+ * in a `.` with no name after it, as in `address.`, ends in an empty name.
569
+ */
570
+ path() {
571
+ const segments = segmentNames(this.syntax);
572
+ return this.syntax.lastToken?.kind === "Dot" ? [...segments, ""] : segments;
573
+ }
574
+ static cast(node) {
575
+ return node.kind === "PathExpr" ? new PathExprAst(node) : void 0;
576
+ }
577
+ };
484
578
  var ArrayLiteralAst = class ArrayLiteralAst {
485
579
  syntax;
486
580
  constructor(syntax) {
@@ -518,6 +612,18 @@ function decodeStringLiteral(raw) {
518
612
  }
519
613
  const next = raw.charAt(i + 1);
520
614
  switch (next) {
615
+ case "/":
616
+ out += "/";
617
+ i += 2;
618
+ continue;
619
+ case "b":
620
+ out += "\b";
621
+ i += 2;
622
+ continue;
623
+ case "f":
624
+ out += "\f";
625
+ i += 2;
626
+ continue;
521
627
  case "n":
522
628
  out += "\n";
523
629
  i += 2;
@@ -580,15 +686,55 @@ var StringLiteralExprAst = class StringLiteralExprAst {
580
686
  token() {
581
687
  return findChildToken(this.syntax, "StringLiteral");
582
688
  }
689
+ quote() {
690
+ const quote = this.token()?.text.charAt(0);
691
+ return quote === "\"" || quote === "'" || quote === "`" ? quote : void 0;
692
+ }
693
+ /**
694
+ * The decoded string. A `"` or `'` string resolves the usual escapes; a backtick string resolves
695
+ * only `` \` `` and `\\`, keeping every other backslash sequence as written.
696
+ */
583
697
  value() {
584
698
  const tok = this.token();
585
699
  if (!tok) return void 0;
586
- return decodeStringLiteral(tok.text.slice(1, -1));
700
+ const raw = isTerminatedStringLiteral(tok.text) ? tok.text.slice(1, -1) : tok.text.slice(1);
701
+ return this.quote() === "`" ? resolvePslBacktickEscapes(raw) : decodeStringLiteral(raw);
587
702
  }
588
703
  static cast(node) {
589
704
  return node.kind === "StringLiteralExpr" ? new StringLiteralExprAst(node) : void 0;
590
705
  }
591
706
  };
707
+ /** `` tag`body` ``, `tag"body"`, or `tag'body'`: a qualified-name tag followed by a string literal. */
708
+ var TaggedLiteralExprAst = class TaggedLiteralExprAst {
709
+ syntax;
710
+ constructor(syntax) {
711
+ this.syntax = syntax;
712
+ }
713
+ tag() {
714
+ return findFirstChild(this.syntax, QualifiedNameAst.cast);
715
+ }
716
+ /** The tag without trivia, e.g. `postgis.geometry`. */
717
+ tagName() {
718
+ const tag = this.tag();
719
+ const space = tag?.space()?.name();
720
+ const namespace = tag?.namespace()?.name();
721
+ return (space === void 0 ? "" : `${space}:`) + (namespace === void 0 ? "" : `${namespace}.`) + (tag?.identifier()?.name() ?? "");
722
+ }
723
+ literal() {
724
+ return findFirstChild(this.syntax, StringLiteralExprAst.cast);
725
+ }
726
+ canonicalization() {
727
+ return canonicalizeTaggedLiteralBody(this.literal()?.value() ?? "");
728
+ }
729
+ /** The canonical text shared with the TypeScript `sql` tag, or `undefined` when canonicalization fails. */
730
+ text() {
731
+ const result = this.canonicalization();
732
+ return result.ok ? result.text : void 0;
733
+ }
734
+ static cast(node) {
735
+ return node.kind === "TaggedLiteral" ? new TaggedLiteralExprAst(node) : void 0;
736
+ }
737
+ };
592
738
  var NumberLiteralExprAst = class NumberLiteralExprAst {
593
739
  syntax;
594
740
  constructor(syntax) {
@@ -698,8 +844,17 @@ var ObjectFieldAst = class ObjectFieldAst {
698
844
  return node.kind === "ObjectField" ? new ObjectFieldAst(node) : void 0;
699
845
  }
700
846
  };
847
+ /** Every dotted path in an expression: the expression itself, a dotted callee, or a path inside a list, record or call argument. */
848
+ function dottedPathsIn(expression) {
849
+ const paths = [];
850
+ for (const element of expression.syntax.descendants()) {
851
+ const path = element instanceof SyntaxNode ? PathExprAst.cast(element) : void 0;
852
+ if (path !== void 0) paths.push(path);
853
+ }
854
+ return paths;
855
+ }
701
856
  function castExpression(node) {
702
- return FunctionCallAst.cast(node) ?? ArrayLiteralAst.cast(node) ?? StringLiteralExprAst.cast(node) ?? NumberLiteralExprAst.cast(node) ?? BooleanLiteralExprAst.cast(node) ?? ObjectLiteralExprAst.cast(node) ?? IdentifierAst.cast(node);
857
+ return FunctionCallAst.cast(node) ?? ArrayLiteralAst.cast(node) ?? StringLiteralExprAst.cast(node) ?? TaggedLiteralExprAst.cast(node) ?? NumberLiteralExprAst.cast(node) ?? BooleanLiteralExprAst.cast(node) ?? ObjectLiteralExprAst.cast(node) ?? PathExprAst.cast(node) ?? IdentifierAst.cast(node);
703
858
  }
704
859
  var AttributeArgAst = class AttributeArgAst {
705
860
  syntax;
@@ -734,313 +889,7 @@ var AttributeArgAst = class AttributeArgAst {
734
889
  return node.kind === "AttributeArg" ? new AttributeArgAst(node) : void 0;
735
890
  }
736
891
  };
737
- var AttributeArgListAst = class AttributeArgListAst {
738
- syntax;
739
- constructor(syntax) {
740
- this.syntax = syntax;
741
- }
742
- lparen() {
743
- return findChildToken(this.syntax, "LParen");
744
- }
745
- rparen() {
746
- return findChildToken(this.syntax, "RParen");
747
- }
748
- *args() {
749
- yield* filterChildren(this.syntax, AttributeArgAst.cast);
750
- }
751
- static cast(node) {
752
- return node.kind === "AttributeArgList" ? new AttributeArgListAst(node) : void 0;
753
- }
754
- };
755
- var FieldAttributeAst = class FieldAttributeAst {
756
- syntax;
757
- constructor(syntax) {
758
- this.syntax = syntax;
759
- }
760
- at() {
761
- return findChildToken(this.syntax, "At");
762
- }
763
- name() {
764
- return findFirstChild(this.syntax, QualifiedNameAst.cast);
765
- }
766
- argList() {
767
- return findFirstChild(this.syntax, AttributeArgListAst.cast);
768
- }
769
- static cast(node) {
770
- return node.kind === "FieldAttribute" ? new FieldAttributeAst(node) : void 0;
771
- }
772
- };
773
- var ModelAttributeAst = class ModelAttributeAst {
774
- syntax;
775
- constructor(syntax) {
776
- this.syntax = syntax;
777
- }
778
- doubleAt() {
779
- return findChildToken(this.syntax, "DoubleAt");
780
- }
781
- name() {
782
- return findFirstChild(this.syntax, QualifiedNameAst.cast);
783
- }
784
- argList() {
785
- return findFirstChild(this.syntax, AttributeArgListAst.cast);
786
- }
787
- static cast(node) {
788
- return node.kind === "ModelAttribute" ? new ModelAttributeAst(node) : void 0;
789
- }
790
- };
791
- var TypeAnnotationAst = class TypeAnnotationAst {
792
- syntax;
793
- constructor(syntax) {
794
- this.syntax = syntax;
795
- }
796
- /** The annotation's reference, doubling as the constructor callee when an {@link argList} follows. */
797
- name() {
798
- return findFirstChild(this.syntax, QualifiedNameAst.cast);
799
- }
800
- /** Present when the annotation is a constructor (`Vector(1536)`) rather than a plain reference. */
801
- argList() {
802
- return findFirstChild(this.syntax, AttributeArgListAst.cast);
803
- }
804
- isConstructor() {
805
- return this.argList() !== void 0;
806
- }
807
- lbracket() {
808
- return findChildToken(this.syntax, "LBracket");
809
- }
810
- rbracket() {
811
- return findChildToken(this.syntax, "RBracket");
812
- }
813
- questionMark() {
814
- return findChildToken(this.syntax, "Question");
815
- }
816
- isList() {
817
- return this.lbracket() !== void 0;
818
- }
819
- isOptional() {
820
- return this.questionMark() !== void 0;
821
- }
822
- static cast(node) {
823
- return node.kind === "TypeAnnotation" ? new TypeAnnotationAst(node) : void 0;
824
- }
825
- };
826
- function castNamespaceMember(node) {
827
- return ModelDeclarationAst.cast(node) ?? CompositeTypeDeclarationAst.cast(node) ?? GenericBlockDeclarationAst.cast(node);
828
- }
829
- var DocumentAst = class DocumentAst {
830
- syntax;
831
- constructor(syntax) {
832
- this.syntax = syntax;
833
- }
834
- *declarations() {
835
- yield* filterChildren(this.syntax, (node) => castNamespaceMember(node) ?? TypesBlockAst.cast(node) ?? NamespaceDeclarationAst.cast(node));
836
- }
837
- static cast(node) {
838
- return node.kind === "Document" ? new DocumentAst(node) : void 0;
839
- }
840
- };
841
- var ModelDeclarationAst = class ModelDeclarationAst {
842
- syntax;
843
- constructor(syntax) {
844
- this.syntax = syntax;
845
- }
846
- keyword() {
847
- return findChildToken(this.syntax, "Ident");
848
- }
849
- name() {
850
- return findFirstChild(this.syntax, IdentifierAst.cast);
851
- }
852
- lbrace() {
853
- return findChildToken(this.syntax, "LBrace");
854
- }
855
- rbrace() {
856
- return findChildToken(this.syntax, "RBrace");
857
- }
858
- *fields() {
859
- yield* filterChildren(this.syntax, FieldDeclarationAst.cast);
860
- }
861
- *attributes() {
862
- yield* filterChildren(this.syntax, ModelAttributeAst.cast);
863
- }
864
- *members() {
865
- yield* filterChildren(this.syntax, (node) => FieldDeclarationAst.cast(node) ?? ModelAttributeAst.cast(node));
866
- }
867
- static cast(node) {
868
- return node.kind === "ModelDeclaration" ? new ModelDeclarationAst(node) : void 0;
869
- }
870
- };
871
- var CompositeTypeDeclarationAst = class CompositeTypeDeclarationAst {
872
- syntax;
873
- constructor(syntax) {
874
- this.syntax = syntax;
875
- }
876
- keyword() {
877
- return findChildToken(this.syntax, "Ident");
878
- }
879
- name() {
880
- return findFirstChild(this.syntax, IdentifierAst.cast);
881
- }
882
- lbrace() {
883
- return findChildToken(this.syntax, "LBrace");
884
- }
885
- rbrace() {
886
- return findChildToken(this.syntax, "RBrace");
887
- }
888
- *fields() {
889
- yield* filterChildren(this.syntax, FieldDeclarationAst.cast);
890
- }
891
- *attributes() {
892
- yield* filterChildren(this.syntax, ModelAttributeAst.cast);
893
- }
894
- *members() {
895
- yield* filterChildren(this.syntax, (node) => FieldDeclarationAst.cast(node) ?? ModelAttributeAst.cast(node));
896
- }
897
- static cast(node) {
898
- return node.kind === "CompositeTypeDeclaration" ? new CompositeTypeDeclarationAst(node) : void 0;
899
- }
900
- };
901
- var NamespaceDeclarationAst = class NamespaceDeclarationAst {
902
- syntax;
903
- constructor(syntax) {
904
- this.syntax = syntax;
905
- }
906
- keyword() {
907
- return findChildToken(this.syntax, "Ident");
908
- }
909
- name() {
910
- return findFirstChild(this.syntax, IdentifierAst.cast);
911
- }
912
- lbrace() {
913
- return findChildToken(this.syntax, "LBrace");
914
- }
915
- rbrace() {
916
- return findChildToken(this.syntax, "RBrace");
917
- }
918
- *declarations() {
919
- yield* filterChildren(this.syntax, castNamespaceMember);
920
- }
921
- static cast(node) {
922
- return node.kind === "Namespace" ? new NamespaceDeclarationAst(node) : void 0;
923
- }
924
- };
925
- var TypesBlockAst = class TypesBlockAst {
926
- syntax;
927
- constructor(syntax) {
928
- this.syntax = syntax;
929
- }
930
- keyword() {
931
- return findChildToken(this.syntax, "Ident");
932
- }
933
- lbrace() {
934
- return findChildToken(this.syntax, "LBrace");
935
- }
936
- rbrace() {
937
- return findChildToken(this.syntax, "RBrace");
938
- }
939
- *declarations() {
940
- yield* filterChildren(this.syntax, NamedTypeDeclarationAst.cast);
941
- }
942
- static cast(node) {
943
- return node.kind === "TypesBlock" ? new TypesBlockAst(node) : void 0;
944
- }
945
- };
946
- var GenericBlockDeclarationAst = class GenericBlockDeclarationAst {
947
- syntax;
948
- constructor(syntax) {
949
- this.syntax = syntax;
950
- }
951
- keyword() {
952
- return findChildToken(this.syntax, "Ident");
953
- }
954
- name() {
955
- return findFirstChild(this.syntax, IdentifierAst.cast);
956
- }
957
- lbrace() {
958
- return findChildToken(this.syntax, "LBrace");
959
- }
960
- rbrace() {
961
- return findChildToken(this.syntax, "RBrace");
962
- }
963
- *entries() {
964
- yield* filterChildren(this.syntax, KeyValuePairAst.cast);
965
- }
966
- *attributes() {
967
- yield* filterChildren(this.syntax, ModelAttributeAst.cast);
968
- }
969
- *members() {
970
- yield* filterChildren(this.syntax, (node) => KeyValuePairAst.cast(node) ?? ModelAttributeAst.cast(node));
971
- }
972
- static cast(node) {
973
- return node.kind === "GenericBlockDeclaration" ? new GenericBlockDeclarationAst(node) : void 0;
974
- }
975
- };
976
- var KeyValuePairAst = class KeyValuePairAst {
977
- syntax;
978
- constructor(syntax) {
979
- this.syntax = syntax;
980
- }
981
- key() {
982
- return findFirstChild(this.syntax, IdentifierAst.cast);
983
- }
984
- equals() {
985
- return findChildToken(this.syntax, "Equals");
986
- }
987
- value() {
988
- let pastEquals = false;
989
- for (const child of this.syntax.children()) {
990
- if (!(child instanceof SyntaxNode)) {
991
- if (child.kind === "Equals") pastEquals = true;
992
- continue;
993
- }
994
- if (pastEquals) {
995
- const expr = castExpression(child);
996
- if (expr) return expr;
997
- }
998
- }
999
- }
1000
- static cast(node) {
1001
- return node.kind === "KeyValuePair" ? new KeyValuePairAst(node) : void 0;
1002
- }
1003
- };
1004
- var FieldDeclarationAst = class FieldDeclarationAst {
1005
- syntax;
1006
- constructor(syntax) {
1007
- this.syntax = syntax;
1008
- }
1009
- name() {
1010
- return findFirstChild(this.syntax, IdentifierAst.cast);
1011
- }
1012
- typeAnnotation() {
1013
- return findFirstChild(this.syntax, TypeAnnotationAst.cast);
1014
- }
1015
- *attributes() {
1016
- yield* filterChildren(this.syntax, FieldAttributeAst.cast);
1017
- }
1018
- static cast(node) {
1019
- return node.kind === "FieldDeclaration" ? new FieldDeclarationAst(node) : void 0;
1020
- }
1021
- };
1022
- var NamedTypeDeclarationAst = class NamedTypeDeclarationAst {
1023
- syntax;
1024
- constructor(syntax) {
1025
- this.syntax = syntax;
1026
- }
1027
- name() {
1028
- return findFirstChild(this.syntax, IdentifierAst.cast);
1029
- }
1030
- equals() {
1031
- return findChildToken(this.syntax, "Equals");
1032
- }
1033
- typeAnnotation() {
1034
- return findFirstChild(this.syntax, TypeAnnotationAst.cast);
1035
- }
1036
- *attributes() {
1037
- yield* filterChildren(this.syntax, FieldAttributeAst.cast);
1038
- }
1039
- static cast(node) {
1040
- return node.kind === "NamedTypeDeclaration" ? new NamedTypeDeclarationAst(node) : void 0;
1041
- }
1042
- };
1043
892
  //#endregion
1044
- export { filterChildren as A, SyntaxToken as C, any as D, TypesBlockAst as E, findFirstChild as M, printSyntax as N, castExpression as O, SyntaxNode as S, TypeAnnotationAst as T, NumberLiteralExprAst as _, CompositeTypeDeclarationAst as a, QualifiedNameAst as b, FieldDeclarationAst as c, IdentifierAst as d, KeyValuePairAst as f, NamespaceDeclarationAst as g, NamedTypeDeclarationAst as h, BooleanLiteralExprAst as i, findChildToken as j, createSyntaxTree as k, FunctionCallAst as l, ModelDeclarationAst as m, AttributeArgAst as n, DocumentAst as o, ModelAttributeAst as p, AttributeArgListAst as r, FieldAttributeAst as s, ArrayLiteralAst as t, GenericBlockDeclarationAst as u, ObjectFieldAst as v, TokenAtOffset as w, StringLiteralExprAst as x, ObjectLiteralExprAst as y };
893
+ export { printSyntax as C, findFirstChild as S, castExpression as _, IdentifierAst as a, filterChildren as b, ObjectLiteralExprAst as c, StringLiteralExprAst as d, SyntaxNode as f, any as g, TokenAtOffset as h, FunctionCallAst as i, PathExprAst as l, TaggedLiteralExprAst as m, AttributeArgAst as n, NumberLiteralExprAst as o, SyntaxToken as p, BooleanLiteralExprAst as r, ObjectFieldAst as s, ArrayLiteralAst as t, QualifiedNameAst as u, createSyntaxTree as v, readDocComment as w, findChildToken as x, dottedPathsIn as y };
1045
894
 
1046
- //# sourceMappingURL=declarations-DR6To8_k-BFwkCGeP.mjs.map
895
+ //# sourceMappingURL=expressions-CMQzbnHk-BL2zN0Iv.mjs.map