import type { Parser } from "../api.js" ; import { xform } from "../combinators/xform.js" ; /**
 * Discards AST node and any of its children.
 */ export const xfDiscard = ( ) => null ; param parser export const discard = ( parser ) => xform ( parser , xfDiscard ) ;