From 1465f1b99830883ae40915e7a0366963f0a70cd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20=C5=A0pan=C4=9Bl?= Date: Mon, 6 Mar 2017 14:31:20 +0100 Subject: [PATCH] Walk into class body as well if it exists (normally undefined). --- lib/ast.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ast.js b/lib/ast.js index cd32ead7..8c1f9d09 100644 --- a/lib/ast.js +++ b/lib/ast.js @@ -1070,6 +1070,9 @@ var AST_Class = DEFNODE("Class", "name extends properties", { if (this.extends) { this.extends._walk(visitor); } + if (this.body) { + walk_body(this, visitor) + } this.properties.forEach(function(prop){ prop._walk(visitor); });