// ets_tracing: off import type * as O from "../../Option/index.js" import type { AssertionValue } from "./AssertionValue.js" import { makeAssertionValue } from "./makeAssertionValue.js" export function withContext_( self: AssertionValue, expr: O.Option, sourceLocation: O.Option ): AssertionValue { return makeAssertionValue( self.assertion, self.value, self.result, expr, sourceLocation ) } export function withContext(expr: O.Option, sourceLocation: O.Option) { return (self: AssertionValue) => withContext_(self, expr, sourceLocation) }