Skip to content

fix: split if-drop chains in type-inference.ts#159

Merged
cs01 merged 2 commits intomainfrom
fix/split-if-drop-chains-type-inference
Mar 9, 2026
Merged

fix: split if-drop chains in type-inference.ts#159
cs01 merged 2 commits intomainfrom
fix/split-if-drop-chains-type-inference

Conversation

@cs01
Copy link
Copy Markdown
Owner

@cs01 cs01 commented Mar 9, 2026

Summary

  • Split 4 if-drop chains in type-inference.ts into smaller helper methods (≤4 if-return blocks each)
  • resolveExpressionType (14 blocks → 4 helpers: resolveCollectionExprType, resolveCompoundExprType, resolveDispatchExprType, resolveComplexExprType)
  • resolveMethodCallType (6 blocks → 2 helpers: resolveMethodCallByObjectType, resolveMethodCallByMethod)
  • isArrayExpression (6 blocks → helper: isArrayExpressionByType)
  • isObjectArrayExpression (5 blocks → helper: isObjectArrayByDispatch)

Test plan

  • 437 tests pass
  • verify:quick passes (tsc + Stage 0 + Stage 1)

@cs01 cs01 merged commit e3eb6d5 into main Mar 9, 2026
12 checks passed
@cs01 cs01 deleted the fix/split-if-drop-chains-type-inference branch March 12, 2026 05:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant