code: def visitObjectDef(self, ctx: jsgParser.ObjectDefContext):
          
          name = as_token(ctx)
          self._context.grammarelts[name] = JSGObjectExpr(self._context, ctx.objectExpr(), name)
docs: objectDef: ID objectExpr