Typed rule semantic analysis flow
This chart focuses on the semantic path used by typed rules, including service acquisition, constrained-type lookup fallback, and guarded reporting behavior.
Maintainer interpretationโ
- Treat semantic calls as a guarded path, not a default path.
getConstrainedTypeAtLocationWithFallbackis the main reliability bridge between ideal type information and resilient fallback behavior.- Fail-fast behavior is intentional for typed-rule contexts and should not be replaced with silent degradation.
Operational checkpointsโ
- If users report typed-rule crashes, verify parser service availability first.
- If semantic branches become expensive, add syntax-level short-circuits before type operations.
- Keep report/fix policy centralized to prevent per-rule drift in rewrite safety.