(
previewContext: PreviewContextType,
valueFormat?: Dap.ValueFormat,
)
| 891 | } |
| 892 | |
| 893 | public override async toDap( |
| 894 | previewContext: PreviewContextType, |
| 895 | valueFormat?: Dap.ValueFormat, |
| 896 | ): Promise<Dap.Variable> { |
| 897 | const [parentDap, value] = await Promise.all([ |
| 898 | await super.toDap(previewContext, valueFormat), |
| 899 | await this.getValueRepresentation(previewContext), |
| 900 | ]); |
| 901 | |
| 902 | return { |
| 903 | ...parentDap, |
| 904 | type: this.remoteObject.className || this.remoteObject.subtype || this.remoteObject.type, |
| 905 | variablesReference: this.id, |
| 906 | memoryReference: memoryReadableTypes.has(this.remoteObject.subtype) |
| 907 | ? String(this.id) |
| 908 | : undefined, |
| 909 | value, |
| 910 | }; |
| 911 | } |
| 912 | |
| 913 | private async getValueRepresentation(previewContext: PreviewContextType) { |
| 914 | if (typeof this.customStringRepr === 'string') { |
nothing calls this directly
no test coverage detected