Reference missing from call hierarchy
Nobody has claimed this yet.
- Dominant language
- Lean
- Stars
- 9.2k
- Forks
- 990
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 175
Description
Consider the following example:
inductive Foo where
| foo
| bar
deriving BEq
def f : Foo := .foo
def g (a : Array Foo) : Bool := a.any (· == .foo)
Here, the reference to Foo.foo is picked up in the call hierarchy, but the reference to Foo.foo in g is missing. Ideally, both of these references should be picked up. The reference appears to be missing from the References data structure entirely.
Impact
Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Use the Lean example in the issue as the reproduction and inspect the References data structure, where the missing reference is reported to occur. The work is done when call hierarchy includes both references to Foo.foo, including the one in g.
Written by the indexing model from the issue text.
Assessment
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100