code: def visitValueType(self, ctx: jsgParser.ValueTypeContext):
          
          if ctx.idref():
              self._typeid = as_token(ctx)
          else:
              self.visitChildren(ctx)
docs: valueType: idref | nonRefValueType