private static void convertBlock( final Statement stm, final ISyntacticElement elt, final Set<Diagnostic> errors) { Block block = stm.getBlock(); if (block != null) { Expression function = block.getFunction(); if (function != null) { // If it is a function (and not a regular block), we add it as a facet addFacet(elt, FUNCTION, convExpr(function, errors), errors); } else { convStatements(elt, EGaml.getStatementsOf(block), errors); } } }