Registry / other / swc-ecma-visit

swc-ecma-visit

JSON →
library17.0.0rscratesunverified

Visitors for SWC ECMAScript nodes that work on stable Rust.

# Cargo.toml [dependencies] swc_ecma_visit = "17.0.0"
INSTALL
IMPORT
SIG · SWC-ECMA-VISIT
S
swc-ecma-visit
otherrustv17.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Visit
use swc_ecma_visit::Visit;

Implements a visitor for ECMAScript AST nodes.

use swc_ecma_ast::*; use swc_ecma_visit::*; struct MyVisitor; impl Visit for MyVisitor { fn visit_ident(&mut self, ident: &Ident) { println!("Found identifier: {}", ident.sym); } } fn main() { // Use with an AST node }
Debug
Known issues
gotchaRequires the `swc_ecma_ast` crate for AST types
fix
Add `swc_ecma_ast` as a dependency
affects: >=17.0.0
Upgrade
Version history
17.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
27 hits · last 30 days
node
26
Resources
swc-ecma-visit — cargo add swc-ecma-visit · libregistry