mirror of
https://gitee.com/BDWare/common
synced 2025-01-09 17:34:16 +00:00
fix relative path bugs
This commit is contained in:
parent
5598a2ba8c
commit
bc7a54e9ce
@ -135,7 +135,12 @@ public class ContractNode {
|
||||
functionMap.put(fn.functionName, fn);
|
||||
}
|
||||
for (InterfaceNode interfaceNode : contract.interfaceMap.values()) {
|
||||
interfaceMap.put(interfaceNode.functionName, interfaceNode);
|
||||
InterfaceNode oldIntf = interfaceMap.get(interfaceNode.functionName);
|
||||
if (oldIntf == null)
|
||||
interfaceMap.put(interfaceNode.functionName, interfaceNode);
|
||||
else {
|
||||
oldIntf.annotations.addAll(interfaceNode.annotations);
|
||||
}
|
||||
}
|
||||
sharables.addAll(contract.getSharables());
|
||||
clzs.addAll(contract.clzs);
|
||||
|
@ -16,8 +16,6 @@ public class ImportNode {
|
||||
public String getPath() {
|
||||
if (path.startsWith("@"))
|
||||
return path.replaceAll("@", "/.depyjs/");
|
||||
if (!path.startsWith("/"))
|
||||
return "/" + path;
|
||||
return path;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user