Skip to content

Commit f4556c9

Browse files
authored
use Base.IncludeInto for _include (#31)
This does not change any behavior on JL side, but this is necessary to allow JET to analyze JL (although we still need to add a JET-specific handling for `JS.register_kinds!` to make JL actually analyzable by JET).
1 parent e079ad6 commit f4556c9

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/JuliaLowering.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ baremodule JuliaLowering
44
using Base
55
# We define a separate _include() for use in this module to avoid mixing method
66
# tables with the public `JuliaLowering.include()` API
7-
_include(path::AbstractString) = Base.include(JuliaLowering, path)
7+
const _include = Base.IncludeInto(JuliaLowering)
88
using Core: eval
99

1010
using JuliaSyntax

src/kinds.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# The following kinds are used in intermediate forms by lowering but are not
32
# part of the surface syntax
43
function _register_kinds()

0 commit comments

Comments
 (0)