src/com/google/javascript/rhino/jstype/FunctionType.java
/** Gets the string representation of an optional param. */
Gets the string representation of an optional param.
Gets the string representation of an optional param .
private void appendOptionalArgString(StringBuilder sb, JSType paramType, boolean forAnnotations) {
    if (paramType.isUnionType()) {
      paramType =
          paramType
              .toMaybeUnionType()
              .getRestrictedUnion(registry.getNativeType(JSTypeNative.VOID_TYPE));
    }
    paramType.appendAsNonNull(sb, forAnnotations).append("=");
  }
private void appendOptionalArgString ( StringBuilder sb , JSType paramType , boolean forAnnotations ) { if ( paramType . isUnionType ( ) ) { paramType = paramType . toMaybeUnionType ( ) . getRestrictedUnion ( registry . getNativeType ( JSTypeNative . VOID_TYPE ) ) ; } paramType . appendAsNonNull ( sb , forAnnotations ) . append ( "=" ) ; }
Gets the string representation of an optional param.
Gets the string representation of an optional param .
// Remove the optionality from the var arg.