Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ private void copyModels() {


// main entry to the analyzer
public void analyze(String path) {
public void loadDir(String path) {
String upath = _.unifyPath(path);
File f = new File(upath);
projectDir = f.isDirectory() ? f.getPath() : f.getParent();
Expand All @@ -114,7 +114,7 @@ public void analyze(String path) {


// main entry to the analyzer (for JSONDump only)
public void analyze(List<String> paths) {
public void loadFile(List<String> paths) {
for (String path : paths) {
loadFileRecursive(path);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public Node getAST(@NotNull String path) {
}

if (node != null) {
serialize(node);
saveToCache(node);
}

return node;
Expand All @@ -127,7 +127,7 @@ public String getCachePath(String md5, String name) {


// package-private for testing
void serialize(@NotNull Node ast) {
void saveToCache(@NotNull Node ast) {
String path = getCachePath(_.getSHA(ast.file), new File(ast.file).getName());
ObjectOutputStream oos = null;
FileOutputStream fos = null;
Expand Down