diff --git a/test/build/tsconfig.json b/test/build/tsconfig.json index cb6904a5f2..e16632d9c3 100644 --- a/test/build/tsconfig.json +++ b/test/build/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.json", + "extends": "../../tsconfig.json", "compilerOptions": { "target": "ESNext", "lib": [ diff --git a/test/package.json b/test/package.json index 6031609106..d56bd5b693 100644 --- a/test/package.json +++ b/test/package.json @@ -41,7 +41,7 @@ "rimraf": "^5.0.5", "ts-node": "^10.9.1", "ts-patch": "^3.1.0", - "typescript": "^5.3.2" + "typescript": "^5.3.3" }, "dependencies": { "cli": "^1.0.1", diff --git a/test/src/generated/output/issues/test_issue_901_protobuf_encode_union_problem.ts b/test/src/generated/output/issues/test_issue_901_protobuf_encode_union_problem.ts new file mode 100644 index 0000000000..d5e999c167 --- /dev/null +++ b/test/src/generated/output/issues/test_issue_901_protobuf_encode_union_problem.ts @@ -0,0 +1,449 @@ +import typia, { tags } from "typia"; + +import { protobuf_equal_to } from "../../../helpers/protobuf_equal_to"; + +export const test_issue_901_protobuf_encode_union_problem = () => { + const customer: Customer = (( + generator?: Partial, + ): typia.Resolved => { + const $generator = (typia.random as any).generator; + const $pick = (typia.random as any).pick; + const $ro0 = (_recursive: boolean = false, _depth: number = 0): any => ({ + id: + (generator?.customs ?? $generator.customs)?.number?.([ + { + name: 'Type<"int32">', + kind: "type", + value: "int32", + }, + ]) ?? (generator?.integer ?? $generator.integer)(0, 100), + email: + (generator?.customs ?? $generator.customs)?.string?.([ + { + name: 'Format<"email">', + kind: "format", + value: "email", + }, + ]) ?? (generator?.email ?? $generator.email)(), + name: + (generator?.customs ?? $generator.customs)?.string?.([]) ?? + (generator?.string ?? $generator.string)(), + pet: $pick([ + () => $ro1(_recursive, _recursive ? 1 + _depth : _depth), + () => $ro2(_recursive, _recursive ? 1 + _depth : _depth), + ])(), + memo: new Map( + (generator?.array ?? $generator.array)(() => [ + (generator?.customs ?? $generator.customs)?.string?.([]) ?? + (generator?.string ?? $generator.string)(), + (generator?.customs ?? $generator.customs)?.string?.([]) ?? + (generator?.string ?? $generator.string)(), + ]), + ), + logins: (generator?.array ?? $generator.array)( + () => $ro3(_recursive, _recursive ? 1 + _depth : _depth), + (generator?.integer ?? $generator.integer)(1, 3), + ), + }); + const $ro1 = (_recursive: boolean = false, _depth: number = 0): any => ({ + type: "cat", + name: + (generator?.customs ?? $generator.customs)?.string?.([]) ?? + (generator?.string ?? $generator.string)(), + ribbon: (generator?.boolean ?? $generator.boolean)(), + }); + const $ro2 = (_recursive: boolean = false, _depth: number = 0): any => ({ + type: "dog", + name: + (generator?.customs ?? $generator.customs)?.string?.([]) ?? + (generator?.string ?? $generator.string)(), + hunt: (generator?.boolean ?? $generator.boolean)(), + }); + const $ro3 = (_recursive: boolean = false, _depth: number = 0): any => ({ + success: (generator?.boolean ?? $generator.boolean)(), + href: + (generator?.customs ?? $generator.customs)?.string?.([ + { + name: 'Format<"url">', + kind: "format", + value: "url", + }, + ]) ?? (generator?.url ?? $generator.url)(), + referrer: + (generator?.customs ?? $generator.customs)?.string?.([ + { + name: 'Format<"url">', + kind: "format", + value: "url", + }, + ]) ?? (generator?.url ?? $generator.url)(), + ip: $pick([ + () => + (generator?.customs ?? $generator.customs)?.string?.([ + { + name: 'Format<"ipv4">', + kind: "format", + value: "ipv4", + }, + ]) ?? (generator?.ipv4 ?? $generator.ipv4)(), + () => + (generator?.customs ?? $generator.customs)?.string?.([ + { + name: 'Format<"ipv6">', + kind: "format", + value: "ipv6", + }, + ]) ?? (generator?.ipv6 ?? $generator.ipv6)(), + ])(), + time: + (generator?.customs ?? $generator.customs)?.string?.([ + { + name: 'Format<"date-time">', + kind: "format", + value: "date-time", + }, + ]) ?? (generator?.datetime ?? $generator.datetime)(), + }); + return $ro0(); + })(); + const encoded: Uint8Array = ((input: Customer): Uint8Array => { + const $throws = (typia.protobuf.encode as any).throws; + const $Sizer = (typia.protobuf.encode as any).Sizer; + const $Writer = (typia.protobuf.encode as any).Writer; + const encoder = (writer: any): any => { + const $peo0 = (input: any): any => { + // property "id"; + writer.uint32(8); + writer.int32(input.id); + // property "email"; + writer.uint32(18); + writer.string(input.email); + // property "name"; + writer.uint32(26); + writer.string(input.name); + // property "pet"; + if ("cat" === input.pet.type) + (() => { + // 4 -> Cat; + writer.uint32(34); + writer.fork(); + $peo1(input.pet); + writer.ldelim(); + })(); + else if ("dog" === input.pet.type) + (() => { + // 5 -> Dog; + writer.uint32(42); + writer.fork(); + $peo2(input.pet); + writer.ldelim(); + })(); + else + $throws({ + expected: "(Cat | Dog)", + value: input.pet, + }); + // property "memo"; + for (const [key, value] of input.memo) { + writer.uint32(50); + writer.fork(); + writer.uint32(10); + writer.string(key); + writer.uint32(18); + writer.string(value); + writer.ldelim(); + } + // property "logins"; + if (0 !== input.logins.length) { + for (const elem of input.logins) { + // 7 -> CustomerLogin; + writer.uint32(58); + writer.fork(); + $peo3(elem); + writer.ldelim(); + } + } + }; + const $peo1 = (input: any): any => { + // property "type"; + writer.uint32(10); + writer.string(input.type); + // property "name"; + writer.uint32(18); + writer.string(input.name); + // property "ribbon"; + writer.uint32(24); + writer.bool(input.ribbon); + }; + const $peo2 = (input: any): any => { + // property "type"; + writer.uint32(10); + writer.string(input.type); + // property "name"; + writer.uint32(18); + writer.string(input.name); + // property "hunt"; + writer.uint32(24); + writer.bool(input.hunt); + }; + const $peo3 = (input: any): any => { + // property "success"; + writer.uint32(8); + writer.bool(input.success); + // property "href"; + writer.uint32(18); + writer.string(input.href); + // property "referrer"; + writer.uint32(26); + writer.string(input.referrer); + // property "ip"; + writer.uint32(34); + writer.string(input.ip); + // property "time"; + writer.uint32(42); + writer.string(input.time); + }; + const $io1 = (input: any): boolean => + "cat" === input.type && + "string" === typeof input.name && + "boolean" === typeof input.ribbon; + const $io2 = (input: any): boolean => + "dog" === input.type && + "string" === typeof input.name && + "boolean" === typeof input.hunt; + const $io3 = (input: any): boolean => + "boolean" === typeof input.success && + "string" === typeof input.href && + /^[a-zA-Z0-9]+:\/\/(?:www.)?[-a-zA-Z0-9@:%._+~#=]{1,256}.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_+.~#?&/=]*)$/.test( + input.href, + ) && + "string" === typeof input.referrer && + /^[a-zA-Z0-9]+:\/\/(?:www.)?[-a-zA-Z0-9@:%._+~#=]{1,256}.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_+.~#?&/=]*)$/.test( + input.referrer, + ) && + "string" === typeof input.ip && + (/^(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test( + input.ip, + ) || + /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/.test( + input.ip, + )) && + "string" === typeof input.time && + !isNaN(new Date(input.time).getTime()); + const $iu0 = (input: any): any => + (() => { + if ("cat" === input.type) return $io1(input); + else if ("dog" === input.type) return $io2(input); + else return false; + })(); + //Customer; + $peo0(input); + return writer; + }; + const sizer = encoder(new $Sizer()); + const writer = encoder(new $Writer(sizer)); + return writer.buffer(); + })(customer); + const decoded: Customer = ((input: Uint8Array): typia.Resolved => { + const $Reader = (typia.protobuf.decode as any).Reader; + const $pdo0 = (reader: any, length: number = -1): any => { + length = length < 0 ? reader.size() : reader.index() + length; + const output = { + id: undefined as any, + email: "" as any, + name: "" as any, + pet: undefined as any, + memo: new Map() as any, + logins: [] as any, + } as any; + while (reader.index() < length) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + // int32; + output.id = reader.int32(); + break; + case 2: + // string; + output.email = reader.string(); + break; + case 3: + // string; + output.name = reader.string(); + break; + case 4: + // Cat; + output.pet = $pdo1(reader, reader.uint32()); + break; + case 5: + // Dog; + output.pet = $pdo2(reader, reader.uint32()); + break; + case 6: + // type: Map; + (() => { + const piece = reader.uint32() + reader.index(); + const entry = { + key: "" as any, + value: "" as any, + } as any; + while (reader.index() < piece) { + const kind = reader.uint32(); + switch (kind >>> 3) { + case 1: + // string; + entry.key = reader.string(); + break; + case 2: + // string; + entry.value = reader.string(); + break; + default: + reader.skipType(kind & 7); + break; + } + } + output.memo.set(entry.key, entry.value); + })(); + break; + case 7: + // type: Array; + output.logins.push($pdo3(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return output; + }; + const $pdo1 = (reader: any, length: number = -1): any => { + length = length < 0 ? reader.size() : reader.index() + length; + const output = { + type: undefined as any, + name: "" as any, + ribbon: undefined as any, + } as any; + while (reader.index() < length) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + // string; + output.type = reader.string(); + break; + case 2: + // string; + output.name = reader.string(); + break; + case 3: + // bool; + output.ribbon = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return output; + }; + const $pdo2 = (reader: any, length: number = -1): any => { + length = length < 0 ? reader.size() : reader.index() + length; + const output = { + type: undefined as any, + name: "" as any, + hunt: undefined as any, + } as any; + while (reader.index() < length) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + // string; + output.type = reader.string(); + break; + case 2: + // string; + output.name = reader.string(); + break; + case 3: + // bool; + output.hunt = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return output; + }; + const $pdo3 = (reader: any, length: number = -1): any => { + length = length < 0 ? reader.size() : reader.index() + length; + const output = { + success: undefined as any, + href: "" as any, + referrer: "" as any, + ip: "" as any, + time: "" as any, + } as any; + while (reader.index() < length) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + // bool; + output.success = reader.bool(); + break; + case 2: + // string; + output.href = reader.string(); + break; + case 3: + // string; + output.referrer = reader.string(); + break; + case 4: + // string; + output.ip = reader.string(); + break; + case 5: + // string; + output.time = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return output; + }; + const reader = new $Reader(input); + return $pdo0(reader); + })(encoded); + if (false === protobuf_equal_to("equal")(customer, decoded)) + throw new Error( + "Bug on typia.protobuf.encode(): failed to encode the union type.", + ); +}; +interface Customer { + id: number & tags.Type<"int32">; + email: string & tags.Format<"email">; + name: string; + pet: Cat | Dog; + memo: Map; + logins: Array & tags.MinItems<1>; +} +interface Cat { + type: "cat"; + name: string; + ribbon: boolean; +} +interface Dog { + type: "dog"; + name: string; + hunt: boolean; +} +interface CustomerLogin { + success: boolean; + href: string & tags.Format<"url">; + referrer: string & tags.Format<"url">; + ip: string & (tags.Format<"ipv4"> | tags.Format<"ipv6">); + time: string & tags.Format<"date-time">; +} diff --git a/test/src/generated/output/protobuf.assertDecode/test_protobuf_assertDecode_ArrayRecursiveUnionExplicitPointer.ts b/test/src/generated/output/protobuf.assertDecode/test_protobuf_assertDecode_ArrayRecursiveUnionExplicitPointer.ts index 07485439a4..6a99e782cc 100644 --- a/test/src/generated/output/protobuf.assertDecode/test_protobuf_assertDecode_ArrayRecursiveUnionExplicitPointer.ts +++ b/test/src/generated/output/protobuf.assertDecode/test_protobuf_assertDecode_ArrayRecursiveUnionExplicitPointer.ts @@ -797,7 +797,7 @@ export const test_protobuf_createAssertDecode_ArrayRecursiveUnionExplicitPointer const $peo1 = (input: any): any => { // property "value"; if ("directory" === input.value.type) - return (() => { + (() => { // 1 -> ArrayRecursiveUnionExplicitPointer.IDirectory; writer.uint32(10); writer.fork(); @@ -805,7 +805,7 @@ export const test_protobuf_createAssertDecode_ArrayRecursiveUnionExplicitPointer writer.ldelim(); })(); else if ("jpg" === input.value.extension) - return (() => { + (() => { // 2 -> ArrayRecursiveUnionExplicitPointer.IImageFile; writer.uint32(18); writer.fork(); @@ -813,7 +813,7 @@ export const test_protobuf_createAssertDecode_ArrayRecursiveUnionExplicitPointer writer.ldelim(); })(); else if ("txt" === input.value.extension) - return (() => { + (() => { // 3 -> ArrayRecursiveUnionExplicitPointer.ITextFile; writer.uint32(26); writer.fork(); @@ -821,7 +821,7 @@ export const test_protobuf_createAssertDecode_ArrayRecursiveUnionExplicitPointer writer.ldelim(); })(); else if ("zip" === input.value.extension) - return (() => { + (() => { // 4 -> ArrayRecursiveUnionExplicitPointer.IZipFile; writer.uint32(34); writer.fork(); @@ -829,7 +829,7 @@ export const test_protobuf_createAssertDecode_ArrayRecursiveUnionExplicitPointer writer.ldelim(); })(); else if ("lnk" === input.value.extension) - return (() => { + (() => { // 5 -> ArrayRecursiveUnionExplicitPointer.IShortcut; writer.uint32(42); writer.fork(); diff --git a/test/src/generated/output/protobuf.assertDecode/test_protobuf_assertDecode_ObjectNullable.ts b/test/src/generated/output/protobuf.assertDecode/test_protobuf_assertDecode_ObjectNullable.ts index 04046399a0..16e4924a25 100644 --- a/test/src/generated/output/protobuf.assertDecode/test_protobuf_assertDecode_ObjectNullable.ts +++ b/test/src/generated/output/protobuf.assertDecode/test_protobuf_assertDecode_ObjectNullable.ts @@ -371,7 +371,7 @@ export const test_protobuf_createAssertDecode_ObjectNullable = // property "similar"; if (null !== input.similar) { if ("brand" === input.similar.type) - return (() => { + (() => { // 4 -> ObjectNullable.IBrand; writer.uint32(34); writer.fork(); @@ -379,7 +379,7 @@ export const test_protobuf_createAssertDecode_ObjectNullable = writer.ldelim(); })(); else if ("manufacturer" === input.similar.type) - return (() => { + (() => { // 5 -> ObjectNullable.IManufacturer; writer.uint32(42); writer.fork(); diff --git a/test/src/generated/output/protobuf.assertDecode/test_protobuf_assertDecode_ObjectUnionCompositePointer.ts b/test/src/generated/output/protobuf.assertDecode/test_protobuf_assertDecode_ObjectUnionCompositePointer.ts index a6777326a8..f5d07e0006 100644 --- a/test/src/generated/output/protobuf.assertDecode/test_protobuf_assertDecode_ObjectUnionCompositePointer.ts +++ b/test/src/generated/output/protobuf.assertDecode/test_protobuf_assertDecode_ObjectUnionCompositePointer.ts @@ -877,7 +877,7 @@ export const test_protobuf_createAssertDecode_ObjectUnionCompositePointer = const $peo1 = (input: any): any => { // property "value"; if (undefined !== input.value.x) - return (() => { + (() => { // 1 -> ObjectUnionCompositePointer.IPoint; writer.uint32(10); writer.fork(); @@ -885,7 +885,7 @@ export const test_protobuf_createAssertDecode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.p4) - return (() => { + (() => { // 4 -> ObjectUnionCompositePointer.IRectangle; writer.uint32(34); writer.fork(); @@ -893,7 +893,7 @@ export const test_protobuf_createAssertDecode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.points) - return (() => { + (() => { // 5 -> ObjectUnionCompositePointer.IPolyline; writer.uint32(42); writer.fork(); @@ -907,7 +907,7 @@ export const test_protobuf_createAssertDecode_ObjectUnionCompositePointer = "object" === typeof elem && null !== elem && $io2(elem), ) ) - return (() => { + (() => { // 6 -> ObjectUnionCompositePointer.IPointedShape; writer.uint32(50); writer.fork(); @@ -919,7 +919,7 @@ export const test_protobuf_createAssertDecode_ObjectUnionCompositePointer = null !== input.value.outer && $io6(input.value.outer) ) - return (() => { + (() => { // 7 -> ObjectUnionCompositePointer.IPolygon; writer.uint32(58); writer.fork(); @@ -927,7 +927,7 @@ export const test_protobuf_createAssertDecode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.centroid) - return (() => { + (() => { // 8 -> ObjectUnionCompositePointer.ICircle; writer.uint32(66); writer.fork(); @@ -935,9 +935,9 @@ export const test_protobuf_createAssertDecode_ObjectUnionCompositePointer = writer.ldelim(); })(); else - return (() => { + (() => { if (undefined !== input.value.p3) - return (() => { + (() => { // 3 -> ObjectUnionCompositePointer.ITriangle; writer.uint32(26); writer.fork(); @@ -945,7 +945,7 @@ export const test_protobuf_createAssertDecode_ObjectUnionCompositePointer = writer.ldelim(); })(); else - return (() => { + (() => { // 2 -> ObjectUnionCompositePointer.ILine; writer.uint32(18); writer.fork(); diff --git a/test/src/generated/output/protobuf.assertDecode/test_protobuf_assertDecode_ObjectUnionExplicitPointer.ts b/test/src/generated/output/protobuf.assertDecode/test_protobuf_assertDecode_ObjectUnionExplicitPointer.ts index 26df54481c..a0eb189602 100644 --- a/test/src/generated/output/protobuf.assertDecode/test_protobuf_assertDecode_ObjectUnionExplicitPointer.ts +++ b/test/src/generated/output/protobuf.assertDecode/test_protobuf_assertDecode_ObjectUnionExplicitPointer.ts @@ -947,7 +947,7 @@ export const test_protobuf_createAssertDecode_ObjectUnionExplicitPointer = const $peo1 = (input: any): any => { // property "value"; if ("point" === input.value.type) - return (() => { + (() => { // 1 -> ObjectUnionExplicitPointer.Discriminator<"point", ObjectUnionExplicitPointer.IPoint>; writer.uint32(10); writer.fork(); @@ -955,7 +955,7 @@ export const test_protobuf_createAssertDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("line" === input.value.type) - return (() => { + (() => { // 2 -> ObjectUnionExplicitPointer.Discriminator<"line", ObjectUnionExplicitPointer.ILine>; writer.uint32(18); writer.fork(); @@ -963,7 +963,7 @@ export const test_protobuf_createAssertDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("triangle" === input.value.type) - return (() => { + (() => { // 3 -> ObjectUnionExplicitPointer.Discriminator<"triangle", ObjectUnionExplicitPointer.ITriangle>; writer.uint32(26); writer.fork(); @@ -971,7 +971,7 @@ export const test_protobuf_createAssertDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("rectangle" === input.value.type) - return (() => { + (() => { // 4 -> ObjectUnionExplicitPointer.Discriminator<"rectangle", ObjectUnionExplicitPointer.IRectangle>; writer.uint32(34); writer.fork(); @@ -979,7 +979,7 @@ export const test_protobuf_createAssertDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("polyline" === input.value.type) - return (() => { + (() => { // 5 -> ObjectUnionExplicitPointer.Discriminator<"polyline", ObjectUnionExplicitPointer.IPolyline>; writer.uint32(42); writer.fork(); @@ -987,7 +987,7 @@ export const test_protobuf_createAssertDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("polygon" === input.value.type) - return (() => { + (() => { // 6 -> ObjectUnionExplicitPointer.Discriminator<"polygon", ObjectUnionExplicitPointer.IPolygon>; writer.uint32(50); writer.fork(); @@ -995,7 +995,7 @@ export const test_protobuf_createAssertDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("circle" === input.value.type) - return (() => { + (() => { // 7 -> ObjectUnionExplicitPointer.Discriminator<"circle", ObjectUnionExplicitPointer.ICircle>; writer.uint32(58); writer.fork(); diff --git a/test/src/generated/output/protobuf.assertEncode/test_protobuf_assertEncode_ArrayRecursiveUnionExplicitPointer.ts b/test/src/generated/output/protobuf.assertEncode/test_protobuf_assertEncode_ArrayRecursiveUnionExplicitPointer.ts index 5323029c01..f61adc33ab 100644 --- a/test/src/generated/output/protobuf.assertEncode/test_protobuf_assertEncode_ArrayRecursiveUnionExplicitPointer.ts +++ b/test/src/generated/output/protobuf.assertEncode/test_protobuf_assertEncode_ArrayRecursiveUnionExplicitPointer.ts @@ -493,7 +493,7 @@ export const test_protobuf_createAssertEncode_ArrayRecursiveUnionExplicitPointer const $peo1 = (input: any): any => { // property "value"; if ("directory" === input.value.type) - return (() => { + (() => { // 1 -> ArrayRecursiveUnionExplicitPointer.IDirectory; writer.uint32(10); writer.fork(); @@ -501,7 +501,7 @@ export const test_protobuf_createAssertEncode_ArrayRecursiveUnionExplicitPointer writer.ldelim(); })(); else if ("jpg" === input.value.extension) - return (() => { + (() => { // 2 -> ArrayRecursiveUnionExplicitPointer.IImageFile; writer.uint32(18); writer.fork(); @@ -509,7 +509,7 @@ export const test_protobuf_createAssertEncode_ArrayRecursiveUnionExplicitPointer writer.ldelim(); })(); else if ("txt" === input.value.extension) - return (() => { + (() => { // 3 -> ArrayRecursiveUnionExplicitPointer.ITextFile; writer.uint32(26); writer.fork(); @@ -517,7 +517,7 @@ export const test_protobuf_createAssertEncode_ArrayRecursiveUnionExplicitPointer writer.ldelim(); })(); else if ("zip" === input.value.extension) - return (() => { + (() => { // 4 -> ArrayRecursiveUnionExplicitPointer.IZipFile; writer.uint32(34); writer.fork(); @@ -525,7 +525,7 @@ export const test_protobuf_createAssertEncode_ArrayRecursiveUnionExplicitPointer writer.ldelim(); })(); else if ("lnk" === input.value.extension) - return (() => { + (() => { // 5 -> ArrayRecursiveUnionExplicitPointer.IShortcut; writer.uint32(42); writer.fork(); diff --git a/test/src/generated/output/protobuf.assertEncode/test_protobuf_assertEncode_ObjectNullable.ts b/test/src/generated/output/protobuf.assertEncode/test_protobuf_assertEncode_ObjectNullable.ts index 4280865153..ca186df27d 100644 --- a/test/src/generated/output/protobuf.assertEncode/test_protobuf_assertEncode_ObjectNullable.ts +++ b/test/src/generated/output/protobuf.assertEncode/test_protobuf_assertEncode_ObjectNullable.ts @@ -256,7 +256,7 @@ export const test_protobuf_createAssertEncode_ObjectNullable = // property "similar"; if (null !== input.similar) { if ("brand" === input.similar.type) - return (() => { + (() => { // 4 -> ObjectNullable.IBrand; writer.uint32(34); writer.fork(); @@ -264,7 +264,7 @@ export const test_protobuf_createAssertEncode_ObjectNullable = writer.ldelim(); })(); else if ("manufacturer" === input.similar.type) - return (() => { + (() => { // 5 -> ObjectNullable.IManufacturer; writer.uint32(42); writer.fork(); diff --git a/test/src/generated/output/protobuf.assertEncode/test_protobuf_assertEncode_ObjectUnionCompositePointer.ts b/test/src/generated/output/protobuf.assertEncode/test_protobuf_assertEncode_ObjectUnionCompositePointer.ts index 2a405fdc7a..6186c14532 100644 --- a/test/src/generated/output/protobuf.assertEncode/test_protobuf_assertEncode_ObjectUnionCompositePointer.ts +++ b/test/src/generated/output/protobuf.assertEncode/test_protobuf_assertEncode_ObjectUnionCompositePointer.ts @@ -599,7 +599,7 @@ export const test_protobuf_createAssertEncode_ObjectUnionCompositePointer = const $peo1 = (input: any): any => { // property "value"; if (undefined !== input.value.x) - return (() => { + (() => { // 1 -> ObjectUnionCompositePointer.IPoint; writer.uint32(10); writer.fork(); @@ -607,7 +607,7 @@ export const test_protobuf_createAssertEncode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.p4) - return (() => { + (() => { // 4 -> ObjectUnionCompositePointer.IRectangle; writer.uint32(34); writer.fork(); @@ -615,7 +615,7 @@ export const test_protobuf_createAssertEncode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.points) - return (() => { + (() => { // 5 -> ObjectUnionCompositePointer.IPolyline; writer.uint32(42); writer.fork(); @@ -629,7 +629,7 @@ export const test_protobuf_createAssertEncode_ObjectUnionCompositePointer = "object" === typeof elem && null !== elem && $io2(elem), ) ) - return (() => { + (() => { // 6 -> ObjectUnionCompositePointer.IPointedShape; writer.uint32(50); writer.fork(); @@ -641,7 +641,7 @@ export const test_protobuf_createAssertEncode_ObjectUnionCompositePointer = null !== input.value.outer && $io6(input.value.outer) ) - return (() => { + (() => { // 7 -> ObjectUnionCompositePointer.IPolygon; writer.uint32(58); writer.fork(); @@ -649,7 +649,7 @@ export const test_protobuf_createAssertEncode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.centroid) - return (() => { + (() => { // 8 -> ObjectUnionCompositePointer.ICircle; writer.uint32(66); writer.fork(); @@ -657,9 +657,9 @@ export const test_protobuf_createAssertEncode_ObjectUnionCompositePointer = writer.ldelim(); })(); else - return (() => { + (() => { if (undefined !== input.value.p3) - return (() => { + (() => { // 3 -> ObjectUnionCompositePointer.ITriangle; writer.uint32(26); writer.fork(); @@ -667,7 +667,7 @@ export const test_protobuf_createAssertEncode_ObjectUnionCompositePointer = writer.ldelim(); })(); else - return (() => { + (() => { // 2 -> ObjectUnionCompositePointer.ILine; writer.uint32(18); writer.fork(); diff --git a/test/src/generated/output/protobuf.assertEncode/test_protobuf_assertEncode_ObjectUnionExplicitPointer.ts b/test/src/generated/output/protobuf.assertEncode/test_protobuf_assertEncode_ObjectUnionExplicitPointer.ts index 6fbf28e3eb..0cde5a79e2 100644 --- a/test/src/generated/output/protobuf.assertEncode/test_protobuf_assertEncode_ObjectUnionExplicitPointer.ts +++ b/test/src/generated/output/protobuf.assertEncode/test_protobuf_assertEncode_ObjectUnionExplicitPointer.ts @@ -619,7 +619,7 @@ export const test_protobuf_createAssertEncode_ObjectUnionExplicitPointer = const $peo1 = (input: any): any => { // property "value"; if ("point" === input.value.type) - return (() => { + (() => { // 1 -> ObjectUnionExplicitPointer.Discriminator<"point", ObjectUnionExplicitPointer.IPoint>; writer.uint32(10); writer.fork(); @@ -627,7 +627,7 @@ export const test_protobuf_createAssertEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("line" === input.value.type) - return (() => { + (() => { // 2 -> ObjectUnionExplicitPointer.Discriminator<"line", ObjectUnionExplicitPointer.ILine>; writer.uint32(18); writer.fork(); @@ -635,7 +635,7 @@ export const test_protobuf_createAssertEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("triangle" === input.value.type) - return (() => { + (() => { // 3 -> ObjectUnionExplicitPointer.Discriminator<"triangle", ObjectUnionExplicitPointer.ITriangle>; writer.uint32(26); writer.fork(); @@ -643,7 +643,7 @@ export const test_protobuf_createAssertEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("rectangle" === input.value.type) - return (() => { + (() => { // 4 -> ObjectUnionExplicitPointer.Discriminator<"rectangle", ObjectUnionExplicitPointer.IRectangle>; writer.uint32(34); writer.fork(); @@ -651,7 +651,7 @@ export const test_protobuf_createAssertEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("polyline" === input.value.type) - return (() => { + (() => { // 5 -> ObjectUnionExplicitPointer.Discriminator<"polyline", ObjectUnionExplicitPointer.IPolyline>; writer.uint32(42); writer.fork(); @@ -659,7 +659,7 @@ export const test_protobuf_createAssertEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("polygon" === input.value.type) - return (() => { + (() => { // 6 -> ObjectUnionExplicitPointer.Discriminator<"polygon", ObjectUnionExplicitPointer.IPolygon>; writer.uint32(50); writer.fork(); @@ -667,7 +667,7 @@ export const test_protobuf_createAssertEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("circle" === input.value.type) - return (() => { + (() => { // 7 -> ObjectUnionExplicitPointer.Discriminator<"circle", ObjectUnionExplicitPointer.ICircle>; writer.uint32(58); writer.fork(); diff --git a/test/src/generated/output/protobuf.createAssertDecode/test_protobuf_createAssertDecode_ArrayRecursiveUnionExplicitPointer.ts b/test/src/generated/output/protobuf.createAssertDecode/test_protobuf_createAssertDecode_ArrayRecursiveUnionExplicitPointer.ts index 93732e3cec..fcc1d3c19f 100644 --- a/test/src/generated/output/protobuf.createAssertDecode/test_protobuf_createAssertDecode_ArrayRecursiveUnionExplicitPointer.ts +++ b/test/src/generated/output/protobuf.createAssertDecode/test_protobuf_createAssertDecode_ArrayRecursiveUnionExplicitPointer.ts @@ -788,7 +788,7 @@ export const test_protobuf_createAssertDecode_ArrayRecursiveUnionExplicitPointer const $peo1 = (input: any): any => { // property "value"; if ("directory" === input.value.type) - return (() => { + (() => { // 1 -> ArrayRecursiveUnionExplicitPointer.IDirectory; writer.uint32(10); writer.fork(); @@ -796,7 +796,7 @@ export const test_protobuf_createAssertDecode_ArrayRecursiveUnionExplicitPointer writer.ldelim(); })(); else if ("jpg" === input.value.extension) - return (() => { + (() => { // 2 -> ArrayRecursiveUnionExplicitPointer.IImageFile; writer.uint32(18); writer.fork(); @@ -804,7 +804,7 @@ export const test_protobuf_createAssertDecode_ArrayRecursiveUnionExplicitPointer writer.ldelim(); })(); else if ("txt" === input.value.extension) - return (() => { + (() => { // 3 -> ArrayRecursiveUnionExplicitPointer.ITextFile; writer.uint32(26); writer.fork(); @@ -812,7 +812,7 @@ export const test_protobuf_createAssertDecode_ArrayRecursiveUnionExplicitPointer writer.ldelim(); })(); else if ("zip" === input.value.extension) - return (() => { + (() => { // 4 -> ArrayRecursiveUnionExplicitPointer.IZipFile; writer.uint32(34); writer.fork(); @@ -820,7 +820,7 @@ export const test_protobuf_createAssertDecode_ArrayRecursiveUnionExplicitPointer writer.ldelim(); })(); else if ("lnk" === input.value.extension) - return (() => { + (() => { // 5 -> ArrayRecursiveUnionExplicitPointer.IShortcut; writer.uint32(42); writer.fork(); diff --git a/test/src/generated/output/protobuf.createAssertDecode/test_protobuf_createAssertDecode_ObjectNullable.ts b/test/src/generated/output/protobuf.createAssertDecode/test_protobuf_createAssertDecode_ObjectNullable.ts index ce1b040193..68ac8fa59d 100644 --- a/test/src/generated/output/protobuf.createAssertDecode/test_protobuf_createAssertDecode_ObjectNullable.ts +++ b/test/src/generated/output/protobuf.createAssertDecode/test_protobuf_createAssertDecode_ObjectNullable.ts @@ -367,7 +367,7 @@ export const test_protobuf_createAssertDecode_ObjectNullable = // property "similar"; if (null !== input.similar) { if ("brand" === input.similar.type) - return (() => { + (() => { // 4 -> ObjectNullable.IBrand; writer.uint32(34); writer.fork(); @@ -375,7 +375,7 @@ export const test_protobuf_createAssertDecode_ObjectNullable = writer.ldelim(); })(); else if ("manufacturer" === input.similar.type) - return (() => { + (() => { // 5 -> ObjectNullable.IManufacturer; writer.uint32(42); writer.fork(); diff --git a/test/src/generated/output/protobuf.createAssertDecode/test_protobuf_createAssertDecode_ObjectUnionCompositePointer.ts b/test/src/generated/output/protobuf.createAssertDecode/test_protobuf_createAssertDecode_ObjectUnionCompositePointer.ts index 2b4a62b131..c07ee40d54 100644 --- a/test/src/generated/output/protobuf.createAssertDecode/test_protobuf_createAssertDecode_ObjectUnionCompositePointer.ts +++ b/test/src/generated/output/protobuf.createAssertDecode/test_protobuf_createAssertDecode_ObjectUnionCompositePointer.ts @@ -866,7 +866,7 @@ export const test_protobuf_createAssertDecode_ObjectUnionCompositePointer = const $peo1 = (input: any): any => { // property "value"; if (undefined !== input.value.x) - return (() => { + (() => { // 1 -> ObjectUnionCompositePointer.IPoint; writer.uint32(10); writer.fork(); @@ -874,7 +874,7 @@ export const test_protobuf_createAssertDecode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.p4) - return (() => { + (() => { // 4 -> ObjectUnionCompositePointer.IRectangle; writer.uint32(34); writer.fork(); @@ -882,7 +882,7 @@ export const test_protobuf_createAssertDecode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.points) - return (() => { + (() => { // 5 -> ObjectUnionCompositePointer.IPolyline; writer.uint32(42); writer.fork(); @@ -896,7 +896,7 @@ export const test_protobuf_createAssertDecode_ObjectUnionCompositePointer = "object" === typeof elem && null !== elem && $io2(elem), ) ) - return (() => { + (() => { // 6 -> ObjectUnionCompositePointer.IPointedShape; writer.uint32(50); writer.fork(); @@ -908,7 +908,7 @@ export const test_protobuf_createAssertDecode_ObjectUnionCompositePointer = null !== input.value.outer && $io6(input.value.outer) ) - return (() => { + (() => { // 7 -> ObjectUnionCompositePointer.IPolygon; writer.uint32(58); writer.fork(); @@ -916,7 +916,7 @@ export const test_protobuf_createAssertDecode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.centroid) - return (() => { + (() => { // 8 -> ObjectUnionCompositePointer.ICircle; writer.uint32(66); writer.fork(); @@ -924,9 +924,9 @@ export const test_protobuf_createAssertDecode_ObjectUnionCompositePointer = writer.ldelim(); })(); else - return (() => { + (() => { if (undefined !== input.value.p3) - return (() => { + (() => { // 3 -> ObjectUnionCompositePointer.ITriangle; writer.uint32(26); writer.fork(); @@ -934,7 +934,7 @@ export const test_protobuf_createAssertDecode_ObjectUnionCompositePointer = writer.ldelim(); })(); else - return (() => { + (() => { // 2 -> ObjectUnionCompositePointer.ILine; writer.uint32(18); writer.fork(); diff --git a/test/src/generated/output/protobuf.createAssertDecode/test_protobuf_createAssertDecode_ObjectUnionExplicitPointer.ts b/test/src/generated/output/protobuf.createAssertDecode/test_protobuf_createAssertDecode_ObjectUnionExplicitPointer.ts index a8333f6657..e69ba6d8ea 100644 --- a/test/src/generated/output/protobuf.createAssertDecode/test_protobuf_createAssertDecode_ObjectUnionExplicitPointer.ts +++ b/test/src/generated/output/protobuf.createAssertDecode/test_protobuf_createAssertDecode_ObjectUnionExplicitPointer.ts @@ -936,7 +936,7 @@ export const test_protobuf_createAssertDecode_ObjectUnionExplicitPointer = const $peo1 = (input: any): any => { // property "value"; if ("point" === input.value.type) - return (() => { + (() => { // 1 -> ObjectUnionExplicitPointer.Discriminator<"point", ObjectUnionExplicitPointer.IPoint>; writer.uint32(10); writer.fork(); @@ -944,7 +944,7 @@ export const test_protobuf_createAssertDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("line" === input.value.type) - return (() => { + (() => { // 2 -> ObjectUnionExplicitPointer.Discriminator<"line", ObjectUnionExplicitPointer.ILine>; writer.uint32(18); writer.fork(); @@ -952,7 +952,7 @@ export const test_protobuf_createAssertDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("triangle" === input.value.type) - return (() => { + (() => { // 3 -> ObjectUnionExplicitPointer.Discriminator<"triangle", ObjectUnionExplicitPointer.ITriangle>; writer.uint32(26); writer.fork(); @@ -960,7 +960,7 @@ export const test_protobuf_createAssertDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("rectangle" === input.value.type) - return (() => { + (() => { // 4 -> ObjectUnionExplicitPointer.Discriminator<"rectangle", ObjectUnionExplicitPointer.IRectangle>; writer.uint32(34); writer.fork(); @@ -968,7 +968,7 @@ export const test_protobuf_createAssertDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("polyline" === input.value.type) - return (() => { + (() => { // 5 -> ObjectUnionExplicitPointer.Discriminator<"polyline", ObjectUnionExplicitPointer.IPolyline>; writer.uint32(42); writer.fork(); @@ -976,7 +976,7 @@ export const test_protobuf_createAssertDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("polygon" === input.value.type) - return (() => { + (() => { // 6 -> ObjectUnionExplicitPointer.Discriminator<"polygon", ObjectUnionExplicitPointer.IPolygon>; writer.uint32(50); writer.fork(); @@ -984,7 +984,7 @@ export const test_protobuf_createAssertDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("circle" === input.value.type) - return (() => { + (() => { // 7 -> ObjectUnionExplicitPointer.Discriminator<"circle", ObjectUnionExplicitPointer.ICircle>; writer.uint32(58); writer.fork(); diff --git a/test/src/generated/output/protobuf.createAssertEncode/test_protobuf_createAssertEncode_ArrayRecursiveUnionExplicitPointer.ts b/test/src/generated/output/protobuf.createAssertEncode/test_protobuf_createAssertEncode_ArrayRecursiveUnionExplicitPointer.ts index 61066f8733..a0505abc50 100644 --- a/test/src/generated/output/protobuf.createAssertEncode/test_protobuf_createAssertEncode_ArrayRecursiveUnionExplicitPointer.ts +++ b/test/src/generated/output/protobuf.createAssertEncode/test_protobuf_createAssertEncode_ArrayRecursiveUnionExplicitPointer.ts @@ -484,7 +484,7 @@ export const test_protobuf_createAssertEncode_ArrayRecursiveUnionExplicitPointer const $peo1 = (input: any): any => { // property "value"; if ("directory" === input.value.type) - return (() => { + (() => { // 1 -> ArrayRecursiveUnionExplicitPointer.IDirectory; writer.uint32(10); writer.fork(); @@ -492,7 +492,7 @@ export const test_protobuf_createAssertEncode_ArrayRecursiveUnionExplicitPointer writer.ldelim(); })(); else if ("jpg" === input.value.extension) - return (() => { + (() => { // 2 -> ArrayRecursiveUnionExplicitPointer.IImageFile; writer.uint32(18); writer.fork(); @@ -500,7 +500,7 @@ export const test_protobuf_createAssertEncode_ArrayRecursiveUnionExplicitPointer writer.ldelim(); })(); else if ("txt" === input.value.extension) - return (() => { + (() => { // 3 -> ArrayRecursiveUnionExplicitPointer.ITextFile; writer.uint32(26); writer.fork(); @@ -508,7 +508,7 @@ export const test_protobuf_createAssertEncode_ArrayRecursiveUnionExplicitPointer writer.ldelim(); })(); else if ("zip" === input.value.extension) - return (() => { + (() => { // 4 -> ArrayRecursiveUnionExplicitPointer.IZipFile; writer.uint32(34); writer.fork(); @@ -516,7 +516,7 @@ export const test_protobuf_createAssertEncode_ArrayRecursiveUnionExplicitPointer writer.ldelim(); })(); else if ("lnk" === input.value.extension) - return (() => { + (() => { // 5 -> ArrayRecursiveUnionExplicitPointer.IShortcut; writer.uint32(42); writer.fork(); diff --git a/test/src/generated/output/protobuf.createAssertEncode/test_protobuf_createAssertEncode_ObjectNullable.ts b/test/src/generated/output/protobuf.createAssertEncode/test_protobuf_createAssertEncode_ObjectNullable.ts index f4fd07158d..1cd069f439 100644 --- a/test/src/generated/output/protobuf.createAssertEncode/test_protobuf_createAssertEncode_ObjectNullable.ts +++ b/test/src/generated/output/protobuf.createAssertEncode/test_protobuf_createAssertEncode_ObjectNullable.ts @@ -254,7 +254,7 @@ export const test_protobuf_createAssertEncode_ObjectNullable = // property "similar"; if (null !== input.similar) { if ("brand" === input.similar.type) - return (() => { + (() => { // 4 -> ObjectNullable.IBrand; writer.uint32(34); writer.fork(); @@ -262,7 +262,7 @@ export const test_protobuf_createAssertEncode_ObjectNullable = writer.ldelim(); })(); else if ("manufacturer" === input.similar.type) - return (() => { + (() => { // 5 -> ObjectNullable.IManufacturer; writer.uint32(42); writer.fork(); diff --git a/test/src/generated/output/protobuf.createAssertEncode/test_protobuf_createAssertEncode_ObjectUnionCompositePointer.ts b/test/src/generated/output/protobuf.createAssertEncode/test_protobuf_createAssertEncode_ObjectUnionCompositePointer.ts index 95d570c931..d913ebbb50 100644 --- a/test/src/generated/output/protobuf.createAssertEncode/test_protobuf_createAssertEncode_ObjectUnionCompositePointer.ts +++ b/test/src/generated/output/protobuf.createAssertEncode/test_protobuf_createAssertEncode_ObjectUnionCompositePointer.ts @@ -586,7 +586,7 @@ export const test_protobuf_createAssertEncode_ObjectUnionCompositePointer = const $peo1 = (input: any): any => { // property "value"; if (undefined !== input.value.x) - return (() => { + (() => { // 1 -> ObjectUnionCompositePointer.IPoint; writer.uint32(10); writer.fork(); @@ -594,7 +594,7 @@ export const test_protobuf_createAssertEncode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.p4) - return (() => { + (() => { // 4 -> ObjectUnionCompositePointer.IRectangle; writer.uint32(34); writer.fork(); @@ -602,7 +602,7 @@ export const test_protobuf_createAssertEncode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.points) - return (() => { + (() => { // 5 -> ObjectUnionCompositePointer.IPolyline; writer.uint32(42); writer.fork(); @@ -616,7 +616,7 @@ export const test_protobuf_createAssertEncode_ObjectUnionCompositePointer = "object" === typeof elem && null !== elem && $io2(elem), ) ) - return (() => { + (() => { // 6 -> ObjectUnionCompositePointer.IPointedShape; writer.uint32(50); writer.fork(); @@ -628,7 +628,7 @@ export const test_protobuf_createAssertEncode_ObjectUnionCompositePointer = null !== input.value.outer && $io6(input.value.outer) ) - return (() => { + (() => { // 7 -> ObjectUnionCompositePointer.IPolygon; writer.uint32(58); writer.fork(); @@ -636,7 +636,7 @@ export const test_protobuf_createAssertEncode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.centroid) - return (() => { + (() => { // 8 -> ObjectUnionCompositePointer.ICircle; writer.uint32(66); writer.fork(); @@ -644,9 +644,9 @@ export const test_protobuf_createAssertEncode_ObjectUnionCompositePointer = writer.ldelim(); })(); else - return (() => { + (() => { if (undefined !== input.value.p3) - return (() => { + (() => { // 3 -> ObjectUnionCompositePointer.ITriangle; writer.uint32(26); writer.fork(); @@ -654,7 +654,7 @@ export const test_protobuf_createAssertEncode_ObjectUnionCompositePointer = writer.ldelim(); })(); else - return (() => { + (() => { // 2 -> ObjectUnionCompositePointer.ILine; writer.uint32(18); writer.fork(); diff --git a/test/src/generated/output/protobuf.createAssertEncode/test_protobuf_createAssertEncode_ObjectUnionExplicitPointer.ts b/test/src/generated/output/protobuf.createAssertEncode/test_protobuf_createAssertEncode_ObjectUnionExplicitPointer.ts index b403e0aaf9..d4b7cde952 100644 --- a/test/src/generated/output/protobuf.createAssertEncode/test_protobuf_createAssertEncode_ObjectUnionExplicitPointer.ts +++ b/test/src/generated/output/protobuf.createAssertEncode/test_protobuf_createAssertEncode_ObjectUnionExplicitPointer.ts @@ -608,7 +608,7 @@ export const test_protobuf_createAssertEncode_ObjectUnionExplicitPointer = const $peo1 = (input: any): any => { // property "value"; if ("point" === input.value.type) - return (() => { + (() => { // 1 -> ObjectUnionExplicitPointer.Discriminator<"point", ObjectUnionExplicitPointer.IPoint>; writer.uint32(10); writer.fork(); @@ -616,7 +616,7 @@ export const test_protobuf_createAssertEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("line" === input.value.type) - return (() => { + (() => { // 2 -> ObjectUnionExplicitPointer.Discriminator<"line", ObjectUnionExplicitPointer.ILine>; writer.uint32(18); writer.fork(); @@ -624,7 +624,7 @@ export const test_protobuf_createAssertEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("triangle" === input.value.type) - return (() => { + (() => { // 3 -> ObjectUnionExplicitPointer.Discriminator<"triangle", ObjectUnionExplicitPointer.ITriangle>; writer.uint32(26); writer.fork(); @@ -632,7 +632,7 @@ export const test_protobuf_createAssertEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("rectangle" === input.value.type) - return (() => { + (() => { // 4 -> ObjectUnionExplicitPointer.Discriminator<"rectangle", ObjectUnionExplicitPointer.IRectangle>; writer.uint32(34); writer.fork(); @@ -640,7 +640,7 @@ export const test_protobuf_createAssertEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("polyline" === input.value.type) - return (() => { + (() => { // 5 -> ObjectUnionExplicitPointer.Discriminator<"polyline", ObjectUnionExplicitPointer.IPolyline>; writer.uint32(42); writer.fork(); @@ -648,7 +648,7 @@ export const test_protobuf_createAssertEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("polygon" === input.value.type) - return (() => { + (() => { // 6 -> ObjectUnionExplicitPointer.Discriminator<"polygon", ObjectUnionExplicitPointer.IPolygon>; writer.uint32(50); writer.fork(); @@ -656,7 +656,7 @@ export const test_protobuf_createAssertEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("circle" === input.value.type) - return (() => { + (() => { // 7 -> ObjectUnionExplicitPointer.Discriminator<"circle", ObjectUnionExplicitPointer.ICircle>; writer.uint32(58); writer.fork(); diff --git a/test/src/generated/output/protobuf.createDecode/test_protobuf_createDecode_ArrayRecursiveUnionExplicitPointer.ts b/test/src/generated/output/protobuf.createDecode/test_protobuf_createDecode_ArrayRecursiveUnionExplicitPointer.ts index b73e829e8c..15988f415f 100644 --- a/test/src/generated/output/protobuf.createDecode/test_protobuf_createDecode_ArrayRecursiveUnionExplicitPointer.ts +++ b/test/src/generated/output/protobuf.createDecode/test_protobuf_createDecode_ArrayRecursiveUnionExplicitPointer.ts @@ -328,7 +328,7 @@ export const test_protobuf_createDecode_ArrayRecursiveUnionExplicitPointer = const $peo1 = (input: any): any => { // property "value"; if ("directory" === input.value.type) - return (() => { + (() => { // 1 -> ArrayRecursiveUnionExplicitPointer.IDirectory; writer.uint32(10); writer.fork(); @@ -336,7 +336,7 @@ export const test_protobuf_createDecode_ArrayRecursiveUnionExplicitPointer = writer.ldelim(); })(); else if ("jpg" === input.value.extension) - return (() => { + (() => { // 2 -> ArrayRecursiveUnionExplicitPointer.IImageFile; writer.uint32(18); writer.fork(); @@ -344,7 +344,7 @@ export const test_protobuf_createDecode_ArrayRecursiveUnionExplicitPointer = writer.ldelim(); })(); else if ("txt" === input.value.extension) - return (() => { + (() => { // 3 -> ArrayRecursiveUnionExplicitPointer.ITextFile; writer.uint32(26); writer.fork(); @@ -352,7 +352,7 @@ export const test_protobuf_createDecode_ArrayRecursiveUnionExplicitPointer = writer.ldelim(); })(); else if ("zip" === input.value.extension) - return (() => { + (() => { // 4 -> ArrayRecursiveUnionExplicitPointer.IZipFile; writer.uint32(34); writer.fork(); @@ -360,7 +360,7 @@ export const test_protobuf_createDecode_ArrayRecursiveUnionExplicitPointer = writer.ldelim(); })(); else if ("lnk" === input.value.extension) - return (() => { + (() => { // 5 -> ArrayRecursiveUnionExplicitPointer.IShortcut; writer.uint32(42); writer.fork(); diff --git a/test/src/generated/output/protobuf.createDecode/test_protobuf_createDecode_ObjectNullable.ts b/test/src/generated/output/protobuf.createDecode/test_protobuf_createDecode_ObjectNullable.ts index 9587982823..0aafa1df3e 100644 --- a/test/src/generated/output/protobuf.createDecode/test_protobuf_createDecode_ObjectNullable.ts +++ b/test/src/generated/output/protobuf.createDecode/test_protobuf_createDecode_ObjectNullable.ts @@ -154,7 +154,7 @@ export const test_protobuf_createDecode_ObjectNullable = _test_protobuf_decode( // property "similar"; if (null !== input.similar) { if ("brand" === input.similar.type) - return (() => { + (() => { // 4 -> ObjectNullable.IBrand; writer.uint32(34); writer.fork(); @@ -162,7 +162,7 @@ export const test_protobuf_createDecode_ObjectNullable = _test_protobuf_decode( writer.ldelim(); })(); else if ("manufacturer" === input.similar.type) - return (() => { + (() => { // 5 -> ObjectNullable.IManufacturer; writer.uint32(42); writer.fork(); diff --git a/test/src/generated/output/protobuf.createDecode/test_protobuf_createDecode_ObjectUnionCompositePointer.ts b/test/src/generated/output/protobuf.createDecode/test_protobuf_createDecode_ObjectUnionCompositePointer.ts index f8df40fd1e..ad3453e757 100644 --- a/test/src/generated/output/protobuf.createDecode/test_protobuf_createDecode_ObjectUnionCompositePointer.ts +++ b/test/src/generated/output/protobuf.createDecode/test_protobuf_createDecode_ObjectUnionCompositePointer.ts @@ -301,7 +301,7 @@ export const test_protobuf_createDecode_ObjectUnionCompositePointer = const $peo1 = (input: any): any => { // property "value"; if (undefined !== input.value.x) - return (() => { + (() => { // 1 -> ObjectUnionCompositePointer.IPoint; writer.uint32(10); writer.fork(); @@ -309,7 +309,7 @@ export const test_protobuf_createDecode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.p4) - return (() => { + (() => { // 4 -> ObjectUnionCompositePointer.IRectangle; writer.uint32(34); writer.fork(); @@ -317,7 +317,7 @@ export const test_protobuf_createDecode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.points) - return (() => { + (() => { // 5 -> ObjectUnionCompositePointer.IPolyline; writer.uint32(42); writer.fork(); @@ -331,7 +331,7 @@ export const test_protobuf_createDecode_ObjectUnionCompositePointer = "object" === typeof elem && null !== elem && $io2(elem), ) ) - return (() => { + (() => { // 6 -> ObjectUnionCompositePointer.IPointedShape; writer.uint32(50); writer.fork(); @@ -343,7 +343,7 @@ export const test_protobuf_createDecode_ObjectUnionCompositePointer = null !== input.value.outer && $io6(input.value.outer) ) - return (() => { + (() => { // 7 -> ObjectUnionCompositePointer.IPolygon; writer.uint32(58); writer.fork(); @@ -351,7 +351,7 @@ export const test_protobuf_createDecode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.centroid) - return (() => { + (() => { // 8 -> ObjectUnionCompositePointer.ICircle; writer.uint32(66); writer.fork(); @@ -359,9 +359,9 @@ export const test_protobuf_createDecode_ObjectUnionCompositePointer = writer.ldelim(); })(); else - return (() => { + (() => { if (undefined !== input.value.p3) - return (() => { + (() => { // 3 -> ObjectUnionCompositePointer.ITriangle; writer.uint32(26); writer.fork(); @@ -369,7 +369,7 @@ export const test_protobuf_createDecode_ObjectUnionCompositePointer = writer.ldelim(); })(); else - return (() => { + (() => { // 2 -> ObjectUnionCompositePointer.ILine; writer.uint32(18); writer.fork(); diff --git a/test/src/generated/output/protobuf.createDecode/test_protobuf_createDecode_ObjectUnionExplicitPointer.ts b/test/src/generated/output/protobuf.createDecode/test_protobuf_createDecode_ObjectUnionExplicitPointer.ts index 8f71535b21..ef94dde525 100644 --- a/test/src/generated/output/protobuf.createDecode/test_protobuf_createDecode_ObjectUnionExplicitPointer.ts +++ b/test/src/generated/output/protobuf.createDecode/test_protobuf_createDecode_ObjectUnionExplicitPointer.ts @@ -350,7 +350,7 @@ export const test_protobuf_createDecode_ObjectUnionExplicitPointer = const $peo1 = (input: any): any => { // property "value"; if ("point" === input.value.type) - return (() => { + (() => { // 1 -> ObjectUnionExplicitPointer.Discriminator<"point", ObjectUnionExplicitPointer.IPoint>; writer.uint32(10); writer.fork(); @@ -358,7 +358,7 @@ export const test_protobuf_createDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("line" === input.value.type) - return (() => { + (() => { // 2 -> ObjectUnionExplicitPointer.Discriminator<"line", ObjectUnionExplicitPointer.ILine>; writer.uint32(18); writer.fork(); @@ -366,7 +366,7 @@ export const test_protobuf_createDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("triangle" === input.value.type) - return (() => { + (() => { // 3 -> ObjectUnionExplicitPointer.Discriminator<"triangle", ObjectUnionExplicitPointer.ITriangle>; writer.uint32(26); writer.fork(); @@ -374,7 +374,7 @@ export const test_protobuf_createDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("rectangle" === input.value.type) - return (() => { + (() => { // 4 -> ObjectUnionExplicitPointer.Discriminator<"rectangle", ObjectUnionExplicitPointer.IRectangle>; writer.uint32(34); writer.fork(); @@ -382,7 +382,7 @@ export const test_protobuf_createDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("polyline" === input.value.type) - return (() => { + (() => { // 5 -> ObjectUnionExplicitPointer.Discriminator<"polyline", ObjectUnionExplicitPointer.IPolyline>; writer.uint32(42); writer.fork(); @@ -390,7 +390,7 @@ export const test_protobuf_createDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("polygon" === input.value.type) - return (() => { + (() => { // 6 -> ObjectUnionExplicitPointer.Discriminator<"polygon", ObjectUnionExplicitPointer.IPolygon>; writer.uint32(50); writer.fork(); @@ -398,7 +398,7 @@ export const test_protobuf_createDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("circle" === input.value.type) - return (() => { + (() => { // 7 -> ObjectUnionExplicitPointer.Discriminator<"circle", ObjectUnionExplicitPointer.ICircle>; writer.uint32(58); writer.fork(); diff --git a/test/src/generated/output/protobuf.createEncode/test_protobuf_createEncode_ArrayRecursiveUnionExplicitPointer.ts b/test/src/generated/output/protobuf.createEncode/test_protobuf_createEncode_ArrayRecursiveUnionExplicitPointer.ts index 59f2af239c..ea829ce3d3 100644 --- a/test/src/generated/output/protobuf.createEncode/test_protobuf_createEncode_ArrayRecursiveUnionExplicitPointer.ts +++ b/test/src/generated/output/protobuf.createEncode/test_protobuf_createEncode_ArrayRecursiveUnionExplicitPointer.ts @@ -27,7 +27,7 @@ export const test_protobuf_createEncode_ArrayRecursiveUnionExplicitPointer = const $peo1 = (input: any): any => { // property "value"; if ("directory" === input.value.type) - return (() => { + (() => { // 1 -> ArrayRecursiveUnionExplicitPointer.IDirectory; writer.uint32(10); writer.fork(); @@ -35,7 +35,7 @@ export const test_protobuf_createEncode_ArrayRecursiveUnionExplicitPointer = writer.ldelim(); })(); else if ("jpg" === input.value.extension) - return (() => { + (() => { // 2 -> ArrayRecursiveUnionExplicitPointer.IImageFile; writer.uint32(18); writer.fork(); @@ -43,7 +43,7 @@ export const test_protobuf_createEncode_ArrayRecursiveUnionExplicitPointer = writer.ldelim(); })(); else if ("txt" === input.value.extension) - return (() => { + (() => { // 3 -> ArrayRecursiveUnionExplicitPointer.ITextFile; writer.uint32(26); writer.fork(); @@ -51,7 +51,7 @@ export const test_protobuf_createEncode_ArrayRecursiveUnionExplicitPointer = writer.ldelim(); })(); else if ("zip" === input.value.extension) - return (() => { + (() => { // 4 -> ArrayRecursiveUnionExplicitPointer.IZipFile; writer.uint32(34); writer.fork(); @@ -59,7 +59,7 @@ export const test_protobuf_createEncode_ArrayRecursiveUnionExplicitPointer = writer.ldelim(); })(); else if ("lnk" === input.value.extension) - return (() => { + (() => { // 5 -> ArrayRecursiveUnionExplicitPointer.IShortcut; writer.uint32(42); writer.fork(); diff --git a/test/src/generated/output/protobuf.createEncode/test_protobuf_createEncode_ObjectNullable.ts b/test/src/generated/output/protobuf.createEncode/test_protobuf_createEncode_ObjectNullable.ts index ae82f59533..565fe6367a 100644 --- a/test/src/generated/output/protobuf.createEncode/test_protobuf_createEncode_ObjectNullable.ts +++ b/test/src/generated/output/protobuf.createEncode/test_protobuf_createEncode_ObjectNullable.ts @@ -44,7 +44,7 @@ export const test_protobuf_createEncode_ObjectNullable = _test_protobuf_encode( // property "similar"; if (null !== input.similar) { if ("brand" === input.similar.type) - return (() => { + (() => { // 4 -> ObjectNullable.IBrand; writer.uint32(34); writer.fork(); @@ -52,7 +52,7 @@ export const test_protobuf_createEncode_ObjectNullable = _test_protobuf_encode( writer.ldelim(); })(); else if ("manufacturer" === input.similar.type) - return (() => { + (() => { // 5 -> ObjectNullable.IManufacturer; writer.uint32(42); writer.fork(); diff --git a/test/src/generated/output/protobuf.createEncode/test_protobuf_createEncode_ObjectUnionCompositePointer.ts b/test/src/generated/output/protobuf.createEncode/test_protobuf_createEncode_ObjectUnionCompositePointer.ts index f0311c1cce..2c624d6c93 100644 --- a/test/src/generated/output/protobuf.createEncode/test_protobuf_createEncode_ObjectUnionCompositePointer.ts +++ b/test/src/generated/output/protobuf.createEncode/test_protobuf_createEncode_ObjectUnionCompositePointer.ts @@ -26,7 +26,7 @@ export const test_protobuf_createEncode_ObjectUnionCompositePointer = const $peo1 = (input: any): any => { // property "value"; if (undefined !== input.value.x) - return (() => { + (() => { // 1 -> ObjectUnionCompositePointer.IPoint; writer.uint32(10); writer.fork(); @@ -34,7 +34,7 @@ export const test_protobuf_createEncode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.p4) - return (() => { + (() => { // 4 -> ObjectUnionCompositePointer.IRectangle; writer.uint32(34); writer.fork(); @@ -42,7 +42,7 @@ export const test_protobuf_createEncode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.points) - return (() => { + (() => { // 5 -> ObjectUnionCompositePointer.IPolyline; writer.uint32(42); writer.fork(); @@ -56,7 +56,7 @@ export const test_protobuf_createEncode_ObjectUnionCompositePointer = "object" === typeof elem && null !== elem && $io2(elem), ) ) - return (() => { + (() => { // 6 -> ObjectUnionCompositePointer.IPointedShape; writer.uint32(50); writer.fork(); @@ -68,7 +68,7 @@ export const test_protobuf_createEncode_ObjectUnionCompositePointer = null !== input.value.outer && $io6(input.value.outer) ) - return (() => { + (() => { // 7 -> ObjectUnionCompositePointer.IPolygon; writer.uint32(58); writer.fork(); @@ -76,7 +76,7 @@ export const test_protobuf_createEncode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.centroid) - return (() => { + (() => { // 8 -> ObjectUnionCompositePointer.ICircle; writer.uint32(66); writer.fork(); @@ -84,9 +84,9 @@ export const test_protobuf_createEncode_ObjectUnionCompositePointer = writer.ldelim(); })(); else - return (() => { + (() => { if (undefined !== input.value.p3) - return (() => { + (() => { // 3 -> ObjectUnionCompositePointer.ITriangle; writer.uint32(26); writer.fork(); @@ -94,7 +94,7 @@ export const test_protobuf_createEncode_ObjectUnionCompositePointer = writer.ldelim(); })(); else - return (() => { + (() => { // 2 -> ObjectUnionCompositePointer.ILine; writer.uint32(18); writer.fork(); diff --git a/test/src/generated/output/protobuf.createEncode/test_protobuf_createEncode_ObjectUnionExplicitPointer.ts b/test/src/generated/output/protobuf.createEncode/test_protobuf_createEncode_ObjectUnionExplicitPointer.ts index 68f7fbdcc5..693f8589d4 100644 --- a/test/src/generated/output/protobuf.createEncode/test_protobuf_createEncode_ObjectUnionExplicitPointer.ts +++ b/test/src/generated/output/protobuf.createEncode/test_protobuf_createEncode_ObjectUnionExplicitPointer.ts @@ -27,7 +27,7 @@ export const test_protobuf_createEncode_ObjectUnionExplicitPointer = const $peo1 = (input: any): any => { // property "value"; if ("point" === input.value.type) - return (() => { + (() => { // 1 -> ObjectUnionExplicitPointer.Discriminator<"point", ObjectUnionExplicitPointer.IPoint>; writer.uint32(10); writer.fork(); @@ -35,7 +35,7 @@ export const test_protobuf_createEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("line" === input.value.type) - return (() => { + (() => { // 2 -> ObjectUnionExplicitPointer.Discriminator<"line", ObjectUnionExplicitPointer.ILine>; writer.uint32(18); writer.fork(); @@ -43,7 +43,7 @@ export const test_protobuf_createEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("triangle" === input.value.type) - return (() => { + (() => { // 3 -> ObjectUnionExplicitPointer.Discriminator<"triangle", ObjectUnionExplicitPointer.ITriangle>; writer.uint32(26); writer.fork(); @@ -51,7 +51,7 @@ export const test_protobuf_createEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("rectangle" === input.value.type) - return (() => { + (() => { // 4 -> ObjectUnionExplicitPointer.Discriminator<"rectangle", ObjectUnionExplicitPointer.IRectangle>; writer.uint32(34); writer.fork(); @@ -59,7 +59,7 @@ export const test_protobuf_createEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("polyline" === input.value.type) - return (() => { + (() => { // 5 -> ObjectUnionExplicitPointer.Discriminator<"polyline", ObjectUnionExplicitPointer.IPolyline>; writer.uint32(42); writer.fork(); @@ -67,7 +67,7 @@ export const test_protobuf_createEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("polygon" === input.value.type) - return (() => { + (() => { // 6 -> ObjectUnionExplicitPointer.Discriminator<"polygon", ObjectUnionExplicitPointer.IPolygon>; writer.uint32(50); writer.fork(); @@ -75,7 +75,7 @@ export const test_protobuf_createEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("circle" === input.value.type) - return (() => { + (() => { // 7 -> ObjectUnionExplicitPointer.Discriminator<"circle", ObjectUnionExplicitPointer.ICircle>; writer.uint32(58); writer.fork(); diff --git a/test/src/generated/output/protobuf.createIsDecode/test_protobuf_createIsDecode_ArrayRecursiveUnionExplicitPointer.ts b/test/src/generated/output/protobuf.createIsDecode/test_protobuf_createIsDecode_ArrayRecursiveUnionExplicitPointer.ts index 5f2ad04f1a..f129801c67 100644 --- a/test/src/generated/output/protobuf.createIsDecode/test_protobuf_createIsDecode_ArrayRecursiveUnionExplicitPointer.ts +++ b/test/src/generated/output/protobuf.createIsDecode/test_protobuf_createIsDecode_ArrayRecursiveUnionExplicitPointer.ts @@ -413,7 +413,7 @@ export const test_protobuf_createIsDecode_ArrayRecursiveUnionExplicitPointer = const $peo1 = (input: any): any => { // property "value"; if ("directory" === input.value.type) - return (() => { + (() => { // 1 -> ArrayRecursiveUnionExplicitPointer.IDirectory; writer.uint32(10); writer.fork(); @@ -421,7 +421,7 @@ export const test_protobuf_createIsDecode_ArrayRecursiveUnionExplicitPointer = writer.ldelim(); })(); else if ("jpg" === input.value.extension) - return (() => { + (() => { // 2 -> ArrayRecursiveUnionExplicitPointer.IImageFile; writer.uint32(18); writer.fork(); @@ -429,7 +429,7 @@ export const test_protobuf_createIsDecode_ArrayRecursiveUnionExplicitPointer = writer.ldelim(); })(); else if ("txt" === input.value.extension) - return (() => { + (() => { // 3 -> ArrayRecursiveUnionExplicitPointer.ITextFile; writer.uint32(26); writer.fork(); @@ -437,7 +437,7 @@ export const test_protobuf_createIsDecode_ArrayRecursiveUnionExplicitPointer = writer.ldelim(); })(); else if ("zip" === input.value.extension) - return (() => { + (() => { // 4 -> ArrayRecursiveUnionExplicitPointer.IZipFile; writer.uint32(34); writer.fork(); @@ -445,7 +445,7 @@ export const test_protobuf_createIsDecode_ArrayRecursiveUnionExplicitPointer = writer.ldelim(); })(); else if ("lnk" === input.value.extension) - return (() => { + (() => { // 5 -> ArrayRecursiveUnionExplicitPointer.IShortcut; writer.uint32(42); writer.fork(); diff --git a/test/src/generated/output/protobuf.createIsDecode/test_protobuf_createIsDecode_ObjectNullable.ts b/test/src/generated/output/protobuf.createIsDecode/test_protobuf_createIsDecode_ObjectNullable.ts index d4cb8ed98f..f780c7b97c 100644 --- a/test/src/generated/output/protobuf.createIsDecode/test_protobuf_createIsDecode_ObjectNullable.ts +++ b/test/src/generated/output/protobuf.createIsDecode/test_protobuf_createIsDecode_ObjectNullable.ts @@ -190,7 +190,7 @@ export const test_protobuf_createIsDecode_ObjectNullable = // property "similar"; if (null !== input.similar) { if ("brand" === input.similar.type) - return (() => { + (() => { // 4 -> ObjectNullable.IBrand; writer.uint32(34); writer.fork(); @@ -198,7 +198,7 @@ export const test_protobuf_createIsDecode_ObjectNullable = writer.ldelim(); })(); else if ("manufacturer" === input.similar.type) - return (() => { + (() => { // 5 -> ObjectNullable.IManufacturer; writer.uint32(42); writer.fork(); diff --git a/test/src/generated/output/protobuf.createIsDecode/test_protobuf_createIsDecode_ObjectUnionCompositePointer.ts b/test/src/generated/output/protobuf.createIsDecode/test_protobuf_createIsDecode_ObjectUnionCompositePointer.ts index e66a23c202..f60215cf86 100644 --- a/test/src/generated/output/protobuf.createIsDecode/test_protobuf_createIsDecode_ObjectUnionCompositePointer.ts +++ b/test/src/generated/output/protobuf.createIsDecode/test_protobuf_createIsDecode_ObjectUnionCompositePointer.ts @@ -445,7 +445,7 @@ export const test_protobuf_createIsDecode_ObjectUnionCompositePointer = const $peo1 = (input: any): any => { // property "value"; if (undefined !== input.value.x) - return (() => { + (() => { // 1 -> ObjectUnionCompositePointer.IPoint; writer.uint32(10); writer.fork(); @@ -453,7 +453,7 @@ export const test_protobuf_createIsDecode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.p4) - return (() => { + (() => { // 4 -> ObjectUnionCompositePointer.IRectangle; writer.uint32(34); writer.fork(); @@ -461,7 +461,7 @@ export const test_protobuf_createIsDecode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.points) - return (() => { + (() => { // 5 -> ObjectUnionCompositePointer.IPolyline; writer.uint32(42); writer.fork(); @@ -475,7 +475,7 @@ export const test_protobuf_createIsDecode_ObjectUnionCompositePointer = "object" === typeof elem && null !== elem && $io2(elem), ) ) - return (() => { + (() => { // 6 -> ObjectUnionCompositePointer.IPointedShape; writer.uint32(50); writer.fork(); @@ -487,7 +487,7 @@ export const test_protobuf_createIsDecode_ObjectUnionCompositePointer = null !== input.value.outer && $io6(input.value.outer) ) - return (() => { + (() => { // 7 -> ObjectUnionCompositePointer.IPolygon; writer.uint32(58); writer.fork(); @@ -495,7 +495,7 @@ export const test_protobuf_createIsDecode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.centroid) - return (() => { + (() => { // 8 -> ObjectUnionCompositePointer.ICircle; writer.uint32(66); writer.fork(); @@ -503,9 +503,9 @@ export const test_protobuf_createIsDecode_ObjectUnionCompositePointer = writer.ldelim(); })(); else - return (() => { + (() => { if (undefined !== input.value.p3) - return (() => { + (() => { // 3 -> ObjectUnionCompositePointer.ITriangle; writer.uint32(26); writer.fork(); @@ -513,7 +513,7 @@ export const test_protobuf_createIsDecode_ObjectUnionCompositePointer = writer.ldelim(); })(); else - return (() => { + (() => { // 2 -> ObjectUnionCompositePointer.ILine; writer.uint32(18); writer.fork(); diff --git a/test/src/generated/output/protobuf.createIsDecode/test_protobuf_createIsDecode_ObjectUnionExplicitPointer.ts b/test/src/generated/output/protobuf.createIsDecode/test_protobuf_createIsDecode_ObjectUnionExplicitPointer.ts index 9dd9216b5c..24a32dbf64 100644 --- a/test/src/generated/output/protobuf.createIsDecode/test_protobuf_createIsDecode_ObjectUnionExplicitPointer.ts +++ b/test/src/generated/output/protobuf.createIsDecode/test_protobuf_createIsDecode_ObjectUnionExplicitPointer.ts @@ -487,7 +487,7 @@ export const test_protobuf_createIsDecode_ObjectUnionExplicitPointer = const $peo1 = (input: any): any => { // property "value"; if ("point" === input.value.type) - return (() => { + (() => { // 1 -> ObjectUnionExplicitPointer.Discriminator<"point", ObjectUnionExplicitPointer.IPoint>; writer.uint32(10); writer.fork(); @@ -495,7 +495,7 @@ export const test_protobuf_createIsDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("line" === input.value.type) - return (() => { + (() => { // 2 -> ObjectUnionExplicitPointer.Discriminator<"line", ObjectUnionExplicitPointer.ILine>; writer.uint32(18); writer.fork(); @@ -503,7 +503,7 @@ export const test_protobuf_createIsDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("triangle" === input.value.type) - return (() => { + (() => { // 3 -> ObjectUnionExplicitPointer.Discriminator<"triangle", ObjectUnionExplicitPointer.ITriangle>; writer.uint32(26); writer.fork(); @@ -511,7 +511,7 @@ export const test_protobuf_createIsDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("rectangle" === input.value.type) - return (() => { + (() => { // 4 -> ObjectUnionExplicitPointer.Discriminator<"rectangle", ObjectUnionExplicitPointer.IRectangle>; writer.uint32(34); writer.fork(); @@ -519,7 +519,7 @@ export const test_protobuf_createIsDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("polyline" === input.value.type) - return (() => { + (() => { // 5 -> ObjectUnionExplicitPointer.Discriminator<"polyline", ObjectUnionExplicitPointer.IPolyline>; writer.uint32(42); writer.fork(); @@ -527,7 +527,7 @@ export const test_protobuf_createIsDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("polygon" === input.value.type) - return (() => { + (() => { // 6 -> ObjectUnionExplicitPointer.Discriminator<"polygon", ObjectUnionExplicitPointer.IPolygon>; writer.uint32(50); writer.fork(); @@ -535,7 +535,7 @@ export const test_protobuf_createIsDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("circle" === input.value.type) - return (() => { + (() => { // 7 -> ObjectUnionExplicitPointer.Discriminator<"circle", ObjectUnionExplicitPointer.ICircle>; writer.uint32(58); writer.fork(); diff --git a/test/src/generated/output/protobuf.createIsEncode/test_protobuf_createIsEncode_ArrayRecursiveUnionExplicitPointer.ts b/test/src/generated/output/protobuf.createIsEncode/test_protobuf_createIsEncode_ArrayRecursiveUnionExplicitPointer.ts index a9c3e5aced..9059d11ab1 100644 --- a/test/src/generated/output/protobuf.createIsEncode/test_protobuf_createIsEncode_ArrayRecursiveUnionExplicitPointer.ts +++ b/test/src/generated/output/protobuf.createIsEncode/test_protobuf_createIsEncode_ArrayRecursiveUnionExplicitPointer.ts @@ -108,7 +108,7 @@ export const test_protobuf_createIsEncode_ArrayRecursiveUnionExplicitPointer = const $peo1 = (input: any): any => { // property "value"; if ("directory" === input.value.type) - return (() => { + (() => { // 1 -> ArrayRecursiveUnionExplicitPointer.IDirectory; writer.uint32(10); writer.fork(); @@ -116,7 +116,7 @@ export const test_protobuf_createIsEncode_ArrayRecursiveUnionExplicitPointer = writer.ldelim(); })(); else if ("jpg" === input.value.extension) - return (() => { + (() => { // 2 -> ArrayRecursiveUnionExplicitPointer.IImageFile; writer.uint32(18); writer.fork(); @@ -124,7 +124,7 @@ export const test_protobuf_createIsEncode_ArrayRecursiveUnionExplicitPointer = writer.ldelim(); })(); else if ("txt" === input.value.extension) - return (() => { + (() => { // 3 -> ArrayRecursiveUnionExplicitPointer.ITextFile; writer.uint32(26); writer.fork(); @@ -132,7 +132,7 @@ export const test_protobuf_createIsEncode_ArrayRecursiveUnionExplicitPointer = writer.ldelim(); })(); else if ("zip" === input.value.extension) - return (() => { + (() => { // 4 -> ArrayRecursiveUnionExplicitPointer.IZipFile; writer.uint32(34); writer.fork(); @@ -140,7 +140,7 @@ export const test_protobuf_createIsEncode_ArrayRecursiveUnionExplicitPointer = writer.ldelim(); })(); else if ("lnk" === input.value.extension) - return (() => { + (() => { // 5 -> ArrayRecursiveUnionExplicitPointer.IShortcut; writer.uint32(42); writer.fork(); diff --git a/test/src/generated/output/protobuf.createIsEncode/test_protobuf_createIsEncode_ObjectNullable.ts b/test/src/generated/output/protobuf.createIsEncode/test_protobuf_createIsEncode_ObjectNullable.ts index fec32c6cbf..39acc20c58 100644 --- a/test/src/generated/output/protobuf.createIsEncode/test_protobuf_createIsEncode_ObjectNullable.ts +++ b/test/src/generated/output/protobuf.createIsEncode/test_protobuf_createIsEncode_ObjectNullable.ts @@ -76,7 +76,7 @@ export const test_protobuf_createIsEncode_ObjectNullable = // property "similar"; if (null !== input.similar) { if ("brand" === input.similar.type) - return (() => { + (() => { // 4 -> ObjectNullable.IBrand; writer.uint32(34); writer.fork(); @@ -84,7 +84,7 @@ export const test_protobuf_createIsEncode_ObjectNullable = writer.ldelim(); })(); else if ("manufacturer" === input.similar.type) - return (() => { + (() => { // 5 -> ObjectNullable.IManufacturer; writer.uint32(42); writer.fork(); diff --git a/test/src/generated/output/protobuf.createIsEncode/test_protobuf_createIsEncode_ObjectUnionCompositePointer.ts b/test/src/generated/output/protobuf.createIsEncode/test_protobuf_createIsEncode_ObjectUnionCompositePointer.ts index 99972fdb22..aaa909468d 100644 --- a/test/src/generated/output/protobuf.createIsEncode/test_protobuf_createIsEncode_ObjectUnionCompositePointer.ts +++ b/test/src/generated/output/protobuf.createIsEncode/test_protobuf_createIsEncode_ObjectUnionCompositePointer.ts @@ -164,7 +164,7 @@ export const test_protobuf_createIsEncode_ObjectUnionCompositePointer = const $peo1 = (input: any): any => { // property "value"; if (undefined !== input.value.x) - return (() => { + (() => { // 1 -> ObjectUnionCompositePointer.IPoint; writer.uint32(10); writer.fork(); @@ -172,7 +172,7 @@ export const test_protobuf_createIsEncode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.p4) - return (() => { + (() => { // 4 -> ObjectUnionCompositePointer.IRectangle; writer.uint32(34); writer.fork(); @@ -180,7 +180,7 @@ export const test_protobuf_createIsEncode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.points) - return (() => { + (() => { // 5 -> ObjectUnionCompositePointer.IPolyline; writer.uint32(42); writer.fork(); @@ -194,7 +194,7 @@ export const test_protobuf_createIsEncode_ObjectUnionCompositePointer = "object" === typeof elem && null !== elem && $io2(elem), ) ) - return (() => { + (() => { // 6 -> ObjectUnionCompositePointer.IPointedShape; writer.uint32(50); writer.fork(); @@ -206,7 +206,7 @@ export const test_protobuf_createIsEncode_ObjectUnionCompositePointer = null !== input.value.outer && $io6(input.value.outer) ) - return (() => { + (() => { // 7 -> ObjectUnionCompositePointer.IPolygon; writer.uint32(58); writer.fork(); @@ -214,7 +214,7 @@ export const test_protobuf_createIsEncode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.centroid) - return (() => { + (() => { // 8 -> ObjectUnionCompositePointer.ICircle; writer.uint32(66); writer.fork(); @@ -222,9 +222,9 @@ export const test_protobuf_createIsEncode_ObjectUnionCompositePointer = writer.ldelim(); })(); else - return (() => { + (() => { if (undefined !== input.value.p3) - return (() => { + (() => { // 3 -> ObjectUnionCompositePointer.ITriangle; writer.uint32(26); writer.fork(); @@ -232,7 +232,7 @@ export const test_protobuf_createIsEncode_ObjectUnionCompositePointer = writer.ldelim(); })(); else - return (() => { + (() => { // 2 -> ObjectUnionCompositePointer.ILine; writer.uint32(18); writer.fork(); diff --git a/test/src/generated/output/protobuf.createIsEncode/test_protobuf_createIsEncode_ObjectUnionExplicitPointer.ts b/test/src/generated/output/protobuf.createIsEncode/test_protobuf_createIsEncode_ObjectUnionExplicitPointer.ts index 49ae59c268..d620183dd1 100644 --- a/test/src/generated/output/protobuf.createIsEncode/test_protobuf_createIsEncode_ObjectUnionExplicitPointer.ts +++ b/test/src/generated/output/protobuf.createIsEncode/test_protobuf_createIsEncode_ObjectUnionExplicitPointer.ts @@ -156,7 +156,7 @@ export const test_protobuf_createIsEncode_ObjectUnionExplicitPointer = const $peo1 = (input: any): any => { // property "value"; if ("point" === input.value.type) - return (() => { + (() => { // 1 -> ObjectUnionExplicitPointer.Discriminator<"point", ObjectUnionExplicitPointer.IPoint>; writer.uint32(10); writer.fork(); @@ -164,7 +164,7 @@ export const test_protobuf_createIsEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("line" === input.value.type) - return (() => { + (() => { // 2 -> ObjectUnionExplicitPointer.Discriminator<"line", ObjectUnionExplicitPointer.ILine>; writer.uint32(18); writer.fork(); @@ -172,7 +172,7 @@ export const test_protobuf_createIsEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("triangle" === input.value.type) - return (() => { + (() => { // 3 -> ObjectUnionExplicitPointer.Discriminator<"triangle", ObjectUnionExplicitPointer.ITriangle>; writer.uint32(26); writer.fork(); @@ -180,7 +180,7 @@ export const test_protobuf_createIsEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("rectangle" === input.value.type) - return (() => { + (() => { // 4 -> ObjectUnionExplicitPointer.Discriminator<"rectangle", ObjectUnionExplicitPointer.IRectangle>; writer.uint32(34); writer.fork(); @@ -188,7 +188,7 @@ export const test_protobuf_createIsEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("polyline" === input.value.type) - return (() => { + (() => { // 5 -> ObjectUnionExplicitPointer.Discriminator<"polyline", ObjectUnionExplicitPointer.IPolyline>; writer.uint32(42); writer.fork(); @@ -196,7 +196,7 @@ export const test_protobuf_createIsEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("polygon" === input.value.type) - return (() => { + (() => { // 6 -> ObjectUnionExplicitPointer.Discriminator<"polygon", ObjectUnionExplicitPointer.IPolygon>; writer.uint32(50); writer.fork(); @@ -204,7 +204,7 @@ export const test_protobuf_createIsEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("circle" === input.value.type) - return (() => { + (() => { // 7 -> ObjectUnionExplicitPointer.Discriminator<"circle", ObjectUnionExplicitPointer.ICircle>; writer.uint32(58); writer.fork(); diff --git a/test/src/generated/output/protobuf.createValidateDecode/test_protobuf_createValidateDecode_ArrayRecursiveUnionExplicitPointer.ts b/test/src/generated/output/protobuf.createValidateDecode/test_protobuf_createValidateDecode_ArrayRecursiveUnionExplicitPointer.ts index f0af71dbec..a7b58f1b41 100644 --- a/test/src/generated/output/protobuf.createValidateDecode/test_protobuf_createValidateDecode_ArrayRecursiveUnionExplicitPointer.ts +++ b/test/src/generated/output/protobuf.createValidateDecode/test_protobuf_createValidateDecode_ArrayRecursiveUnionExplicitPointer.ts @@ -829,7 +829,7 @@ export const test_protobuf_createValidateDecode_ArrayRecursiveUnionExplicitPoint const $peo1 = (input: any): any => { // property "value"; if ("directory" === input.value.type) - return (() => { + (() => { // 1 -> ArrayRecursiveUnionExplicitPointer.IDirectory; writer.uint32(10); writer.fork(); @@ -837,7 +837,7 @@ export const test_protobuf_createValidateDecode_ArrayRecursiveUnionExplicitPoint writer.ldelim(); })(); else if ("jpg" === input.value.extension) - return (() => { + (() => { // 2 -> ArrayRecursiveUnionExplicitPointer.IImageFile; writer.uint32(18); writer.fork(); @@ -845,7 +845,7 @@ export const test_protobuf_createValidateDecode_ArrayRecursiveUnionExplicitPoint writer.ldelim(); })(); else if ("txt" === input.value.extension) - return (() => { + (() => { // 3 -> ArrayRecursiveUnionExplicitPointer.ITextFile; writer.uint32(26); writer.fork(); @@ -853,7 +853,7 @@ export const test_protobuf_createValidateDecode_ArrayRecursiveUnionExplicitPoint writer.ldelim(); })(); else if ("zip" === input.value.extension) - return (() => { + (() => { // 4 -> ArrayRecursiveUnionExplicitPointer.IZipFile; writer.uint32(34); writer.fork(); @@ -861,7 +861,7 @@ export const test_protobuf_createValidateDecode_ArrayRecursiveUnionExplicitPoint writer.ldelim(); })(); else if ("lnk" === input.value.extension) - return (() => { + (() => { // 5 -> ArrayRecursiveUnionExplicitPointer.IShortcut; writer.uint32(42); writer.fork(); diff --git a/test/src/generated/output/protobuf.createValidateDecode/test_protobuf_createValidateDecode_ObjectNullable.ts b/test/src/generated/output/protobuf.createValidateDecode/test_protobuf_createValidateDecode_ObjectNullable.ts index e75ad0c651..abd9877440 100644 --- a/test/src/generated/output/protobuf.createValidateDecode/test_protobuf_createValidateDecode_ObjectNullable.ts +++ b/test/src/generated/output/protobuf.createValidateDecode/test_protobuf_createValidateDecode_ObjectNullable.ts @@ -389,7 +389,7 @@ export const test_protobuf_createValidateDecode_ObjectNullable = // property "similar"; if (null !== input.similar) { if ("brand" === input.similar.type) - return (() => { + (() => { // 4 -> ObjectNullable.IBrand; writer.uint32(34); writer.fork(); @@ -397,7 +397,7 @@ export const test_protobuf_createValidateDecode_ObjectNullable = writer.ldelim(); })(); else if ("manufacturer" === input.similar.type) - return (() => { + (() => { // 5 -> ObjectNullable.IManufacturer; writer.uint32(42); writer.fork(); diff --git a/test/src/generated/output/protobuf.createValidateDecode/test_protobuf_createValidateDecode_ObjectUnionCompositePointer.ts b/test/src/generated/output/protobuf.createValidateDecode/test_protobuf_createValidateDecode_ObjectUnionCompositePointer.ts index 4ec465023a..41c865148c 100644 --- a/test/src/generated/output/protobuf.createValidateDecode/test_protobuf_createValidateDecode_ObjectUnionCompositePointer.ts +++ b/test/src/generated/output/protobuf.createValidateDecode/test_protobuf_createValidateDecode_ObjectUnionCompositePointer.ts @@ -919,7 +919,7 @@ export const test_protobuf_createValidateDecode_ObjectUnionCompositePointer = const $peo1 = (input: any): any => { // property "value"; if (undefined !== input.value.x) - return (() => { + (() => { // 1 -> ObjectUnionCompositePointer.IPoint; writer.uint32(10); writer.fork(); @@ -927,7 +927,7 @@ export const test_protobuf_createValidateDecode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.p4) - return (() => { + (() => { // 4 -> ObjectUnionCompositePointer.IRectangle; writer.uint32(34); writer.fork(); @@ -935,7 +935,7 @@ export const test_protobuf_createValidateDecode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.points) - return (() => { + (() => { // 5 -> ObjectUnionCompositePointer.IPolyline; writer.uint32(42); writer.fork(); @@ -949,7 +949,7 @@ export const test_protobuf_createValidateDecode_ObjectUnionCompositePointer = "object" === typeof elem && null !== elem && $io2(elem), ) ) - return (() => { + (() => { // 6 -> ObjectUnionCompositePointer.IPointedShape; writer.uint32(50); writer.fork(); @@ -961,7 +961,7 @@ export const test_protobuf_createValidateDecode_ObjectUnionCompositePointer = null !== input.value.outer && $io6(input.value.outer) ) - return (() => { + (() => { // 7 -> ObjectUnionCompositePointer.IPolygon; writer.uint32(58); writer.fork(); @@ -969,7 +969,7 @@ export const test_protobuf_createValidateDecode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.centroid) - return (() => { + (() => { // 8 -> ObjectUnionCompositePointer.ICircle; writer.uint32(66); writer.fork(); @@ -977,9 +977,9 @@ export const test_protobuf_createValidateDecode_ObjectUnionCompositePointer = writer.ldelim(); })(); else - return (() => { + (() => { if (undefined !== input.value.p3) - return (() => { + (() => { // 3 -> ObjectUnionCompositePointer.ITriangle; writer.uint32(26); writer.fork(); @@ -987,7 +987,7 @@ export const test_protobuf_createValidateDecode_ObjectUnionCompositePointer = writer.ldelim(); })(); else - return (() => { + (() => { // 2 -> ObjectUnionCompositePointer.ILine; writer.uint32(18); writer.fork(); diff --git a/test/src/generated/output/protobuf.createValidateDecode/test_protobuf_createValidateDecode_ObjectUnionExplicitPointer.ts b/test/src/generated/output/protobuf.createValidateDecode/test_protobuf_createValidateDecode_ObjectUnionExplicitPointer.ts index 79c49c406b..fa8f2e55ce 100644 --- a/test/src/generated/output/protobuf.createValidateDecode/test_protobuf_createValidateDecode_ObjectUnionExplicitPointer.ts +++ b/test/src/generated/output/protobuf.createValidateDecode/test_protobuf_createValidateDecode_ObjectUnionExplicitPointer.ts @@ -991,7 +991,7 @@ export const test_protobuf_createValidateDecode_ObjectUnionExplicitPointer = const $peo1 = (input: any): any => { // property "value"; if ("point" === input.value.type) - return (() => { + (() => { // 1 -> ObjectUnionExplicitPointer.Discriminator<"point", ObjectUnionExplicitPointer.IPoint>; writer.uint32(10); writer.fork(); @@ -999,7 +999,7 @@ export const test_protobuf_createValidateDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("line" === input.value.type) - return (() => { + (() => { // 2 -> ObjectUnionExplicitPointer.Discriminator<"line", ObjectUnionExplicitPointer.ILine>; writer.uint32(18); writer.fork(); @@ -1007,7 +1007,7 @@ export const test_protobuf_createValidateDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("triangle" === input.value.type) - return (() => { + (() => { // 3 -> ObjectUnionExplicitPointer.Discriminator<"triangle", ObjectUnionExplicitPointer.ITriangle>; writer.uint32(26); writer.fork(); @@ -1015,7 +1015,7 @@ export const test_protobuf_createValidateDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("rectangle" === input.value.type) - return (() => { + (() => { // 4 -> ObjectUnionExplicitPointer.Discriminator<"rectangle", ObjectUnionExplicitPointer.IRectangle>; writer.uint32(34); writer.fork(); @@ -1023,7 +1023,7 @@ export const test_protobuf_createValidateDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("polyline" === input.value.type) - return (() => { + (() => { // 5 -> ObjectUnionExplicitPointer.Discriminator<"polyline", ObjectUnionExplicitPointer.IPolyline>; writer.uint32(42); writer.fork(); @@ -1031,7 +1031,7 @@ export const test_protobuf_createValidateDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("polygon" === input.value.type) - return (() => { + (() => { // 6 -> ObjectUnionExplicitPointer.Discriminator<"polygon", ObjectUnionExplicitPointer.IPolygon>; writer.uint32(50); writer.fork(); @@ -1039,7 +1039,7 @@ export const test_protobuf_createValidateDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("circle" === input.value.type) - return (() => { + (() => { // 7 -> ObjectUnionExplicitPointer.Discriminator<"circle", ObjectUnionExplicitPointer.ICircle>; writer.uint32(58); writer.fork(); diff --git a/test/src/generated/output/protobuf.createValidateEncode/test_protobuf_createValidateEncode_ArrayRecursiveUnionExplicitPointer.ts b/test/src/generated/output/protobuf.createValidateEncode/test_protobuf_createValidateEncode_ArrayRecursiveUnionExplicitPointer.ts index 8d7b8016ad..d3db6e9a00 100644 --- a/test/src/generated/output/protobuf.createValidateEncode/test_protobuf_createValidateEncode_ArrayRecursiveUnionExplicitPointer.ts +++ b/test/src/generated/output/protobuf.createValidateEncode/test_protobuf_createValidateEncode_ArrayRecursiveUnionExplicitPointer.ts @@ -525,7 +525,7 @@ export const test_protobuf_createValidateEncode_ArrayRecursiveUnionExplicitPoint const $peo1 = (input: any): any => { // property "value"; if ("directory" === input.value.type) - return (() => { + (() => { // 1 -> ArrayRecursiveUnionExplicitPointer.IDirectory; writer.uint32(10); writer.fork(); @@ -533,7 +533,7 @@ export const test_protobuf_createValidateEncode_ArrayRecursiveUnionExplicitPoint writer.ldelim(); })(); else if ("jpg" === input.value.extension) - return (() => { + (() => { // 2 -> ArrayRecursiveUnionExplicitPointer.IImageFile; writer.uint32(18); writer.fork(); @@ -541,7 +541,7 @@ export const test_protobuf_createValidateEncode_ArrayRecursiveUnionExplicitPoint writer.ldelim(); })(); else if ("txt" === input.value.extension) - return (() => { + (() => { // 3 -> ArrayRecursiveUnionExplicitPointer.ITextFile; writer.uint32(26); writer.fork(); @@ -549,7 +549,7 @@ export const test_protobuf_createValidateEncode_ArrayRecursiveUnionExplicitPoint writer.ldelim(); })(); else if ("zip" === input.value.extension) - return (() => { + (() => { // 4 -> ArrayRecursiveUnionExplicitPointer.IZipFile; writer.uint32(34); writer.fork(); @@ -557,7 +557,7 @@ export const test_protobuf_createValidateEncode_ArrayRecursiveUnionExplicitPoint writer.ldelim(); })(); else if ("lnk" === input.value.extension) - return (() => { + (() => { // 5 -> ArrayRecursiveUnionExplicitPointer.IShortcut; writer.uint32(42); writer.fork(); diff --git a/test/src/generated/output/protobuf.createValidateEncode/test_protobuf_createValidateEncode_ObjectNullable.ts b/test/src/generated/output/protobuf.createValidateEncode/test_protobuf_createValidateEncode_ObjectNullable.ts index bef1444bec..27ae0c3d8f 100644 --- a/test/src/generated/output/protobuf.createValidateEncode/test_protobuf_createValidateEncode_ObjectNullable.ts +++ b/test/src/generated/output/protobuf.createValidateEncode/test_protobuf_createValidateEncode_ObjectNullable.ts @@ -274,7 +274,7 @@ export const test_protobuf_createValidateEncode_ObjectNullable = // property "similar"; if (null !== input.similar) { if ("brand" === input.similar.type) - return (() => { + (() => { // 4 -> ObjectNullable.IBrand; writer.uint32(34); writer.fork(); @@ -282,7 +282,7 @@ export const test_protobuf_createValidateEncode_ObjectNullable = writer.ldelim(); })(); else if ("manufacturer" === input.similar.type) - return (() => { + (() => { // 5 -> ObjectNullable.IManufacturer; writer.uint32(42); writer.fork(); diff --git a/test/src/generated/output/protobuf.createValidateEncode/test_protobuf_createValidateEncode_ObjectUnionCompositePointer.ts b/test/src/generated/output/protobuf.createValidateEncode/test_protobuf_createValidateEncode_ObjectUnionCompositePointer.ts index 4e21b43776..bfdf557f36 100644 --- a/test/src/generated/output/protobuf.createValidateEncode/test_protobuf_createValidateEncode_ObjectUnionCompositePointer.ts +++ b/test/src/generated/output/protobuf.createValidateEncode/test_protobuf_createValidateEncode_ObjectUnionCompositePointer.ts @@ -641,7 +641,7 @@ export const test_protobuf_createValidateEncode_ObjectUnionCompositePointer = const $peo1 = (input: any): any => { // property "value"; if (undefined !== input.value.x) - return (() => { + (() => { // 1 -> ObjectUnionCompositePointer.IPoint; writer.uint32(10); writer.fork(); @@ -649,7 +649,7 @@ export const test_protobuf_createValidateEncode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.p4) - return (() => { + (() => { // 4 -> ObjectUnionCompositePointer.IRectangle; writer.uint32(34); writer.fork(); @@ -657,7 +657,7 @@ export const test_protobuf_createValidateEncode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.points) - return (() => { + (() => { // 5 -> ObjectUnionCompositePointer.IPolyline; writer.uint32(42); writer.fork(); @@ -671,7 +671,7 @@ export const test_protobuf_createValidateEncode_ObjectUnionCompositePointer = "object" === typeof elem && null !== elem && $io2(elem), ) ) - return (() => { + (() => { // 6 -> ObjectUnionCompositePointer.IPointedShape; writer.uint32(50); writer.fork(); @@ -683,7 +683,7 @@ export const test_protobuf_createValidateEncode_ObjectUnionCompositePointer = null !== input.value.outer && $io6(input.value.outer) ) - return (() => { + (() => { // 7 -> ObjectUnionCompositePointer.IPolygon; writer.uint32(58); writer.fork(); @@ -691,7 +691,7 @@ export const test_protobuf_createValidateEncode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.centroid) - return (() => { + (() => { // 8 -> ObjectUnionCompositePointer.ICircle; writer.uint32(66); writer.fork(); @@ -699,9 +699,9 @@ export const test_protobuf_createValidateEncode_ObjectUnionCompositePointer = writer.ldelim(); })(); else - return (() => { + (() => { if (undefined !== input.value.p3) - return (() => { + (() => { // 3 -> ObjectUnionCompositePointer.ITriangle; writer.uint32(26); writer.fork(); @@ -709,7 +709,7 @@ export const test_protobuf_createValidateEncode_ObjectUnionCompositePointer = writer.ldelim(); })(); else - return (() => { + (() => { // 2 -> ObjectUnionCompositePointer.ILine; writer.uint32(18); writer.fork(); diff --git a/test/src/generated/output/protobuf.createValidateEncode/test_protobuf_createValidateEncode_ObjectUnionExplicitPointer.ts b/test/src/generated/output/protobuf.createValidateEncode/test_protobuf_createValidateEncode_ObjectUnionExplicitPointer.ts index 97703b8916..04c0439494 100644 --- a/test/src/generated/output/protobuf.createValidateEncode/test_protobuf_createValidateEncode_ObjectUnionExplicitPointer.ts +++ b/test/src/generated/output/protobuf.createValidateEncode/test_protobuf_createValidateEncode_ObjectUnionExplicitPointer.ts @@ -663,7 +663,7 @@ export const test_protobuf_createValidateEncode_ObjectUnionExplicitPointer = const $peo1 = (input: any): any => { // property "value"; if ("point" === input.value.type) - return (() => { + (() => { // 1 -> ObjectUnionExplicitPointer.Discriminator<"point", ObjectUnionExplicitPointer.IPoint>; writer.uint32(10); writer.fork(); @@ -671,7 +671,7 @@ export const test_protobuf_createValidateEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("line" === input.value.type) - return (() => { + (() => { // 2 -> ObjectUnionExplicitPointer.Discriminator<"line", ObjectUnionExplicitPointer.ILine>; writer.uint32(18); writer.fork(); @@ -679,7 +679,7 @@ export const test_protobuf_createValidateEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("triangle" === input.value.type) - return (() => { + (() => { // 3 -> ObjectUnionExplicitPointer.Discriminator<"triangle", ObjectUnionExplicitPointer.ITriangle>; writer.uint32(26); writer.fork(); @@ -687,7 +687,7 @@ export const test_protobuf_createValidateEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("rectangle" === input.value.type) - return (() => { + (() => { // 4 -> ObjectUnionExplicitPointer.Discriminator<"rectangle", ObjectUnionExplicitPointer.IRectangle>; writer.uint32(34); writer.fork(); @@ -695,7 +695,7 @@ export const test_protobuf_createValidateEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("polyline" === input.value.type) - return (() => { + (() => { // 5 -> ObjectUnionExplicitPointer.Discriminator<"polyline", ObjectUnionExplicitPointer.IPolyline>; writer.uint32(42); writer.fork(); @@ -703,7 +703,7 @@ export const test_protobuf_createValidateEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("polygon" === input.value.type) - return (() => { + (() => { // 6 -> ObjectUnionExplicitPointer.Discriminator<"polygon", ObjectUnionExplicitPointer.IPolygon>; writer.uint32(50); writer.fork(); @@ -711,7 +711,7 @@ export const test_protobuf_createValidateEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("circle" === input.value.type) - return (() => { + (() => { // 7 -> ObjectUnionExplicitPointer.Discriminator<"circle", ObjectUnionExplicitPointer.ICircle>; writer.uint32(58); writer.fork(); diff --git a/test/src/generated/output/protobuf.decode/test_protobuf_decode_ArrayRecursiveUnionExplicitPointer.ts b/test/src/generated/output/protobuf.decode/test_protobuf_decode_ArrayRecursiveUnionExplicitPointer.ts index 1fae8e2530..ca9d2b9986 100644 --- a/test/src/generated/output/protobuf.decode/test_protobuf_decode_ArrayRecursiveUnionExplicitPointer.ts +++ b/test/src/generated/output/protobuf.decode/test_protobuf_decode_ArrayRecursiveUnionExplicitPointer.ts @@ -329,7 +329,7 @@ export const test_protobuf_createDecode_ArrayRecursiveUnionExplicitPointer = const $peo1 = (input: any): any => { // property "value"; if ("directory" === input.value.type) - return (() => { + (() => { // 1 -> ArrayRecursiveUnionExplicitPointer.IDirectory; writer.uint32(10); writer.fork(); @@ -337,7 +337,7 @@ export const test_protobuf_createDecode_ArrayRecursiveUnionExplicitPointer = writer.ldelim(); })(); else if ("jpg" === input.value.extension) - return (() => { + (() => { // 2 -> ArrayRecursiveUnionExplicitPointer.IImageFile; writer.uint32(18); writer.fork(); @@ -345,7 +345,7 @@ export const test_protobuf_createDecode_ArrayRecursiveUnionExplicitPointer = writer.ldelim(); })(); else if ("txt" === input.value.extension) - return (() => { + (() => { // 3 -> ArrayRecursiveUnionExplicitPointer.ITextFile; writer.uint32(26); writer.fork(); @@ -353,7 +353,7 @@ export const test_protobuf_createDecode_ArrayRecursiveUnionExplicitPointer = writer.ldelim(); })(); else if ("zip" === input.value.extension) - return (() => { + (() => { // 4 -> ArrayRecursiveUnionExplicitPointer.IZipFile; writer.uint32(34); writer.fork(); @@ -361,7 +361,7 @@ export const test_protobuf_createDecode_ArrayRecursiveUnionExplicitPointer = writer.ldelim(); })(); else if ("lnk" === input.value.extension) - return (() => { + (() => { // 5 -> ArrayRecursiveUnionExplicitPointer.IShortcut; writer.uint32(42); writer.fork(); diff --git a/test/src/generated/output/protobuf.decode/test_protobuf_decode_ObjectNullable.ts b/test/src/generated/output/protobuf.decode/test_protobuf_decode_ObjectNullable.ts index da57a3e5a3..b3e131d19a 100644 --- a/test/src/generated/output/protobuf.decode/test_protobuf_decode_ObjectNullable.ts +++ b/test/src/generated/output/protobuf.decode/test_protobuf_decode_ObjectNullable.ts @@ -155,7 +155,7 @@ export const test_protobuf_createDecode_ObjectNullable = _test_protobuf_decode( // property "similar"; if (null !== input.similar) { if ("brand" === input.similar.type) - return (() => { + (() => { // 4 -> ObjectNullable.IBrand; writer.uint32(34); writer.fork(); @@ -163,7 +163,7 @@ export const test_protobuf_createDecode_ObjectNullable = _test_protobuf_decode( writer.ldelim(); })(); else if ("manufacturer" === input.similar.type) - return (() => { + (() => { // 5 -> ObjectNullable.IManufacturer; writer.uint32(42); writer.fork(); diff --git a/test/src/generated/output/protobuf.decode/test_protobuf_decode_ObjectUnionCompositePointer.ts b/test/src/generated/output/protobuf.decode/test_protobuf_decode_ObjectUnionCompositePointer.ts index 3ce31ce33b..e10ab68ad4 100644 --- a/test/src/generated/output/protobuf.decode/test_protobuf_decode_ObjectUnionCompositePointer.ts +++ b/test/src/generated/output/protobuf.decode/test_protobuf_decode_ObjectUnionCompositePointer.ts @@ -300,7 +300,7 @@ export const test_protobuf_createDecode_ObjectUnionCompositePointer = const $peo1 = (input: any): any => { // property "value"; if (undefined !== input.value.x) - return (() => { + (() => { // 1 -> ObjectUnionCompositePointer.IPoint; writer.uint32(10); writer.fork(); @@ -308,7 +308,7 @@ export const test_protobuf_createDecode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.p4) - return (() => { + (() => { // 4 -> ObjectUnionCompositePointer.IRectangle; writer.uint32(34); writer.fork(); @@ -316,7 +316,7 @@ export const test_protobuf_createDecode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.points) - return (() => { + (() => { // 5 -> ObjectUnionCompositePointer.IPolyline; writer.uint32(42); writer.fork(); @@ -330,7 +330,7 @@ export const test_protobuf_createDecode_ObjectUnionCompositePointer = "object" === typeof elem && null !== elem && $io2(elem), ) ) - return (() => { + (() => { // 6 -> ObjectUnionCompositePointer.IPointedShape; writer.uint32(50); writer.fork(); @@ -342,7 +342,7 @@ export const test_protobuf_createDecode_ObjectUnionCompositePointer = null !== input.value.outer && $io6(input.value.outer) ) - return (() => { + (() => { // 7 -> ObjectUnionCompositePointer.IPolygon; writer.uint32(58); writer.fork(); @@ -350,7 +350,7 @@ export const test_protobuf_createDecode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.centroid) - return (() => { + (() => { // 8 -> ObjectUnionCompositePointer.ICircle; writer.uint32(66); writer.fork(); @@ -358,9 +358,9 @@ export const test_protobuf_createDecode_ObjectUnionCompositePointer = writer.ldelim(); })(); else - return (() => { + (() => { if (undefined !== input.value.p3) - return (() => { + (() => { // 3 -> ObjectUnionCompositePointer.ITriangle; writer.uint32(26); writer.fork(); @@ -368,7 +368,7 @@ export const test_protobuf_createDecode_ObjectUnionCompositePointer = writer.ldelim(); })(); else - return (() => { + (() => { // 2 -> ObjectUnionCompositePointer.ILine; writer.uint32(18); writer.fork(); diff --git a/test/src/generated/output/protobuf.decode/test_protobuf_decode_ObjectUnionExplicitPointer.ts b/test/src/generated/output/protobuf.decode/test_protobuf_decode_ObjectUnionExplicitPointer.ts index bae1e1b6db..64f7a16cbc 100644 --- a/test/src/generated/output/protobuf.decode/test_protobuf_decode_ObjectUnionExplicitPointer.ts +++ b/test/src/generated/output/protobuf.decode/test_protobuf_decode_ObjectUnionExplicitPointer.ts @@ -351,7 +351,7 @@ export const test_protobuf_createDecode_ObjectUnionExplicitPointer = const $peo1 = (input: any): any => { // property "value"; if ("point" === input.value.type) - return (() => { + (() => { // 1 -> ObjectUnionExplicitPointer.Discriminator<"point", ObjectUnionExplicitPointer.IPoint>; writer.uint32(10); writer.fork(); @@ -359,7 +359,7 @@ export const test_protobuf_createDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("line" === input.value.type) - return (() => { + (() => { // 2 -> ObjectUnionExplicitPointer.Discriminator<"line", ObjectUnionExplicitPointer.ILine>; writer.uint32(18); writer.fork(); @@ -367,7 +367,7 @@ export const test_protobuf_createDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("triangle" === input.value.type) - return (() => { + (() => { // 3 -> ObjectUnionExplicitPointer.Discriminator<"triangle", ObjectUnionExplicitPointer.ITriangle>; writer.uint32(26); writer.fork(); @@ -375,7 +375,7 @@ export const test_protobuf_createDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("rectangle" === input.value.type) - return (() => { + (() => { // 4 -> ObjectUnionExplicitPointer.Discriminator<"rectangle", ObjectUnionExplicitPointer.IRectangle>; writer.uint32(34); writer.fork(); @@ -383,7 +383,7 @@ export const test_protobuf_createDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("polyline" === input.value.type) - return (() => { + (() => { // 5 -> ObjectUnionExplicitPointer.Discriminator<"polyline", ObjectUnionExplicitPointer.IPolyline>; writer.uint32(42); writer.fork(); @@ -391,7 +391,7 @@ export const test_protobuf_createDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("polygon" === input.value.type) - return (() => { + (() => { // 6 -> ObjectUnionExplicitPointer.Discriminator<"polygon", ObjectUnionExplicitPointer.IPolygon>; writer.uint32(50); writer.fork(); @@ -399,7 +399,7 @@ export const test_protobuf_createDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("circle" === input.value.type) - return (() => { + (() => { // 7 -> ObjectUnionExplicitPointer.Discriminator<"circle", ObjectUnionExplicitPointer.ICircle>; writer.uint32(58); writer.fork(); diff --git a/test/src/generated/output/protobuf.encode/test_protobuf_encode_ArrayRecursiveUnionExplicitPointer.ts b/test/src/generated/output/protobuf.encode/test_protobuf_encode_ArrayRecursiveUnionExplicitPointer.ts index 57ac735189..d1dcda9680 100644 --- a/test/src/generated/output/protobuf.encode/test_protobuf_encode_ArrayRecursiveUnionExplicitPointer.ts +++ b/test/src/generated/output/protobuf.encode/test_protobuf_encode_ArrayRecursiveUnionExplicitPointer.ts @@ -28,7 +28,7 @@ export const test_protobuf_createEncode_ArrayRecursiveUnionExplicitPointer = const $peo1 = (input: any): any => { // property "value"; if ("directory" === input.value.type) - return (() => { + (() => { // 1 -> ArrayRecursiveUnionExplicitPointer.IDirectory; writer.uint32(10); writer.fork(); @@ -36,7 +36,7 @@ export const test_protobuf_createEncode_ArrayRecursiveUnionExplicitPointer = writer.ldelim(); })(); else if ("jpg" === input.value.extension) - return (() => { + (() => { // 2 -> ArrayRecursiveUnionExplicitPointer.IImageFile; writer.uint32(18); writer.fork(); @@ -44,7 +44,7 @@ export const test_protobuf_createEncode_ArrayRecursiveUnionExplicitPointer = writer.ldelim(); })(); else if ("txt" === input.value.extension) - return (() => { + (() => { // 3 -> ArrayRecursiveUnionExplicitPointer.ITextFile; writer.uint32(26); writer.fork(); @@ -52,7 +52,7 @@ export const test_protobuf_createEncode_ArrayRecursiveUnionExplicitPointer = writer.ldelim(); })(); else if ("zip" === input.value.extension) - return (() => { + (() => { // 4 -> ArrayRecursiveUnionExplicitPointer.IZipFile; writer.uint32(34); writer.fork(); @@ -60,7 +60,7 @@ export const test_protobuf_createEncode_ArrayRecursiveUnionExplicitPointer = writer.ldelim(); })(); else if ("lnk" === input.value.extension) - return (() => { + (() => { // 5 -> ArrayRecursiveUnionExplicitPointer.IShortcut; writer.uint32(42); writer.fork(); diff --git a/test/src/generated/output/protobuf.encode/test_protobuf_encode_ObjectNullable.ts b/test/src/generated/output/protobuf.encode/test_protobuf_encode_ObjectNullable.ts index 5790702758..f4e623e9c2 100644 --- a/test/src/generated/output/protobuf.encode/test_protobuf_encode_ObjectNullable.ts +++ b/test/src/generated/output/protobuf.encode/test_protobuf_encode_ObjectNullable.ts @@ -45,7 +45,7 @@ export const test_protobuf_createEncode_ObjectNullable = _test_protobuf_encode( // property "similar"; if (null !== input.similar) { if ("brand" === input.similar.type) - return (() => { + (() => { // 4 -> ObjectNullable.IBrand; writer.uint32(34); writer.fork(); @@ -53,7 +53,7 @@ export const test_protobuf_createEncode_ObjectNullable = _test_protobuf_encode( writer.ldelim(); })(); else if ("manufacturer" === input.similar.type) - return (() => { + (() => { // 5 -> ObjectNullable.IManufacturer; writer.uint32(42); writer.fork(); diff --git a/test/src/generated/output/protobuf.encode/test_protobuf_encode_ObjectUnionCompositePointer.ts b/test/src/generated/output/protobuf.encode/test_protobuf_encode_ObjectUnionCompositePointer.ts index d60f54719d..fcec6db743 100644 --- a/test/src/generated/output/protobuf.encode/test_protobuf_encode_ObjectUnionCompositePointer.ts +++ b/test/src/generated/output/protobuf.encode/test_protobuf_encode_ObjectUnionCompositePointer.ts @@ -27,7 +27,7 @@ export const test_protobuf_createEncode_ObjectUnionCompositePointer = const $peo1 = (input: any): any => { // property "value"; if (undefined !== input.value.x) - return (() => { + (() => { // 1 -> ObjectUnionCompositePointer.IPoint; writer.uint32(10); writer.fork(); @@ -35,7 +35,7 @@ export const test_protobuf_createEncode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.p4) - return (() => { + (() => { // 4 -> ObjectUnionCompositePointer.IRectangle; writer.uint32(34); writer.fork(); @@ -43,7 +43,7 @@ export const test_protobuf_createEncode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.points) - return (() => { + (() => { // 5 -> ObjectUnionCompositePointer.IPolyline; writer.uint32(42); writer.fork(); @@ -57,7 +57,7 @@ export const test_protobuf_createEncode_ObjectUnionCompositePointer = "object" === typeof elem && null !== elem && $io2(elem), ) ) - return (() => { + (() => { // 6 -> ObjectUnionCompositePointer.IPointedShape; writer.uint32(50); writer.fork(); @@ -69,7 +69,7 @@ export const test_protobuf_createEncode_ObjectUnionCompositePointer = null !== input.value.outer && $io6(input.value.outer) ) - return (() => { + (() => { // 7 -> ObjectUnionCompositePointer.IPolygon; writer.uint32(58); writer.fork(); @@ -77,7 +77,7 @@ export const test_protobuf_createEncode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.centroid) - return (() => { + (() => { // 8 -> ObjectUnionCompositePointer.ICircle; writer.uint32(66); writer.fork(); @@ -85,9 +85,9 @@ export const test_protobuf_createEncode_ObjectUnionCompositePointer = writer.ldelim(); })(); else - return (() => { + (() => { if (undefined !== input.value.p3) - return (() => { + (() => { // 3 -> ObjectUnionCompositePointer.ITriangle; writer.uint32(26); writer.fork(); @@ -95,7 +95,7 @@ export const test_protobuf_createEncode_ObjectUnionCompositePointer = writer.ldelim(); })(); else - return (() => { + (() => { // 2 -> ObjectUnionCompositePointer.ILine; writer.uint32(18); writer.fork(); diff --git a/test/src/generated/output/protobuf.encode/test_protobuf_encode_ObjectUnionExplicitPointer.ts b/test/src/generated/output/protobuf.encode/test_protobuf_encode_ObjectUnionExplicitPointer.ts index 633b1871c5..365679fd61 100644 --- a/test/src/generated/output/protobuf.encode/test_protobuf_encode_ObjectUnionExplicitPointer.ts +++ b/test/src/generated/output/protobuf.encode/test_protobuf_encode_ObjectUnionExplicitPointer.ts @@ -28,7 +28,7 @@ export const test_protobuf_createEncode_ObjectUnionExplicitPointer = const $peo1 = (input: any): any => { // property "value"; if ("point" === input.value.type) - return (() => { + (() => { // 1 -> ObjectUnionExplicitPointer.Discriminator<"point", ObjectUnionExplicitPointer.IPoint>; writer.uint32(10); writer.fork(); @@ -36,7 +36,7 @@ export const test_protobuf_createEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("line" === input.value.type) - return (() => { + (() => { // 2 -> ObjectUnionExplicitPointer.Discriminator<"line", ObjectUnionExplicitPointer.ILine>; writer.uint32(18); writer.fork(); @@ -44,7 +44,7 @@ export const test_protobuf_createEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("triangle" === input.value.type) - return (() => { + (() => { // 3 -> ObjectUnionExplicitPointer.Discriminator<"triangle", ObjectUnionExplicitPointer.ITriangle>; writer.uint32(26); writer.fork(); @@ -52,7 +52,7 @@ export const test_protobuf_createEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("rectangle" === input.value.type) - return (() => { + (() => { // 4 -> ObjectUnionExplicitPointer.Discriminator<"rectangle", ObjectUnionExplicitPointer.IRectangle>; writer.uint32(34); writer.fork(); @@ -60,7 +60,7 @@ export const test_protobuf_createEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("polyline" === input.value.type) - return (() => { + (() => { // 5 -> ObjectUnionExplicitPointer.Discriminator<"polyline", ObjectUnionExplicitPointer.IPolyline>; writer.uint32(42); writer.fork(); @@ -68,7 +68,7 @@ export const test_protobuf_createEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("polygon" === input.value.type) - return (() => { + (() => { // 6 -> ObjectUnionExplicitPointer.Discriminator<"polygon", ObjectUnionExplicitPointer.IPolygon>; writer.uint32(50); writer.fork(); @@ -76,7 +76,7 @@ export const test_protobuf_createEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("circle" === input.value.type) - return (() => { + (() => { // 7 -> ObjectUnionExplicitPointer.Discriminator<"circle", ObjectUnionExplicitPointer.ICircle>; writer.uint32(58); writer.fork(); diff --git a/test/src/generated/output/protobuf.isDecode/test_protobuf_isDecode_ArrayRecursiveUnionExplicitPointer.ts b/test/src/generated/output/protobuf.isDecode/test_protobuf_isDecode_ArrayRecursiveUnionExplicitPointer.ts index 771269567b..aa7694cc9c 100644 --- a/test/src/generated/output/protobuf.isDecode/test_protobuf_isDecode_ArrayRecursiveUnionExplicitPointer.ts +++ b/test/src/generated/output/protobuf.isDecode/test_protobuf_isDecode_ArrayRecursiveUnionExplicitPointer.ts @@ -416,7 +416,7 @@ export const test_protobuf_createIsDecode_ArrayRecursiveUnionExplicitPointer = const $peo1 = (input: any): any => { // property "value"; if ("directory" === input.value.type) - return (() => { + (() => { // 1 -> ArrayRecursiveUnionExplicitPointer.IDirectory; writer.uint32(10); writer.fork(); @@ -424,7 +424,7 @@ export const test_protobuf_createIsDecode_ArrayRecursiveUnionExplicitPointer = writer.ldelim(); })(); else if ("jpg" === input.value.extension) - return (() => { + (() => { // 2 -> ArrayRecursiveUnionExplicitPointer.IImageFile; writer.uint32(18); writer.fork(); @@ -432,7 +432,7 @@ export const test_protobuf_createIsDecode_ArrayRecursiveUnionExplicitPointer = writer.ldelim(); })(); else if ("txt" === input.value.extension) - return (() => { + (() => { // 3 -> ArrayRecursiveUnionExplicitPointer.ITextFile; writer.uint32(26); writer.fork(); @@ -440,7 +440,7 @@ export const test_protobuf_createIsDecode_ArrayRecursiveUnionExplicitPointer = writer.ldelim(); })(); else if ("zip" === input.value.extension) - return (() => { + (() => { // 4 -> ArrayRecursiveUnionExplicitPointer.IZipFile; writer.uint32(34); writer.fork(); @@ -448,7 +448,7 @@ export const test_protobuf_createIsDecode_ArrayRecursiveUnionExplicitPointer = writer.ldelim(); })(); else if ("lnk" === input.value.extension) - return (() => { + (() => { // 5 -> ArrayRecursiveUnionExplicitPointer.IShortcut; writer.uint32(42); writer.fork(); diff --git a/test/src/generated/output/protobuf.isDecode/test_protobuf_isDecode_ObjectNullable.ts b/test/src/generated/output/protobuf.isDecode/test_protobuf_isDecode_ObjectNullable.ts index be2147d9aa..ded72e31f2 100644 --- a/test/src/generated/output/protobuf.isDecode/test_protobuf_isDecode_ObjectNullable.ts +++ b/test/src/generated/output/protobuf.isDecode/test_protobuf_isDecode_ObjectNullable.ts @@ -191,7 +191,7 @@ export const test_protobuf_createIsDecode_ObjectNullable = // property "similar"; if (null !== input.similar) { if ("brand" === input.similar.type) - return (() => { + (() => { // 4 -> ObjectNullable.IBrand; writer.uint32(34); writer.fork(); @@ -199,7 +199,7 @@ export const test_protobuf_createIsDecode_ObjectNullable = writer.ldelim(); })(); else if ("manufacturer" === input.similar.type) - return (() => { + (() => { // 5 -> ObjectNullable.IManufacturer; writer.uint32(42); writer.fork(); diff --git a/test/src/generated/output/protobuf.isDecode/test_protobuf_isDecode_ObjectUnionCompositePointer.ts b/test/src/generated/output/protobuf.isDecode/test_protobuf_isDecode_ObjectUnionCompositePointer.ts index d353ea4352..ba4f0363fe 100644 --- a/test/src/generated/output/protobuf.isDecode/test_protobuf_isDecode_ObjectUnionCompositePointer.ts +++ b/test/src/generated/output/protobuf.isDecode/test_protobuf_isDecode_ObjectUnionCompositePointer.ts @@ -446,7 +446,7 @@ export const test_protobuf_createIsDecode_ObjectUnionCompositePointer = const $peo1 = (input: any): any => { // property "value"; if (undefined !== input.value.x) - return (() => { + (() => { // 1 -> ObjectUnionCompositePointer.IPoint; writer.uint32(10); writer.fork(); @@ -454,7 +454,7 @@ export const test_protobuf_createIsDecode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.p4) - return (() => { + (() => { // 4 -> ObjectUnionCompositePointer.IRectangle; writer.uint32(34); writer.fork(); @@ -462,7 +462,7 @@ export const test_protobuf_createIsDecode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.points) - return (() => { + (() => { // 5 -> ObjectUnionCompositePointer.IPolyline; writer.uint32(42); writer.fork(); @@ -476,7 +476,7 @@ export const test_protobuf_createIsDecode_ObjectUnionCompositePointer = "object" === typeof elem && null !== elem && $io2(elem), ) ) - return (() => { + (() => { // 6 -> ObjectUnionCompositePointer.IPointedShape; writer.uint32(50); writer.fork(); @@ -488,7 +488,7 @@ export const test_protobuf_createIsDecode_ObjectUnionCompositePointer = null !== input.value.outer && $io6(input.value.outer) ) - return (() => { + (() => { // 7 -> ObjectUnionCompositePointer.IPolygon; writer.uint32(58); writer.fork(); @@ -496,7 +496,7 @@ export const test_protobuf_createIsDecode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.centroid) - return (() => { + (() => { // 8 -> ObjectUnionCompositePointer.ICircle; writer.uint32(66); writer.fork(); @@ -504,9 +504,9 @@ export const test_protobuf_createIsDecode_ObjectUnionCompositePointer = writer.ldelim(); })(); else - return (() => { + (() => { if (undefined !== input.value.p3) - return (() => { + (() => { // 3 -> ObjectUnionCompositePointer.ITriangle; writer.uint32(26); writer.fork(); @@ -514,7 +514,7 @@ export const test_protobuf_createIsDecode_ObjectUnionCompositePointer = writer.ldelim(); })(); else - return (() => { + (() => { // 2 -> ObjectUnionCompositePointer.ILine; writer.uint32(18); writer.fork(); diff --git a/test/src/generated/output/protobuf.isDecode/test_protobuf_isDecode_ObjectUnionExplicitPointer.ts b/test/src/generated/output/protobuf.isDecode/test_protobuf_isDecode_ObjectUnionExplicitPointer.ts index bea7af11fb..3cc31b5dc0 100644 --- a/test/src/generated/output/protobuf.isDecode/test_protobuf_isDecode_ObjectUnionExplicitPointer.ts +++ b/test/src/generated/output/protobuf.isDecode/test_protobuf_isDecode_ObjectUnionExplicitPointer.ts @@ -488,7 +488,7 @@ export const test_protobuf_createIsDecode_ObjectUnionExplicitPointer = const $peo1 = (input: any): any => { // property "value"; if ("point" === input.value.type) - return (() => { + (() => { // 1 -> ObjectUnionExplicitPointer.Discriminator<"point", ObjectUnionExplicitPointer.IPoint>; writer.uint32(10); writer.fork(); @@ -496,7 +496,7 @@ export const test_protobuf_createIsDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("line" === input.value.type) - return (() => { + (() => { // 2 -> ObjectUnionExplicitPointer.Discriminator<"line", ObjectUnionExplicitPointer.ILine>; writer.uint32(18); writer.fork(); @@ -504,7 +504,7 @@ export const test_protobuf_createIsDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("triangle" === input.value.type) - return (() => { + (() => { // 3 -> ObjectUnionExplicitPointer.Discriminator<"triangle", ObjectUnionExplicitPointer.ITriangle>; writer.uint32(26); writer.fork(); @@ -512,7 +512,7 @@ export const test_protobuf_createIsDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("rectangle" === input.value.type) - return (() => { + (() => { // 4 -> ObjectUnionExplicitPointer.Discriminator<"rectangle", ObjectUnionExplicitPointer.IRectangle>; writer.uint32(34); writer.fork(); @@ -520,7 +520,7 @@ export const test_protobuf_createIsDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("polyline" === input.value.type) - return (() => { + (() => { // 5 -> ObjectUnionExplicitPointer.Discriminator<"polyline", ObjectUnionExplicitPointer.IPolyline>; writer.uint32(42); writer.fork(); @@ -528,7 +528,7 @@ export const test_protobuf_createIsDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("polygon" === input.value.type) - return (() => { + (() => { // 6 -> ObjectUnionExplicitPointer.Discriminator<"polygon", ObjectUnionExplicitPointer.IPolygon>; writer.uint32(50); writer.fork(); @@ -536,7 +536,7 @@ export const test_protobuf_createIsDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("circle" === input.value.type) - return (() => { + (() => { // 7 -> ObjectUnionExplicitPointer.Discriminator<"circle", ObjectUnionExplicitPointer.ICircle>; writer.uint32(58); writer.fork(); diff --git a/test/src/generated/output/protobuf.isEncode/test_protobuf_isEncode_ArrayRecursiveUnionExplicitPointer.ts b/test/src/generated/output/protobuf.isEncode/test_protobuf_isEncode_ArrayRecursiveUnionExplicitPointer.ts index 8ada1100fd..f485465016 100644 --- a/test/src/generated/output/protobuf.isEncode/test_protobuf_isEncode_ArrayRecursiveUnionExplicitPointer.ts +++ b/test/src/generated/output/protobuf.isEncode/test_protobuf_isEncode_ArrayRecursiveUnionExplicitPointer.ts @@ -111,7 +111,7 @@ export const test_protobuf_createIsEncode_ArrayRecursiveUnionExplicitPointer = const $peo1 = (input: any): any => { // property "value"; if ("directory" === input.value.type) - return (() => { + (() => { // 1 -> ArrayRecursiveUnionExplicitPointer.IDirectory; writer.uint32(10); writer.fork(); @@ -119,7 +119,7 @@ export const test_protobuf_createIsEncode_ArrayRecursiveUnionExplicitPointer = writer.ldelim(); })(); else if ("jpg" === input.value.extension) - return (() => { + (() => { // 2 -> ArrayRecursiveUnionExplicitPointer.IImageFile; writer.uint32(18); writer.fork(); @@ -127,7 +127,7 @@ export const test_protobuf_createIsEncode_ArrayRecursiveUnionExplicitPointer = writer.ldelim(); })(); else if ("txt" === input.value.extension) - return (() => { + (() => { // 3 -> ArrayRecursiveUnionExplicitPointer.ITextFile; writer.uint32(26); writer.fork(); @@ -135,7 +135,7 @@ export const test_protobuf_createIsEncode_ArrayRecursiveUnionExplicitPointer = writer.ldelim(); })(); else if ("zip" === input.value.extension) - return (() => { + (() => { // 4 -> ArrayRecursiveUnionExplicitPointer.IZipFile; writer.uint32(34); writer.fork(); @@ -143,7 +143,7 @@ export const test_protobuf_createIsEncode_ArrayRecursiveUnionExplicitPointer = writer.ldelim(); })(); else if ("lnk" === input.value.extension) - return (() => { + (() => { // 5 -> ArrayRecursiveUnionExplicitPointer.IShortcut; writer.uint32(42); writer.fork(); diff --git a/test/src/generated/output/protobuf.isEncode/test_protobuf_isEncode_ObjectNullable.ts b/test/src/generated/output/protobuf.isEncode/test_protobuf_isEncode_ObjectNullable.ts index 3f0bc15714..627d108fbe 100644 --- a/test/src/generated/output/protobuf.isEncode/test_protobuf_isEncode_ObjectNullable.ts +++ b/test/src/generated/output/protobuf.isEncode/test_protobuf_isEncode_ObjectNullable.ts @@ -77,7 +77,7 @@ export const test_protobuf_createIsEncode_ObjectNullable = // property "similar"; if (null !== input.similar) { if ("brand" === input.similar.type) - return (() => { + (() => { // 4 -> ObjectNullable.IBrand; writer.uint32(34); writer.fork(); @@ -85,7 +85,7 @@ export const test_protobuf_createIsEncode_ObjectNullable = writer.ldelim(); })(); else if ("manufacturer" === input.similar.type) - return (() => { + (() => { // 5 -> ObjectNullable.IManufacturer; writer.uint32(42); writer.fork(); diff --git a/test/src/generated/output/protobuf.isEncode/test_protobuf_isEncode_ObjectUnionCompositePointer.ts b/test/src/generated/output/protobuf.isEncode/test_protobuf_isEncode_ObjectUnionCompositePointer.ts index f8929b5303..0ac15dffcc 100644 --- a/test/src/generated/output/protobuf.isEncode/test_protobuf_isEncode_ObjectUnionCompositePointer.ts +++ b/test/src/generated/output/protobuf.isEncode/test_protobuf_isEncode_ObjectUnionCompositePointer.ts @@ -165,7 +165,7 @@ export const test_protobuf_createIsEncode_ObjectUnionCompositePointer = const $peo1 = (input: any): any => { // property "value"; if (undefined !== input.value.x) - return (() => { + (() => { // 1 -> ObjectUnionCompositePointer.IPoint; writer.uint32(10); writer.fork(); @@ -173,7 +173,7 @@ export const test_protobuf_createIsEncode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.p4) - return (() => { + (() => { // 4 -> ObjectUnionCompositePointer.IRectangle; writer.uint32(34); writer.fork(); @@ -181,7 +181,7 @@ export const test_protobuf_createIsEncode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.points) - return (() => { + (() => { // 5 -> ObjectUnionCompositePointer.IPolyline; writer.uint32(42); writer.fork(); @@ -195,7 +195,7 @@ export const test_protobuf_createIsEncode_ObjectUnionCompositePointer = "object" === typeof elem && null !== elem && $io2(elem), ) ) - return (() => { + (() => { // 6 -> ObjectUnionCompositePointer.IPointedShape; writer.uint32(50); writer.fork(); @@ -207,7 +207,7 @@ export const test_protobuf_createIsEncode_ObjectUnionCompositePointer = null !== input.value.outer && $io6(input.value.outer) ) - return (() => { + (() => { // 7 -> ObjectUnionCompositePointer.IPolygon; writer.uint32(58); writer.fork(); @@ -215,7 +215,7 @@ export const test_protobuf_createIsEncode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.centroid) - return (() => { + (() => { // 8 -> ObjectUnionCompositePointer.ICircle; writer.uint32(66); writer.fork(); @@ -223,9 +223,9 @@ export const test_protobuf_createIsEncode_ObjectUnionCompositePointer = writer.ldelim(); })(); else - return (() => { + (() => { if (undefined !== input.value.p3) - return (() => { + (() => { // 3 -> ObjectUnionCompositePointer.ITriangle; writer.uint32(26); writer.fork(); @@ -233,7 +233,7 @@ export const test_protobuf_createIsEncode_ObjectUnionCompositePointer = writer.ldelim(); })(); else - return (() => { + (() => { // 2 -> ObjectUnionCompositePointer.ILine; writer.uint32(18); writer.fork(); diff --git a/test/src/generated/output/protobuf.isEncode/test_protobuf_isEncode_ObjectUnionExplicitPointer.ts b/test/src/generated/output/protobuf.isEncode/test_protobuf_isEncode_ObjectUnionExplicitPointer.ts index 8faeba966b..5d56543ec6 100644 --- a/test/src/generated/output/protobuf.isEncode/test_protobuf_isEncode_ObjectUnionExplicitPointer.ts +++ b/test/src/generated/output/protobuf.isEncode/test_protobuf_isEncode_ObjectUnionExplicitPointer.ts @@ -157,7 +157,7 @@ export const test_protobuf_createIsEncode_ObjectUnionExplicitPointer = const $peo1 = (input: any): any => { // property "value"; if ("point" === input.value.type) - return (() => { + (() => { // 1 -> ObjectUnionExplicitPointer.Discriminator<"point", ObjectUnionExplicitPointer.IPoint>; writer.uint32(10); writer.fork(); @@ -165,7 +165,7 @@ export const test_protobuf_createIsEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("line" === input.value.type) - return (() => { + (() => { // 2 -> ObjectUnionExplicitPointer.Discriminator<"line", ObjectUnionExplicitPointer.ILine>; writer.uint32(18); writer.fork(); @@ -173,7 +173,7 @@ export const test_protobuf_createIsEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("triangle" === input.value.type) - return (() => { + (() => { // 3 -> ObjectUnionExplicitPointer.Discriminator<"triangle", ObjectUnionExplicitPointer.ITriangle>; writer.uint32(26); writer.fork(); @@ -181,7 +181,7 @@ export const test_protobuf_createIsEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("rectangle" === input.value.type) - return (() => { + (() => { // 4 -> ObjectUnionExplicitPointer.Discriminator<"rectangle", ObjectUnionExplicitPointer.IRectangle>; writer.uint32(34); writer.fork(); @@ -189,7 +189,7 @@ export const test_protobuf_createIsEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("polyline" === input.value.type) - return (() => { + (() => { // 5 -> ObjectUnionExplicitPointer.Discriminator<"polyline", ObjectUnionExplicitPointer.IPolyline>; writer.uint32(42); writer.fork(); @@ -197,7 +197,7 @@ export const test_protobuf_createIsEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("polygon" === input.value.type) - return (() => { + (() => { // 6 -> ObjectUnionExplicitPointer.Discriminator<"polygon", ObjectUnionExplicitPointer.IPolygon>; writer.uint32(50); writer.fork(); @@ -205,7 +205,7 @@ export const test_protobuf_createIsEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("circle" === input.value.type) - return (() => { + (() => { // 7 -> ObjectUnionExplicitPointer.Discriminator<"circle", ObjectUnionExplicitPointer.ICircle>; writer.uint32(58); writer.fork(); diff --git a/test/src/generated/output/protobuf.validateDecode/test_protobuf_validateDecode_ArrayRecursiveUnionExplicitPointer.ts b/test/src/generated/output/protobuf.validateDecode/test_protobuf_validateDecode_ArrayRecursiveUnionExplicitPointer.ts index 885e55476c..ad8924528c 100644 --- a/test/src/generated/output/protobuf.validateDecode/test_protobuf_validateDecode_ArrayRecursiveUnionExplicitPointer.ts +++ b/test/src/generated/output/protobuf.validateDecode/test_protobuf_validateDecode_ArrayRecursiveUnionExplicitPointer.ts @@ -831,7 +831,7 @@ export const test_protobuf_createValidateDecode_ArrayRecursiveUnionExplicitPoint const $peo1 = (input: any): any => { // property "value"; if ("directory" === input.value.type) - return (() => { + (() => { // 1 -> ArrayRecursiveUnionExplicitPointer.IDirectory; writer.uint32(10); writer.fork(); @@ -839,7 +839,7 @@ export const test_protobuf_createValidateDecode_ArrayRecursiveUnionExplicitPoint writer.ldelim(); })(); else if ("jpg" === input.value.extension) - return (() => { + (() => { // 2 -> ArrayRecursiveUnionExplicitPointer.IImageFile; writer.uint32(18); writer.fork(); @@ -847,7 +847,7 @@ export const test_protobuf_createValidateDecode_ArrayRecursiveUnionExplicitPoint writer.ldelim(); })(); else if ("txt" === input.value.extension) - return (() => { + (() => { // 3 -> ArrayRecursiveUnionExplicitPointer.ITextFile; writer.uint32(26); writer.fork(); @@ -855,7 +855,7 @@ export const test_protobuf_createValidateDecode_ArrayRecursiveUnionExplicitPoint writer.ldelim(); })(); else if ("zip" === input.value.extension) - return (() => { + (() => { // 4 -> ArrayRecursiveUnionExplicitPointer.IZipFile; writer.uint32(34); writer.fork(); @@ -863,7 +863,7 @@ export const test_protobuf_createValidateDecode_ArrayRecursiveUnionExplicitPoint writer.ldelim(); })(); else if ("lnk" === input.value.extension) - return (() => { + (() => { // 5 -> ArrayRecursiveUnionExplicitPointer.IShortcut; writer.uint32(42); writer.fork(); diff --git a/test/src/generated/output/protobuf.validateDecode/test_protobuf_validateDecode_ObjectNullable.ts b/test/src/generated/output/protobuf.validateDecode/test_protobuf_validateDecode_ObjectNullable.ts index 7f77300a02..5de8fece99 100644 --- a/test/src/generated/output/protobuf.validateDecode/test_protobuf_validateDecode_ObjectNullable.ts +++ b/test/src/generated/output/protobuf.validateDecode/test_protobuf_validateDecode_ObjectNullable.ts @@ -391,7 +391,7 @@ export const test_protobuf_createValidateDecode_ObjectNullable = // property "similar"; if (null !== input.similar) { if ("brand" === input.similar.type) - return (() => { + (() => { // 4 -> ObjectNullable.IBrand; writer.uint32(34); writer.fork(); @@ -399,7 +399,7 @@ export const test_protobuf_createValidateDecode_ObjectNullable = writer.ldelim(); })(); else if ("manufacturer" === input.similar.type) - return (() => { + (() => { // 5 -> ObjectNullable.IManufacturer; writer.uint32(42); writer.fork(); diff --git a/test/src/generated/output/protobuf.validateDecode/test_protobuf_validateDecode_ObjectUnionCompositePointer.ts b/test/src/generated/output/protobuf.validateDecode/test_protobuf_validateDecode_ObjectUnionCompositePointer.ts index 3f4ce4ed3d..b5465c09e3 100644 --- a/test/src/generated/output/protobuf.validateDecode/test_protobuf_validateDecode_ObjectUnionCompositePointer.ts +++ b/test/src/generated/output/protobuf.validateDecode/test_protobuf_validateDecode_ObjectUnionCompositePointer.ts @@ -920,7 +920,7 @@ export const test_protobuf_createValidateDecode_ObjectUnionCompositePointer = const $peo1 = (input: any): any => { // property "value"; if (undefined !== input.value.x) - return (() => { + (() => { // 1 -> ObjectUnionCompositePointer.IPoint; writer.uint32(10); writer.fork(); @@ -928,7 +928,7 @@ export const test_protobuf_createValidateDecode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.p4) - return (() => { + (() => { // 4 -> ObjectUnionCompositePointer.IRectangle; writer.uint32(34); writer.fork(); @@ -936,7 +936,7 @@ export const test_protobuf_createValidateDecode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.points) - return (() => { + (() => { // 5 -> ObjectUnionCompositePointer.IPolyline; writer.uint32(42); writer.fork(); @@ -950,7 +950,7 @@ export const test_protobuf_createValidateDecode_ObjectUnionCompositePointer = "object" === typeof elem && null !== elem && $io2(elem), ) ) - return (() => { + (() => { // 6 -> ObjectUnionCompositePointer.IPointedShape; writer.uint32(50); writer.fork(); @@ -962,7 +962,7 @@ export const test_protobuf_createValidateDecode_ObjectUnionCompositePointer = null !== input.value.outer && $io6(input.value.outer) ) - return (() => { + (() => { // 7 -> ObjectUnionCompositePointer.IPolygon; writer.uint32(58); writer.fork(); @@ -970,7 +970,7 @@ export const test_protobuf_createValidateDecode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.centroid) - return (() => { + (() => { // 8 -> ObjectUnionCompositePointer.ICircle; writer.uint32(66); writer.fork(); @@ -978,9 +978,9 @@ export const test_protobuf_createValidateDecode_ObjectUnionCompositePointer = writer.ldelim(); })(); else - return (() => { + (() => { if (undefined !== input.value.p3) - return (() => { + (() => { // 3 -> ObjectUnionCompositePointer.ITriangle; writer.uint32(26); writer.fork(); @@ -988,7 +988,7 @@ export const test_protobuf_createValidateDecode_ObjectUnionCompositePointer = writer.ldelim(); })(); else - return (() => { + (() => { // 2 -> ObjectUnionCompositePointer.ILine; writer.uint32(18); writer.fork(); diff --git a/test/src/generated/output/protobuf.validateDecode/test_protobuf_validateDecode_ObjectUnionExplicitPointer.ts b/test/src/generated/output/protobuf.validateDecode/test_protobuf_validateDecode_ObjectUnionExplicitPointer.ts index 362d2ed3f5..bedb80eae6 100644 --- a/test/src/generated/output/protobuf.validateDecode/test_protobuf_validateDecode_ObjectUnionExplicitPointer.ts +++ b/test/src/generated/output/protobuf.validateDecode/test_protobuf_validateDecode_ObjectUnionExplicitPointer.ts @@ -992,7 +992,7 @@ export const test_protobuf_createValidateDecode_ObjectUnionExplicitPointer = const $peo1 = (input: any): any => { // property "value"; if ("point" === input.value.type) - return (() => { + (() => { // 1 -> ObjectUnionExplicitPointer.Discriminator<"point", ObjectUnionExplicitPointer.IPoint>; writer.uint32(10); writer.fork(); @@ -1000,7 +1000,7 @@ export const test_protobuf_createValidateDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("line" === input.value.type) - return (() => { + (() => { // 2 -> ObjectUnionExplicitPointer.Discriminator<"line", ObjectUnionExplicitPointer.ILine>; writer.uint32(18); writer.fork(); @@ -1008,7 +1008,7 @@ export const test_protobuf_createValidateDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("triangle" === input.value.type) - return (() => { + (() => { // 3 -> ObjectUnionExplicitPointer.Discriminator<"triangle", ObjectUnionExplicitPointer.ITriangle>; writer.uint32(26); writer.fork(); @@ -1016,7 +1016,7 @@ export const test_protobuf_createValidateDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("rectangle" === input.value.type) - return (() => { + (() => { // 4 -> ObjectUnionExplicitPointer.Discriminator<"rectangle", ObjectUnionExplicitPointer.IRectangle>; writer.uint32(34); writer.fork(); @@ -1024,7 +1024,7 @@ export const test_protobuf_createValidateDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("polyline" === input.value.type) - return (() => { + (() => { // 5 -> ObjectUnionExplicitPointer.Discriminator<"polyline", ObjectUnionExplicitPointer.IPolyline>; writer.uint32(42); writer.fork(); @@ -1032,7 +1032,7 @@ export const test_protobuf_createValidateDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("polygon" === input.value.type) - return (() => { + (() => { // 6 -> ObjectUnionExplicitPointer.Discriminator<"polygon", ObjectUnionExplicitPointer.IPolygon>; writer.uint32(50); writer.fork(); @@ -1040,7 +1040,7 @@ export const test_protobuf_createValidateDecode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("circle" === input.value.type) - return (() => { + (() => { // 7 -> ObjectUnionExplicitPointer.Discriminator<"circle", ObjectUnionExplicitPointer.ICircle>; writer.uint32(58); writer.fork(); diff --git a/test/src/generated/output/protobuf.validateEncode/test_protobuf_validateEncode_ArrayRecursiveUnionExplicitPointer.ts b/test/src/generated/output/protobuf.validateEncode/test_protobuf_validateEncode_ArrayRecursiveUnionExplicitPointer.ts index d9af6962c3..e893577adc 100644 --- a/test/src/generated/output/protobuf.validateEncode/test_protobuf_validateEncode_ArrayRecursiveUnionExplicitPointer.ts +++ b/test/src/generated/output/protobuf.validateEncode/test_protobuf_validateEncode_ArrayRecursiveUnionExplicitPointer.ts @@ -527,7 +527,7 @@ export const test_protobuf_createValidateEncode_ArrayRecursiveUnionExplicitPoint const $peo1 = (input: any): any => { // property "value"; if ("directory" === input.value.type) - return (() => { + (() => { // 1 -> ArrayRecursiveUnionExplicitPointer.IDirectory; writer.uint32(10); writer.fork(); @@ -535,7 +535,7 @@ export const test_protobuf_createValidateEncode_ArrayRecursiveUnionExplicitPoint writer.ldelim(); })(); else if ("jpg" === input.value.extension) - return (() => { + (() => { // 2 -> ArrayRecursiveUnionExplicitPointer.IImageFile; writer.uint32(18); writer.fork(); @@ -543,7 +543,7 @@ export const test_protobuf_createValidateEncode_ArrayRecursiveUnionExplicitPoint writer.ldelim(); })(); else if ("txt" === input.value.extension) - return (() => { + (() => { // 3 -> ArrayRecursiveUnionExplicitPointer.ITextFile; writer.uint32(26); writer.fork(); @@ -551,7 +551,7 @@ export const test_protobuf_createValidateEncode_ArrayRecursiveUnionExplicitPoint writer.ldelim(); })(); else if ("zip" === input.value.extension) - return (() => { + (() => { // 4 -> ArrayRecursiveUnionExplicitPointer.IZipFile; writer.uint32(34); writer.fork(); @@ -559,7 +559,7 @@ export const test_protobuf_createValidateEncode_ArrayRecursiveUnionExplicitPoint writer.ldelim(); })(); else if ("lnk" === input.value.extension) - return (() => { + (() => { // 5 -> ArrayRecursiveUnionExplicitPointer.IShortcut; writer.uint32(42); writer.fork(); diff --git a/test/src/generated/output/protobuf.validateEncode/test_protobuf_validateEncode_ObjectNullable.ts b/test/src/generated/output/protobuf.validateEncode/test_protobuf_validateEncode_ObjectNullable.ts index 4b5aa64a2e..c5f5c4f4a5 100644 --- a/test/src/generated/output/protobuf.validateEncode/test_protobuf_validateEncode_ObjectNullable.ts +++ b/test/src/generated/output/protobuf.validateEncode/test_protobuf_validateEncode_ObjectNullable.ts @@ -276,7 +276,7 @@ export const test_protobuf_createValidateEncode_ObjectNullable = // property "similar"; if (null !== input.similar) { if ("brand" === input.similar.type) - return (() => { + (() => { // 4 -> ObjectNullable.IBrand; writer.uint32(34); writer.fork(); @@ -284,7 +284,7 @@ export const test_protobuf_createValidateEncode_ObjectNullable = writer.ldelim(); })(); else if ("manufacturer" === input.similar.type) - return (() => { + (() => { // 5 -> ObjectNullable.IManufacturer; writer.uint32(42); writer.fork(); diff --git a/test/src/generated/output/protobuf.validateEncode/test_protobuf_validateEncode_ObjectUnionCompositePointer.ts b/test/src/generated/output/protobuf.validateEncode/test_protobuf_validateEncode_ObjectUnionCompositePointer.ts index 1890cb2e1c..32bef905c0 100644 --- a/test/src/generated/output/protobuf.validateEncode/test_protobuf_validateEncode_ObjectUnionCompositePointer.ts +++ b/test/src/generated/output/protobuf.validateEncode/test_protobuf_validateEncode_ObjectUnionCompositePointer.ts @@ -640,7 +640,7 @@ export const test_protobuf_createValidateEncode_ObjectUnionCompositePointer = const $peo1 = (input: any): any => { // property "value"; if (undefined !== input.value.x) - return (() => { + (() => { // 1 -> ObjectUnionCompositePointer.IPoint; writer.uint32(10); writer.fork(); @@ -648,7 +648,7 @@ export const test_protobuf_createValidateEncode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.p4) - return (() => { + (() => { // 4 -> ObjectUnionCompositePointer.IRectangle; writer.uint32(34); writer.fork(); @@ -656,7 +656,7 @@ export const test_protobuf_createValidateEncode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.points) - return (() => { + (() => { // 5 -> ObjectUnionCompositePointer.IPolyline; writer.uint32(42); writer.fork(); @@ -670,7 +670,7 @@ export const test_protobuf_createValidateEncode_ObjectUnionCompositePointer = "object" === typeof elem && null !== elem && $io2(elem), ) ) - return (() => { + (() => { // 6 -> ObjectUnionCompositePointer.IPointedShape; writer.uint32(50); writer.fork(); @@ -682,7 +682,7 @@ export const test_protobuf_createValidateEncode_ObjectUnionCompositePointer = null !== input.value.outer && $io6(input.value.outer) ) - return (() => { + (() => { // 7 -> ObjectUnionCompositePointer.IPolygon; writer.uint32(58); writer.fork(); @@ -690,7 +690,7 @@ export const test_protobuf_createValidateEncode_ObjectUnionCompositePointer = writer.ldelim(); })(); else if (undefined !== input.value.centroid) - return (() => { + (() => { // 8 -> ObjectUnionCompositePointer.ICircle; writer.uint32(66); writer.fork(); @@ -698,9 +698,9 @@ export const test_protobuf_createValidateEncode_ObjectUnionCompositePointer = writer.ldelim(); })(); else - return (() => { + (() => { if (undefined !== input.value.p3) - return (() => { + (() => { // 3 -> ObjectUnionCompositePointer.ITriangle; writer.uint32(26); writer.fork(); @@ -708,7 +708,7 @@ export const test_protobuf_createValidateEncode_ObjectUnionCompositePointer = writer.ldelim(); })(); else - return (() => { + (() => { // 2 -> ObjectUnionCompositePointer.ILine; writer.uint32(18); writer.fork(); diff --git a/test/src/generated/output/protobuf.validateEncode/test_protobuf_validateEncode_ObjectUnionExplicitPointer.ts b/test/src/generated/output/protobuf.validateEncode/test_protobuf_validateEncode_ObjectUnionExplicitPointer.ts index 676a8df775..4dcaed94a1 100644 --- a/test/src/generated/output/protobuf.validateEncode/test_protobuf_validateEncode_ObjectUnionExplicitPointer.ts +++ b/test/src/generated/output/protobuf.validateEncode/test_protobuf_validateEncode_ObjectUnionExplicitPointer.ts @@ -662,7 +662,7 @@ export const test_protobuf_createValidateEncode_ObjectUnionExplicitPointer = const $peo1 = (input: any): any => { // property "value"; if ("point" === input.value.type) - return (() => { + (() => { // 1 -> ObjectUnionExplicitPointer.Discriminator<"point", ObjectUnionExplicitPointer.IPoint>; writer.uint32(10); writer.fork(); @@ -670,7 +670,7 @@ export const test_protobuf_createValidateEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("line" === input.value.type) - return (() => { + (() => { // 2 -> ObjectUnionExplicitPointer.Discriminator<"line", ObjectUnionExplicitPointer.ILine>; writer.uint32(18); writer.fork(); @@ -678,7 +678,7 @@ export const test_protobuf_createValidateEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("triangle" === input.value.type) - return (() => { + (() => { // 3 -> ObjectUnionExplicitPointer.Discriminator<"triangle", ObjectUnionExplicitPointer.ITriangle>; writer.uint32(26); writer.fork(); @@ -686,7 +686,7 @@ export const test_protobuf_createValidateEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("rectangle" === input.value.type) - return (() => { + (() => { // 4 -> ObjectUnionExplicitPointer.Discriminator<"rectangle", ObjectUnionExplicitPointer.IRectangle>; writer.uint32(34); writer.fork(); @@ -694,7 +694,7 @@ export const test_protobuf_createValidateEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("polyline" === input.value.type) - return (() => { + (() => { // 5 -> ObjectUnionExplicitPointer.Discriminator<"polyline", ObjectUnionExplicitPointer.IPolyline>; writer.uint32(42); writer.fork(); @@ -702,7 +702,7 @@ export const test_protobuf_createValidateEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("polygon" === input.value.type) - return (() => { + (() => { // 6 -> ObjectUnionExplicitPointer.Discriminator<"polygon", ObjectUnionExplicitPointer.IPolygon>; writer.uint32(50); writer.fork(); @@ -710,7 +710,7 @@ export const test_protobuf_createValidateEncode_ObjectUnionExplicitPointer = writer.ldelim(); })(); else if ("circle" === input.value.type) - return (() => { + (() => { // 7 -> ObjectUnionExplicitPointer.Discriminator<"circle", ObjectUnionExplicitPointer.ICircle>; writer.uint32(58); writer.fork(); diff --git a/website/package.json b/website/package.json index ff8ad5f872..eb20845951 100644 --- a/website/package.json +++ b/website/package.json @@ -30,7 +30,7 @@ "nextra-theme-docs": "latest", "react": "^18.2.0", "react-dom": "^18.2.0", - "typescript": "^5.3.2" + "typescript": "^5.3.3" }, "devDependencies": { "@trivago/prettier-plugin-sort-imports": "^4.1.1",