(assignStmt: (v: string) => string, refState: string)
| 189 | abstract read(assignStmt: (v: string) => string, refState: string): string; |
| 190 | |
| 191 | readWithDepth(assignStmt: (v: string) => string, refState: string): string { |
| 192 | const result = this.scope.uniqueName("result"); |
| 193 | return ` |
| 194 | ${this.builder.getReadContextName()}.incReadDepth(); |
| 195 | let ${result}; |
| 196 | ${this.read(v => `${result} = ${v}`, refState)}; |
| 197 | ${this.builder.getReadContextName()}.decReadDepth(); |
| 198 | ${assignStmt(result)}; |
| 199 | `; |
| 200 | } |
| 201 | |
| 202 | readTypeInfo(): string { |
| 203 | const typeId = this.getTypeId(); |
nothing calls this directly
no test coverage detected