support importNode

This commit is contained in:
CaiHQ
2023-06-06 14:53:36 +08:00
parent c65e459208
commit 7bb99d3da9
3 changed files with 3 additions and 2 deletions

View File

@@ -14,6 +14,8 @@ public class ImportNode {
}
public String getPath() {
if (path.startsWith("@"))
path.replaceAll("@", "/.depyjs/");
return path;
}
}

View File

@@ -119,7 +119,6 @@ public class ContractReader extends YJSParserBaseVisitor<ContractNode> {
// ctx.getSourceInterval()
discoverFunctionDependency(node, contractDelcar);
discoverContractDependency(node, contractDelcar);
return node;
}