From daaf1de9bee59080d114e82b3eec60f71bf6cfb3 Mon Sep 17 00:00:00 2001 From: Takafumi Arakaki Date: Wed, 19 Sep 2018 22:34:19 -0700 Subject: [PATCH] Include supertypes in searchmethods --- src/InteractiveCodeSearch.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/InteractiveCodeSearch.jl b/src/InteractiveCodeSearch.jl index 4e01475..d5f84ef 100644 --- a/src/InteractiveCodeSearch.jl +++ b/src/InteractiveCodeSearch.jl @@ -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 @@ -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