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 parser-facing #720 contract, stacked on #772.
Adds an end-to-end parser test for all four required forms:
&[T],&mut [T],&[T; N], and&mut [T; N]. Each parsed parameter must become a synthetic span AST_TYPE, preserve mutability and optional extent, and normalize byte-for-byte tospan_const_<elem>/span_mut_<elem>.This is intentionally red against the current parser: unsized references currently discard
&/mutand produce anonymous slice AST_TYPE nodes with no span identity, while sized[T; N]syntax is not accepted by the current slice branch at all.The safe source splice in
flowc_parse_typeis now fully specified: retain whether the reference hasmut; parse the bracketed element and optional; INTextent; construct one AST_TYPE whoseais the element,ivalis the extent (or 0), and callflowc_ast_type_set_synthetic_spanwith the retained mutability. Plain non-reference[T]behavior should remain unchanged unless deliberately migrated in a separate compatibility patch.The large parser file is not whole-file-replaced through the current connector; this branch remains a red local contract until that bounded source splice is applied from a complete checkout.
All commits use
[skip ci]; qualification is local only.Related: #674 #677 #718 #720 #772