[ClavaWeaver] Refactors function into lambda in ClavaAstMethods
@@ -58,7 +58,7 @@ public class ClavaAstMethods extends TreeNodeAstMethods<ClavaNode> {
.filter(child -> !(child instanceof NullNode))
// Process the child, it might be removed if it is transformed
// into null
- .map(ClavaAstMethods::processChild)
+ .map(child -> CHILDREN_PROCESSORS.apply(child))
// Some children might be removed after processChild,
// this is identified by returning null
.filter(child -> child != null)
@@ -140,8 +140,4 @@ public class ClavaAstMethods extends TreeNodeAstMethods<ClavaNode> {
return null;
}
- protected static ClavaNode processChild(ClavaNode child) {
- return CHILDREN_PROCESSORS.apply(child);
- }
-
}
