next.js
a6371ddc - Turbopack: Reduce usage of parse_quote in turbo-tasks-macros (#88454)

Commit
197 days ago
Turbopack: Reduce usage of parse_quote in turbo-tasks-macros (#88454) In theory, `parse_quote` is really nice because it lets you use type safety to assert more things about proc macro code. However, it does invoke the syn parser, so there's probably some cost. I had Claude find and remove trivial uses of `parse_quote`. There are still more uses, but they're not as easy to remove (e.g. because we need the real type, not just a `TokenStream`, and the type is annoying to construct by hand).
Author
bgw bgw
Parents
Loading