Skip to content

Commit 01d38ce

Browse files
mdjermanovicaladdin-add
authored andcommitted
Docs: Remove TDZ scope from the scope manager interface documentation (#12054)
1 parent 1aff8fc commit 01d38ce

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

docs/developer-guide/scope-manager-interface.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ This document was written based on the implementation of [eslint-scope](https://
2828
* `node` (`ASTNode`) ... An AST node to get their scope.
2929
* `inner` (`boolean`) ... If the node has multiple scope, this returns the outermost scope normally. If `inner` is `true` then this returns the innermost scope. Default is `false`.
3030
* **Return type:** `Scope | null`
31-
* **Description:** Get the scope of a given AST node. The gotten scope's `block` property is the node. This method never returns `function-expression-name` scope and `TDZ` scope. If the node does not have their scope, this returns `null`.
31+
* **Description:** Get the scope of a given AST node. The gotten scope's `block` property is the node. This method never returns `function-expression-name` scope. If the node does not have their scope, this returns `null`.
3232

3333
#### getDeclaredVariables(node)
3434

@@ -77,7 +77,7 @@ Those members are defined but not used in ESLint.
7777
#### type
7878

7979
* **Type:** `string`
80-
* **Description:** The type of this scope. This is one of `"block"`, `"catch"`, `"class"`, `"for"`, `"function"`, `"function-expression-name"`, `"global"`, `"module"`, `"switch"`, `"with"`, `"TDZ"`
80+
* **Description:** The type of this scope. This is one of `"block"`, `"catch"`, `"class"`, `"for"`, `"function"`, `"function-expression-name"`, `"global"`, `"module"`, `"switch"`, `"with"`
8181

8282
#### isStrict
8383

@@ -334,7 +334,7 @@ Those members are defined but not used in ESLint.
334334
#### type
335335

336336
* **Type:** `string`
337-
* **Description:** The type of this definition. One of `"CatchClause"`, `"ClassName"`, `"FunctionName"`, `"ImplicitGlobalVariable"`, `"ImportBinding"`, `"Parameter"`, `"TDZ"`, and `"Variable"`.
337+
* **Description:** The type of this definition. One of `"CatchClause"`, `"ClassName"`, `"FunctionName"`, `"ImplicitGlobalVariable"`, `"ImportBinding"`, `"Parameter"`, and `"Variable"`.
338338

339339
#### name
340340

@@ -354,7 +354,6 @@ Those members are defined but not used in ESLint.
354354
| `"ImplicitGlobalVariable"` | `Program`
355355
| `"ImportBinding"` | `ImportSpecifier`, `ImportDefaultSpecifier`, or `ImportNamespaceSpecifier`
356356
| `"Parameter"` | `FunctionDeclaration`, `FunctionExpression`, or `ArrowFunctionExpression`
357-
| `"TDZ"` | ?
358357
| `"Variable"` | `VariableDeclarator`
359358

360359
#### parent
@@ -370,7 +369,6 @@ Those members are defined but not used in ESLint.
370369
| `"ImplicitGlobalVariable"` | `null`
371370
| `"ImportBinding"` | `ImportDeclaration`
372371
| `"Parameter"` | `null`
373-
| `"TDZ"` | `null`
374372
| `"Variable"` | `VariableDeclaration`
375373

376374
### Deprecated members

0 commit comments

Comments
 (0)