Skip to content

Commit c3db98a

Browse files
committed
Remove using Base, qualify Meta as Debug.Meta. Closes #35
1 parent b5e9dfb commit c3db98a

9 files changed

+9
-11
lines changed

src/AST.jl

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
# Extensions to the julia AST format shared by decorate, instrument, and graft
55

66
module AST
7-
using Base
87
import Base.has, Base.show, Base.isequal, Base.promote_rule
98

109
export Env, LocalEnv, NoEnv, child

src/Analysis.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Scoping analysis used to support instrument and graft
55

66
module Analysis
7-
using Base, AST, Meta
7+
using AST, Debug.Meta
88

99
export analyze
1010

src/Debug.jl

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11

22
module Debug
3-
using Base
43
export @debug, @instrument, @bp, debug_eval, Scope, Node, isblocknode, BPNode
54

65
include(Pkg.dir("Debug","src","AST.jl"))
@@ -11,7 +10,7 @@ include(Pkg.dir("Debug","src","Graft.jl"))
1110
include(Pkg.dir("Debug","src","Eval.jl"))
1211
include(Pkg.dir("Debug","src","Flow.jl"))
1312
include(Pkg.dir("Debug","src","UI.jl"))
14-
using AST, Meta, Analysis, Graft, Eval, Flow, UI
13+
using AST, Debug.Meta, Analysis, Graft, Eval, Flow, UI
1514

1615
is_trap(::Event) = false
1716
is_trap(::LocNode) = false

src/Eval.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# eval in debug scope
55

66
module Eval
7-
using Base, AST, Runtime, Graft
7+
using AST, Runtime, Graft
88
export debug_eval, Scope
99

1010
debug_eval(scope::ModuleScope, ex) = scope.eval(ex)

src/Flow.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Flow control for interactive debug trap
55

66
module Flow
7-
using Base, Meta, AST, Runtime, Graft, Eval
7+
using Debug.Meta, AST, Runtime, Graft, Eval
88
import AST.is_emittable, Base.isequal
99
export @bp, BPNode, DBState
1010
export continue!, singlestep!, stepover!, stepout!

src/Graft.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# were evaluated inside such code (grafting)
66

77
module Graft
8-
using Base, AST, Meta, Analysis, Runtime
8+
using AST, Debug.Meta, Analysis, Runtime
99
export instrument, graft
1010

1111

src/Meta.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Metaprogramming tools used throughout the Debug package
55

66
module Meta
7-
using Base, AST
7+
using AST
88
export Ex, quot, is_expr
99
export isblocknode, is_function, is_scope_node, is_in_type, introduces_scope
1010
export dict_comprehension, typed_comprehension, typed_dict_comprehension

src/Runtime.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Scope data type used at runtime
55

66
module Runtime
7-
using Base, AST, Meta
7+
using AST, Debug.Meta
88
import Base.ref, Base.assign, Base.has, Base.isequal
99
export Scope, ModuleScope, LocalScope, getter, setter, get_eval
1010
export Frame, parent_frame, enclosing_scope_frame, scope_frameof

src/UI.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Interactive debug trap
55

66
module Session
7-
using Base, Debug
7+
using Debug
88
import Flow.DBState
99

1010
const st = DBState()
@@ -16,7 +16,7 @@ end # module
1616

1717

1818
module UI
19-
using Base, Meta, AST, Eval, Flow
19+
using Debug.Meta, AST, Eval, Flow
2020
import Session
2121
export trap
2222

0 commit comments

Comments
 (0)