Commit fe6cb3a
perf: run lint while constructing nodes (#5207)
* wip: remove swc_ecma_lints
* wip: duplicate_bindings rule
* wip: disallow assign to import
* wip: duplicate_exports rule
* wip: no_dupe_args
* Improve catch clause scoping and add more tests
* Use enum for variable kinds
* Handle variable and import redeclarations and duplicate parameters
* Detect nested conflictes with hoisted variables
* Handle redeclared parameters
* Attempt to improve scoping
* Fix catch scoping
TODO: Parameter redeclaration
* Fix remaining tests
* Update TODOs
* Improve coverage
* Fix nested catch scope hoisting
* Improve coverage
* Improve coverage
* Improve coverage
* hasExportNamedAs -> assertUniqueExportName
* extract `specifier.local.name` as `localName`
* Improve handling of missing entry exports
Otherwise, it will throw an internal error
* Use forceExit to fix failing MacOS CI
---------
Co-authored-by: Lukas Taegert-Atkinson <lukas.taegert-atkinson@tngtech.com>
Co-authored-by: Lukas Taegert-Atkinson <lukastaegert@users.noreply.github.com>1 parent 52c55bb commit fe6cb3a
File tree
131 files changed
+1096
-796
lines changed- rust
- parse_ast
- src
- src
- ast
- nodes
- scopes
- variables
- utils
- test
- form/samples
- catch-scope-default
- function-scopes
- _expected
- function/samples
- ast-validations
- double-default-export
- double-named-export
- double-named-reexport
- duplicate-function-export
- duplicate-import-fails
- duplicate-import-specifier-fails
- duplicate-namespace-export
- duplicate-parameter-name
- duplicate-var-export
- reassign-import-fails
- reassign-import-not-at-top-level-fails
- redeclare-catch-scope-local-variable-function
- redeclare-catch-scope-parameter-function
- redeclare-catch-scope-parameter-var-outside-conflict
- redeclare-catch-scope-parameter-var
- redeclare-catch-scope-pattern-parameter-var
- redeclare-class-function
- redeclare-const-function
- redeclare-default-import-function
- redeclare-import-var
- redeclare-let-function
- redeclare-let-nested-var
- redeclare-nested-var-let
- redeclare-parameter-let
- redeclare-parameter-var-function
- redeclare-var-class
- update-expression-of-import-fails
- catch-scope-deconflicting
- catch-scope-default
- catch-scope-nested-deconflicting
- catch-scope-shadowing2
- hoisted-variable-name-conflict
- missing-entry-export
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
131 files changed
+1096
-796
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
| 41 | + | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
| 47 | + | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
| 168 | + | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | 102 | | |
113 | 103 | | |
114 | 104 | | |
| |||
127 | 117 | | |
128 | 118 | | |
129 | 119 | | |
130 | | - | |
131 | 120 | | |
132 | 121 | | |
133 | 122 | | |
| |||
164 | 153 | | |
165 | 154 | | |
166 | 155 | | |
167 | | - | |
168 | | - | |
| 156 | + | |
169 | 157 | | |
170 | 158 | | |
171 | 159 | | |
| |||
0 commit comments