Repository navigation
Conversation
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.
Final explicit-span behavior slice of #718, stacked on #770.
Adds an end-to-end parser contract for
span<i32>vsspan<mut i32>. It parses real function parameters, reads the ordinaryAST_PARAM.atype nodes used by Stage-A typecheck, requires the new span-mutability accessor to report const vs mutable distinctly, and verifies canonicalspan_const_i32/span_mut_i32names throughflowc_type_name_into.The remaining source splice in
flowc_parse_typeis intentionally tiny: importflowc_ast_type_set_span_mutable; remember whetherKW_MUTwas consumed inside the<...>branch; after attaching the inner type, set the outer metadata only when the outer source span is exactlyspan. Do not apply this to arbitrary generic applications. Reference-span sugar remains #720.The parser source itself is not replaced through the current connector because it requires whole-file replacement and is large enough that a truncated reconstruction would be unsafe. This branch therefore remains a red local contract until that two-site splice is applied from a complete local checkout.
All commits use
[skip ci]; qualification is local only.Related: #674 #677 #718 #720 #769 #770