public boolean addOptionalParams ( JSType ... types ) { if ( hasVarArgs ( ) ) { return false ; } for ( JSType type : types ) { newParameter ( registry . createOptionalType ( type ) ) . setOptionalArg ( true ) ; } return true ; }
Add optional parameters of the given type to the end of the param list .