mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
Introduce invariant that only a single `lexer::Source` can exist on a thread at one time. This is a preparatory step for #2341. 2 notes: Restriction is only 1 x `ParserImpl` / `Lexer` / `Source` on 1 *thread* at a time, not globally. So this does not prevent parsing multiple files simultaneously on different threads. Restriction does not apply to public type `Parser`, only `ParserImpl`. `ParserImpl`s are not created in created in `Parser::new`, but instead in `Parser::parse`, where they're created and then immediately consumed. So the end user is also free to create multiple `Parser` instances (if they want to for some reason) on the same thread. |
||
|---|---|---|
| .. | ||
| lexer.rs | ||
| linter.rs | ||
| minifier.rs | ||
| parser.rs | ||
| prettier.rs | ||
| semantic.rs | ||
| transformer.rs | ||