@powerlines/deepkit 0.7.3 → 0.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{capnp-BLx1WTBU.cjs → capnp-BLCHrDSY.cjs} +42 -42
- package/dist/{capnp-BiGNkOmV.mjs → capnp-BqAglxrS.mjs} +265 -265
- package/dist/capnp.cjs +1 -1
- package/dist/capnp.d.cts +42 -44
- package/dist/capnp.d.mts +42 -44
- package/dist/capnp.mjs +1 -1
- package/dist/{chunk-C0xms8kb.cjs → chunk-BmvPcxpV.cjs} +7 -0
- package/dist/chunk-CgI6uo-e.mjs +32 -0
- package/dist/{vendor/type-compiler/compiler-D1z5h1MK.d.cts → compiler-B-zwyGQf.d.cts} +3 -201
- package/dist/{vendor/type-compiler/compiler-Bg8jX6qU.mjs → compiler-BUUdv7wG.mjs} +4 -191
- package/dist/{vendor/type-compiler/compiler-Nkxc4PLJ.d.mts → compiler-BzOZmhWO.d.mts} +3 -201
- package/dist/{vendor/type-compiler/compiler-BUrWMhGi.cjs → compiler-DTp8Jvav.cjs} +207 -394
- package/dist/{vendor/type-compiler/config-B_cKkYZm.d.cts → config-B2hS4_tR.d.mts} +1 -1
- package/dist/config-C0OHvihx.d.mts +1 -0
- package/dist/{vendor/type-compiler/config-y0HNkbCH.mjs → config-CuXC21KA.mjs} +3 -32
- package/dist/{vendor/type-compiler/config-D9DM7Du_.d.mts → config-DCmu3CV2.d.cts} +1 -1
- package/dist/config-GPeRZeGl.d.cts +1 -0
- package/dist/{vendor/type-compiler/config-BEX924PC.cjs → config-GVyELKY1.cjs} +20 -59
- package/dist/esbuild-plugin-BUYqx8_5.cjs +80 -0
- package/dist/esbuild-plugin-CRQUmm86.mjs +75 -0
- package/dist/esbuild-plugin.cjs +2 -47
- package/dist/esbuild-plugin.d.cts +18 -4
- package/dist/esbuild-plugin.d.mts +18 -4
- package/dist/esbuild-plugin.mjs +2 -47
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +4 -4
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +3 -3
- package/dist/reflect-type.cjs +4 -4
- package/dist/reflect-type.d.cts +1 -1
- package/dist/reflect-type.d.mts +1 -1
- package/dist/reflect-type.mjs +2 -2
- package/dist/{reflection-C4IlLDrv.d.cts → reflection-Bhe75GyI.d.mts} +2 -2
- package/dist/{reflection-BB3pXP5l.d.mts → reflection-DGOuMF8F.d.cts} +2 -2
- package/dist/resolve-reflections.cjs +1 -1
- package/dist/rolldown-plugin.cjs +1 -1
- package/dist/{vendor/string-BuMgdahD.mjs → string-CjkshhTG.mjs} +3 -28
- package/dist/{vendor/string-BoXo0wS7.cjs → string-CpVz34Gv.cjs} +6 -39
- package/dist/transformer.cjs +7 -8
- package/dist/transformer.d.cts +1 -1
- package/dist/transformer.d.mts +1 -1
- package/dist/transformer.mjs +3 -4
- package/dist/transpile.cjs +6 -2
- package/dist/transpile.d.cts +1 -1
- package/dist/transpile.d.mts +1 -1
- package/dist/transpile.mjs +5 -1
- package/dist/type-8AL5U7vn.d.cts +2969 -0
- package/dist/type-BDuj5wg2.d.mts +2969 -0
- package/dist/{vendor/type-Dgeqs-rL.mjs → type-BWm74eaQ.mjs} +2 -1
- package/dist/type-C7UXbXfx.cjs +10688 -0
- package/dist/type-DR66Hepn.d.cts +223 -0
- package/dist/type-DfwJ6GTs.d.mts +223 -0
- package/dist/type-ma8o4dJG.mjs +9110 -0
- package/dist/types-BO3PJV5p.d.mts +511 -0
- package/dist/types-Bb6lL3KL.d.cts +511 -0
- package/dist/types.d.cts +3 -5
- package/dist/types.d.mts +3 -5
- package/dist/utilities-CT_jcB5h.mjs +1483 -0
- package/dist/utilities-Dr3TzxMb.cjs +1523 -0
- package/dist/utilities.cjs +8 -116
- package/dist/utilities.d.cts +1 -1
- package/dist/utilities.d.mts +1 -1
- package/dist/utilities.mjs +2 -110
- package/dist/vendor/core.cjs +1 -1
- package/dist/vendor/core.d.cts +158 -637
- package/dist/vendor/core.d.mts +158 -637
- package/dist/vendor/core.mjs +3 -2
- package/dist/vendor/type-compiler/compiler.cjs +1 -1
- package/dist/vendor/type-compiler/compiler.d.cts +1 -1
- package/dist/vendor/type-compiler/compiler.d.mts +1 -1
- package/dist/vendor/type-compiler/compiler.mjs +1 -1
- package/dist/vendor/type-compiler/config.cjs +1 -1
- package/dist/vendor/type-compiler/config.d.cts +1 -1
- package/dist/vendor/type-compiler/config.d.mts +1 -1
- package/dist/vendor/type-compiler/config.mjs +1 -1
- package/dist/vendor/type-compiler/index.cjs +11 -3
- package/dist/vendor/type-compiler/index.d.cts +3 -2
- package/dist/vendor/type-compiler/index.d.mts +3 -2
- package/dist/vendor/type-compiler/index.mjs +3 -2
- package/dist/vendor/type-spec.cjs +1 -1
- package/dist/vendor/type-spec.d.cts +2 -192
- package/dist/vendor/type-spec.d.mts +2 -192
- package/dist/vendor/type-spec.mjs +1 -1
- package/dist/vendor/type.cjs +268 -9374
- package/dist/vendor/type.d.cts +3 -3239
- package/dist/vendor/type.d.mts +3 -3239
- package/dist/vendor/type.mjs +2 -9107
- package/package.json +11 -16
- package/schemas/reflection.d.cts +1 -6
- package/schemas/reflection.d.mts +1 -6
- /package/dist/{vendor/type-BMLjRtLY.cjs → type-DhqntM0q.cjs} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const require_chunk = require('./chunk-
|
|
2
|
-
|
|
1
|
+
const require_chunk = require('./chunk-BmvPcxpV.cjs');
|
|
2
|
+
const require_type = require('./type-C7UXbXfx.cjs');
|
|
3
3
|
let _stryke_type_checks = require("@stryke/type-checks");
|
|
4
4
|
let _stryke_capnp = require("@stryke/capnp");
|
|
5
5
|
_stryke_capnp = require_chunk.__toESM(_stryke_capnp);
|
|
6
6
|
|
|
7
7
|
//#region schemas/reflection.ts
|
|
8
|
-
const ReflectionVisibility
|
|
8
|
+
const ReflectionVisibility = {
|
|
9
9
|
PUBLIC: 0,
|
|
10
10
|
PROTECTED: 1,
|
|
11
11
|
PRIVATE: 2
|
|
@@ -4092,23 +4092,23 @@ function convertFromCapnpIndexAccessOrigin(serializedType) {
|
|
|
4092
4092
|
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
4093
4093
|
*/
|
|
4094
4094
|
function convertToCapnpBase(serializedType, result) {
|
|
4095
|
-
if (serializedType.kind ===
|
|
4096
|
-
else if (serializedType.kind ===
|
|
4097
|
-
else if (serializedType.kind ===
|
|
4098
|
-
else if (serializedType.kind ===
|
|
4099
|
-
else if (serializedType.kind ===
|
|
4100
|
-
else if (serializedType.kind ===
|
|
4101
|
-
else if (serializedType.kind ===
|
|
4102
|
-
else if (serializedType.kind ===
|
|
4103
|
-
else if (serializedType.kind ===
|
|
4104
|
-
else if (serializedType.kind ===
|
|
4105
|
-
else if (serializedType.kind ===
|
|
4106
|
-
else if (serializedType.kind ===
|
|
4107
|
-
else if (serializedType.kind ===
|
|
4108
|
-
else if (serializedType.kind ===
|
|
4109
|
-
else if (serializedType.kind ===
|
|
4110
|
-
else if (serializedType.kind ===
|
|
4111
|
-
else if (serializedType.kind ===
|
|
4095
|
+
if (serializedType.kind === require_type.ReflectionKind.objectLiteral) convertToCapnpObjectLiteral(serializedType, result._initObjectLiteral());
|
|
4096
|
+
else if (serializedType.kind === require_type.ReflectionKind.class) convertToCapnpClassType(serializedType, result._initClassType());
|
|
4097
|
+
else if (serializedType.kind === require_type.ReflectionKind.parameter) convertToCapnpParameter(serializedType, result._initParameter());
|
|
4098
|
+
else if (serializedType.kind === require_type.ReflectionKind.function) convertToCapnpFunction(serializedType, result._initFunction());
|
|
4099
|
+
else if (serializedType.kind === require_type.ReflectionKind.method) convertToCapnpMethod(serializedType, result._initMethod());
|
|
4100
|
+
else if (serializedType.kind === require_type.ReflectionKind.infer) convertToCapnpInfer(serializedType, result._initInfer());
|
|
4101
|
+
else if (serializedType.kind === require_type.ReflectionKind.union) convertToCapnpUnion(serializedType, result._initUnion());
|
|
4102
|
+
else if (serializedType.kind === require_type.ReflectionKind.array) convertToCapnpArray(serializedType, result._initArray());
|
|
4103
|
+
else if (serializedType.kind === require_type.ReflectionKind.intersection) convertToCapnpIntersection(serializedType, result._initIntersection());
|
|
4104
|
+
else if (serializedType.kind === require_type.ReflectionKind.enum) convertToCapnpEnum(serializedType, result._initEnum());
|
|
4105
|
+
else if (serializedType.kind === require_type.ReflectionKind.property) convertToCapnpProperty(serializedType, result._initProperty());
|
|
4106
|
+
else if (serializedType.kind === require_type.ReflectionKind.tuple) convertToCapnpTuple(serializedType, result._initTuple());
|
|
4107
|
+
else if (serializedType.kind === require_type.ReflectionKind.tupleMember) convertToCapnpTupleMember(serializedType, result._initTupleMember());
|
|
4108
|
+
else if (serializedType.kind === require_type.ReflectionKind.propertySignature) convertToCapnpPropertySignature(serializedType, result._initPropertySignature());
|
|
4109
|
+
else if (serializedType.kind === require_type.ReflectionKind.methodSignature) convertToCapnpMethodSignature(serializedType, result._initMethodSignature());
|
|
4110
|
+
else if (serializedType.kind === require_type.ReflectionKind.literal) convertToCapnpLiteral(serializedType, result._initLiteral());
|
|
4111
|
+
else if (serializedType.kind === require_type.ReflectionKind.never || serializedType.kind === require_type.ReflectionKind.any || serializedType.kind === require_type.ReflectionKind.unknown || serializedType.kind === require_type.ReflectionKind.void || serializedType.kind === require_type.ReflectionKind.object || serializedType.kind === require_type.ReflectionKind.string || serializedType.kind === require_type.ReflectionKind.number || serializedType.kind === require_type.ReflectionKind.boolean || serializedType.kind === require_type.ReflectionKind.symbol || serializedType.kind === require_type.ReflectionKind.bigint || serializedType.kind === require_type.ReflectionKind.null || serializedType.kind === require_type.ReflectionKind.undefined || serializedType.kind === require_type.ReflectionKind.regexp) convertToCapnpSimple(serializedType, result._initSimple());
|
|
4112
4112
|
else convertToCapnpOther(serializedType, result._initOther());
|
|
4113
4113
|
return result;
|
|
4114
4114
|
}
|
|
@@ -4181,7 +4181,7 @@ function convertToCapnpSimple(serializedType, result) {
|
|
|
4181
4181
|
}
|
|
4182
4182
|
function convertFromCapnpLiteral(serializedType) {
|
|
4183
4183
|
return {
|
|
4184
|
-
kind:
|
|
4184
|
+
kind: require_type.ReflectionKind.literal,
|
|
4185
4185
|
literal: serializedType.literal._isString ? serializedType.literal.string : serializedType.literal._isNumber ? serializedType.literal.number : serializedType.literal._isBoolean ? serializedType.literal.boolean : serializedType.literal._isBigint ? {
|
|
4186
4186
|
type: "bigint",
|
|
4187
4187
|
value: serializedType.literal.bigint.value
|
|
@@ -4237,7 +4237,7 @@ function convertToCapnpLiteral(serializedType, result) {
|
|
|
4237
4237
|
}
|
|
4238
4238
|
function convertFromCapnpMethodSignature(serializedType) {
|
|
4239
4239
|
return {
|
|
4240
|
-
kind:
|
|
4240
|
+
kind: require_type.ReflectionKind.methodSignature,
|
|
4241
4241
|
name: serializedType.name,
|
|
4242
4242
|
typeName: serializedType.typeName || void 0,
|
|
4243
4243
|
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
@@ -4270,7 +4270,7 @@ function convertToCapnpMethodSignature(serializedType, result) {
|
|
|
4270
4270
|
}
|
|
4271
4271
|
function convertFromCapnpPropertySignature(serializedType) {
|
|
4272
4272
|
return {
|
|
4273
|
-
kind:
|
|
4273
|
+
kind: require_type.ReflectionKind.propertySignature,
|
|
4274
4274
|
name: serializedType.name,
|
|
4275
4275
|
typeName: serializedType.typeName || void 0,
|
|
4276
4276
|
description: serializedType.description,
|
|
@@ -4355,7 +4355,7 @@ function convertToCapnpTupleMember(serializedType, result) {
|
|
|
4355
4355
|
}
|
|
4356
4356
|
function convertFromCapnpTupleMember(serializedType) {
|
|
4357
4357
|
return {
|
|
4358
|
-
kind:
|
|
4358
|
+
kind: require_type.ReflectionKind.tupleMember,
|
|
4359
4359
|
type: serializedType.type.id,
|
|
4360
4360
|
typeName: serializedType.typeName || void 0,
|
|
4361
4361
|
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
@@ -4389,7 +4389,7 @@ function convertToCapnpTuple(serializedType, result) {
|
|
|
4389
4389
|
}
|
|
4390
4390
|
function convertFromCapnpTuple(serializedType) {
|
|
4391
4391
|
return {
|
|
4392
|
-
kind:
|
|
4392
|
+
kind: require_type.ReflectionKind.tuple,
|
|
4393
4393
|
typeName: serializedType.typeName || void 0,
|
|
4394
4394
|
types: serializedType._hasTypes() ? serializedType.types.map((t) => convertFromCapnpTupleMember(t)) : [],
|
|
4395
4395
|
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
@@ -4403,7 +4403,7 @@ function convertToCapnpProperty(serializedType, result) {
|
|
|
4403
4403
|
result.description = serializedType.description || "";
|
|
4404
4404
|
result.optional = serializedType.optional ?? false;
|
|
4405
4405
|
result.readonly = serializedType.readonly ?? false;
|
|
4406
|
-
result.visibility = serializedType.visibility ===
|
|
4406
|
+
result.visibility = serializedType.visibility === require_type.ReflectionVisibility.public ? ReflectionVisibility.PUBLIC : serializedType.visibility === require_type.ReflectionVisibility.protected ? ReflectionVisibility.PROTECTED : ReflectionVisibility.PRIVATE;
|
|
4407
4407
|
result.abstract = serializedType.abstract ?? false;
|
|
4408
4408
|
result.name = String(serializedType.name) || "";
|
|
4409
4409
|
if (typeof serializedType.default !== "undefined") {
|
|
@@ -4432,13 +4432,13 @@ function convertToCapnpProperty(serializedType, result) {
|
|
|
4432
4432
|
}
|
|
4433
4433
|
function convertFromCapnpProperty(serializedType) {
|
|
4434
4434
|
return {
|
|
4435
|
-
kind:
|
|
4435
|
+
kind: require_type.ReflectionKind.property,
|
|
4436
4436
|
typeName: serializedType.typeName || void 0,
|
|
4437
4437
|
description: serializedType.description,
|
|
4438
4438
|
default: convertFromCapnpDefault(serializedType.default),
|
|
4439
4439
|
optional: serializedType.optional ? true : void 0,
|
|
4440
4440
|
readonly: serializedType.readonly ? true : void 0,
|
|
4441
|
-
visibility: serializedType.visibility === ReflectionVisibility
|
|
4441
|
+
visibility: serializedType.visibility === ReflectionVisibility.PUBLIC ? require_type.ReflectionVisibility.public : serializedType.visibility === ReflectionVisibility.PROTECTED ? require_type.ReflectionVisibility.protected : require_type.ReflectionVisibility.private,
|
|
4442
4442
|
abstract: serializedType.abstract ? true : void 0,
|
|
4443
4443
|
name: serializedType.name,
|
|
4444
4444
|
type: serializedType.type.id,
|
|
@@ -4485,7 +4485,7 @@ function convertToCapnpEnum(serializedType, result) {
|
|
|
4485
4485
|
}
|
|
4486
4486
|
function convertFromCapnpEnum(serializedType) {
|
|
4487
4487
|
return {
|
|
4488
|
-
kind:
|
|
4488
|
+
kind: require_type.ReflectionKind.enum,
|
|
4489
4489
|
typeName: serializedType.typeName || void 0,
|
|
4490
4490
|
indexType: serializedType.indexType.id,
|
|
4491
4491
|
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
@@ -4526,7 +4526,7 @@ function convertToCapnpIntersection(serializedType, result) {
|
|
|
4526
4526
|
}
|
|
4527
4527
|
function convertFromCapnpIntersection(serializedType) {
|
|
4528
4528
|
return {
|
|
4529
|
-
kind:
|
|
4529
|
+
kind: require_type.ReflectionKind.intersection,
|
|
4530
4530
|
typeName: serializedType.typeName || void 0,
|
|
4531
4531
|
types: serializedType._hasTypes() ? serializedType.types.map((t) => t.id) : [],
|
|
4532
4532
|
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
@@ -4559,7 +4559,7 @@ function convertToCapnpArray(serializedType, result) {
|
|
|
4559
4559
|
}
|
|
4560
4560
|
function convertFromCapnpArray(serializedType) {
|
|
4561
4561
|
return {
|
|
4562
|
-
kind:
|
|
4562
|
+
kind: require_type.ReflectionKind.array,
|
|
4563
4563
|
typeName: serializedType.typeName || void 0,
|
|
4564
4564
|
type: serializedType.type.id,
|
|
4565
4565
|
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
@@ -4601,7 +4601,7 @@ function convertToCapnpUnion(serializedType, result) {
|
|
|
4601
4601
|
}
|
|
4602
4602
|
function convertFromCapnpUnion(serializedType) {
|
|
4603
4603
|
return {
|
|
4604
|
-
kind:
|
|
4604
|
+
kind: require_type.ReflectionKind.union,
|
|
4605
4605
|
typeName: serializedType.typeName || void 0,
|
|
4606
4606
|
types: serializedType._hasTypes() ? serializedType.types.map((t) => t.id) : [],
|
|
4607
4607
|
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
@@ -4637,7 +4637,7 @@ function convertToCapnpInfer(serializedType, result) {
|
|
|
4637
4637
|
}
|
|
4638
4638
|
function convertFromCapnpInfer(serializedType) {
|
|
4639
4639
|
return {
|
|
4640
|
-
kind:
|
|
4640
|
+
kind: require_type.ReflectionKind.infer,
|
|
4641
4641
|
typeName: serializedType.typeName || void 0,
|
|
4642
4642
|
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
4643
4643
|
typeArguments: serializedType._hasTypeArguments() ? serializedType.typeArguments.map((t) => t.id) : void 0,
|
|
@@ -4691,7 +4691,7 @@ function convertToCapnpMethod(serializedType, result) {
|
|
|
4691
4691
|
result.kind = serializedType.kind;
|
|
4692
4692
|
result.typeName = serializedType.typeName || "";
|
|
4693
4693
|
result.abstract = serializedType.abstract ?? false;
|
|
4694
|
-
result.visibility = serializedType.visibility ===
|
|
4694
|
+
result.visibility = serializedType.visibility === require_type.ReflectionVisibility.public ? ReflectionVisibility.PUBLIC : serializedType.visibility === require_type.ReflectionVisibility.protected ? ReflectionVisibility.PROTECTED : ReflectionVisibility.PRIVATE;
|
|
4695
4695
|
if (serializedType.decorators?.length) {
|
|
4696
4696
|
const decorators = result._initDecorators(serializedType.decorators.length);
|
|
4697
4697
|
serializedType.decorators.forEach((d, index) => {
|
|
@@ -4720,7 +4720,7 @@ function convertToCapnpMethod(serializedType, result) {
|
|
|
4720
4720
|
}
|
|
4721
4721
|
function convertFromCapnpFunction(serializedType) {
|
|
4722
4722
|
return {
|
|
4723
|
-
kind:
|
|
4723
|
+
kind: require_type.ReflectionKind.function,
|
|
4724
4724
|
name: serializedType.name,
|
|
4725
4725
|
typeName: serializedType.typeName || void 0,
|
|
4726
4726
|
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
@@ -4733,12 +4733,12 @@ function convertFromCapnpFunction(serializedType) {
|
|
|
4733
4733
|
}
|
|
4734
4734
|
function convertFromCapnpMethod(serializedType) {
|
|
4735
4735
|
return {
|
|
4736
|
-
kind:
|
|
4736
|
+
kind: require_type.ReflectionKind.method,
|
|
4737
4737
|
name: serializedType.name,
|
|
4738
4738
|
typeName: serializedType.typeName || void 0,
|
|
4739
4739
|
abstract: serializedType.abstract ? true : void 0,
|
|
4740
4740
|
return: serializedType.return.id,
|
|
4741
|
-
visibility: serializedType.visibility === ReflectionVisibility
|
|
4741
|
+
visibility: serializedType.visibility === ReflectionVisibility.PUBLIC ? require_type.ReflectionVisibility.public : serializedType.visibility === ReflectionVisibility.PROTECTED ? require_type.ReflectionVisibility.protected : require_type.ReflectionVisibility.private,
|
|
4742
4742
|
parameters: serializedType._hasParameters() ? serializedType.parameters.map((parameter) => convertFromCapnpParameter(parameter)) : []
|
|
4743
4743
|
};
|
|
4744
4744
|
}
|
|
@@ -4791,7 +4791,7 @@ function convertToCapnpClassType(serializedType, result) {
|
|
|
4791
4791
|
}
|
|
4792
4792
|
function convertFromCapnpClassType(serializedType) {
|
|
4793
4793
|
return {
|
|
4794
|
-
kind:
|
|
4794
|
+
kind: require_type.ReflectionKind.class,
|
|
4795
4795
|
typeName: serializedType.typeName || void 0,
|
|
4796
4796
|
classType: serializedType.classType,
|
|
4797
4797
|
globalObject: serializedType.globalObject ? true : void 0,
|
|
@@ -4839,7 +4839,7 @@ function convertToCapnpObjectLiteral(serializedType, result) {
|
|
|
4839
4839
|
}
|
|
4840
4840
|
function convertFromCapnpObjectLiteral(serializedType) {
|
|
4841
4841
|
return {
|
|
4842
|
-
kind:
|
|
4842
|
+
kind: require_type.ReflectionKind.objectLiteral,
|
|
4843
4843
|
typeName: serializedType.typeName || void 0,
|
|
4844
4844
|
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
4845
4845
|
types: serializedType._hasTypes() ? serializedType.types.map((t) => t.id) : [],
|
|
@@ -4860,7 +4860,7 @@ function convertToCapnpParameter(serializedType, result) {
|
|
|
4860
4860
|
result.name = serializedType.name || "";
|
|
4861
4861
|
result.optional = serializedType.optional ?? false;
|
|
4862
4862
|
result.readonly = serializedType.readonly ?? false;
|
|
4863
|
-
result.visibility = serializedType.visibility ===
|
|
4863
|
+
result.visibility = serializedType.visibility === require_type.ReflectionVisibility.public ? ReflectionVisibility.PUBLIC : serializedType.visibility === require_type.ReflectionVisibility.protected ? ReflectionVisibility.PROTECTED : ReflectionVisibility.PRIVATE;
|
|
4864
4864
|
if (typeof serializedType.default !== "undefined") {
|
|
4865
4865
|
const defaultValue = result._initDefault();
|
|
4866
4866
|
convertToCapnpDefault(serializedType.default, defaultValue);
|
|
@@ -4887,13 +4887,13 @@ function convertToCapnpParameter(serializedType, result) {
|
|
|
4887
4887
|
}
|
|
4888
4888
|
function convertFromCapnpParameter(serializedType) {
|
|
4889
4889
|
return {
|
|
4890
|
-
kind:
|
|
4890
|
+
kind: require_type.ReflectionKind.parameter,
|
|
4891
4891
|
typeName: serializedType.typeName || void 0,
|
|
4892
4892
|
name: serializedType.name,
|
|
4893
4893
|
default: convertFromCapnpDefault(serializedType.default),
|
|
4894
4894
|
optional: serializedType.optional ? true : void 0,
|
|
4895
4895
|
readonly: serializedType.readonly ? true : void 0,
|
|
4896
|
-
visibility: serializedType.visibility === ReflectionVisibility
|
|
4896
|
+
visibility: serializedType.visibility === ReflectionVisibility.PUBLIC ? require_type.ReflectionVisibility.public : serializedType.visibility === ReflectionVisibility.PROTECTED ? require_type.ReflectionVisibility.protected : require_type.ReflectionVisibility.private,
|
|
4897
4897
|
type: serializedType.type.id,
|
|
4898
4898
|
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
4899
4899
|
typeArguments: serializedType._hasTypeArguments() ? serializedType.typeArguments.map((t) => t.id) : void 0,
|