code: def visitTypeDirective(self, ctx: jsgParser.TypeDirectiveContext):
          
          self._context.directives.append('_CONTEXT.TYPE = "{}"'.format(as_token(ctx.name())))
          self._context.has_typeid = True
          self.visitChildren(ctx)
docs: directive: '.TYPE' name typeExceptions? SEMI