From de544da8f314716d70aaa5b93b274e9c36f6bde1 Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Tue, 17 Feb 2015 15:09:18 +0100 Subject: [PATCH] [walker] Understand ParenthesizedExpression nodes Closes #210 --- util/walk.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/walk.js b/util/walk.js index 5a09df7ddc..9dcddaa3e9 100644 --- a/util/walk.js +++ b/util/walk.js @@ -172,7 +172,7 @@ }; base.Statement = skipThrough; base.EmptyStatement = ignore; - base.ExpressionStatement = function(node, st, c) { + base.ExpressionStatement = base.ParenthesizedExpression = function(node, st, c) { c(node.expression, st, "Expression"); }; base.IfStatement = function(node, st, c) {