Update metadata

This commit is contained in:
Imran Ismail
2019-09-05 12:08:20 +08:00
parent 6e5c237523
commit 56c04146d7
1454 changed files with 204046 additions and 234789 deletions

View File

@@ -26,6 +26,8 @@ exports._getQueueContexts = _getQueueContexts;
var _index = _interopRequireDefault(require("../index"));
var _index2 = require("./index");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function call(key) {
@@ -61,7 +63,7 @@ function _call(fns) {
}
if (this.node !== node) return true;
if (this.shouldStop || this.shouldSkip || this.removed) return true;
if (this._traverseFlags > 0) return true;
}
return false;
@@ -85,7 +87,7 @@ function visit() {
return false;
}
if (this.call("enter") || this.shouldSkip) {
if (this.shouldSkip || this.call("enter") || this.shouldSkip) {
this.debug("Skip...");
return this.shouldStop;
}
@@ -103,12 +105,15 @@ function skip() {
}
function skipKey(key) {
if (this.skipKeys == null) {
this.skipKeys = {};
}
this.skipKeys[key] = true;
}
function stop() {
this.shouldStop = true;
this.shouldSkip = true;
this._traverseFlags |= _index2.SHOULD_SKIP | _index2.SHOULD_STOP;
}
function setScope() {
@@ -127,10 +132,11 @@ function setScope() {
}
function setContext(context) {
this.shouldSkip = false;
this.shouldStop = false;
this.removed = false;
this.skipKeys = {};
if (this.skipKeys != null) {
this.skipKeys = {};
}
this._traverseFlags = 0;
if (context) {
this.context = context;
@@ -208,9 +214,7 @@ function pushContext(context) {
}
function setup(parentPath, container, listKey, key) {
this.inList = !!listKey;
this.listKey = listKey;
this.parentKey = listKey || key;
this.container = container;
this.parentPath = parentPath || this.parentPath;
this.setKey(key);