com.google.gwt.dev.jjs.impl.SourceGenerationVisitor
Generates Java source from our AST. ToStringGenerationVisitor is for relatively short toString() results, for easy viewing in a debugger. This subclass delves into the bodies of classes, interfaces, and methods to produce the whole source tree. The goal is not to generate the input source tree. Rather, the goal is to produce a set of classes that can be pasted into an enclosing class and compiled with a standard Java compiler. In practice, there are cases that require hand-editting to actually get a full compilation, due to Java's built-in reliance on particular built-in types. Known to be broken: Our generated String, Class, and Throwable are not compatable with the real ones, which breaks string literals, class literals, try/catch/throw, and overrides of Object methods.