We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0c810e commit e71c60dCopy full SHA for e71c60d
src/MacroTools.jl
@@ -16,8 +16,12 @@ include("examples/destruct.jl")
16
include("examples/threading.jl")
17
include("examples/forward.jl")
18
19
-include("patch/diff.jl")
20
-include("patch/cst.jl")
+using CSTParser
+
21
+if isdefined(CSTParser, :Location)
22
+ include("patch/diff.jl")
23
+ include("patch/cst.jl")
24
+end
25
26
const animals = Symbol[]
27
const animals_file = joinpath(@__DIR__, "..", "animals.txt")
test/runtests.jl
@@ -6,6 +6,9 @@ using Compat, Compat.Test
6
include("match.jl")
7
include("split.jl")
8
include("destruct.jl")
9
-include("patch.jl")
10
+if isdefined(MacroTools, :sourcewalk)
11
+ include("patch.jl")
12
13
14
end
0 commit comments