(options: ScopeOptions = {})
| 27 | declarations: { [key: string]: boolean }; |
| 28 | |
| 29 | constructor(options: ScopeOptions = {}) { |
| 30 | this.parent = options.parent; |
| 31 | this.isBlockScope = !!options.block; |
| 32 | |
| 33 | this.declarations = Object.create(null); |
| 34 | |
| 35 | if (options.params) { |
| 36 | options.params.forEach((param) => { |
| 37 | extractAssignedNames(param).forEach((name) => { |
| 38 | this.declarations[name] = true; |
| 39 | }); |
| 40 | }); |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | addDeclaration(node: estree.Node, isBlockDeclaration: boolean, isVar: boolean): void { |
| 45 | if (!isBlockDeclaration && this.isBlockScope) { |
nothing calls this directly
no test coverage detected