committed by
GitHub
parent
20d2b4f98d
commit
e4f3964f67
11
node_modules/@babel/traverse/lib/path/context.js
generated
vendored
11
node_modules/@babel/traverse/lib/path/context.js
generated
vendored
@ -129,7 +129,11 @@ function stop() {
|
||||
function setScope() {
|
||||
if (this.opts && this.opts.noScope) return;
|
||||
let path = this.parentPath;
|
||||
if (this.key === "key" && path.isMethod()) path = path.parentPath;
|
||||
|
||||
if ((this.key === "key" || this.listKey === "decorators") && path.isMethod()) {
|
||||
path = path.parentPath;
|
||||
}
|
||||
|
||||
let target;
|
||||
|
||||
while (path && !target) {
|
||||
@ -177,7 +181,10 @@ function _resyncParent() {
|
||||
|
||||
function _resyncKey() {
|
||||
if (!this.container) return;
|
||||
if (this.node === this.container[this.key]) return;
|
||||
|
||||
if (this.node === this.container[this.key]) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (Array.isArray(this.container)) {
|
||||
for (let i = 0; i < this.container.length; i++) {
|
||||
|
Reference in New Issue
Block a user