def visitVardecl(self, ctx:MCParser.VardeclContext): return 1 + self.visitMctype(ctx.mctype()) + self.visitIds(ctx.ids())
def visitVardecl(self, ctx: MCParser.VardeclContext): return VarDecl(self.visit(ctx.mctype()), self.visit(ctx.ids())) # return VarDecl object
def visitVardecl(self, ctx: MCParser.VardeclContext): return VarDecl(ctx.mctype().accept(self), ctx.ids().accept(self))
def visitVardecl(self, ctx: MCParser.VardeclContext): lst = ctx.ids().accept(self) typ = ctx.mctype().accept(self) return [VarDecl(typ, i) for i in lst] # return the list of VarDecl objects