String source = ioUtils.loadFromClassPath("/test.js");
// String source = "let ({x: x0, y: y0} = point) {\n print(x0);\n print(y0);\n}";
CompilerEnvirons compilerEnv = new CompilerEnvirons();
compilerEnv.setLanguageVersion(180);
Parser parser = new Parser(compilerEnv);
AstRoot astRoot = parser.parse(new StringReader(source), null, 1);
astRoot.visitAll(new InstrumentVisitor());
System.out.println(astRoot.toSource());
// System.out.println("****************************");
//
// source = "label:{\nx++;\nwhile (x) {\n if (x) {\n continue label;\n }\n}}";
// parser = new Parser();
// astRoot = parser.parse(new StringReader(source), null, 1);