[gcjx] RFC/RFA: A Simple Pretty-Printer for the AST (WIP)
Ranjit Mathew
rmathew@gmail.com
Sun Oct 9 18:07:00 GMT 2005
On 09 Oct 2005 11:57:01 -0600, Tom Tromey <tromey@redhat.com> wrote:
> >>>>> "Ranjit" == Ranjit Mathew <rmathew@gmail.com> writes:
>
> Ranjit> + modifier_t mods = field->get_modifiers ();
> Ranjit> + if ((mods & ACC_PUBLIC) != 0)
> Ranjit> + out << " PUBLIC";
>
> >> Maybe a helper function to print this stuff?
>
> Ranjit> Of course! I added that.
>
> Actually, for modifiers, why not use model_modifier_list::name()? We
> may need to make this public, but that's no problem.
It seems to return only the first set flag in a modifier_t.
Not something like "PUBLIC STATIC FINAL" if all of
these are set.
Ranjit.
--
Ranjit Mathew Email: rmathew AT gmail DOT com
Bangalore, INDIA. Web: http://ranjitmathew.hostingzero.com/
More information about the Java-patches
mailing list