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

Method load

src/org/antlr/codebuff/Tool.java:279–291  ·  view source on GitHub ↗

Get all file contents into input doc list

(List<String> fileNames, LangDescriptor language)

Source from the content-addressed store, hash-verified

277
278 /** Get all file contents into input doc list */
279 public static List<InputDocument> load(List<String> fileNames, LangDescriptor language)
280 throws Exception
281 {
282 List<InputDocument> documents = new ArrayList<>();
283 for (String fileName : fileNames) {
284 documents.add( parse(fileName, language) );
285 }
286 if ( documents.size()>0 ) {
287 documents.get(0).parser.getInterpreter().clearDFA(); // free up memory
288 }
289
290 return documents;
291 }
292
293 public static String load(String fileName, int tabSize)
294 throws Exception

Callers 10

CorpusMethod · 0.95
formatMethod · 0.95
parseMethod · 0.95
scoreDocumentsMethod · 0.95
validateOneDocumentMethod · 0.95
validateDocumentsMethod · 0.95
mainMethod · 0.95
getMedianErrorRatesMethod · 0.95
setToolVersionMethod · 0.45

Calls 5

parseMethod · 0.95
expandTabsMethod · 0.95
addMethod · 0.65
sizeMethod · 0.65
getMethod · 0.65

Tested by 1

scoreDocumentsMethod · 0.76