(assignStmt: (v: string) => string, refState: string)
| 67 | } |
| 68 | |
| 69 | readNoRef(assignStmt: (v: string) => string, refState: string): string { |
| 70 | const result = this.scope.uniqueName("result"); |
| 71 | return ` |
| 72 | ${this.readTypeInfo()} |
| 73 | ${this.builder.getReadContextName()}.incReadDepth(); |
| 74 | let ${result}; |
| 75 | ${this.read(v => `${result} = ${v}`, refState)}; |
| 76 | ${this.builder.getReadContextName()}.decReadDepth(); |
| 77 | ${assignStmt(result)}; |
| 78 | `; |
| 79 | } |
| 80 | |
| 81 | readTypeInfo(): string { |
| 82 | const internalTypeId = this.getInternalTypeId(); |
nothing calls this directly
no test coverage detected