MCPcopy Create free account
hub / github.com/antlr/codebuff / dup

Method dup

src/org/antlr/codebuff/InputDocument.java:26–29  ·  view source on GitHub ↗
(InputDocument old)

Source from the content-addressed store, hash-verified

24 public CodeBuffTokenStream tokens;
25
26 public static InputDocument dup(InputDocument old) throws Exception {
27 // reparse to get new tokens, tree
28 return Tool.parse(old.fileName, old.language);
29 }
30
31 public InputDocument(String fileName, String content, LangDescriptor language) {
32 this.content = content;

Callers 1

formatMethod · 0.95

Calls 1

parseMethod · 0.95

Tested by

no test coverage detected