MCPcopy Index your code
hub / github.com/antlr/codebuff / test4

Method test4

output/java8/1.4.14/STViz.java:509–520  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

507 }
508
509 public static void test4() throws IOException
510 {
511 String templates = "main(t) ::= <<\n"+"hi: <t>\n"+">>\n"+"foo(x,y={hi}) ::= \"<bar(x,y)>\"\n"+"bar(x,y) ::= << <y> >>\n"+"ignore(m) ::= \"<m>\"\n";
512 STGroup group = new STGroupString(templates);
513 ST st = group.getInstanceOf("main");
514 ST foo = group.getInstanceOf("foo");
515 st.add("t", foo);
516 ST ignore = group.getInstanceOf("ignore");
517 ignore.add("m", foo); // embed foo twice!
518 st.inspect();
519 st.render();
520 }
521
522 public static void writeFile(String dir, String fileName, String content) {
523 try {

Callers 1

mainMethod · 0.95

Calls 4

addMethod · 0.95
inspectMethod · 0.95
renderMethod · 0.95
getInstanceOfMethod · 0.45

Tested by

no test coverage detected