[ClangAstParser] Reverted ClangNodeParser.toStmt() to previous behavior
of returning null
@@ -72,7 +72,7 @@ public interface ClangNodeParser<T extends ClavaNode> {
*
* <p>
* 1) If the node is of type Expr, encapsulates the node inside a ExprStmt. <br>
- * 2) If the node is of type NullNode, returns NullStmt<br>
+ * 2) If the node is of type NullNode, returns null<br>
* 3) If the node is an Undefined, transforms it into a DummyStmt.
*
* @param clavaNode
@@ -85,7 +85,8 @@ public interface ClangNodeParser<T extends ClavaNode> {
}
if (node instanceof NullNode) {
- return ClavaNodeFactory.nullStmt(node.getInfo());
+ // return ClavaNodeFactory.nullStmt(node.getInfo());
+ return null;
}
return ClavaParserUtils.cast(node, Stmt.class, ClavaNodeFactory::dummyStmt);
