MCPcopy Index your code
hub / github.com/microsoft/vscode-js-debug / createWasmScope

Method createWasmScope

src/adapter/variableStore.ts:1644–1668  ·  view source on GitHub ↗

Creates a container for a CDP Scope

(
    kind: WasmScope,
    variables: readonly IWasmVariable[],
    scopeRef: IScopeRef,
  )

Source from the content-addressed store, hash-verified

1642
1643 /** Creates a container for a CDP Scope */
1644 public createWasmScope(
1645 kind: WasmScope,
1646 variables: readonly IWasmVariable[],
1647 scopeRef: IScopeRef,
1648 ): IVariable {
1649 const scope: WasmScopeVariable = new WasmScopeVariable(
1650 new VariableContext(
1651 this.cdp,
1652 undefined,
1653 { name: '' },
1654 this.vars,
1655 this.locationProvider,
1656 () => scope,
1657 this.contextSettings,
1658 this.clientCapabilities,
1659 ),
1660 kind,
1661 variables,
1662 scopeRef,
1663 );
1664
1665 this.vars.add(scope);
1666
1667 return scope;
1668 }
1669
1670 /** Gets whether the variablesReference exists in this store */
1671 public hasVariable(variablesReference: number) {

Callers 1

scopesMethod · 0.80

Calls 1

addMethod · 0.65

Tested by

no test coverage detected