Closed NoamB closed 9 years ago
I'd like to understand this issue a little better. What do you think the correct behavior here should be?
If foo is used somewhere, then it is not a parent, hence my-func should not be a child.
Ah, I see. So really we'd want an additional line in your example, something like:
(foo (MyCoolType.))
Yeah?
After thinking about this some more I don't actually think this a bug.
If I include something like the following and set bar
as an entrypoint then foo doesn't show up as either a parent or child, nor does my-func
.
(defn bar []
(foo (MyCoolType.)))
This is the intended behavior.
Similarly, if foo
isn't called anywhere (or rather, isn't callable by some code path from an entrypoint), then we would expect both foo
and my-func
to be children.
functions foo and bar have parents, but
my-func
will still appear in children list.