summaryrefslogtreecommitdiff
path: root/tools/node_modules/eslint/node_modules/@babel/traverse/lib/scope/binding.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/node_modules/eslint/node_modules/@babel/traverse/lib/scope/binding.js')
-rw-r--r--tools/node_modules/eslint/node_modules/@babel/traverse/lib/scope/binding.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/tools/node_modules/eslint/node_modules/@babel/traverse/lib/scope/binding.js b/tools/node_modules/eslint/node_modules/@babel/traverse/lib/scope/binding.js
index 16498fd403..27e98ae13d 100644
--- a/tools/node_modules/eslint/node_modules/@babel/traverse/lib/scope/binding.js
+++ b/tools/node_modules/eslint/node_modules/@babel/traverse/lib/scope/binding.js
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
-
class Binding {
constructor({
identifier,
@@ -25,8 +24,7 @@ class Binding {
this.scope = scope;
this.path = path;
this.kind = kind;
- if ((kind === "var" || kind === "hoisted") &&
- isDeclaredInLoop(path || (() => {
+ if ((kind === "var" || kind === "hoisted") && isDeclaredInLoop(path || (() => {
throw new Error("Internal Babel error: unreachable ");
})())) {
this.reassign(path);
@@ -47,7 +45,6 @@ class Binding {
this.hasValue = false;
this.value = null;
}
-
reassign(path) {
this.constant = false;
if (this.constantViolations.indexOf(path) !== -1) {
@@ -55,7 +52,6 @@ class Binding {
}
this.constantViolations.push(path);
}
-
reference(path) {
if (this.referencePaths.indexOf(path) !== -1) {
return;
@@ -64,7 +60,6 @@ class Binding {
this.references++;
this.referencePaths.push(path);
}
-
dereference() {
this.references--;
this.referenced = !!this.references;