timholy / MethodAnalysis.jl

Utilities to analyze Julia's method tables
https://timholy.github.io/MethodAnalysis.jl/stable/
MIT License
94 stars 3 forks source link

Add MethodInstance subtyping #27

Closed timholy closed 2 years ago

timholy commented 2 years ago

Demo:

julia> methodinstances(convert, (Type{Bool}, Real))
2-element Vector{Core.MethodInstance}:
 MethodInstance for convert(::Type{Bool}, ::Bool)
 MethodInstance for convert(::Type{Bool}, ::Int64)
codecov[bot] commented 2 years ago

Codecov Report

Merging #27 (4839d35) into master (899ae12) will decrease coverage by 0.14%. The diff coverage is 94.73%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #27      +/-   ##
==========================================
- Coverage   94.11%   93.97%   -0.15%     
==========================================
  Files           4        4              
  Lines         306      332      +26     
==========================================
+ Hits          288      312      +24     
- Misses         18       20       +2     
Impacted Files Coverage Δ
src/MethodAnalysis.jl 94.54% <94.73%> (-1.20%) :arrow_down:
src/visit.jl 91.37% <0.00%> (-1.08%) :arrow_down:
src/backedges.jl 100.00% <0.00%> (ø)
src/findcallers.jl 93.57% <0.00%> (+1.27%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 899ae12...4839d35. Read the comment docs.