Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/@babel/traverse/lib/path/context.js
rd565449 r0c6b92a 11 11 exports._resyncRemoved = _resyncRemoved; 12 12 exports.call = call; 13 exports.is Blacklisted = exports.isDenylisted = isDenylisted;13 exports.isDenylisted = isDenylisted; 14 14 exports.popContext = popContext; 15 15 exports.pushContext = pushContext; … … 62 62 var _this$opts$denylist; 63 63 const denylist = (_this$opts$denylist = this.opts.denylist) != null ? _this$opts$denylist : this.opts.blacklist; 64 return denylist && denylist.indexOf(this.node.type) > -1; 64 return denylist == null ? void 0 : denylist.includes(this.node.type); 65 } 66 { 67 exports.isBlacklisted = isDenylisted; 65 68 } 66 69 function restoreContext(path, context) { … … 83 86 } 84 87 const currentContext = this.context; 85 if (this.shouldSkip || this.call("enter")) {88 if (this.shouldSkip || call.call(this, "enter")) { 86 89 this.debug("Skip..."); 87 90 return this.shouldStop; … … 91 94 this.shouldStop = (0, _traverseNode.traverseNode)(this.node, this.opts, this.scope, this.state, this, this.skipKeys); 92 95 restoreContext(this, currentContext); 93 this.call("exit");96 call.call(this, "exit"); 94 97 return this.shouldStop; 95 98 } … … 133 136 this.opts = context.opts; 134 137 } 135 this.setScope();138 setScope.call(this); 136 139 return this; 137 140 } … … 155 158 for (let i = 0; i < this.container.length; i++) { 156 159 if (this.container[i] === this.node) { 157 this.setKey(i);160 setKey.call(this, i); 158 161 return; 159 162 } … … 162 165 for (const key of Object.keys(this.container)) { 163 166 if (this.container[key] === this.node) { 164 this.setKey(key);167 setKey.call(this, key); 165 168 return; 166 169 } … … 196 199 this.container = container; 197 200 this.parentPath = parentPath || this.parentPath; 198 this.setKey(key);201 setKey.call(this, key); 199 202 } 200 203 function setKey(key) {
Note:
See TracChangeset
for help on using the changeset viewer.