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

Method Corpus

src/org/antlr/codebuff/Corpus.java:64–71  ·  view source on GitHub ↗
(String rootDir, LangDescriptor language)

Source from the content-addressed store, hash-verified

62 public Map<Token, Pair<Boolean, Integer>> tokenToListInfo;
63
64 public Corpus(String rootDir, LangDescriptor language) throws Exception {
65 this.rootDir = rootDir;
66 this.language = language;
67 if ( documents==null ) {
68 List<String> allFiles = getFilenames(new File(rootDir), language.fileRegex);
69 documents = Tool.load(allFiles, language);
70 }
71 }
72
73 public Corpus(List<InputDocument> documents, LangDescriptor language) {
74 this.documents = documents;

Callers

nothing calls this directly

Calls 2

loadMethod · 0.95
getFilenamesMethod · 0.80

Tested by

no test coverage detected