Boshen
fb2ebf462e
chore: fix clippy on unsafe comment
2024-04-03 19:57:21 +08:00
Boshen
feb3c90098
chore(parser): allow unsafe in examples
2024-04-03 19:40:02 +08:00
Ali Rezvani
fc3878350f
refactor(ast): add walk_mut functions ( #2776 )
...
* move `visit` and `visit_mut` modules to a super module called `visit`
* add `walk_mut` module containing walk functions
* update `enter_node` and `leave_node` events to not pass a reference in the `VisitMut` trait
* add `AstType`, a non-referencing version of `AstKind` to use with `VisitMut` trait
* update the `VisitMut` trait's usages.
2024-03-25 20:40:13 +03:30
Ali Rezvani
198eea0bce
refactor(ast): add walk functions to Visit trait. ( #2791 )
...
closes #2442
2024-03-25 10:44:29 +08:00
Boshen
ef1108a749
chore: Rust v1.77.0 ( #2781 )
2024-03-21 17:21:57 +00:00
Boshen
0f86333437
refactor(ast): refactor Trivias API - have less noise around it ( #2692 )
2024-03-12 20:16:36 +08:00
Boshen
cda9c93436
fix(parser): improve lexing of jsx identifier to fix duplicated comments after jsx name ( #2687 )
2024-03-12 15:51:51 +08:00
Boshen
351a0572be
chore(parser): print both AST and errors in examples/parser
2024-02-26 23:20:46 +08:00
Boshen
a2c173de57
refactor: remove panic! from examples ( #2454 )
...
relates #2308
2024-02-20 16:18:39 +08:00
Boshen
6849c047ef
chore(parser): add visitor example ( #2271 )
...
closes #2256
2024-02-02 17:08:00 +08:00
Boshen
4886d408eb
chore(clippy): enable undocumented_unsafe_blocks
2023-10-16 15:18:14 +08:00
Boshen
8ae345bde0
chore(parser): add an AST Send example ( #712 )
...
relates #709
The allocator and lifetime gets in the way if we want to parse in
parallel but process them in a single thread.
This example uses `ouroboros` to provide a safe API for working with
this unsafe behavior.
2023-08-10 15:56:31 +08:00
Boshen
14720e7c69
refactor: move SourceType from oxc_ast to oxc_span ( #351 )
...
related #350
2023-05-12 23:16:14 +08:00
Shannon Rothe
df78044c87
lint
2023-03-01 20:47:52 -08:00
Shannon Rothe
4d894e7db1
parser: prevent JSX expressions using comma operator
2023-03-01 20:47:52 -08:00
Boshen
3b887dbeaf
feat(parser): print json in parser example
2023-02-28 00:05:54 +08:00
Boshen
4684118c9e
fix: change example names so their binary names don't collide with each other
2023-02-23 21:46:39 +08:00
Boshen
7a44a657e1
feat: add miette fancy report to examples
2023-02-22 19:23:01 +08:00
Boshen
d8fd23524a
feat(oxc_parser): allow filename as option in examples/simple.rs
2023-02-12 15:57:40 +08:00
Boshen
3daf5bcea9
chore(example): add an example for testing purposes
2023-02-12 11:11:35 +08:00