eslint-scope
Advanced tools
Comparing version 6.0.0 to 7.0.0
@@ -473,2 +473,10 @@ /* | ||
StaticBlock(node) { | ||
this.scopeManager.__nestClassStaticBlockScope(node); | ||
this.visitChildren(node); | ||
this.close(node); | ||
} | ||
MethodDefinition(node) { | ||
@@ -475,0 +483,0 @@ this.visitProperty(node); |
@@ -31,2 +31,3 @@ /* | ||
ClassFieldInitializerScope, | ||
ClassStaticBlockScope, | ||
ClassScope, | ||
@@ -232,2 +233,6 @@ ForScope, | ||
__nestClassStaticBlockScope(node) { | ||
return this.__nestScope(new ClassStaticBlockScope(this, this.__currentScope, node)); | ||
} | ||
__nestSwitchScope(node) { | ||
@@ -234,0 +239,0 @@ return this.__nestScope(new SwitchScope(this, this.__currentScope, node)); |
@@ -160,3 +160,4 @@ /* | ||
/** | ||
* One of 'module', 'block', 'switch', 'function', 'catch', 'with', 'function', 'class', 'global'. | ||
* One of "global", "module", "function", "function-expression-name", "block", "switch", "catch", "with", "for", | ||
* "class", "class-field-initializer", "class-static-block". | ||
* @member {string} Scope#type | ||
@@ -229,3 +230,9 @@ */ | ||
this.variableScope = | ||
(this.type === "global" || this.type === "function" || this.type === "module" || this.type === "class-field-initializer") ? this : upperScope.variableScope; | ||
this.type === "global" || | ||
this.type === "module" || | ||
this.type === "function" || | ||
this.type === "class-field-initializer" || | ||
this.type === "class-static-block" | ||
? this | ||
: upperScope.variableScope; | ||
@@ -743,2 +750,8 @@ /** | ||
class ClassStaticBlockScope extends Scope { | ||
constructor(scopeManager, upperScope, block) { | ||
super(scopeManager, "class-static-block", upperScope, block, true); | ||
} | ||
} | ||
export { | ||
@@ -756,5 +769,6 @@ Scope, | ||
ClassScope, | ||
ClassFieldInitializerScope | ||
ClassFieldInitializerScope, | ||
ClassStaticBlockScope | ||
}; | ||
/* vim: set sw=4 ts=4 et tw=80 : */ |
@@ -1,3 +0,3 @@ | ||
const version = "6.0.0"; | ||
const version = "7.0.0"; | ||
export default version; |
@@ -14,3 +14,3 @@ { | ||
}, | ||
"version": "6.0.0", | ||
"version": "7.0.0", | ||
"engines": { | ||
@@ -54,5 +54,5 @@ "node": "^12.22.0 || ^14.17.0 || >=16.0.0" | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-release": "^3.1.2", | ||
"eslint-visitor-keys": "^3.0.0", | ||
"espree": "^8.0.0", | ||
"eslint-release": "^3.2.0", | ||
"eslint-visitor-keys": "^3.1.0", | ||
"espree": "^9.0.0", | ||
"mocha": "^9.0.1", | ||
@@ -59,0 +59,0 @@ "npm-license": "^0.3.3", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3769
145662
13