File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 1
1
name = " LookingGlass"
2
2
uuid = " 1fcbbee2-b350-4a01-aad8-439064dba09e"
3
3
authors = [" Nathan Daly" ]
4
- version = " 0.3.0 "
4
+ version = " 0.3.1 "
5
5
6
6
[deps ]
7
7
InteractiveUtils = " b77e0a4c-d291-57a0-90e8-8db25a27a240"
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ macro quot(e) QuoteNode(e) end
31
31
# ---------------------------------------------------------------------------
32
32
33
33
"""
34
- func_specializations(f) -> Dict(MethodInstance => Method)
34
+ func_specializations(f[, tt] ) -> Dict(MethodInstance => Method)
35
35
36
36
Return all the specializations (MethodInstances) of each method of the given function (or
37
37
callable object), if there are any.
@@ -57,10 +57,17 @@ function func_specializations end
57
57
func_specializations (f) =
58
58
Dict (mi => m
59
59
for m in methods (f). ms
60
- for mi in _iterate_method_specializations (m)
60
+ for mi in _method_specializations (m)
61
61
)
62
+ func_specializations (f, tt) =
63
+ Dict (mi => m
64
+ for m in methods (f, tt). ms
65
+ for mi in _method_specializations (m)
66
+ )
67
+
68
+ method_specializations (m) = collect (_method_specializations (m))
62
69
63
- function _iterate_method_specializations (m )
70
+ function _method_specializations (m :: Method )
64
71
s = m. specializations
65
72
if VERSION > v " 1.5-"
66
73
return (s[i] for i in 1 : length (s) if isassigned (s, i))
You can’t perform that action at this time.
0 commit comments