public String stripUnnecessaryComments ( String javaContent , AntlrOptions options ) { if ( ! options . isOptimizeCodeQuality ( ) ) { return javaContent ; } javaContent = stripMachineDependentPaths ( javaContent ) ; if ( options . isStripAllComments ( ) ) { javaContent = stripAllComments ( javaContent ) ; } return javaContent ; }
Remove all unnecessary comments from a lexer or parser file