to parse their source code and ensure it is efficiency executed.
Aside from bugs and errors, dead code sections are eliminated, and the remaining lines are re-written by Closure Compiler and minimized as much as possible by renaming basic symbols or parameters and removing unnecessary elements, such as comments or white spaces. The syntax is verified along with variable references (invalid ones are removed), data types are checked, and common errors are highlighted.
The generous array of functions that Closure Compiler comes with allows you to use additional optimization options based on different assumptions of the compiler. Furthermore, you can create renaming reports to be aware of the new names of the parameters inside the code, enable debugging, change formatting, modify the logging level, select the output language and many more.
However, if you go for the advanced optimization and, therefore, the highest code compression level, you must be aware of the assumptions Closure Compiler makes during parsing. Otherwise, you risk having your code rendered unusable.