-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ast_name_tracker: track external references in ESM snippets (#105)
Adds a new crate `ast_name_tracker` for tracking declared and shadowed names in ESM snippets. This is necessary to track any statistics on a per-symbol level without aggregating dependencies on the module-level, as it can operate on the source level. --------- Co-authored-by: Max Huang-Hobbs <[email protected]>
- Loading branch information
1 parent
b12b737
commit 599271a
Showing
5 changed files
with
582 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
change/@good-fences-api-0f6279b9-8b8a-4bab-8016-be7b09527870.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "none", | ||
"comment": "ast_name_tracker: track external references in ESM snippets", | ||
"packageName": "@good-fences/api", | ||
"email": "[email protected]", | ||
"dependentChangeType": "none" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
[package] | ||
name = "ast-name-tracker" | ||
version = "0.2.0-beta.1" | ||
authors = ["Maxwell Huang-Hobbs <[email protected]>"] | ||
license = "Apache-2.0" | ||
description = """ | ||
Tracks name references among nodes in an AST | ||
""" | ||
edition = "2018" | ||
|
||
[lib] | ||
crate-type = ["lib"] | ||
|
||
[dependencies] | ||
ahashmap = { version = "0.2.0", path = "../ahashmap" } | ||
logger = { version = "0.2.0", path = "../logger" } | ||
logger_srcfile = { version = "0.2.0", path = "../logger_srcfile" } | ||
swc_atoms = "0.6.7" | ||
swc_common.workspace = true | ||
swc_ecma_ast.workspace = true | ||
swc_ecma_visit.workspace = true | ||
thiserror.workspace = true | ||
|
||
[dev-dependencies] | ||
swc_utils_parse = { path = "../swc_utils_parse" } | ||
pretty_assertions.workspace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pub mod visitor; |
Oops, something went wrong.