Skip to content

Commit daaf1de

Browse files
committed
Include supertypes in searchmethods
1 parent daca145 commit daaf1de

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/InteractiveCodeSearch.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ using Base
4141
const _readandwrite = readandwrite
4242
const fetch = wait
4343
names(x; all=false) = Base.names(x, all)
44+
methodswith(args...; supertypes=false) =
45+
Base.methodswith(args..., supertypes)
4446
macro info(x)
4547
:(info($(esc(x))))
4648
end
@@ -438,7 +440,7 @@ macro search(x = :ans, flag = :(:shallow))
438440
end
439441
end
440442

441-
code_search_methods(T) = search_methods(methodswith(T))
443+
code_search_methods(T) = search_methods(methodswith(T; supertypes=true))
442444

443445
"""
444446
@searchmethods x

0 commit comments

Comments
 (0)