Walk into class body as well if it exists (normally undefined).
This commit is contained in:
parent
3c2b3aeddb
commit
1465f1b998
|
|
@ -1070,6 +1070,9 @@ var AST_Class = DEFNODE("Class", "name extends properties", {
|
||||||
if (this.extends) {
|
if (this.extends) {
|
||||||
this.extends._walk(visitor);
|
this.extends._walk(visitor);
|
||||||
}
|
}
|
||||||
|
if (this.body) {
|
||||||
|
walk_body(this, visitor)
|
||||||
|
}
|
||||||
this.properties.forEach(function(prop){
|
this.properties.forEach(function(prop){
|
||||||
prop._walk(visitor);
|
prop._walk(visitor);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user