Skip to content

Commit

Permalink
feat(objectionary#329): add void type for StoreArray
Browse files Browse the repository at this point in the history
  • Loading branch information
volodya-lombrozo committed Jul 12, 2024
1 parent 7f284d2 commit 421730d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main/java/org/eolang/opeo/ast/StoreArray.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,15 @@
import org.eolang.jeo.representation.xmir.XmlNode;
import org.eolang.opeo.compilation.Parser;
import org.objectweb.asm.Opcodes;
import org.objectweb.asm.Type;
import org.xembly.Directive;
import org.xembly.Directives;

/**
* Store array element.
* @since 0.1
*/
public final class StoreArray implements AstNode {
public final class StoreArray implements AstNode, Typed {

/**
* Target array.
Expand Down Expand Up @@ -111,4 +112,9 @@ public List<AstNode> opcodes() {
res.add(new Opcode(Opcodes.AASTORE));
return res;
}

@Override
public Type type() {
return Type.VOID_TYPE;
}
}

0 comments on commit 421730d

Please sign in to comment.