Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf(es/parser): Rewrite parser #9313

Closed
wants to merge 430 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
430 commits
Select commit Hold shift + click to select a range
98bf5f3
token.rs
kdy1 Jul 22, 2024
a98c870
Dep
kdy1 Jul 22, 2024
633cf04
cargo lockfile
kdy1 Jul 22, 2024
e59cda9
More fix
kdy1 Jul 22, 2024
7c8be45
Copy byte handlers
kdy1 Jul 22, 2024
e3d1e2a
`cold_branch`
kdy1 Jul 22, 2024
ffd6995
search.rs
kdy1 Jul 22, 2024
9848727
copy lexer
kdy1 Jul 22, 2024
9a78776
Dep
kdy1 Jul 23, 2024
f9d570c
cargo lockfile
kdy1 Jul 23, 2024
8072dc8
import path
kdy1 Jul 23, 2024
b9e902a
Dep
kdy1 Jul 23, 2024
7726c8d
cargo lockfile
kdy1 Jul 23, 2024
a8e6c56
Dep
kdy1 Jul 23, 2024
c872dd9
cargo lockfile
kdy1 Jul 23, 2024
2484e8e
Dep on rustc-hash
kdy1 Jul 23, 2024
8622025
cargo lockfile
kdy1 Jul 23, 2024
1538e32
imports
kdy1 Jul 23, 2024
149cc8a
more fix
kdy1 Jul 23, 2024
98e4cb6
bytepos
kdy1 Jul 23, 2024
d5b0070
bytepos
kdy1 Jul 23, 2024
248d845
oxc_syntax
kdy1 Jul 23, 2024
2d74196
more
kdy1 Jul 23, 2024
d310bdf
more
kdy1 Jul 23, 2024
9e83a8e
more
kdy1 Jul 23, 2024
1e7fab2
Add diagnostics.rs
kdy1 Jul 23, 2024
72cbc77
types
kdy1 Jul 23, 2024
f8cfedb
daig
kdy1 Jul 24, 2024
d9797ab
More diag
kdy1 Jul 24, 2024
fab8079
Result<T>
kdy1 Jul 24, 2024
100b036
More diag
kdy1 Jul 24, 2024
1c38f4b
fix
kdy1 Jul 24, 2024
6ed118a
Rename
kdy1 Jul 24, 2024
1a454d3
import
kdy1 Jul 24, 2024
14d9beb
fix imports
kdy1 Jul 24, 2024
76f9ce3
More diag
kdy1 Jul 24, 2024
69bce67
fix
kdy1 Jul 24, 2024
77bcc5f
fix
kdy1 Jul 24, 2024
bf19f9d
fix
kdy1 Jul 24, 2024
13a087e
Dep
kdy1 Jul 24, 2024
5908678
cargo lockfile
kdy1 Jul 24, 2024
6627049
DEp
kdy1 Jul 24, 2024
f5200b0
cargo lockfile
kdy1 Jul 24, 2024
313b322
dep
kdy1 Jul 24, 2024
76a04a6
bumpalo
kdy1 Jul 24, 2024
5968df1
lexer
kdy1 Jul 24, 2024
3cc0a91
MAX_LEN
kdy1 Jul 24, 2024
ee52820
cursor.rs
kdy1 Jul 24, 2024
2635d0e
ParserImpl
kdy1 Jul 24, 2024
f5be40c
more
kdy1 Jul 24, 2024
716c1e9
more fix
kdy1 Jul 24, 2024
a5c5b00
more fix
kdy1 Jul 24, 2024
59db6b1
more fix
kdy1 Jul 24, 2024
3efaaac
more fix
kdy1 Jul 24, 2024
1b9304a
Rename
kdy1 Jul 24, 2024
835b0a1
more fix
kdy1 Jul 24, 2024
0c77e25
more fix
kdy1 Jul 24, 2024
abfb1d3
more
kdy1 Jul 24, 2024
971620d
Copy (lol)
kdy1 Jul 24, 2024
de3cfaa
more
kdy1 Jul 24, 2024
7df6989
more
kdy1 Jul 24, 2024
7239664
Replace
kdy1 Jul 24, 2024
06b25b9
Rix more
kdy1 Jul 24, 2024
f1ab623
Rix more
kdy1 Jul 24, 2024
faadd98
EXpr
kdy1 Jul 24, 2024
09bdd55
Replace
kdy1 Jul 24, 2024
33f88cd
More fix
kdy1 Jul 24, 2024
d9973db
Replace
kdy1 Jul 24, 2024
88d3598
Replace
kdy1 Jul 24, 2024
7dd8302
Replace
kdy1 Jul 24, 2024
4c47bc3
More fix
kdy1 Jul 24, 2024
df6c34d
More fix
kdy1 Jul 24, 2024
1ee0d66
Replace
kdy1 Jul 24, 2024
b15b41e
More fix
kdy1 Jul 24, 2024
c0f4b69
more
kdy1 Jul 24, 2024
37ee804
state.rs
kdy1 Jul 24, 2024
2c8a33d
More fix
kdy1 Jul 24, 2024
59b6295
Replace
kdy1 Jul 24, 2024
45d772f
More fix
kdy1 Jul 24, 2024
ab3353e
More fix
kdy1 Jul 24, 2024
fe8e80e
More fix
kdy1 Jul 24, 2024
635c2b9
Import
kdy1 Jul 24, 2024
db37272
Import
kdy1 Jul 24, 2024
9729574
more fix
kdy1 Jul 24, 2024
af795dd
more fix
kdy1 Jul 24, 2024
f1ac94c
more fix
kdy1 Jul 24, 2024
72678a2
more fix
kdy1 Jul 24, 2024
bd9f996
Replace: Identifier => Ident
kdy1 Jul 24, 2024
5f48c22
Replace
kdy1 Jul 24, 2024
78efefb
Replace
kdy1 Jul 24, 2024
118b51d
More fix
kdy1 Jul 24, 2024
e7f075d
more work
kdy1 Jul 24, 2024
5a3d8be
more work
kdy1 Jul 24, 2024
7dce12f
more work
kdy1 Jul 24, 2024
d4448f4
more work
kdy1 Jul 24, 2024
7fcd504
more work
kdy1 Jul 24, 2024
7fb63ec
More fix
kdy1 Jul 24, 2024
7270cda
More fix
kdy1 Jul 24, 2024
6e72e0d
Replace: Assignment => Assign
kdy1 Jul 24, 2024
ff7a911
Replace: "Expression(" => "("
kdy1 Jul 24, 2024
f2278bd
Replace: "TS" => "Ts"
kdy1 Jul 24, 2024
3b57973
More fix
kdy1 Jul 24, 2024
7790389
More fix
kdy1 Jul 24, 2024
efa37e1
More fix
kdy1 Jul 24, 2024
b8d0c99
Replace: ClassElement => ClassMember
kdy1 Jul 24, 2024
b312fac
More fix
kdy1 Jul 24, 2024
1286485
Replace: Paramter => Param
kdy1 Jul 24, 2024
bbf4b2c
More fix
kdy1 Jul 24, 2024
5d59a81
ExportNamedDecl => NamedExport
kdy1 Jul 24, 2024
693073b
ExportDefaultDeclarationKind => DefaultDecl
kdy1 Jul 24, 2024
6660752
Replace
kdy1 Jul 24, 2024
66057ac
fix
kdy1 Jul 24, 2024
0dac41a
lifetime
kdy1 Jul 24, 2024
4a17078
::StringLiteral => ::Str
kdy1 Jul 24, 2024
d30fd00
More fix
kdy1 Jul 24, 2024
aa8aa7c
fix imports
kdy1 Jul 24, 2024
92917d0
Replace
kdy1 Jul 24, 2024
e5cf590
More diag
kdy1 Jul 24, 2024
1b13aca
fix more
kdy1 Jul 25, 2024
a2390cb
fix more
kdy1 Jul 25, 2024
dafda94
fix more
kdy1 Jul 25, 2024
edfd25d
more diag
kdy1 Jul 25, 2024
5d89919
more diag
kdy1 Jul 25, 2024
d625f8b
more diag
kdy1 Jul 25, 2024
4fe0c97
Repalce span
kdy1 Jul 25, 2024
b249cf0
AST: `FormalParams`
kdy1 Jul 25, 2024
13d2bcd
Rename
kdy1 Jul 25, 2024
aa3e936
Replace: Function<'a> => Function
kdy1 Jul 25, 2024
ad027aa
more
kdy1 Jul 25, 2024
5e3c13c
More fix
kdy1 Jul 25, 2024
3b1162a
Replace raw identifiers
kdy1 Jul 25, 2024
4024577
Replace raw identifiers
kdy1 Jul 25, 2024
1f0f09c
more diag
kdy1 Jul 25, 2024
6753c15
Replace: TsSignature => TsTypeElement
kdy1 Jul 25, 2024
04e72e7
More fix
kdy1 Jul 25, 2024
9299dd6
More fix
kdy1 Jul 25, 2024
385cfca
Replace: .expression => .expr
kdy1 Jul 25, 2024
7094952
More fix
kdy1 Jul 25, 2024
b935054
types.rs
kdy1 Jul 25, 2024
6f9a101
More types
kdy1 Jul 25, 2024
d7ed1c6
More fix
kdy1 Jul 25, 2024
c7ac31f
More fix
kdy1 Jul 25, 2024
0c2d169
More diag
kdy1 Jul 25, 2024
8c934e0
More diag
kdy1 Jul 25, 2024
a564dec
More fix
kdy1 Jul 25, 2024
6e6fa2c
More fix
kdy1 Jul 25, 2024
656460a
More fix
kdy1 Jul 25, 2024
c48f821
More fix
kdy1 Jul 25, 2024
3afd4b7
More fix
kdy1 Jul 25, 2024
c330045
More fix
kdy1 Jul 25, 2024
ef2dfe5
AST: `ClassBody`
kdy1 Jul 25, 2024
1844dc5
Fix more
kdy1 Jul 25, 2024
efe43b8
Fix more
kdy1 Jul 25, 2024
9a68330
fix mroe
kdy1 Jul 25, 2024
4d51d08
Replace: .type_parameters => .type_params
kdy1 Jul 25, 2024
7bc4444
Fix more
kdy1 Jul 25, 2024
6e8705f
more
kdy1 Jul 25, 2024
c29eaab
more
kdy1 Jul 25, 2024
b14e5d6
Fix more
kdy1 Jul 25, 2024
341c1a9
More fix
kdy1 Jul 26, 2024
a977965
fix
kdy1 Jul 26, 2024
b8f56cf
More
kdy1 Jul 26, 2024
809e86c
Replace
kdy1 Jul 26, 2024
7d6eb57
More
kdy1 Jul 26, 2024
b5cdaff
Replace: PropertyKey => Key
kdy1 Jul 26, 2024
44c7ffe
Replace: ::PrivateIdent => ::Private
kdy1 Jul 26, 2024
db440a0
More
kdy1 Jul 26, 2024
6275be8
More
kdy1 Jul 26, 2024
864c94e
More
kdy1 Jul 26, 2024
3b11d8f
515
kdy1 Jul 26, 2024
a157af6
513
kdy1 Jul 26, 2024
24b28a8
Fix more
kdy1 Jul 26, 2024
759005b
Fix more
kdy1 Jul 26, 2024
e1621ce
ast-grep: Vec
kdy1 Jul 26, 2024
b566f83
ast-grep: Box
kdy1 Jul 26, 2024
c71e72e
More fix
kdy1 Jul 26, 2024
4e9cb30
More fix
kdy1 Jul 26, 2024
b63185e
More fix
kdy1 Jul 26, 2024
0d6c77d
More fix
kdy1 Jul 26, 2024
e3266c3
More fix
kdy1 Jul 26, 2024
da728a3
More fix
kdy1 Jul 26, 2024
0439673
Fix
kdy1 Jul 29, 2024
869a814
Fix
kdy1 Jul 29, 2024
c8a6272
Fix
kdy1 Jul 29, 2024
43bba8f
Fix
kdy1 Jul 29, 2024
af65023
Fix
kdy1 Jul 29, 2024
280266c
more
kdy1 Jul 29, 2024
0b9a8d7
fix
kdy1 Jul 29, 2024
8cbc03c
fix: span()
kdy1 Jul 29, 2024
ac31e6a
fix more
kdy1 Jul 29, 2024
6cf96de
fix more
kdy1 Jul 29, 2024
431cc20
more
kdy1 Jul 30, 2024
2f2a1e9
more
kdy1 Jul 30, 2024
bc74c13
fix
kdy1 Jul 30, 2024
2488635
fix
kdy1 Jul 30, 2024
f8d168d
fix
kdy1 Jul 30, 2024
b5e4aed
fix
kdy1 Jul 30, 2024
0c40d69
impor
kdy1 Jul 30, 2024
c4cab40
fix binding.rs
kdy1 Jul 30, 2024
276b329
Fix declaration.rs
kdy1 Jul 30, 2024
3481324
more
kdy1 Jul 30, 2024
c1c2eee
more
kdy1 Jul 30, 2024
608274e
Replace
kdy1 Jul 30, 2024
0ccaf89
fix more
kdy1 Jul 30, 2024
93f98cf
fix more
kdy1 Jul 30, 2024
be5475a
AST
kdy1 Jul 31, 2024
cd123b3
More fix
kdy1 Jul 31, 2024
7185973
AST
kdy1 Jul 31, 2024
39f3366
More fix
kdy1 Jul 31, 2024
6eaebdc
More fix
kdy1 Jul 31, 2024
72c87a1
More fix
kdy1 Jul 31, 2024
74aa45a
More fix
kdy1 Jul 31, 2024
bf3e0a3
Replace: Box<Expr>
kdy1 Jul 31, 2024
6f485a1
Replace: Box<Expr>
kdy1 Jul 31, 2024
fa2c05f
More fix
kdy1 Jul 31, 2024
5b58455
More fix
kdy1 Jul 31, 2024
d09363c
More fix
kdy1 Jul 31, 2024
4e869ac
Operators
kdy1 Jul 31, 2024
f03d848
More fix
kdy1 Jul 31, 2024
f2215c5
More fix
kdy1 Jul 31, 2024
6a7532d
More fix
kdy1 Jul 31, 2024
c3bc83a
more diag
kdy1 Jul 31, 2024
f244d82
more fix
kdy1 Jul 31, 2024
b23fbb9
fix
kdy1 Jul 31, 2024
4b430a5
fix
kdy1 Jul 31, 2024
8229c1a
fix
kdy1 Jul 31, 2024
0669fb1
fix
kdy1 Jul 31, 2024
0b017ae
AST
kdy1 Jul 31, 2024
0b0c167
fix
kdy1 Jul 31, 2024
e1be74e
fix
kdy1 Jul 31, 2024
c19bf97
fix
kdy1 Aug 2, 2024
96be751
fix
kdy1 Aug 2, 2024
649b5c2
fix
kdy1 Aug 2, 2024
59e27b0
more
kdy1 Aug 2, 2024
08d6a22
more
kdy1 Aug 2, 2024
3dac5e2
v2::
kdy1 Aug 2, 2024
7837e6b
fix
kdy1 Aug 6, 2024
9f3d08e
fix
kdy1 Aug 7, 2024
ccb24f0
more fix
kdy1 Aug 7, 2024
576c584
Fix codegen
kdy1 Aug 12, 2024
3016b08
small fxi
kdy1 Aug 12, 2024
ca6d04f
AST
kdy1 Aug 12, 2024
d462b52
Fix parser
kdy1 Aug 12, 2024
bcd03cb
Fix parser
kdy1 Aug 12, 2024
922235c
more diag
kdy1 Aug 16, 2024
1ff64d8
more diag
kdy1 Aug 16, 2024
6139a2c
Box<Expr>
kdy1 Aug 16, 2024
4ecf00b
AST
kdy1 Aug 16, 2024
7a1ea7c
More work
kdy1 Aug 30, 2024
576d6cb
AI work
kdy1 Aug 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/nissuer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Nissuer
uses: balazsorban44/nissuer@1.10.0
uses: balazsorban44/nissuer@1.7.3
with:
reproduction-comment: ".github/invalid-link.md"
reproduction-hosts: "github.com,gist.github.com,play.swc.rs,evanw.github.io,lightningcss.dev,play.rust-lang.org,stackblitz.com"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ jobs:
tool: cargo-mono@0.4.1

- run: cargo bump
continue-on-error: true

- uses: webfactory/ssh-agent@v0.9.0
with:
Expand Down
496 changes: 236 additions & 260 deletions CHANGELOG.md

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ For running all tests, take the following steps:
cargo test --all --no-default-features --features swc_v2 --features filesystem_cache
```

**TIP**: If you see errors while attempting to run the commands above, we usually do not run all tests at once. Instead, we run tests per package ([see below](#running-tests-per-package)), which you can use to verify your local setup.

## Running tests per package

While working on specific packages, individual tests can be run by specifying a package to the
Expand Down
Loading
Loading