Commit 2eb9533
Use pyrefly lsp to find definition for attributes
Summary: In this diff I am using the function `find_definition_for_base_type` to get the attribute definition. This allow getting the file where the attribute was defined and result more accurate results.
Reviewed By: donsbot
Differential Revision: D92757977
fbshipit-source-id: 9a720e3ac6ec807626affa62726694996ecbc2e01 parent fb56a80 commit 2eb9533
2 files changed
Lines changed: 15 additions & 0 deletions
File tree
- glean/lang/python-pyrefly/tests/regression/without_dynamic_import/declaration_uses/simple
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
14 | 25 | | |
15 | 26 | | |
16 | 27 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
| |||
0 commit comments