| 836 | } |
| 837 | |
| 838 | class FunctionLocationVariable extends Variable { |
| 839 | public readonly location: Cdp.Debugger.Location; |
| 840 | |
| 841 | constructor(context: VariableContext, remoteObject: Cdp.Runtime.RemoteObject) { |
| 842 | super(context, remoteObject); |
| 843 | this.location = remoteObject.value; |
| 844 | } |
| 845 | |
| 846 | public override async toDap(): Promise<Dap.Variable> { |
| 847 | return { |
| 848 | name: this.context.name, |
| 849 | value: await this.context.locationProvider.renderDebuggerLocation(this.location), |
| 850 | variablesReference: 0, |
| 851 | presentationHint: { visibility: 'internal' }, |
| 852 | }; |
| 853 | } |
| 854 | } |
| 855 | |
| 856 | class ErrorVariable extends Variable { |
| 857 | public override get accessor(): string { |
nothing calls this directly
no outgoing calls
no test coverage detected