@prisma/orm-framework 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +27 -0
- package/dist/abortable-CQO6uG9F.mjs +39 -0
- package/dist/abortable-CQO6uG9F.mjs.map +1 -0
- package/dist/abortable-DBbAaT_4.d.mts +29 -0
- package/dist/abortable-DBbAaT_4.d.mts.map +1 -0
- package/dist/apply-specifier-default-control-policy-CAxiXxKg.d.mts +7 -0
- package/dist/apply-specifier-default-control-policy-CAxiXxKg.d.mts.map +1 -0
- package/dist/apply-specifier-default-control-policy-CsYHsfTF.mjs +12 -0
- package/dist/apply-specifier-default-control-policy-CsYHsfTF.mjs.map +1 -0
- package/dist/array-equal-28xupwIB.mjs +26 -0
- package/dist/array-equal-28xupwIB.mjs.map +1 -0
- package/dist/array-equal-dUd-VPlk.d.mts +22 -0
- package/dist/array-equal-dUd-VPlk.d.mts.map +1 -0
- package/dist/assertions-BEQnOIQd.d.mts +31 -0
- package/dist/assertions-BEQnOIQd.d.mts.map +1 -0
- package/dist/assertions-Cz-GWH8P.mjs +36 -0
- package/dist/assertions-Cz-GWH8P.mjs.map +1 -0
- package/dist/authoring-Dd7p6pTS.d.mts +1 -0
- package/dist/canonical-stringify-Bl6agy_g.d.mts +51 -0
- package/dist/canonical-stringify-Bl6agy_g.d.mts.map +1 -0
- package/dist/canonical-stringify-DY4NaAJi.mjs +104 -0
- package/dist/canonical-stringify-DY4NaAJi.mjs.map +1 -0
- package/dist/canonicalization-DFpB09nP-4OdB2nsy.d.mts +69 -0
- package/dist/canonicalization-DFpB09nP-4OdB2nsy.d.mts.map +1 -0
- package/dist/canonicalization-path-match-CNgHuwM_-CCPBeUuk.mjs +25 -0
- package/dist/canonicalization-path-match-CNgHuwM_-CCPBeUuk.mjs.map +1 -0
- package/dist/capabilities-CPj7MfXO-GRkp0Q_D.mjs +64 -0
- package/dist/capabilities-CPj7MfXO-GRkp0Q_D.mjs.map +1 -0
- package/dist/capabilities-Cupq4-1--C71ORI3N.d.mts +34 -0
- package/dist/capabilities-Cupq4-1--C71ORI3N.d.mts.map +1 -0
- package/dist/casts-D29CHGrr.d.mts +78 -0
- package/dist/casts-D29CHGrr.d.mts.map +1 -0
- package/dist/casts-DpaahrlC-Bd5n2coI.mjs +82 -0
- package/dist/casts-DpaahrlC-Bd5n2coI.mjs.map +1 -0
- package/dist/codec-Cly9VPoA.mjs +78 -0
- package/dist/codec-Cly9VPoA.mjs.map +1 -0
- package/dist/codec-D3GVAkR_.d.mts +116 -0
- package/dist/codec-D3GVAkR_.d.mts.map +1 -0
- package/dist/codec-types-XJO6eC9U-B_K2q0zm.d.mts +221 -0
- package/dist/codec-types-XJO6eC9U-B_K2q0zm.d.mts.map +1 -0
- package/dist/components-CawuxTia.d.mts +1 -0
- package/dist/components.d.mts +20 -0
- package/dist/components.mjs +15 -0
- package/dist/components__authoring.d.mts +3 -0
- package/dist/components__authoring.mjs +2 -0
- package/dist/components__codec.d.mts +3 -0
- package/dist/components__codec.mjs +3 -0
- package/dist/components__components.d.mts +4 -0
- package/dist/components__components.mjs +3 -0
- package/dist/components__control.d.mts +4 -0
- package/dist/components__control.mjs +2 -0
- package/dist/components__emission.d.mts +4 -0
- package/dist/components__emission.mjs +2 -0
- package/dist/components__execution.d.mts +2 -0
- package/dist/components__execution.mjs +2 -0
- package/dist/components__ir.d.mts +3 -0
- package/dist/components__ir.mjs +3 -0
- package/dist/components__psl-ast.d.mts +4 -0
- package/dist/components__psl-ast.mjs +2 -0
- package/dist/components__runtime.d.mts +2 -0
- package/dist/components__runtime.mjs +3 -0
- package/dist/components__utils.d.mts +2 -0
- package/dist/components__utils.mjs +2 -0
- package/dist/config-errors-CBdiX587-DwIyJIX9.mjs +9 -0
- package/dist/config-errors-CBdiX587-DwIyJIX9.mjs.map +1 -0
- package/dist/config-types-Cf9lVsHR.mjs +62 -0
- package/dist/config-types-Cf9lVsHR.mjs.map +1 -0
- package/dist/config-types-W-87vhZ4-BgYaH8YO.d.mts +162 -0
- package/dist/config-types-W-87vhZ4-BgYaH8YO.d.mts.map +1 -0
- package/dist/config-types-zrHI32Om.d.mts +1 -0
- package/dist/config-validation-ByGTw6zQ.mjs +99 -0
- package/dist/config-validation-ByGTw6zQ.mjs.map +1 -0
- package/dist/config-validation-DXggMTZf.d.mts +14 -0
- package/dist/config-validation-DXggMTZf.d.mts.map +1 -0
- package/dist/config.d.mts +4 -0
- package/dist/config.mjs +3 -0
- package/dist/config__config-types.d.mts +3 -0
- package/dist/config__config-types.mjs +2 -0
- package/dist/config__config-validation.d.mts +2 -0
- package/dist/config__config-validation.mjs +2 -0
- package/dist/contract-authoring.d.mts +213 -0
- package/dist/contract-authoring.d.mts.map +1 -0
- package/dist/contract-authoring.mjs +133 -0
- package/dist/contract-authoring.mjs.map +1 -0
- package/dist/contract-types-CkdMH7F7-9EHXSwbH.d.mts +77 -0
- package/dist/contract-types-CkdMH7F7-9EHXSwbH.d.mts.map +1 -0
- package/dist/contract-validation-error-DEiWp_EI-CRwtUgRw.mjs +14 -0
- package/dist/contract-validation-error-DEiWp_EI-CRwtUgRw.mjs.map +1 -0
- package/dist/contract-validation-error-R7cMoK04.d.mts +11 -0
- package/dist/contract-validation-error-R7cMoK04.d.mts.map +1 -0
- package/dist/contract.d.mts +14 -0
- package/dist/contract.mjs +13 -0
- package/dist/contract__apply-specifier-default-control-policy.d.mts +2 -0
- package/dist/contract__apply-specifier-default-control-policy.mjs +2 -0
- package/dist/contract__contract-validation-error.d.mts +2 -0
- package/dist/contract__contract-validation-error.mjs +2 -0
- package/dist/contract__default-namespace.d.mts +2 -0
- package/dist/contract__default-namespace.mjs +2 -0
- package/dist/contract__enum-accessor.d.mts +2 -0
- package/dist/contract__enum-accessor.mjs +2 -0
- package/dist/contract__hashing-utils.d.mts +2 -0
- package/dist/contract__hashing-utils.mjs +3 -0
- package/dist/contract__hashing.d.mts +3 -0
- package/dist/contract__hashing.mjs +2 -0
- package/dist/contract__is-plain-record.d.mts +2 -0
- package/dist/contract__is-plain-record.mjs +2 -0
- package/dist/contract__resolve-domain-model.d.mts +2 -0
- package/dist/contract__resolve-domain-model.mjs +2 -0
- package/dist/contract__types.d.mts +6 -0
- package/dist/contract__types.mjs +5 -0
- package/dist/contract__validate-domain.d.mts +2 -0
- package/dist/contract__validate-domain.mjs +2 -0
- package/dist/control-B87KWI_K-C_R8WfEr.d.mts +213 -0
- package/dist/control-B87KWI_K-C_R8WfEr.d.mts.map +1 -0
- package/dist/control-CBvTj7Ia.d.mts +1383 -0
- package/dist/control-CBvTj7Ia.d.mts.map +1 -0
- package/dist/control-DTouE89s.mjs +621 -0
- package/dist/control-DTouE89s.mjs.map +1 -0
- package/dist/control-Ftiau058-CCeJcAVQ.mjs +284 -0
- package/dist/control-Ftiau058-CCeJcAVQ.mjs.map +1 -0
- package/dist/declarations-DR6To8_k-BFwkCGeP.mjs +1046 -0
- package/dist/declarations-DR6To8_k-BFwkCGeP.mjs.map +1 -0
- package/dist/default-namespace-D4vCwkXg-BaiW8LNK.mjs +39 -0
- package/dist/default-namespace-D4vCwkXg-BaiW8LNK.mjs.map +1 -0
- package/dist/default-namespace-D5X_k6hJ-GH8P1ror.d.mts +26 -0
- package/dist/default-namespace-D5X_k6hJ-GH8P1ror.d.mts.map +1 -0
- package/dist/defined-BQWA85QH-BRSBMULx.mjs +31 -0
- package/dist/defined-BQWA85QH-BRSBMULx.mjs.map +1 -0
- package/dist/defined-BSXuxrnl.d.mts +28 -0
- package/dist/defined-BSXuxrnl.d.mts.map +1 -0
- package/dist/domain-envelope-D6Wn9AmZ-BqZKTT9U.d.mts +359 -0
- package/dist/domain-envelope-D6Wn9AmZ-BqZKTT9U.d.mts.map +1 -0
- package/dist/emission-CeoAV9mj.mjs +26 -0
- package/dist/emission-CeoAV9mj.mjs.map +1 -0
- package/dist/emission-DeoQufVd.d.mts +1 -0
- package/dist/emission-types-hfRVB_Yw-DpQ3hISB.d.mts +75 -0
- package/dist/emission-types-hfRVB_Yw-DpQ3hISB.d.mts.map +1 -0
- package/dist/enum-accessor-Db5DaTNX.mjs +35 -0
- package/dist/enum-accessor-Db5DaTNX.mjs.map +1 -0
- package/dist/enum-accessor-PH5vjghI.d.mts +85 -0
- package/dist/enum-accessor-PH5vjghI.d.mts.map +1 -0
- package/dist/errors.d.mts +4 -0
- package/dist/errors.mjs +4 -0
- package/dist/errors__control.d.mts +2 -0
- package/dist/errors__control.mjs +2 -0
- package/dist/errors__execution.d.mts +2 -0
- package/dist/errors__execution.mjs +2 -0
- package/dist/errors__migration.d.mts +2 -0
- package/dist/errors__migration.mjs +2 -0
- package/dist/execution-BNwBzmRd.mjs +40 -0
- package/dist/execution-BNwBzmRd.mjs.map +1 -0
- package/dist/execution-BbOD4GyR.mjs +164 -0
- package/dist/execution-BbOD4GyR.mjs.map +1 -0
- package/dist/execution-Bo5Bu2Ys.d.mts +79 -0
- package/dist/execution-Bo5Bu2Ys.d.mts.map +1 -0
- package/dist/execution-MOde1lmD.d.mts +98 -0
- package/dist/execution-MOde1lmD.d.mts.map +1 -0
- package/dist/framework-authoring-7YMP9TwM-C9P-N6_a.d.mts +777 -0
- package/dist/framework-authoring-7YMP9TwM-C9P-N6_a.d.mts.map +1 -0
- package/dist/framework-authoring-CDEvlouU-mlMWSksD.mjs +698 -0
- package/dist/framework-authoring-CDEvlouU-mlMWSksD.mjs.map +1 -0
- package/dist/framework-components-D6j4Y5K7-RW9H184y.mjs +27 -0
- package/dist/framework-components-D6j4Y5K7-RW9H184y.mjs.map +1 -0
- package/dist/framework-components-MFoo0sYx-G_6k9jt4.d.mts +388 -0
- package/dist/framework-components-MFoo0sYx-G_6k9jt4.d.mts.map +1 -0
- package/dist/hash-content-Bugg_nZn.mjs +63 -0
- package/dist/hash-content-Bugg_nZn.mjs.map +1 -0
- package/dist/hash-content-DwEUh-Rx.d.mts +59 -0
- package/dist/hash-content-DwEUh-Rx.d.mts.map +1 -0
- package/dist/hashing-BtIZVNYX.mjs +199 -0
- package/dist/hashing-BtIZVNYX.mjs.map +1 -0
- package/dist/hashing-CccSPELN.d.mts +25 -0
- package/dist/hashing-CccSPELN.d.mts.map +1 -0
- package/dist/hashing-utils-DQgS3nOe.mjs +48 -0
- package/dist/hashing-utils-DQgS3nOe.mjs.map +1 -0
- package/dist/hashing-utils-qKu59RSC.d.mts +19 -0
- package/dist/hashing-utils-qKu59RSC.d.mts.map +1 -0
- package/dist/ids.d.mts +44 -0
- package/dist/ids.d.mts.map +1 -0
- package/dist/ids.mjs +96 -0
- package/dist/ids.mjs.map +1 -0
- package/dist/ids__runtime.d.mts +7 -0
- package/dist/ids__runtime.d.mts.map +1 -0
- package/dist/ids__runtime.mjs +31 -0
- package/dist/ids__runtime.mjs.map +1 -0
- package/dist/index-GY2oGH9L.d.mts +120 -0
- package/dist/index-GY2oGH9L.d.mts.map +1 -0
- package/dist/internal-error-BIc-ehme-ouBQPoEL.mjs +24 -0
- package/dist/internal-error-BIc-ehme-ouBQPoEL.mjs.map +1 -0
- package/dist/internal-error-kK8QvlDE.d.mts +19 -0
- package/dist/internal-error-kK8QvlDE.d.mts.map +1 -0
- package/dist/ir-BvE7L9FK.d.mts +359 -0
- package/dist/ir-BvE7L9FK.d.mts.map +1 -0
- package/dist/ir-ChmSSAhX.mjs +200 -0
- package/dist/ir-ChmSSAhX.mjs.map +1 -0
- package/dist/is-plain-record-C9BWiqcw.d.mts +12 -0
- package/dist/is-plain-record-C9BWiqcw.d.mts.map +1 -0
- package/dist/is-plain-record-CUofyVQ7-DWEzdhIx.mjs +16 -0
- package/dist/is-plain-record-CUofyVQ7-DWEzdhIx.mjs.map +1 -0
- package/dist/json-Dkqr3say.d.mts +26 -0
- package/dist/json-Dkqr3say.d.mts.map +1 -0
- package/dist/migration-4VOHVEzx.mjs +118 -0
- package/dist/migration-4VOHVEzx.mjs.map +1 -0
- package/dist/migration-DKbDzBwy.d.mts +74 -0
- package/dist/migration-DKbDzBwy.d.mts.map +1 -0
- package/dist/namespace-id-asbWpwMw-3yxn-tRe.mjs +9 -0
- package/dist/namespace-id-asbWpwMw-3yxn-tRe.mjs.map +1 -0
- package/dist/operations.d.mts +46 -0
- package/dist/operations.d.mts.map +1 -0
- package/dist/operations.mjs +28 -0
- package/dist/operations.mjs.map +1 -0
- package/dist/parse-0ZJjj_2N-WZZ1nlrv.d.mts +427 -0
- package/dist/parse-0ZJjj_2N-WZZ1nlrv.d.mts.map +1 -0
- package/dist/parse-GbZGfMUj-BFSrD2AN.mjs +621 -0
- package/dist/parse-GbZGfMUj-BFSrD2AN.mjs.map +1 -0
- package/dist/promise-D8meygPf.mjs +13 -0
- package/dist/promise-D8meygPf.mjs.map +1 -0
- package/dist/promise-DHJWZv49.d.mts +11 -0
- package/dist/promise-DHJWZv49.d.mts.map +1 -0
- package/dist/psl-ast-BEwO80EH.d.mts +37 -0
- package/dist/psl-ast-BEwO80EH.d.mts.map +1 -0
- package/dist/psl-ast-Chgi8e4o-rSlBk1UV.d.mts +259 -0
- package/dist/psl-ast-Chgi8e4o-rSlBk1UV.d.mts.map +1 -0
- package/dist/psl-ast-DUCvVXbB.mjs +239 -0
- package/dist/psl-ast-DUCvVXbB.mjs.map +1 -0
- package/dist/psl-parser.d.mts +158 -0
- package/dist/psl-parser.d.mts.map +1 -0
- package/dist/psl-parser.mjs +804 -0
- package/dist/psl-parser.mjs.map +1 -0
- package/dist/psl-parser__format.d.mts +12 -0
- package/dist/psl-parser__format.d.mts.map +1 -0
- package/dist/psl-parser__format.mjs +464 -0
- package/dist/psl-parser__format.mjs.map +1 -0
- package/dist/psl-parser__interpret.d.mts +40 -0
- package/dist/psl-parser__interpret.d.mts.map +1 -0
- package/dist/psl-parser__interpret.mjs +25 -0
- package/dist/psl-parser__interpret.mjs.map +1 -0
- package/dist/psl-parser__syntax.d.mts +31 -0
- package/dist/psl-parser__syntax.d.mts.map +1 -0
- package/dist/psl-parser__syntax.mjs +43 -0
- package/dist/psl-parser__syntax.mjs.map +1 -0
- package/dist/psl-parser__tokenizer.d.mts +2 -0
- package/dist/psl-parser__tokenizer.mjs +2 -0
- package/dist/psl-printer.d.mts +37 -0
- package/dist/psl-printer.d.mts.map +1 -0
- package/dist/psl-printer.mjs +393 -0
- package/dist/psl-printer.mjs.map +1 -0
- package/dist/redact-db-url-BlaloOwt.d.mts +22 -0
- package/dist/redact-db-url-BlaloOwt.d.mts.map +1 -0
- package/dist/redact-db-url-CRWJWdB1.mjs +26 -0
- package/dist/redact-db-url-CRWJWdB1.mjs.map +1 -0
- package/dist/resolve-codec-BZF8TZh_-D-xORT9Q.mjs +59 -0
- package/dist/resolve-codec-BZF8TZh_-D-xORT9Q.mjs.map +1 -0
- package/dist/resolve-domain-model-BVSb5wS5-C6Yq0dsD.d.mts +17 -0
- package/dist/resolve-domain-model-BVSb5wS5-C6Yq0dsD.d.mts.map +1 -0
- package/dist/resolve-domain-model-BovPAsW2-8rwyzjxp.mjs +20 -0
- package/dist/resolve-domain-model-BovPAsW2-8rwyzjxp.mjs.map +1 -0
- package/dist/result-Bpupv5vO.d.mts +54 -0
- package/dist/result-Bpupv5vO.d.mts.map +1 -0
- package/dist/result-CBZ8X9mU.mjs +92 -0
- package/dist/result-CBZ8X9mU.mjs.map +1 -0
- package/dist/runtime--RZXG1zP.d.mts +901 -0
- package/dist/runtime--RZXG1zP.d.mts.map +1 -0
- package/dist/runtime-DYTFHGwh.mjs +516 -0
- package/dist/runtime-DYTFHGwh.mjs.map +1 -0
- package/dist/runtime-error-BA9d7XjZ-BlT8t6LB.mjs +40 -0
- package/dist/runtime-error-BA9d7XjZ-BlT8t6LB.mjs.map +1 -0
- package/dist/simplify-deep-Dw9I_ZUl.d.mts +6 -0
- package/dist/simplify-deep-Dw9I_ZUl.d.mts.map +1 -0
- package/dist/structured-error-BVmv2aPB.d.mts +34 -0
- package/dist/structured-error-BVmv2aPB.d.mts.map +1 -0
- package/dist/structured-error-H6WU9Kjt.mjs +31 -0
- package/dist/structured-error-H6WU9Kjt.mjs.map +1 -0
- package/dist/symbol-table-CZ7EVCTL-oYQtrmzq.d.mts +125 -0
- package/dist/symbol-table-CZ7EVCTL-oYQtrmzq.d.mts.map +1 -0
- package/dist/tokenizer-1hAHZzmp-QGPORvmA.mjs +228 -0
- package/dist/tokenizer-1hAHZzmp-QGPORvmA.mjs.map +1 -0
- package/dist/tokenizer-DcYI0Xrq-C-nNE9mE.d.mts +16 -0
- package/dist/tokenizer-DcYI0Xrq-C-nNE9mE.d.mts.map +1 -0
- package/dist/ts-render.d.mts +2 -0
- package/dist/ts-render.mjs +240 -0
- package/dist/ts-render.mjs.map +1 -0
- package/dist/types-ByeQhU9p.d.mts +17 -0
- package/dist/types-ByeQhU9p.d.mts.map +1 -0
- package/dist/types-DGxlljKG.d.mts +7 -0
- package/dist/types-DGxlljKG.d.mts.map +1 -0
- package/dist/types-DgdgskBY.mjs +96 -0
- package/dist/types-DgdgskBY.mjs.map +1 -0
- package/dist/types-import-spec-DRKzrJ20-WYwyCtil.d.mts +14 -0
- package/dist/types-import-spec-DRKzrJ20-WYwyCtil.d.mts.map +1 -0
- package/dist/utils-DMAM0unR.mjs +20 -0
- package/dist/utils-DMAM0unR.mjs.map +1 -0
- package/dist/utils-DeWL_zD9.d.mts +11 -0
- package/dist/utils-DeWL_zD9.d.mts.map +1 -0
- package/dist/utils.d.mts +16 -0
- package/dist/utils.mjs +13 -0
- package/dist/utils__abortable.d.mts +2 -0
- package/dist/utils__abortable.mjs +2 -0
- package/dist/utils__array-equal.d.mts +2 -0
- package/dist/utils__array-equal.mjs +2 -0
- package/dist/utils__assertions.d.mts +2 -0
- package/dist/utils__assertions.mjs +2 -0
- package/dist/utils__canonical-stringify.d.mts +2 -0
- package/dist/utils__canonical-stringify.mjs +2 -0
- package/dist/utils__casts.d.mts +2 -0
- package/dist/utils__casts.mjs +2 -0
- package/dist/utils__defined.d.mts +2 -0
- package/dist/utils__defined.mjs +2 -0
- package/dist/utils__hash-content.d.mts +2 -0
- package/dist/utils__hash-content.mjs +2 -0
- package/dist/utils__internal-error.d.mts +2 -0
- package/dist/utils__internal-error.mjs +2 -0
- package/dist/utils__json.d.mts +2 -0
- package/dist/utils__json.mjs +1 -0
- package/dist/utils__promise.d.mts +2 -0
- package/dist/utils__promise.mjs +2 -0
- package/dist/utils__redact-db-url.d.mts +2 -0
- package/dist/utils__redact-db-url.mjs +2 -0
- package/dist/utils__result.d.mts +2 -0
- package/dist/utils__result.mjs +2 -0
- package/dist/utils__simplify-deep.d.mts +2 -0
- package/dist/utils__simplify-deep.mjs +1 -0
- package/dist/utils__structured-error.d.mts +2 -0
- package/dist/utils__structured-error.mjs +2 -0
- package/dist/utils__types.d.mts +2 -0
- package/dist/utils__types.mjs +1 -0
- package/dist/validate-domain-BNBs-TVv.d.mts +22 -0
- package/dist/validate-domain-BNBs-TVv.d.mts.map +1 -0
- package/dist/validate-domain-BkvFlY3B.mjs +143 -0
- package/dist/validate-domain-BkvFlY3B.mjs.map +1 -0
- package/package.json +109 -0
|
@@ -0,0 +1,427 @@
|
|
|
1
|
+
import { F as PslDiagnosticCode } from "./framework-authoring-7YMP9TwM-C9P-N6_a.mjs";
|
|
2
|
+
import "./psl-ast-BEwO80EH.mjs";
|
|
3
|
+
import { n as TokenKind, t as Token } from "./tokenizer-DcYI0Xrq-C-nNE9mE.mjs";
|
|
4
|
+
//#region ../../../1-framework/2-authoring/psl-parser/dist/parse-0ZJjj_2N.d.mts
|
|
5
|
+
//#region src/source-file.d.ts
|
|
6
|
+
interface Position {
|
|
7
|
+
readonly line: number;
|
|
8
|
+
readonly character: number;
|
|
9
|
+
}
|
|
10
|
+
interface Range {
|
|
11
|
+
readonly start: Position;
|
|
12
|
+
readonly end: Position;
|
|
13
|
+
}
|
|
14
|
+
declare class SourceFile {
|
|
15
|
+
#private;
|
|
16
|
+
constructor(text: string);
|
|
17
|
+
get text(): string;
|
|
18
|
+
get length(): number;
|
|
19
|
+
get lineCount(): number;
|
|
20
|
+
lineStartOffsets(): readonly number[];
|
|
21
|
+
lineStartOffset(line: number): number;
|
|
22
|
+
lineEndOffset(line: number): number;
|
|
23
|
+
positionAt(offset: number): Position;
|
|
24
|
+
offsetAt(position: Position): number;
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region src/syntax/syntax-kind.d.ts
|
|
28
|
+
type SyntaxKind = 'Document' | 'ModelDeclaration' | 'CompositeTypeDeclaration' | 'Namespace' | 'TypesBlock' | 'GenericBlockDeclaration' | 'FieldDeclaration' | 'NamedTypeDeclaration' | 'KeyValuePair' | 'FieldAttribute' | 'ModelAttribute' | 'AttributeArgList' | 'AttributeArg' | 'TypeAnnotation' | 'Identifier' | 'QualifiedName' | 'FunctionCall' | 'ArrayLiteral' | 'StringLiteralExpr' | 'NumberLiteralExpr' | 'BooleanLiteralExpr' | 'ObjectLiteralExpr' | 'ObjectField';
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/syntax/green.d.ts
|
|
31
|
+
interface GreenToken {
|
|
32
|
+
readonly type: 'token';
|
|
33
|
+
readonly kind: TokenKind;
|
|
34
|
+
readonly text: string;
|
|
35
|
+
}
|
|
36
|
+
interface GreenNode {
|
|
37
|
+
readonly type: 'node';
|
|
38
|
+
readonly kind: SyntaxKind;
|
|
39
|
+
readonly children: ReadonlyArray<GreenElement>;
|
|
40
|
+
readonly textLength: number;
|
|
41
|
+
}
|
|
42
|
+
type GreenElement = GreenNode | GreenToken;
|
|
43
|
+
declare function greenToken(kind: TokenKind, text: string): GreenToken;
|
|
44
|
+
declare function greenNode(kind: SyntaxKind, children: ReadonlyArray<GreenElement>): GreenNode;
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region src/syntax/red.d.ts
|
|
47
|
+
/**
|
|
48
|
+
* A token in the red tree. Unlike the green-layer {@link Token} (kind + text
|
|
49
|
+
* only), a red token also carries its absolute `offset` within the source and a
|
|
50
|
+
* link back to its `parent` {@link SyntaxNode}, so a cursor anchored on a token
|
|
51
|
+
* can walk outward (parent, previous/next token, siblings) without re-scanning
|
|
52
|
+
* from the document root.
|
|
53
|
+
*/
|
|
54
|
+
declare class SyntaxToken implements Token {
|
|
55
|
+
readonly green: GreenToken;
|
|
56
|
+
readonly kind: TokenKind;
|
|
57
|
+
readonly text: string;
|
|
58
|
+
readonly offset: number;
|
|
59
|
+
readonly parent: SyntaxNode;
|
|
60
|
+
/** Position within the parent's children, enabling O(1) sibling navigation without rescanning the green layer. */
|
|
61
|
+
readonly index: number;
|
|
62
|
+
constructor(green: GreenToken, offset: number, parent: SyntaxNode, index: number);
|
|
63
|
+
get textLength(): number;
|
|
64
|
+
get endOffset(): number;
|
|
65
|
+
/** Whether `offset` falls within this token, inclusive of both ends. */
|
|
66
|
+
isInside(offset: number): boolean;
|
|
67
|
+
isOutside(offset: number): boolean;
|
|
68
|
+
/** The sibling element immediately after this token within its parent. */
|
|
69
|
+
get nextSiblingOrToken(): SyntaxElement | undefined;
|
|
70
|
+
/** The sibling element immediately before this token within its parent. */
|
|
71
|
+
get prevSiblingOrToken(): SyntaxElement | undefined;
|
|
72
|
+
/** The next token in document order, crossing node boundaries. */
|
|
73
|
+
get nextToken(): SyntaxToken | undefined;
|
|
74
|
+
/** The previous token in document order, crossing node boundaries. */
|
|
75
|
+
get prevToken(): SyntaxToken | undefined;
|
|
76
|
+
}
|
|
77
|
+
type SyntaxElement = SyntaxNode | SyntaxToken;
|
|
78
|
+
declare class TokenAtOffset {
|
|
79
|
+
#private;
|
|
80
|
+
private constructor();
|
|
81
|
+
static none(): TokenAtOffset;
|
|
82
|
+
static single(token: SyntaxToken): TokenAtOffset;
|
|
83
|
+
static between(left: SyntaxToken, right: SyntaxToken): TokenAtOffset;
|
|
84
|
+
get isEmpty(): boolean;
|
|
85
|
+
get isBetween(): boolean;
|
|
86
|
+
leftBiased(): SyntaxToken | undefined;
|
|
87
|
+
rightBiased(): SyntaxToken | undefined;
|
|
88
|
+
}
|
|
89
|
+
declare class SyntaxNode {
|
|
90
|
+
readonly green: GreenNode;
|
|
91
|
+
readonly offset: number;
|
|
92
|
+
readonly parent: SyntaxNode | undefined;
|
|
93
|
+
/** Position within the parent's children, enabling O(1) sibling navigation without rescanning the green layer. */
|
|
94
|
+
readonly index: number;
|
|
95
|
+
constructor(green: GreenNode, offset: number, parent: SyntaxNode | undefined, index: number);
|
|
96
|
+
get kind(): SyntaxKind;
|
|
97
|
+
get textLength(): number;
|
|
98
|
+
get endOffset(): number;
|
|
99
|
+
/** Whether `offset` falls within this node, inclusive of both ends. */
|
|
100
|
+
isInside(offset: number): boolean;
|
|
101
|
+
isOutside(offset: number): boolean;
|
|
102
|
+
get firstChild(): SyntaxElement | undefined;
|
|
103
|
+
get lastChild(): SyntaxElement | undefined;
|
|
104
|
+
get nextSibling(): SyntaxElement | undefined;
|
|
105
|
+
get prevSibling(): SyntaxElement | undefined;
|
|
106
|
+
/** The sibling element immediately after this node within its parent. */
|
|
107
|
+
get nextSiblingOrToken(): SyntaxElement | undefined;
|
|
108
|
+
/** The sibling element immediately before this node within its parent. */
|
|
109
|
+
get prevSiblingOrToken(): SyntaxElement | undefined;
|
|
110
|
+
/** The first token in this subtree (depth-first), or `undefined` if empty. */
|
|
111
|
+
get firstToken(): SyntaxToken | undefined;
|
|
112
|
+
/** The last token in this subtree (depth-first), or `undefined` if empty. */
|
|
113
|
+
get lastToken(): SyntaxToken | undefined;
|
|
114
|
+
children(): Iterable<SyntaxElement>;
|
|
115
|
+
childNodes(): Iterable<SyntaxNode>;
|
|
116
|
+
ancestors(): Iterable<SyntaxNode>;
|
|
117
|
+
/** The nearest match, testing this node itself before walking its ancestors. */
|
|
118
|
+
findAncestor<T>(cast: (node: SyntaxNode) => T | undefined): T | undefined;
|
|
119
|
+
descendants(): Iterable<SyntaxElement>;
|
|
120
|
+
tokens(): Iterable<SyntaxToken>;
|
|
121
|
+
/**
|
|
122
|
+
* The token(s) at `offset`. The between-two-tokens case (offset exactly on a
|
|
123
|
+
* token seam) is represented explicitly so callers can left/right bias.
|
|
124
|
+
*/
|
|
125
|
+
tokenAtOffset(offset: number): TokenAtOffset;
|
|
126
|
+
/**
|
|
127
|
+
* The smallest element fully containing the range `[start, end]`. At a seam
|
|
128
|
+
* (and for empty ranges) the left-hand element is preferred, matching
|
|
129
|
+
* {@link containsOffset}'s inclusive span.
|
|
130
|
+
*/
|
|
131
|
+
coveringElement(start: number, end: number): SyntaxElement;
|
|
132
|
+
}
|
|
133
|
+
declare function createSyntaxTree(green: GreenNode): SyntaxNode;
|
|
134
|
+
//#endregion
|
|
135
|
+
//#region src/syntax/ast-helpers.d.ts
|
|
136
|
+
interface AstNode {
|
|
137
|
+
readonly syntax: SyntaxNode;
|
|
138
|
+
}
|
|
139
|
+
interface BracedBlock extends AstNode {
|
|
140
|
+
lbrace(): SyntaxToken | undefined;
|
|
141
|
+
rbrace(): SyntaxToken | undefined;
|
|
142
|
+
}
|
|
143
|
+
declare function findChildToken(node: SyntaxNode, kind: TokenKind): SyntaxToken | undefined;
|
|
144
|
+
declare function findFirstChild<T>(node: SyntaxNode, cast: (node: SyntaxNode) => T | undefined): T | undefined;
|
|
145
|
+
declare function filterChildren<T>(node: SyntaxNode, cast: (node: SyntaxNode) => T | undefined): Iterable<T>;
|
|
146
|
+
type CastTarget<C> = C extends ((node: SyntaxNode) => infer R) ? Exclude<R, undefined> : never;
|
|
147
|
+
declare function any<Casts extends readonly ((node: SyntaxNode) => unknown)[]>(...casts: Casts): (node: SyntaxNode) => CastTarget<Casts[number]> | undefined;
|
|
148
|
+
/**
|
|
149
|
+
* Raw source text of a CST node, verbatim (quotes and brackets preserved). For
|
|
150
|
+
* the decoded value of a string literal, decode it instead.
|
|
151
|
+
*/
|
|
152
|
+
declare function printSyntax(node: SyntaxNode): string;
|
|
153
|
+
//#endregion
|
|
154
|
+
//#region src/syntax/ast/identifier.d.ts
|
|
155
|
+
declare class IdentifierAst implements AstNode {
|
|
156
|
+
readonly syntax: SyntaxNode;
|
|
157
|
+
constructor(syntax: SyntaxNode);
|
|
158
|
+
token(): SyntaxToken | undefined;
|
|
159
|
+
name(): string | undefined;
|
|
160
|
+
static cast(node: SyntaxNode): IdentifierAst | undefined;
|
|
161
|
+
}
|
|
162
|
+
//#endregion
|
|
163
|
+
//#region src/syntax/ast/qualified-name.d.ts
|
|
164
|
+
/** A namespace-qualified name, e.g. `pgvector.Vector` or `supabase:auth.User`. */
|
|
165
|
+
declare class QualifiedNameAst implements AstNode {
|
|
166
|
+
#private;
|
|
167
|
+
readonly syntax: SyntaxNode;
|
|
168
|
+
constructor(syntax: SyntaxNode);
|
|
169
|
+
colon(): SyntaxToken | undefined;
|
|
170
|
+
dot(): SyntaxToken | undefined;
|
|
171
|
+
space(): IdentifierAst | undefined;
|
|
172
|
+
namespace(): IdentifierAst | undefined;
|
|
173
|
+
identifier(): IdentifierAst | undefined;
|
|
174
|
+
/**
|
|
175
|
+
* Every identifier segment, in source order. A bare `Vector` yields
|
|
176
|
+
* `['Vector']`; a qualified `pgvector.Vector` yields `['pgvector', 'Vector']`.
|
|
177
|
+
*/
|
|
178
|
+
path(): readonly string[];
|
|
179
|
+
/** True iff this is a single unqualified identifier whose text equals `name`. */
|
|
180
|
+
isSimpleName(name: string): boolean;
|
|
181
|
+
/**
|
|
182
|
+
* Flags a malformed name with more qualifier segments than allowed (a second
|
|
183
|
+
* `:`-space or a second `.`-namespace).
|
|
184
|
+
*/
|
|
185
|
+
isOverQualified(): boolean;
|
|
186
|
+
static cast(node: SyntaxNode): QualifiedNameAst | undefined;
|
|
187
|
+
}
|
|
188
|
+
//#endregion
|
|
189
|
+
//#region src/syntax/ast/expressions.d.ts
|
|
190
|
+
declare class FunctionCallAst implements AstNode {
|
|
191
|
+
readonly syntax: SyntaxNode;
|
|
192
|
+
constructor(syntax: SyntaxNode);
|
|
193
|
+
/** The qualified-name callee, or `undefined` when identifier segments sit directly under the node. */
|
|
194
|
+
name(): QualifiedNameAst | undefined;
|
|
195
|
+
/**
|
|
196
|
+
* The dotted call path, in source order. A bare `Vector(…)` yields
|
|
197
|
+
* `['Vector']`; a namespace-qualified `pgvector.Vector(…)` yields
|
|
198
|
+
* `['pgvector', 'Vector']`. Empty when the call carries no identifier.
|
|
199
|
+
*/
|
|
200
|
+
path(): readonly string[];
|
|
201
|
+
lparen(): SyntaxToken | undefined;
|
|
202
|
+
rparen(): SyntaxToken | undefined;
|
|
203
|
+
args(): Iterable<AttributeArgAst>;
|
|
204
|
+
static cast(node: SyntaxNode): FunctionCallAst | undefined;
|
|
205
|
+
}
|
|
206
|
+
declare class ArrayLiteralAst implements AstNode {
|
|
207
|
+
readonly syntax: SyntaxNode;
|
|
208
|
+
constructor(syntax: SyntaxNode);
|
|
209
|
+
lbracket(): SyntaxToken | undefined;
|
|
210
|
+
rbracket(): SyntaxToken | undefined;
|
|
211
|
+
elements(): Iterable<ExpressionAst>;
|
|
212
|
+
static cast(node: SyntaxNode): ArrayLiteralAst | undefined;
|
|
213
|
+
}
|
|
214
|
+
declare class StringLiteralExprAst implements AstNode {
|
|
215
|
+
readonly syntax: SyntaxNode;
|
|
216
|
+
constructor(syntax: SyntaxNode);
|
|
217
|
+
token(): SyntaxToken | undefined;
|
|
218
|
+
value(): string | undefined;
|
|
219
|
+
static cast(node: SyntaxNode): StringLiteralExprAst | undefined;
|
|
220
|
+
}
|
|
221
|
+
declare class NumberLiteralExprAst implements AstNode {
|
|
222
|
+
readonly syntax: SyntaxNode;
|
|
223
|
+
constructor(syntax: SyntaxNode);
|
|
224
|
+
token(): SyntaxToken | undefined;
|
|
225
|
+
value(): number | undefined;
|
|
226
|
+
static cast(node: SyntaxNode): NumberLiteralExprAst | undefined;
|
|
227
|
+
}
|
|
228
|
+
declare class BooleanLiteralExprAst implements AstNode {
|
|
229
|
+
readonly syntax: SyntaxNode;
|
|
230
|
+
constructor(syntax: SyntaxNode);
|
|
231
|
+
token(): SyntaxToken | undefined;
|
|
232
|
+
value(): boolean | undefined;
|
|
233
|
+
static cast(node: SyntaxNode): BooleanLiteralExprAst | undefined;
|
|
234
|
+
}
|
|
235
|
+
declare class ObjectLiteralExprAst implements AstNode {
|
|
236
|
+
readonly syntax: SyntaxNode;
|
|
237
|
+
constructor(syntax: SyntaxNode);
|
|
238
|
+
lbrace(): SyntaxToken | undefined;
|
|
239
|
+
rbrace(): SyntaxToken | undefined;
|
|
240
|
+
fields(): Iterable<ObjectFieldAst>;
|
|
241
|
+
static cast(node: SyntaxNode): ObjectLiteralExprAst | undefined;
|
|
242
|
+
}
|
|
243
|
+
declare class ObjectFieldAst implements AstNode {
|
|
244
|
+
readonly syntax: SyntaxNode;
|
|
245
|
+
constructor(syntax: SyntaxNode);
|
|
246
|
+
key(): IdentifierAst | undefined;
|
|
247
|
+
/**
|
|
248
|
+
* The field's logical key name, unquoted. An identifier key (`length:`) yields
|
|
249
|
+
* its text; a string-literal key (`"length":`) yields the decoded string.
|
|
250
|
+
* `undefined` when the field carries no key node.
|
|
251
|
+
*/
|
|
252
|
+
keyName(): string | undefined;
|
|
253
|
+
colon(): SyntaxToken | undefined;
|
|
254
|
+
value(): ExpressionAst | undefined;
|
|
255
|
+
static cast(node: SyntaxNode): ObjectFieldAst | undefined;
|
|
256
|
+
}
|
|
257
|
+
type ExpressionAst = FunctionCallAst | ArrayLiteralAst | StringLiteralExprAst | NumberLiteralExprAst | BooleanLiteralExprAst | ObjectLiteralExprAst | IdentifierAst;
|
|
258
|
+
declare function castExpression(node: SyntaxNode): ExpressionAst | undefined;
|
|
259
|
+
declare class AttributeArgAst implements AstNode {
|
|
260
|
+
readonly syntax: SyntaxNode;
|
|
261
|
+
constructor(syntax: SyntaxNode);
|
|
262
|
+
name(): IdentifierAst | undefined;
|
|
263
|
+
colon(): SyntaxToken | undefined;
|
|
264
|
+
value(): ExpressionAst | undefined;
|
|
265
|
+
static cast(node: SyntaxNode): AttributeArgAst | undefined;
|
|
266
|
+
}
|
|
267
|
+
//#endregion
|
|
268
|
+
//#region src/syntax/ast/attributes.d.ts
|
|
269
|
+
declare class AttributeArgListAst implements AstNode {
|
|
270
|
+
readonly syntax: SyntaxNode;
|
|
271
|
+
constructor(syntax: SyntaxNode);
|
|
272
|
+
lparen(): SyntaxToken | undefined;
|
|
273
|
+
rparen(): SyntaxToken | undefined;
|
|
274
|
+
args(): Iterable<AttributeArgAst>;
|
|
275
|
+
static cast(node: SyntaxNode): AttributeArgListAst | undefined;
|
|
276
|
+
}
|
|
277
|
+
declare class FieldAttributeAst implements AstNode {
|
|
278
|
+
readonly syntax: SyntaxNode;
|
|
279
|
+
constructor(syntax: SyntaxNode);
|
|
280
|
+
at(): SyntaxToken | undefined;
|
|
281
|
+
name(): QualifiedNameAst | undefined;
|
|
282
|
+
argList(): AttributeArgListAst | undefined;
|
|
283
|
+
static cast(node: SyntaxNode): FieldAttributeAst | undefined;
|
|
284
|
+
}
|
|
285
|
+
declare class ModelAttributeAst implements AstNode {
|
|
286
|
+
readonly syntax: SyntaxNode;
|
|
287
|
+
constructor(syntax: SyntaxNode);
|
|
288
|
+
doubleAt(): SyntaxToken | undefined;
|
|
289
|
+
name(): QualifiedNameAst | undefined;
|
|
290
|
+
argList(): AttributeArgListAst | undefined;
|
|
291
|
+
static cast(node: SyntaxNode): ModelAttributeAst | undefined;
|
|
292
|
+
}
|
|
293
|
+
//#endregion
|
|
294
|
+
//#region src/syntax/ast/type-annotation.d.ts
|
|
295
|
+
declare class TypeAnnotationAst implements AstNode {
|
|
296
|
+
readonly syntax: SyntaxNode;
|
|
297
|
+
constructor(syntax: SyntaxNode);
|
|
298
|
+
/** The annotation's reference, doubling as the constructor callee when an {@link argList} follows. */
|
|
299
|
+
name(): QualifiedNameAst | undefined;
|
|
300
|
+
/** Present when the annotation is a constructor (`Vector(1536)`) rather than a plain reference. */
|
|
301
|
+
argList(): AttributeArgListAst | undefined;
|
|
302
|
+
isConstructor(): boolean;
|
|
303
|
+
lbracket(): SyntaxToken | undefined;
|
|
304
|
+
rbracket(): SyntaxToken | undefined;
|
|
305
|
+
questionMark(): SyntaxToken | undefined;
|
|
306
|
+
isList(): boolean;
|
|
307
|
+
isOptional(): boolean;
|
|
308
|
+
static cast(node: SyntaxNode): TypeAnnotationAst | undefined;
|
|
309
|
+
}
|
|
310
|
+
//#endregion
|
|
311
|
+
//#region src/syntax/ast/declarations.d.ts
|
|
312
|
+
/**
|
|
313
|
+
* What may appear inside a `namespace` block: models, composite types, and
|
|
314
|
+
* extension (block) declarations. `types {}` blocks and nested `namespace`
|
|
315
|
+
* blocks are document-only, so they are not namespace members.
|
|
316
|
+
*/
|
|
317
|
+
type NamespaceMemberAst = ModelDeclarationAst | CompositeTypeDeclarationAst | GenericBlockDeclarationAst;
|
|
318
|
+
type DeclarationAst = NamespaceMemberAst | TypesBlockAst | NamespaceDeclarationAst;
|
|
319
|
+
type AttributeAst = FieldAttributeAst | ModelAttributeAst;
|
|
320
|
+
type BlockMemberAst = FieldDeclarationAst | ModelAttributeAst;
|
|
321
|
+
type GenericBlockMemberAst = KeyValuePairAst | ModelAttributeAst;
|
|
322
|
+
declare class DocumentAst implements AstNode {
|
|
323
|
+
readonly syntax: SyntaxNode;
|
|
324
|
+
constructor(syntax: SyntaxNode);
|
|
325
|
+
declarations(): Iterable<DeclarationAst>;
|
|
326
|
+
static cast(node: SyntaxNode): DocumentAst | undefined;
|
|
327
|
+
}
|
|
328
|
+
declare class ModelDeclarationAst implements BracedBlock {
|
|
329
|
+
readonly syntax: SyntaxNode;
|
|
330
|
+
constructor(syntax: SyntaxNode);
|
|
331
|
+
keyword(): SyntaxToken | undefined;
|
|
332
|
+
name(): IdentifierAst | undefined;
|
|
333
|
+
lbrace(): SyntaxToken | undefined;
|
|
334
|
+
rbrace(): SyntaxToken | undefined;
|
|
335
|
+
fields(): Iterable<FieldDeclarationAst>;
|
|
336
|
+
attributes(): Iterable<ModelAttributeAst>;
|
|
337
|
+
members(): Iterable<BlockMemberAst>;
|
|
338
|
+
static cast(node: SyntaxNode): ModelDeclarationAst | undefined;
|
|
339
|
+
}
|
|
340
|
+
declare class CompositeTypeDeclarationAst implements BracedBlock {
|
|
341
|
+
readonly syntax: SyntaxNode;
|
|
342
|
+
constructor(syntax: SyntaxNode);
|
|
343
|
+
keyword(): SyntaxToken | undefined;
|
|
344
|
+
name(): IdentifierAst | undefined;
|
|
345
|
+
lbrace(): SyntaxToken | undefined;
|
|
346
|
+
rbrace(): SyntaxToken | undefined;
|
|
347
|
+
fields(): Iterable<FieldDeclarationAst>;
|
|
348
|
+
attributes(): Iterable<ModelAttributeAst>;
|
|
349
|
+
members(): Iterable<BlockMemberAst>;
|
|
350
|
+
static cast(node: SyntaxNode): CompositeTypeDeclarationAst | undefined;
|
|
351
|
+
}
|
|
352
|
+
declare class NamespaceDeclarationAst implements BracedBlock {
|
|
353
|
+
readonly syntax: SyntaxNode;
|
|
354
|
+
constructor(syntax: SyntaxNode);
|
|
355
|
+
keyword(): SyntaxToken | undefined;
|
|
356
|
+
name(): IdentifierAst | undefined;
|
|
357
|
+
lbrace(): SyntaxToken | undefined;
|
|
358
|
+
rbrace(): SyntaxToken | undefined;
|
|
359
|
+
declarations(): Iterable<NamespaceMemberAst>;
|
|
360
|
+
static cast(node: SyntaxNode): NamespaceDeclarationAst | undefined;
|
|
361
|
+
}
|
|
362
|
+
declare class TypesBlockAst implements BracedBlock {
|
|
363
|
+
readonly syntax: SyntaxNode;
|
|
364
|
+
constructor(syntax: SyntaxNode);
|
|
365
|
+
keyword(): SyntaxToken | undefined;
|
|
366
|
+
lbrace(): SyntaxToken | undefined;
|
|
367
|
+
rbrace(): SyntaxToken | undefined;
|
|
368
|
+
declarations(): Iterable<NamedTypeDeclarationAst>;
|
|
369
|
+
static cast(node: SyntaxNode): TypesBlockAst | undefined;
|
|
370
|
+
}
|
|
371
|
+
declare class GenericBlockDeclarationAst implements BracedBlock {
|
|
372
|
+
readonly syntax: SyntaxNode;
|
|
373
|
+
constructor(syntax: SyntaxNode);
|
|
374
|
+
keyword(): SyntaxToken | undefined;
|
|
375
|
+
name(): IdentifierAst | undefined;
|
|
376
|
+
lbrace(): SyntaxToken | undefined;
|
|
377
|
+
rbrace(): SyntaxToken | undefined;
|
|
378
|
+
entries(): Iterable<KeyValuePairAst>;
|
|
379
|
+
attributes(): Iterable<ModelAttributeAst>;
|
|
380
|
+
members(): Iterable<GenericBlockMemberAst>;
|
|
381
|
+
static cast(node: SyntaxNode): GenericBlockDeclarationAst | undefined;
|
|
382
|
+
}
|
|
383
|
+
declare class KeyValuePairAst implements AstNode {
|
|
384
|
+
readonly syntax: SyntaxNode;
|
|
385
|
+
constructor(syntax: SyntaxNode);
|
|
386
|
+
key(): IdentifierAst | undefined;
|
|
387
|
+
equals(): SyntaxToken | undefined;
|
|
388
|
+
value(): ExpressionAst | undefined;
|
|
389
|
+
static cast(node: SyntaxNode): KeyValuePairAst | undefined;
|
|
390
|
+
}
|
|
391
|
+
declare class FieldDeclarationAst implements AstNode {
|
|
392
|
+
readonly syntax: SyntaxNode;
|
|
393
|
+
constructor(syntax: SyntaxNode);
|
|
394
|
+
name(): IdentifierAst | undefined;
|
|
395
|
+
typeAnnotation(): TypeAnnotationAst | undefined;
|
|
396
|
+
attributes(): Iterable<FieldAttributeAst>;
|
|
397
|
+
static cast(node: SyntaxNode): FieldDeclarationAst | undefined;
|
|
398
|
+
}
|
|
399
|
+
declare class NamedTypeDeclarationAst implements AstNode {
|
|
400
|
+
readonly syntax: SyntaxNode;
|
|
401
|
+
constructor(syntax: SyntaxNode);
|
|
402
|
+
name(): IdentifierAst | undefined;
|
|
403
|
+
equals(): SyntaxToken | undefined;
|
|
404
|
+
typeAnnotation(): TypeAnnotationAst | undefined;
|
|
405
|
+
attributes(): Iterable<FieldAttributeAst>;
|
|
406
|
+
static cast(node: SyntaxNode): NamedTypeDeclarationAst | undefined;
|
|
407
|
+
}
|
|
408
|
+
//#endregion
|
|
409
|
+
//#region src/parse.d.ts
|
|
410
|
+
interface ParseDiagnostic {
|
|
411
|
+
readonly code: PslDiagnosticCode;
|
|
412
|
+
readonly message: string;
|
|
413
|
+
readonly range: Range;
|
|
414
|
+
}
|
|
415
|
+
interface ParseResult {
|
|
416
|
+
readonly document: DocumentAst;
|
|
417
|
+
readonly diagnostics: readonly ParseDiagnostic[];
|
|
418
|
+
readonly sourceFile: SourceFile;
|
|
419
|
+
}
|
|
420
|
+
/**
|
|
421
|
+
* Parses a full PSL document. Never throws — malformed input yields diagnostics
|
|
422
|
+
* and a recovered tree, not an exception.
|
|
423
|
+
*/
|
|
424
|
+
declare function parse(source: string): ParseResult;
|
|
425
|
+
//#endregion
|
|
426
|
+
export { parse as $, ObjectLiteralExprAst as A, SyntaxNode as B, ModelAttributeAst as C, NamespaceMemberAst as D, NamespaceDeclarationAst as E, Range as F, any as G, TokenAtOffset as H, SourceFile as I, filterChildren as J, castExpression as K, StringLiteralExprAst as L, ParseResult as M, Position as N, NumberLiteralExprAst as O, QualifiedNameAst as P, greenToken as Q, SyntaxElement as R, KeyValuePairAst as S, NamedTypeDeclarationAst as T, TypeAnnotationAst as U, SyntaxToken as V, TypesBlockAst as W, findFirstChild as X, findChildToken as Y, greenNode as Z, GenericBlockMemberAst as _, AttributeAst as a, GreenToken as b, BracedBlock as c, DocumentAst as d, printSyntax as et, ExpressionAst as f, GenericBlockDeclarationAst as g, FunctionCallAst as h, AttributeArgListAst as i, ParseDiagnostic as j, ObjectFieldAst as k, CompositeTypeDeclarationAst as l, FieldDeclarationAst as m, AstNode as n, BlockMemberAst as o, FieldAttributeAst as p, createSyntaxTree as q, AttributeArgAst as r, BooleanLiteralExprAst as s, ArrayLiteralAst as t, DeclarationAst as u, GreenElement as v, ModelDeclarationAst as w, IdentifierAst as x, GreenNode as y, SyntaxKind as z };
|
|
427
|
+
//# sourceMappingURL=parse-0ZJjj_2N-WZZ1nlrv.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parse-0ZJjj_2N-WZZ1nlrv.d.mts","names":[],"sources":["../../../../1-framework/2-authoring/psl-parser/dist/parse-0ZJjj_2N.d.mts"],"mappings":";;;;;UAGU;WACC;WACA;;UAED;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