lib/parser.js
/**
	 * Invokes attached handler when parser has matched some input.
	 *
	 * @param {Context} context reference on context for sharing results of parsing
	 * @param {Buffer[]} buffers set of buffers containing matching data
	 * @param {int} matchOffset byte offset of match in context of larger file or stream
	 * @returns {Promise<?Array<Buffer>>} promises optional set of buffers replacing matching ones
	 */
Invokes attached handler when parser has matched some input.
@param {Context} context reference on context for sharing results of parsing
@param {Buffer[]} buffers set of buffers containing matching data
@param {int} matchOffset byte offset of match in context of larger file or stream
@returns {Promise>} promises optional set of buffers replacing matching ones
Invokes attached handler when parser has matched some input . @param { Context } context reference on context for sharing results of parsing @param { Buffer [] } buffers set of buffers containing matching data @param { int } matchOffset byte offset of match in context of larger file or stream @returns { Promise > } promises optional set of buffers replacing matching ones
_handleMatch( context, buffers, matchOffset ) {
		let result = null;
		if ( this.onMatch ) {
			result = this.onMatch( context, buffers, matchOffset );
		}
		return result instanceof Promise ? result : Promise.resolve( result );
	}
_handleMatch ( context , buffers , matchOffset ) { let result = null ; if ( this . onMatch ) { result = this . onMatch ( context , buffers , matchOffset ) ; } return result instanceof Promise ? result : Promise . resolve ( result ) ; }
Invokes attached handler when parser has matched some input.
Invokes attached handler when parser has matched some input .