Skip to content

Commit

Permalink
Include supertypes in searchmethods
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Sep 20, 2018
1 parent daca145 commit daaf1de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/InteractiveCodeSearch.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ using Base
const _readandwrite = readandwrite
const fetch = wait
names(x; all=false) = Base.names(x, all)
methodswith(args...; supertypes=false) =
Base.methodswith(args..., supertypes)
macro info(x)
:(info($(esc(x))))
end
Expand Down Expand Up @@ -438,7 +440,7 @@ macro search(x = :ans, flag = :(:shallow))
end
end

code_search_methods(T) = search_methods(methodswith(T))
code_search_methods(T) = search_methods(methodswith(T; supertypes=true))

"""
@searchmethods x
Expand Down

0 comments on commit daaf1de

Please sign in to comment.