throw
The shape of this node is:
IThrowNode IExpressionNode <-- getThrownExpressionNode()
throw new ValueError();
IThrowNode IFunctionCallNode ...
307308309310311312313314315316
//---------------------------------- @Test public void testVisitThrow() { IThrowNode node = (IThrowNode) getNode("throw new Error('foo');", IThrowNode.class); asBlockWalker.visitThrow(node); assertOut("throw new Error('foo')"); }
306307308309310311312313314315
//---------------------------------- @Test public void testVisitThrow() { IThrowNode node = (IThrowNode) getNode("throw new Error('foo');", IThrowNode.class); visitor.visitThrow(node); assertOut("throw new Error('foo')"); }