MCPcopy
hub / github.com/microsoft/vscode-js-debug / FunctionLocationVariable

Class FunctionLocationVariable

src/adapter/variableStore.ts:838–854  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

836}
837
838class 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
856class ErrorVariable extends Variable {
857 public override get accessor(): string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected