Commit d93497a
Ensure that renaming a keyword argument also updates the names in function calls within the same file.
Summary:
This builds upon the work in previous diffs and implements the local_keyword_argument_referneces_from_parameter_definition in local_references_from_local_definition. In the variable and VariableOrAttribute match arms, we do another check do see if the SymbolKind is either a parameter, variable, or None. If any of these cases are true, we will also include the keyword arguments in the collection that we return.
{F1983467395}
Reviewed By: kinto0
Differential Revision: D86888748
fbshipit-source-id: 2d51165b7d6df1afab8e3c360af332e65ecedd491 parent d3dafa6 commit d93497a
2 files changed
+103
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2007 | 2007 | | |
2008 | 2008 | | |
2009 | 2009 | | |
2010 | | - | |
| 2010 | + | |
2011 | 2011 | | |
2012 | 2012 | | |
2013 | 2013 | | |
2014 | 2014 | | |
| 2015 | + | |
2015 | 2016 | | |
2016 | 2017 | | |
2017 | | - | |
| 2018 | + | |
2018 | 2019 | | |
2019 | 2020 | | |
2020 | 2021 | | |
| |||
2024 | 2025 | | |
2025 | 2026 | | |
2026 | 2027 | | |
| 2028 | + | |
2027 | 2029 | | |
2028 | 2030 | | |
2029 | 2031 | | |
| |||
2152 | 2154 | | |
2153 | 2155 | | |
2154 | 2156 | | |
2155 | | - | |
2156 | 2157 | | |
2157 | 2158 | | |
2158 | 2159 | | |
| |||
2198 | 2199 | | |
2199 | 2200 | | |
2200 | 2201 | | |
| 2202 | + | |
2201 | 2203 | | |
2202 | 2204 | | |
2203 | 2205 | | |
| |||
2229 | 2231 | | |
2230 | 2232 | | |
2231 | 2233 | | |
| 2234 | + | |
| 2235 | + | |
| 2236 | + | |
| 2237 | + | |
| 2238 | + | |
| 2239 | + | |
| 2240 | + | |
| 2241 | + | |
| 2242 | + | |
| 2243 | + | |
| 2244 | + | |
| 2245 | + | |
| 2246 | + | |
| 2247 | + | |
| 2248 | + | |
2232 | 2249 | | |
2233 | 2250 | | |
2234 | 2251 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
56 | 138 | | |
57 | 139 | | |
58 | 140 | | |
| |||
0 commit comments