recently ,i am learning using closure-compiler.i looked up the docs of
https://github.com/google/closure-compiler/wiki/Writing-Compiler-Pass.I get that write a simple pass ,and compile it using this command:
bazelisk build //:compiler_uberjar_deploy.jar .then i using the command:java -jar bazel-bin/compiler_unshaded_deploy.jar --js="./filename".
after this,it will parse my js file and run the pass i write.But another question strike me after i see the DataFlowAnalysis.java. I review this code, i guess that it is a dataflow analysis framework, then i also found the MustBeReachingVariableDef.java which using the data framework.after i understand the code ,i hava no way to run it ,like the case that i write the simpile pass.so i post my question here.
how to run the MustBeReachingVariableDef.java to perform the dataflow analysis? is it same as i write simple pass and need me to modify the compile option to run this code ? because i did not find the entry:main function .