Checks a class or module class for export.
Note that non-module Scala classes are never actually exported; their constructors are. However, the checks are performed on the class when the class is annotated.
Generate the exporter for the given DefDef or ValDef.
If this DefDef is a constructor, it is registered to be exported by GenJSCode instead and no trees are returned.