(accessor: (expr: string) => string, refState: string)
| 572 | } |
| 573 | |
| 574 | read(accessor: (expr: string) => string, refState: string): string { |
| 575 | if (this.isAny()) { |
| 576 | return accessor(`new (${this.builder.getExternal(CollectionAnySerializer.name)})(${this.builder.getWriteContextName()}, ${this.builder.getReadContextName()}).read((result, i, v) => { |
| 577 | ${this.putAccessor("result", "v", "i")}; |
| 578 | }, (len) => ${this.newCollection("len")}, ${refState}); |
| 579 | `); |
| 580 | } |
| 581 | return this.readSpecificType(accessor, refState); |
| 582 | } |
| 583 | } |
| 584 | |
| 585 | CodegenRegistry.registerExternal(CollectionSerializerGenerator); |
no test coverage detected