src/com/google/javascript/jscomp/NodeUtil.java
/**
   * Create a VAR node containing the given lhs (name or destructuring pattern) and
   * initial value expression.
   */
Create a VAR node containing the given lhs (name or destructuring pattern) and
initial value expression.
Create a VAR node containing the given lhs ( name or destructuring pattern ) and initial value expression .
static Node newVarNode(Node lhs, Node value) {
    if (lhs.isDestructuringPattern()) {
      checkNotNull(value);
      return IR.var(new Node(Token.DESTRUCTURING_LHS, lhs, value).srcref(lhs)).srcref(lhs);
    } else {
      checkState(lhs.isName() && !lhs.hasChildren());
      if (value != null) {
        lhs.addChildToBack(value);
      }
      return IR.var(lhs).srcref(lhs);
    }
  }
static Node newVarNode ( Node lhs , Node value ) { if ( lhs . isDestructuringPattern ( ) ) { checkNotNull ( value ) ; return IR . var ( new Node ( Token . DESTRUCTURING_LHS , lhs , value ) . srcref ( lhs ) ) . srcref ( lhs ) ; } else { checkState ( lhs . isName ( ) && ! lhs . hasChildren ( ) ) ; if ( value != null ) { lhs . addChildToBack ( value ) ; } return IR . var ( lhs ) . srcref ( lhs ) ; } }
Create a VAR node containing the given lhs (name or destructuring pattern) and
 initial value expression.
Create a VAR node containing the given lhs ( name or destructuring pattern ) and initial value expression .