You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Description
## Problem\*
Resolves#5309
## Summary\*
Fixes the tokenization of types by converting them to a new `QuotedType`
token. We can get the original (resolved) type from this token so that
we don't need to re-resolve a type after it is inserted into a macro's
token stream. A QuotedType token holds onto an ID for the type rather
than the type itself since our `Type` type does not implement Send or
Sync, which is required through ParseError and UnresolvedTypeData.
## Additional Context
## Documentation\*
Check one:
- [x] No documentation needed.
- [ ] Documentation included in this PR.
- [ ] **[For Experimental Features]** Documentation to be submitted in a
separate PR.
# PR Checklist\*
- [x] I have tested the changes locally.
- [x] I have formatted the changes with [Prettier](https://prettier.io/)
and/or `cargo fmt` on default settings.
Aim
We'll need some way to convert a
Type
into aQuoted
object to be able to splice it into another quoted token stream.Expected Behavior
This conversion should ideally be automatic so that:
Works without needing to call
let typ = typ.into_quoted()
or similar.Bug
Currently the conversion used just calls
typ.to_string()
then lexes the string, but this doesn't work for type variables and seems to tightly coupled.To Reproduce
Project Impact
None
Impact Context
No response
Workaround
None
Workaround Description
No response
Additional Context
No response
Installation Method
None
Nargo Version
No response
NoirJS Version
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response
The text was updated successfully, but these errors were encountered: