Commit 538ee52
Remove definition_at fallback from get_type_at
Summary:
Remove the `definition_at` method and its usage as a fallback in
`get_type_at`. All definition contexts are now handled explicitly
through `identifier_at` pattern matching, making the scope-trace-based
`definition_at_position` lookup unnecessary.
The KeywordArgument handler now constructs keys directly from the refined
parameter range, with a guard to return None when refinement fails
(i.e., when the text at the definition range doesn't match the keyword
argument name).
Reviewed By: stroxler
Differential Revision: D95331715
fbshipit-source-id: e01f2fdd79eca9c03a33da845f5e3bfda7ceafa41 parent 1631365 commit 538ee52
2 files changed
+16
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
841 | 841 | | |
842 | 842 | | |
843 | 843 | | |
844 | | - | |
845 | | - | |
846 | | - | |
847 | | - | |
848 | | - | |
849 | | - | |
850 | 844 | | |
851 | | - | |
852 | | - | |
853 | | - | |
854 | | - | |
855 | | - | |
856 | | - | |
857 | 845 | | |
858 | 846 | | |
859 | 847 | | |
| |||
991 | 979 | | |
992 | 980 | | |
993 | 981 | | |
994 | | - | |
995 | | - | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
996 | 996 | | |
997 | 997 | | |
998 | 998 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
546 | 546 | | |
547 | 547 | | |
548 | 548 | | |
549 | | - | |
550 | | - | |
| 549 | + | |
| 550 | + | |
551 | 551 | | |
552 | 552 | | |
553 | 553 | | |
| |||
0 commit comments