Commit d60f0e6
authored
🐛 creating an enum for the locations to make the code understandable (#1021)
fixes #977
@shawn-hurley is this what you had in mind? I looked at the link you had
in the issue. I also changed the `symbolKindToString` fn with same
approach. Let me know if this makes sense.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Expanded symbol recognition with many additional symbol kinds for
richer code insights.
* Finer-grained location categories to improve tracking of where code
elements appear.
* **Refactor**
* Replaced numeric codes with type-safe enumerations for symbol kinds
and locations, making behavior more consistent and maintainable.
<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Signed-off-by: Savitha Raghunathan <[email protected]>1 parent 8225fad commit d60f0e6
File tree
2 files changed
+105
-50
lines changed- external-providers/java-external-provider/pkg/java_external_provider
2 files changed
+105
-50
lines changedLines changed: 96 additions & 42 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
51 | 72 | | |
52 | 73 | | |
53 | 74 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
60 | 81 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
70 | 91 | | |
71 | 92 | | |
72 | 93 | | |
| |||
157 | 178 | | |
158 | 179 | | |
159 | 180 | | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
160 | 214 | | |
161 | | - | |
162 | | - | |
| 215 | + | |
| 216 | + | |
163 | 217 | | |
164 | | - | |
| 218 | + | |
165 | 219 | | |
166 | | - | |
| 220 | + | |
167 | 221 | | |
168 | | - | |
| 222 | + | |
169 | 223 | | |
170 | | - | |
| 224 | + | |
171 | 225 | | |
172 | | - | |
| 226 | + | |
173 | 227 | | |
174 | | - | |
| 228 | + | |
175 | 229 | | |
176 | | - | |
| 230 | + | |
177 | 231 | | |
178 | | - | |
| 232 | + | |
179 | 233 | | |
180 | | - | |
| 234 | + | |
181 | 235 | | |
182 | | - | |
| 236 | + | |
183 | 237 | | |
184 | | - | |
| 238 | + | |
185 | 239 | | |
186 | | - | |
| 240 | + | |
187 | 241 | | |
188 | | - | |
| 242 | + | |
189 | 243 | | |
190 | | - | |
| 244 | + | |
191 | 245 | | |
192 | | - | |
| 246 | + | |
193 | 247 | | |
194 | | - | |
| 248 | + | |
195 | 249 | | |
196 | | - | |
| 250 | + | |
197 | 251 | | |
198 | | - | |
| 252 | + | |
199 | 253 | | |
200 | | - | |
| 254 | + | |
201 | 255 | | |
202 | | - | |
| 256 | + | |
203 | 257 | | |
204 | | - | |
| 258 | + | |
205 | 259 | | |
206 | | - | |
| 260 | + | |
207 | 261 | | |
208 | | - | |
| 262 | + | |
209 | 263 | | |
210 | | - | |
| 264 | + | |
211 | 265 | | |
212 | | - | |
| 266 | + | |
213 | 267 | | |
214 | 268 | | |
215 | 269 | | |
| |||
Lines changed: 9 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | | - | |
80 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
81 | 82 | | |
82 | | - | |
| 83 | + | |
83 | 84 | | |
84 | | - | |
| 85 | + | |
85 | 86 | | |
86 | | - | |
| 87 | + | |
87 | 88 | | |
88 | | - | |
| 89 | + | |
89 | 90 | | |
90 | | - | |
| 91 | + | |
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
| |||
0 commit comments