Using the javaparser library:
Is there a way to print out a compilation unit and preserve whitespace?
I tried the toString() method on compilationUnit but that throws away newlines.
Seeing as how each ASTNode stores line and column number information, am I just missing the proper method?