Commit 948d77f
committed
Simplify getUseIndexForUseImport using findContainingOpeningBracket()
Replaces the manual findPrevious call with an exclusion list with the
existing findContainingOpeningBracket() abstraction, and simplifies the
second findPrevious to skip only empty tokens.1 parent 3a0b6e4 commit 948d77f
1 file changed
Lines changed: 5 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
| 284 | + | |
| 285 | + | |
291 | 286 | | |
292 | 287 | | |
293 | 288 | | |
294 | | - | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
295 | 292 | | |
296 | 293 | | |
297 | 294 | | |
| |||
0 commit comments