Skip to content

Commit

Permalink
feat(objectionary#889): fix the bug with nodes hierarchy
Browse files Browse the repository at this point in the history
  • Loading branch information
volodya-lombrozo committed Dec 1, 2024
1 parent 2207db0 commit c676d99
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public XmirRepresentation(final Path path) {
* @param xml XML.
*/
public XmirRepresentation(final XML xml) {
this(xml.node(), "Unknown");
this(xml.node().getFirstChild(), "Unknown");
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public XmlProgram(final String... lines) {
* @param xml Raw XMIR.
*/
public XmlProgram(final XML xml) {
this(xml.node());
this(xml.node().getFirstChild());
}

/**
Expand All @@ -80,7 +80,7 @@ public XmlProgram(final XML xml) {
new DirectivesClass(name), new DirectivesMetas(name)
)
).xmlQuietly()
).node()
)
);
}

Expand Down Expand Up @@ -123,7 +123,7 @@ public BytecodeProgram bytecode() {
*/
private XmlClass top() {
return new XmlNode(this.root)
.child(XmlProgram.PROGRAM)
// .child(XmlProgram.PROGRAM)
.child("objects")
.child("o")
.toClass();
Expand Down

0 comments on commit c676d99

Please sign in to comment.