oxc/crates/oxc_syntax/src
Boshen be6b8b7ce6
[BREAKING CHANGE] Change Atom to Atom<'a> to make it safe (#2497)
Part of #2295

This PR splits the `Atom` type into `Atom<'a>` and `CompactString`.

All the AST node strings now use `Atom<'a>` instead of `Atom` to signify
it belongs to the arena.

It is now up to the user to select which form of the string to use.

This PR essentially removes the really unsafe code 


93742f89e9/crates/oxc_span/src/atom.rs (L98-L107)

which can lead to 

![image](https://github.com/oxc-project/oxc/assets/1430279/8c513c4f-19b0-4b63-b61c-e07c187c95b5)
2024-02-26 19:34:40 +08:00
..
assumptions.rs
class.rs feat(semantic): add static property, ElementKind::Getter, ElementKind::Setter in ClassTable (#2445) 2024-02-20 13:07:48 +08:00
identifier.rs refactor(parser): make is_identifier methods consistent 2024-01-23 11:05:17 +08:00
keyword.rs feat(Codegen): Improve codegen (#2460) 2024-02-21 14:41:57 +08:00
lib.rs feat(Codegen): Improve codegen (#2460) 2024-02-21 14:41:57 +08:00
module_record.rs [BREAKING CHANGE] Change Atom to Atom<'a> to make it safe (#2497) 2024-02-26 19:34:40 +08:00
node.rs chore: omit warning for unused TS_APPEND_CONTENT 2024-02-01 14:07:40 +08:00
operator.rs feat(ast): TypeScript definition for wasm target (#2158) 2024-01-30 15:43:03 +08:00
precedence.rs fix(codegen): add parenthesis in binary expression by precedence (#2067) 2024-01-17 23:01:42 +08:00
reference.rs chore: omit warning for unused TS_APPEND_CONTENT 2024-02-01 14:07:40 +08:00
scope.rs refactor(linter): get arrow expression by scope_id in no_render_return_value (#2424) 2024-02-17 21:06:28 +08:00
symbol.rs fix(semantic): remove unnecessary SymbolFlags::Import (#2311) 2024-02-05 14:16:29 +08:00
xml_entities.rs