This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [gcjx] RFC/RFA: A Simple Pretty-Printer for the AST (WIP)


>>>>> "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.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]