You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/developer-guide/scope-manager-interface.md
+3-5Lines changed: 3 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ This document was written based on the implementation of [eslint-scope](https://
28
28
*`node` (`ASTNode`) ... An AST node to get their scope.
29
29
*`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`.
30
30
***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`.
32
32
33
33
#### getDeclaredVariables(node)
34
34
@@ -77,7 +77,7 @@ Those members are defined but not used in ESLint.
77
77
#### type
78
78
79
79
***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"`
81
81
82
82
#### isStrict
83
83
@@ -334,7 +334,7 @@ Those members are defined but not used in ESLint.
334
334
#### type
335
335
336
336
***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"`.
338
338
339
339
#### name
340
340
@@ -354,7 +354,6 @@ Those members are defined but not used in ESLint.
354
354
| `"ImplicitGlobalVariable"` | `Program`
355
355
| `"ImportBinding"` | `ImportSpecifier`, `ImportDefaultSpecifier`, or `ImportNamespaceSpecifier`
356
356
| `"Parameter"` | `FunctionDeclaration`, `FunctionExpression`, or `ArrowFunctionExpression`
357
-
| `"TDZ"` | ?
358
357
| `"Variable"` | `VariableDeclarator`
359
358
360
359
#### parent
@@ -370,7 +369,6 @@ Those members are defined but not used in ESLint.
0 commit comments