mirror of
https://gitee.com/BDWare/cp.git
synced 2025-01-10 09:54:07 +00:00
feat: add isView in FunctionDesp
add FunctionDesp.isView to tell contract manager if the function is view
This commit is contained in:
parent
a8abd53446
commit
3c92f29d63
@ -1065,7 +1065,7 @@ public class ContractProcess {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void finalize() {
|
protected void finalize() {
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDeclaredEvents() {
|
public String getDeclaredEvents() {
|
||||||
@ -1082,7 +1082,7 @@ public class ContractProcess {
|
|||||||
if (fn.isExport() && !fn.functionName.equals("onCreate")) {
|
if (fn.isExport() && !fn.functionName.equals("onCreate")) {
|
||||||
function.add(fn.functionName);
|
function.add(fn.functionName);
|
||||||
FunctionDesp desp =
|
FunctionDesp desp =
|
||||||
new FunctionDesp(fn.functionName, fn.annotations, fn.getRouteInfo());
|
new FunctionDesp(fn.functionName, fn.annotations, fn.getRouteInfo(), fn.isView());
|
||||||
ret.add(desp);
|
ret.add(desp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user