MCPcopy
hub / github.com/antlr/antlr4 / writePS

Method writePS

tool/src/org/antlr/v4/gui/Trees.java:80–94  ·  view source on GitHub ↗
(Tree t, List<String> ruleNames,
							   String fileName,
							   String fontName, int fontSize)

Source from the content-addressed store, hash-verified

78 }
79
80 public static void writePS(Tree t, List<String> ruleNames,
81 String fileName,
82 String fontName, int fontSize)
83 throws IOException
84 {
85 String ps = getPS(t, ruleNames, fontName, fontSize);
86 FileWriter f = new FileWriter(fileName);
87 BufferedWriter bw = new BufferedWriter(f);
88 try {
89 bw.write(ps);
90 }
91 finally {
92 bw.close();
93 }
94 }
95
96 public static void writePS(Tree t, List<String> ruleNames, String fileName)
97 throws IOException

Callers 1

saveMethod · 0.95

Calls 3

getPSMethod · 0.95
writeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected