diff --git a/src/main/java/org/eolang/jeo/representation/CanonicalXmir.java b/src/main/java/org/eolang/jeo/representation/CanonicalXmir.java index c7e7121b2..9991b2a78 100644 --- a/src/main/java/org/eolang/jeo/representation/CanonicalXmir.java +++ b/src/main/java/org/eolang/jeo/representation/CanonicalXmir.java @@ -23,6 +23,7 @@ */ package org.eolang.jeo.representation; +import com.jcabi.log.Logger; import com.jcabi.xml.XML; import com.jcabi.xml.XMLDocument; import com.yegor256.xsline.Shift; @@ -126,8 +127,18 @@ private String toEo() { * @return Parsed XMIR. * @throws IOException If fails. */ + @SuppressWarnings("PMD.GuardLogStatement") private XML parse(final String eoprog) throws IOException { - return new EoSyntax(this.name, new InputOf(eoprog)).parsed(); + final long start = System.currentTimeMillis(); + final XML parsed = new EoSyntax(this.name, new InputOf(eoprog)).parsed(); + final long end = System.currentTimeMillis(); + Logger.info( + this, + "We need to parse XMIR by using EoSyntax#parsed to make unrolling. The '%s' was parsed in %[ms]s", + this.name, + end - start + ); + return parsed; } /** diff --git a/src/main/resources/org/eolang/parser/add-refs.xsl b/src/main/resources/org/eolang/parser/add-refs.xsl index ffc77a3cc..814396b1a 100644 --- a/src/main/resources/org/eolang/parser/add-refs.xsl +++ b/src/main/resources/org/eolang/parser/add-refs.xsl @@ -22,7 +22,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --> - + + - + + - - - - - - - Duplicate names inside " - - ", the base is " - - " at the line # + + + + Duplicate names inside " + + ", the base is " + + " at the line # + + pointing to + + + , + + < + + /> + at line # - pointing to - - - , - - < - - /> - at line # - - - ; it's internal bug - - - - - Attribute @line is absent at " - - " - - - - - + + ; it's internal bug + + + + Attribute @line is absent at " + + " + + + + + @@ -87,4 +85,27 @@ SOFTWARE. + + + + + + + + + + + + + + + + + + + + + + +