Skip to content

Commit

Permalink
Added missing support of ChannelInput/Output to IsValue node
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Marr <git@stefan-marr.de>
  • Loading branch information
smarr committed Apr 16, 2020
1 parent 3f20072 commit eabca19
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/som/primitives/ObjectPrims.java
Expand Up @@ -22,6 +22,8 @@
import som.interpreter.actors.SPromise.SResolver;
import som.interpreter.nodes.nary.UnaryBasicOperation;
import som.interpreter.nodes.nary.UnaryExpressionNode;
import som.interpreter.processes.SChannel.SChannelInput;
import som.interpreter.processes.SChannel.SChannelOutput;
import som.primitives.ObjectPrimsFactory.IsValueFactory;
import som.vm.constants.Nil;
import som.vmobjects.SAbstractObject;
Expand Down Expand Up @@ -241,6 +243,16 @@ public final boolean isValue(final SResolver rcvr) {
return true;
}

@Specialization
public final boolean isValue(final SChannelInput rcvr) {
return true;
}

@Specialization
public final boolean isValue(final SChannelOutput rcvr) {
return true;
}

@Specialization
public final boolean isValue(final SObjectWithoutFields rcvr) {
return rcvr.getSOMClass().declaredAsValue();
Expand Down

0 comments on commit eabca19

Please sign in to comment.