[ClavaLaraApi] Adds ScgNodeData.hasCalls()
+laraImport("weaver.Query");
laraImport("lara.graphs.NodeData");
class ScgNodeData extends NodeData {
@@ -25,4 +26,8 @@ class ScgNodeData extends NodeData {
hasImplementation() {
return this.#function.isImplementation;
}
+
+ hasCalls() {
+ return Query.searchFrom(this.#function, "call").get().length > 0;
+ }
}
