You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
replace walker does not traverse on manually appended nodes.
code:
var s = {'abc': 'cde'};
For example, when traversal enters in ObjectExpression node, it replaces this node and manually appends some other nodes at the parent BlockStatement node of this ObjectExpression node.
var s = {}; // this node is replaced by return from `enter` function
s['abc'] = 'abc'; // this node is appended manually
After that, traversal does not walk on newly added nodes on the current traversal loop in both enter and leave callbacks.
The text was updated successfully, but these errors were encountered:
replace
walker does not traverse on manually appended nodes.code:
For example, when traversal enters in
ObjectExpression
node, it replaces this node and manually appends some other nodes at the parentBlockStatement
node of thisObjectExpression
node.After that, traversal does not walk on newly added nodes on the current traversal loop in both
enter
andleave
callbacks.The text was updated successfully, but these errors were encountered: