Add Assurance subject/exactness model for IDE type narrowing#28
Draft
alganet wants to merge 1 commit into
Draft
Conversation
This was referenced Jun 26, 2026
Extend the #[Assurance] vocabulary so consumers (FluentGen, FluentAnalysis) can derive how a composable prefix transforms the wrapped node's assured type: - Add #[AssuranceSubject] with AssuranceSubjectMode (Wrap / Elements / Container) describing whether a prefix wraps, iterates, or derives the subject. - Add the `exact` flag to #[Assurance]; remove AssuranceModifier::Nullable, now expressed as AssuranceSubject(Wrap) + type: 'null'. This is a BC break (3.0). - Add AssuranceFrom::TypeString (an instance of the class named by a class-string argument). #[AssuranceParameter] is now purely argument indexing (any position, default first); `from` selects the derivation, decoupled from class-string-ness. - Thread a TExact template through the fluent builders for analyzer state. - Correct the README composition claim: prefix resolution is single-level.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of a PR group: Fluent - FluentGen - Validation
Extend the #[Assurance] vocabulary so consumers (FluentGen, FluentAnalysis) can derive how a composable prefix transforms the wrapped node's assured type:
exactflag to #[Assurance]; remove AssuranceModifier::Nullable, now expressed as AssuranceSubject(Wrap) + type: 'null'. This is a BC break (3.0).