Commit 3dfec88
committed
Add SSS004 analyzer: flag if/else-if and if-{return/throw} chains with repeated '<sameScrutinee> is <SameType> { <SameProperty>: ... }' conditions, which collapse to a single switch with one isinst + one property read instead of N of each; refactors two ASC/DESC chains in Selection / WindowExpression that the rule found.
1 parent 6fd3f63 commit 3dfec88
5 files changed
Lines changed: 690 additions & 14 deletions
File tree
- SqlServerSimulator.Analyzers.Tests
- SqlServerSimulator.Analyzers
- SqlServerSimulator/Parser
- Expressions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
121 | 122 | | |
122 | 123 | | |
123 | 124 | | |
| |||
0 commit comments