Is Compat.jl worth it for the `public` keyword?

Is there a way to combine this trick with multiple lines of public declarations?

I get a ParseError on 1.11.0-rc3 when trying

VERSION >= v"1.11.0-DEV.469" && eval(Meta.parse("begin
    public foo
    public bar
end"))