oxc/crates/oxc_span/src
Don Isaac 027a67d94c
feat(minifier): constant addition expression folding (#882)
Fold constant addition expressions. Handles string concatenation and
addition, both with implicit casting.

For example,
```ts
let x = 1 + 1
let y = "hello " + "world"
```
now becomes
```ts
let x = 2
let y = "hello world"
```

## Extra Goodies
- test(minifier): add `test_snapshot` helper to perform snapshot tests
with `insta`
- up(hir): implement `std::ops::Add` for `NumericValue`
- up(span): impl `TryFrom<Cow<'_, &str>>` for `Atom`
2023-09-11 10:38:35 +08:00
..
atom.rs feat(minifier): constant addition expression folding (#882) 2023-09-11 10:38:35 +08:00
lib.rs refactor: move SourceType from oxc_ast to oxc_span (#351) 2023-05-12 23:16:14 +08:00
source_type.rs refactor: move SourceType from oxc_ast to oxc_span (#351) 2023-05-12 23:16:14 +08:00
span.rs refactor: move SourceType from oxc_ast to oxc_span (#351) 2023-05-12 23:16:14 +08:00