Use `statement.type === CLASS_DECLARATION` instead.

But why do we need to do this? The exports should be accessors (shouldn't they?) so that when someone asks for the export the class declaration should be ready.