Creates a container for a CDP Scope
(
kind: WasmScope,
variables: readonly IWasmVariable[],
scopeRef: IScopeRef,
)
| 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) { |