src/som/interpreter/nodes/TypeCheckNode.java
default <E> E checkTable(final byte[] isSub,
        final SObjectWithClass expected, final E argument, final SType type,
        final SourceSection sourceSection, final ExceptionSignalingNode exception) {
      byte sub = isSub[type.id];
      if (sub == SUBTYPE) {
        return argument;
      } else if (sub == FAIL) {
        reportError(argument, type, expected, sourceSection, exception);
      }
      return null;
    }
/**
     * Checks whether an object is known to be subtype in the cache.
     *
     * @param isSub - the cache of subtypes
     * @param expected - the expected type
     * @param argument - the object being checked
     * @param type - the type of the argument
     * @param sourceSection - the location in source of the type check
     * @param exception - the node used to throw errors
     * @return The argument if it is a subtype. Null if it wasn't in the cache. Otherwise an
     *         error is thrown.
     */
Checks whether an object is known to be subtype in the cache.
Checks whether an object is known to be subtype in the cache .
default <E> E checkTable(final byte[] isSub,
        final SObjectWithClass expected, final E argument, final SType type,
        final SourceSection sourceSection, final ExceptionSignalingNode exception) {
      byte sub = isSub[type.id];
      if (sub == SUBTYPE) {
        return argument;
      } else if (sub == FAIL) {
        reportError(argument, type, expected, sourceSection, exception);
      }
      return null;
    }
default < E > E checkTable ( final byte [ ] isSub , final SObjectWithClass expected , final E argument , final SType type , final SourceSection sourceSection , final ExceptionSignalingNode exception ) { byte sub = isSub [ type . id ] ; if ( sub == SUBTYPE ) { return argument ; } else if ( sub == FAIL ) { reportError ( argument , type , expected , sourceSection , exception ) ; } return null ; }
Checks whether an object is known to be subtype in the cache.
Checks whether an object is known to be subtype in the cache .