Skip to content

Commit

Permalink
Update ext/DynamicPPLTestExt/contexts.jl
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
penelopeysm and github-actions[bot] authored Nov 27, 2024
1 parent b93e581 commit 298ec36
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions ext/DynamicPPLTestExt/contexts.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,15 @@ function DynamicPPL.TestUtils.TestLogModifyingChildContext(
)
end

DynamicPPL.NodeTrait(::DynamicPPL.TestUtils.TestLogModifyingChildContext) = DynamicPPL.IsParent()
DynamicPPL.childcontext(context::DynamicPPL.TestUtils.TestLogModifyingChildContext) = context.context
function DynamicPPL.setchildcontext(context::DynamicPPL.TestUtils.TestLogModifyingChildContext, child)
function DynamicPPL.NodeTrait(::DynamicPPL.TestUtils.TestLogModifyingChildContext)
return DynamicPPL.IsParent()
end
function DynamicPPL.childcontext(context::DynamicPPL.TestUtils.TestLogModifyingChildContext)
return context.context
end
function DynamicPPL.setchildcontext(
context::DynamicPPL.TestUtils.TestLogModifyingChildContext, child
)
return DynamicPPL.TestUtils.TestLogModifyingChildContext(context.mod, child)
end
function DynamicPPL.tilde_assume(context::DynamicPPL.TestUtils.TestLogModifyingChildContext, right, vn, vi)
Expand Down

0 comments on commit 298ec36

Please sign in to comment.