Skip to content

Commit

Permalink
add bare-bones blocklisting of types during enumeration
Browse files Browse the repository at this point in the history
Part of #4. No user interface yet (have to change the list in the
sources). #4 will be solved after an interface is added.
  • Loading branch information
ulysses4ever committed Feb 15, 2022
1 parent a8b0aaa commit 7f5c5a4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/StabilityCheck.jl
Original file line number Diff line number Diff line change
Expand Up @@ -261,14 +261,19 @@ all_subtypes(ts::Vector, scfg :: SearchCfg) = begin
result
end

blocklist = [Function]

# Auxilliary function: immediate subtypes of a tuple of types `ts`
direct_subtypes(ts1::Vector, scfg :: SearchCfg) = begin
if isempty(ts1)
return []
end
ts = copy(ts1)
t = pop!(ts)
ss_last = subtypes(t)
ss_last = if t blocklist
[]
else subtypes(t)
end
if isempty(ss_last)
if typeof(t) == UnionAll
ss_last = subtype_unionall(t, scfg)
Expand Down

0 comments on commit 7f5c5a4

Please sign in to comment.