src/main/java/org/mvel2/compiler/AbstractParser.java
protected ASTNode handleUnion(ASTNode node) {
    if (cursor != end) {
      skipWhitespace();
      int union = -1;
      if (cursor < end) {
        switch (expr[cursor]) {
          case '.':
            union = cursor + 1;
            break;
          case '[':
            union = cursor;
        }
      }

      if (union != -1) {
        captureToEOT();
        return lastNode = new Union(expr, union, cursor - union, fields, node, pCtx);
      }

    }
    return lastNode = node;
  }
/**
   * Handle a union between a closed statement and a residual property chain.
   *
   * @param node an ast node
   * @return ASTNode
   */
Handle a union between a closed statement and a residual property chain.
@param node an ast node
@return ASTNode
Handle a union between a closed statement and a residual property chain . @param node an ast node @return ASTNode
protected ASTNode handleUnion(ASTNode node) {
    if (cursor != end) {
      skipWhitespace();
      int union = -1;
      if (cursor < end) {
        switch (expr[cursor]) {
          case '.':
            union = cursor + 1;
            break;
          case '[':
            union = cursor;
        }
      }
      if (union != -1) {
        captureToEOT();
        return lastNode = new Union(expr, union, cursor - union, fields, node, pCtx);
      }
    }
    return lastNode = node;
  }
protected ASTNode handleUnion ( ASTNode node ) { if ( cursor != end ) { skipWhitespace ( ) ; int union = - 1 ; if ( cursor < end ) { switch ( expr [ cursor ] ) { case '.' : union = cursor + 1 ; break ; case '[' : union = cursor ; } } if ( union != - 1 ) { captureToEOT ( ) ; return lastNode = new Union ( expr , union , cursor - union , fields , node , pCtx ) ; } } return lastNode = node ; }
Handle a union between a closed statement and a residual property chain.
Handle a union between a closed statement and a residual property chain .