Commit cda5742
authored
[feat] Loosen find_references (#831)
Prior, find references would take the arity into account. This was
because in elixir, a functin is defined by its name and its
arity. However in practice, you more than not want to see a all the
calls of a function with a given name rather than a specific
head. This is especially true for functions with default arguments.
As a result, this change looks for functions with a given name and any arity.1 parent 661aa46 commit cda5742
File tree
2 files changed
+23
-3
lines changed- apps/remote_control
- lib/lexical/remote_control/code_intelligence
- test/lexical/remote_control/code_intelligence
2 files changed
+23
-3
lines changedLines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
47 | 50 | | |
48 | 51 | | |
49 | 52 | | |
| |||
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
110 | 127 | | |
111 | 128 | | |
112 | 129 | | |
| |||
0 commit comments