public void setTarget ( AstNode target ) { // Don't throw exception if target is an "invalid" node type. // See mozilla/js/tests/js1_7/block/regress-350279.js if ( target == null ) throw new IllegalArgumentException ( "invalid target arg" ) ; this . target = target ; target . setParent ( this ) ; }
Sets the variable name or destructuring form and sets its parent to this node .