Skip to content

Commit

Permalink
readded newsegment in theory_impl
Browse files Browse the repository at this point in the history
  • Loading branch information
quffaro committed Jun 10, 2024
1 parent 8e10590 commit ecbc70f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/syntax/TheoryInterface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ function theory_impl(head, body, __module__)

theory = fromexpr(parent, body, GAT; name, current_module=fqmn(__module__))

# newsegment = theory.segments.scopes[end]
newsegment = theory.segments.scopes[end]
docstr = repr(theory)

lines = Any[]
Expand Down Expand Up @@ -305,6 +305,7 @@ function theory_impl(head, body, __module__)
macro theory_module() parentmodule(@__MODULE__) end
end)))

# XXX
push!(modulelines, :($(GlobalRef(TheoryInterface, :GAT_MODULE_LOOKUP))[$(gettag(newsegment))] = $name))


Expand Down

0 comments on commit ecbc70f

Please sign in to comment.