@@ -1956,13 +1956,13 @@ class Builder {
19561956 * @param {number } N - Number of characters to keep.
19571957 * @param {number } L - Number of newlines among the `N` characters. If positive, the last
19581958 * character must be a newline.
1959- * @param {(string|Attribute[]) } attribs - Either [[key1,value1],[key2,value2],...] or '*0*1...'
1959+ * @param {(string|Attribute[]) } [ attribs] - Either [[key1,value1],[key2,value2],...] or '*0*1...'
19601960 * (no pool needed in latter case).
1961- * @param {?AttributePool } pool - Attribute pool, only required if `attribs` is a list of
1961+ * @param {?AttributePool } [ pool] - Attribute pool, only required if `attribs` is a list of
19621962 * attribute key, value pairs.
19631963 * @returns {Builder } this
19641964 */
1965- keep ( N , L , attribs , pool ) {
1965+ keep ( N , L , attribs = '' , pool = null ) {
19661966 const o = new Op ( '=' ) ;
19671967 o . attribs = ( attribs && exports . makeAttribsString ( '=' , attribs , pool ) ) || '' ;
19681968 o . chars = N ;
@@ -1973,26 +1973,26 @@ class Builder {
19731973
19741974 /**
19751975 * @param {string } text - Text to keep.
1976- * @param {(string|Attribute[]) } attribs - Either [[key1,value1],[key2,value2],...] or '*0*1...'
1976+ * @param {(string|Attribute[]) } [ attribs] - Either [[key1,value1],[key2,value2],...] or '*0*1...'
19771977 * (no pool needed in latter case).
1978- * @param {?AttributePool } pool - Attribute pool, only required if `attribs` is a list of
1978+ * @param {?AttributePool } [ pool] - Attribute pool, only required if `attribs` is a list of
19791979 * attribute key, value pairs.
19801980 * @returns {Builder } this
19811981 */
1982- keepText ( text , attribs , pool ) {
1982+ keepText ( text , attribs = '' , pool = null ) {
19831983 this . _ops . push ( ...opsFromText ( '=' , text , attribs , pool ) ) ;
19841984 return this ;
19851985 }
19861986
19871987 /**
19881988 * @param {string } text - Text to insert.
1989- * @param {(string|Attribute[]) } attribs - Either [[key1,value1],[key2,value2],...] or '*0*1...'
1989+ * @param {(string|Attribute[]) } [ attribs] - Either [[key1,value1],[key2,value2],...] or '*0*1...'
19901990 * (no pool needed in latter case).
1991- * @param {?AttributePool } pool - Attribute pool, only required if `attribs` is a list of
1991+ * @param {?AttributePool } [ pool] - Attribute pool, only required if `attribs` is a list of
19921992 * attribute key, value pairs.
19931993 * @returns {Builder } this
19941994 */
1995- insert ( text , attribs , pool ) {
1995+ insert ( text , attribs = '' , pool = null ) {
19961996 this . _ops . push ( ...opsFromText ( '+' , text , attribs , pool ) ) ;
19971997 this . _charBank . append ( text ) ;
19981998 return this ;
0 commit comments