Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFC: updates for changes to Julia #35

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/AST.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
# Extensions to the julia AST format shared by decorate, instrument, and graft

module AST
using Base
import Base.has, Base.show, Base.isequal, Base.promote_rule

export Env, LocalEnv, NoEnv, child
Expand Down
2 changes: 1 addition & 1 deletion src/Analysis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Scoping analysis used to support instrument and graft

module Analysis
using Base, AST, Meta
using AST, Meta

export analyze

Expand Down
17 changes: 8 additions & 9 deletions src/Debug.jl
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@

module Debug
using Base
export @debug, @instrument, @bp, debug_eval, Scope, Node, isblocknode, BPNode

include(Pkg.dir("Debug","src","AST.jl"))
include(Pkg.dir("Debug","src","Meta.jl"))
include(Pkg.dir("Debug","src","Analysis.jl"))
include(Pkg.dir("Debug","src","Runtime.jl"))
include(Pkg.dir("Debug","src","Graft.jl"))
include(Pkg.dir("Debug","src","Eval.jl"))
include(Pkg.dir("Debug","src","Flow.jl"))
include(Pkg.dir("Debug","src","UI.jl"))
require(Base.find_in_path("Debug/src/AST.jl"))
require(Base.find_in_path("Debug/src/Meta.jl"))
require(Base.find_in_path("Debug/src/Analysis.jl"))
require(Base.find_in_path("Debug/src/Runtime.jl"))
require(Base.find_in_path("Debug/src/Graft.jl"))
require(Base.find_in_path("Debug/src/Eval.jl"))
require(Base.find_in_path("Debug/src/Flow.jl"))
require(Base.find_in_path("Debug/src/UI.jl"))
using AST, Meta, Analysis, Graft, Eval, Flow, UI

is_trap(::Event) = false
Expand Down
2 changes: 1 addition & 1 deletion src/Eval.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# eval in debug scope

module Eval
using Base, AST, Runtime, Graft
using AST, Runtime, Graft
export debug_eval, Scope

debug_eval(scope::ModuleScope, ex) = scope.eval(ex)
Expand Down
2 changes: 1 addition & 1 deletion src/Flow.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Flow control for interactive debug trap

module Flow
using Base, Meta, AST, Runtime, Graft, Eval
using Meta, AST, Runtime, Graft, Eval
import AST.is_emittable, Base.isequal
export @bp, BPNode, DBState
export continue!, singlestep!, stepover!, stepout!
Expand Down
2 changes: 1 addition & 1 deletion src/Graft.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# were evaluated inside such code (grafting)

module Graft
using Base, AST, Meta, Analysis, Runtime
using AST, Meta, Analysis, Runtime
export instrument, graft


Expand Down
2 changes: 1 addition & 1 deletion src/Meta.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Metaprogramming tools used throughout the Debug package

module Meta
using Base, AST
using AST
export Ex, quot, is_expr
export isblocknode, is_function, is_scope_node, is_in_type, introduces_scope
export dict_comprehension, typed_comprehension, typed_dict_comprehension
Expand Down
2 changes: 1 addition & 1 deletion src/Runtime.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Scope data type used at runtime

module Runtime
using Base, AST, Meta
using AST, Meta
import Base.ref, Base.assign, Base.has, Base.isequal
export Scope, ModuleScope, LocalScope, getter, setter, get_eval
export Frame, parent_frame, enclosing_scope_frame, scope_frameof
Expand Down
4 changes: 2 additions & 2 deletions src/UI.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Interactive debug trap

module Session
using Base, Debug
using Debug
import Flow.DBState

const st = DBState()
Expand All @@ -16,7 +16,7 @@ end # module


module UI
using Base, Meta, AST, Eval, Flow
using Meta, AST, Eval, Flow
import Session
export trap

Expand Down