private static IfNode makeIfStateEquals(final int lineNumber, final long token, final int finish, final int value, final Block pass, final Statement fail) { return new IfNode(lineNumber, token, finish, new BinaryNode(Token.recast(token, TokenType.EQ_STRICT), GetSplitState.INSTANCE, intLiteral(value)), pass, fail == null ? null : new Block(NO_TOKEN, NO_FINISH, fail)); }
@Override public boolean enterGetSplitState(final GetSplitState getSplitState) { return pushExpressionType(getSplitState); }
/** * Callback for entering a {@link GetSplitState}. * * @param getSplitState the get split state expression * @return true if traversal should continue and node children be traversed, false otherwise */ public boolean enterGetSplitState(final GetSplitState getSplitState) { return enterDefault(getSplitState); }
/** * Callback for leaving a {@link GetSplitState}. * * @param getSplitState the get split state expression * @return processed node, which will replace the original one, or the original node */ public Node leaveGetSplitState(final GetSplitState getSplitState) { return leaveDefault(getSplitState); }