mirror of
https://gitee.com/BDWare/common
synced 2025-01-10 01:44: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);
|
functionMap.put(fn.functionName, fn);
|
||||||
}
|
}
|
||||||
for (InterfaceNode interfaceNode : contract.interfaceMap.values()) {
|
for (InterfaceNode interfaceNode : contract.interfaceMap.values()) {
|
||||||
|
InterfaceNode oldIntf = interfaceMap.get(interfaceNode.functionName);
|
||||||
|
if (oldIntf == null)
|
||||||
interfaceMap.put(interfaceNode.functionName, interfaceNode);
|
interfaceMap.put(interfaceNode.functionName, interfaceNode);
|
||||||
|
else {
|
||||||
|
oldIntf.annotations.addAll(interfaceNode.annotations);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
sharables.addAll(contract.getSharables());
|
sharables.addAll(contract.getSharables());
|
||||||
clzs.addAll(contract.clzs);
|
clzs.addAll(contract.clzs);
|
||||||
|
@ -16,8 +16,6 @@ public class ImportNode {
|
|||||||
public String getPath() {
|
public String getPath() {
|
||||||
if (path.startsWith("@"))
|
if (path.startsWith("@"))
|
||||||
return path.replaceAll("@", "/.depyjs/");
|
return path.replaceAll("@", "/.depyjs/");
|
||||||
if (!path.startsWith("/"))
|
|
||||||
return "/" + path;
|
|
||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user