|
|
|
@ -131,16 +131,7 @@ const visitors = {
|
|
|
|
ignore_map.set(node, structuredClone(ignore_stack));
|
|
|
|
ignore_map.set(node, structuredClone(ignore_stack));
|
|
|
|
|
|
|
|
|
|
|
|
const scope = state.scopes.get(node);
|
|
|
|
const scope = state.scopes.get(node);
|
|
|
|
|
|
|
|
next(scope !== undefined && scope !== state.scope ? { ...state, scope } : state);
|
|
|
|
if (scope !== undefined && scope !== state.scope) {
|
|
|
|
|
|
|
|
const child_state = { ...state };
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (scope !== undefined && scope !== state.scope) child_state.scope = scope;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
next(child_state);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
next();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (ignores.length > 0) {
|
|
|
|
if (ignores.length > 0) {
|
|
|
|
pop_ignore();
|
|
|
|
pop_ignore();
|
|
|
|
|