Skip to content

selfhost: emit canonical const and mutable span type names - #770

Closed
godofecht wants to merge 2 commits into
selfhost/span-mutability-metafrom
selfhost/span-type-name
Closed

godofecht wants to merge 2 commits into
selfhost/span-mutability-metafrom
selfhost/span-type-name

Conversation

@godofecht

Copy link
Copy Markdown
Contributor

Second isolated slice of #718, stacked on #769.

Updates compiler/src/type_name.flow to use the checked AST span-mutability accessor and emit production-compatible span_const_<elem> / span_mut_<elem> names for explicit span AST_TYPE nodes. The previous deliberate -1 refusal is removed only because #769 gives the AST a lossless mutability channel.

Updates the existing type-name port vectors to assert byte-exact const and mutable span spellings while retaining pointer/array/generic/nested/function/capacity coverage.

All commits use [skip ci]; qualification is local only. The remaining explicit-span #718 change is parser preservation: when flowc_parse_type consumes mut inside span<mut T>, it must call the new metadata setter on that span AST_TYPE. Reference syntax &[T] / &mut [T] remains separately tracked by #720.

Related: #674 #677 #718 #720 #769

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