Skip to content

Commit 298ec36

Browse files
Update ext/DynamicPPLTestExt/contexts.jl
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent b93e581 commit 298ec36

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

ext/DynamicPPLTestExt/contexts.jl

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,15 @@ function DynamicPPL.TestUtils.TestLogModifyingChildContext(
2929
)
3030
end
3131

32-
DynamicPPL.NodeTrait(::DynamicPPL.TestUtils.TestLogModifyingChildContext) = DynamicPPL.IsParent()
33-
DynamicPPL.childcontext(context::DynamicPPL.TestUtils.TestLogModifyingChildContext) = context.context
34-
function DynamicPPL.setchildcontext(context::DynamicPPL.TestUtils.TestLogModifyingChildContext, child)
32+
function DynamicPPL.NodeTrait(::DynamicPPL.TestUtils.TestLogModifyingChildContext)
33+
return DynamicPPL.IsParent()
34+
end
35+
function DynamicPPL.childcontext(context::DynamicPPL.TestUtils.TestLogModifyingChildContext)
36+
return context.context
37+
end
38+
function DynamicPPL.setchildcontext(
39+
context::DynamicPPL.TestUtils.TestLogModifyingChildContext, child
40+
)
3541
return DynamicPPL.TestUtils.TestLogModifyingChildContext(context.mod, child)
3642
end
3743
function DynamicPPL.tilde_assume(context::DynamicPPL.TestUtils.TestLogModifyingChildContext, right, vn, vi)

0 commit comments

Comments
 (0)