Open SandZn opened 1 year ago
Hi, how can I get the parent node when I visit some node on AST? It is now undefined. For example,
visitExpressionStatement: function(node){ console.log(node.parent) console.log(node.parentNode) console.log(node.getParentNode()) }
None of them works.
Hi, how can I get the parent node when I visit some node on AST? It is now undefined. For example,
None of them works.