oxc/crates/oxc_span/src
Don Isaac 679495c3ec
feat(atom): get &str from Atom<'a> with lifetime of 'a (#3420)
Change `Atom<'a>::as_str(&self) -> &str` to `Atom<'a>::as_str(&self) ->
&'a str`.

This API is more ergonomic for external `oxc` consumers relying on
`&str` data collected while traversing an AST.

I also enhanced some nearby doc comments and implemented some
`From<...>` traits while I was at it.
2024-05-27 09:05:33 +08:00
..
atom.rs feat(atom): get &str from Atom<'a> with lifetime of 'a (#3420) 2024-05-27 09:05:33 +08:00
lib.rs refactor: make CompactStr immutable (#2620) 2024-03-06 12:29:32 +08:00
source_type.rs refactor(ast): add is_strict methods (#3227) 2024-05-11 04:39:36 +00:00
span.rs refactor(parser,diagnostic): one diagnostic struct to eliminate monomorphization of generic types (#3214) 2024-05-11 04:56:22 +00:00