@@ -89,6 +89,7 @@ include("types.jl")
8989include (" utils.jl" )
9090include (" parsing.jl" )
9191include (" lowered.jl" )
92+ include (" loading.jl" )
9293include (" pkgs.jl" )
9394include (" git.jl" )
9495include (" recipes.jl" )
@@ -200,23 +201,18 @@ function fallback_juliadir()
200201 normpath (candidate)
201202end
202203
203- Core. eval (@__MODULE__ , :(global juliadir:: String ))
204-
205204"""
206205 Revise.juliadir
207206
208207Constant specifying full path to julia top-level source directory.
209208This should be reliable even for local builds, cross-builds, and binary installs.
210209"""
211- juliadir
212-
213- juliadir = normpath (
210+ global juliadir:: String =
214211 if isdir (joinpath (basebuilddir, " base" ))
215212 basebuilddir
216213 else
217214 fallback_juliadir () # Binaries probably end up here. We fall back on Sys.BINDIR
218- end
219- )
215+ end |> normpath
220216
221217const cache_file_key = Dict {String,String} () # corrected=>uncorrected filenames
222218const src_file_key = Dict {String,String} () # uncorrected=>corrected filenames
@@ -269,8 +265,6 @@ const silencefile = Ref(joinpath(depsdir, "silence.txt")) # Ref so that tests d
269265# # now this is the right strategy.) From the standpoint of CodeTracking, we should
270266# # link the signature to the actual method-defining expression (either :(f() = 1) or :(g() = 2)).
271267
272- get_method_from_match (mm:: Core.MethodMatch ) = mm. method
273-
274268function delete_missing! (exs_sigs_old:: ExprsSigs , exs_sigs_new)
275269 with_logger (_debug_logger) do
276270 for (ex, sigs) in exs_sigs_old
@@ -281,7 +275,7 @@ function delete_missing!(exs_sigs_old::ExprsSigs, exs_sigs_new)
281275 ret = Base. _methods_by_ftype (sig, - 1 , Base. get_world_counter ())
282276 success = false
283277 if ! isempty (ret)
284- m = get_method_from_match ( ret[end ]) # the last method returned is the least-specific that matches, and thus most likely to be type-equal
278+ m = ret[end ]. method # the last method returned is the least-specific that matches, and thus most likely to be type-equal
285279 methsig = m. sig
286280 if sig <: methsig && methsig <: sig
287281 locdefs = get (CodeTracking. method_info, sig, nothing )
0 commit comments