diff --git a/src/Statement.js b/src/Statement.js index c15f896..7bde15e 100644 --- a/src/Statement.js +++ b/src/Statement.js @@ -137,6 +137,9 @@ export default class Statement { return; } + // disregard the `bar` in `class Foo { bar () {...} }` + if ( parent.type === 'MethodDefinition' ) return; + const definingScope = scope.findDefiningScope( node.name ); if ( ( !definingScope || definingScope.depth === 0 ) && !this.defines[ node.name ] ) {