Skip to content

Commit

Permalink
Move code
Browse files Browse the repository at this point in the history
  • Loading branch information
xpenatan committed Jul 2, 2023
1 parent fde80aa commit be451be
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ public static void generate(CodeParser wrapper, String sourceDir, String genDir,
JParser jParser = new JParser(sourceD, genD);
processDirectory(jParser, fileSourceDir, fileGenDir, excludes, fileSourceDir);
wrapper.onParseStart(jParser);
parseJavaFiles(jParser, wrapper);
wrapper.onParseEnd(jParser);
System.out.println("********** DONE ***********");
}

private static void parseJavaFiles(JParser jParser, CodeParser wrapper) throws Exception {
for(int i = 0; i < jParser.unitArray.size(); i++) {
JParserItem parserItem = jParser.unitArray.get(i);
String inputPath = parserItem.inputPath;
Expand All @@ -100,8 +106,6 @@ public static void generate(CodeParser wrapper, String sourceDir, String genDir,
}
wrapper.onParseFileEnd(jParser, parserItem);
}
wrapper.onParseEnd(jParser);
System.out.println("********** DONE ***********");
}

private static void processDirectory(JParser jParser, CustomFileDescriptor fileSourceDir, CustomFileDescriptor fileGenDir, String[] excludes, CustomFileDescriptor dir) throws Exception {
Expand Down

0 comments on commit be451be

Please sign in to comment.