Commit c2f5250
Use NodeFinder to deduplicate assignable AST node traversal
Replace manual recursive traversal of PropertyFetch, MethodCall,
NullsafePropertyFetch, NullsafeMethodCall, StaticPropertyFetch,
and StaticCall in isExpressionDependentOnThis() with NodeFinder
(which uses NodeTraverser+NodeVisitor internally). This eliminates
the per-node-type recursion and makes the traversal reusable.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 38e8ef2 commit c2f5250
1 file changed
+13
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
408 | 409 | | |
409 | 410 | | |
410 | 411 | | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
426 | 415 | | |
427 | 416 | | |
428 | | - | |
429 | | - | |
430 | | - | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
431 | 424 | | |
432 | | - | |
| 425 | + | |
| 426 | + | |
433 | 427 | | |
434 | 428 | | |
435 | 429 | | |
| |||
0 commit comments