MCPcopy Create free account
hub / github.com/dynjs/dynjs / showAST

Method showAST

src/main/java/org/dynjs/cli/Main.java:122–128  ·  view source on GitHub ↗
(File file)

Source from the content-addressed store, hash-verified

120 }
121
122 private void showAST(File file) {
123 try {
124 getOutputStream().println(runtime.newCompiler().withSource(file).parse().dump(" "));
125 } catch (FileNotFoundException e) {
126 getOutputStream().println("File " + file.getName() + " not found");
127 }
128 }
129
130 private void executeSource(String eval) {
131 executeRunner(runtime.newRunner().withSource( eval));

Callers 1

runMethod · 0.95

Calls 6

getOutputStreamMethod · 0.95
newCompilerMethod · 0.80
dumpMethod · 0.65
parseMethod · 0.45
withSourceMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected