{"id":58010,"library":"swc-ecma-visit","title":"swc-ecma-visit","description":"Visitors for SWC ECMAScript nodes that work on stable Rust.","status":"active","version":"17.0.0","language":"rust","source_language":null,"source_url":"https://github.com/swc-project/swc","tags":["swc","ecmascript","ast","visitor","compiler"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nswc_ecma_visit = \"17.0.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add swc_ecma_visit","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Visit","correct":"use swc_ecma_visit::Visit;"}],"quickstart":{"code":"use swc_ecma_ast::*;\nuse swc_ecma_visit::*;\n\nstruct MyVisitor;\nimpl Visit for MyVisitor {\n    fn visit_ident(&mut self, ident: &Ident) {\n        println!(\"Found identifier: {}\", ident.sym);\n    }\n}\n\nfn main() {\n    // Use with an AST node\n}","lang":"rust","description":"Implements a visitor for ECMAScript AST nodes."},"warnings":[{"fix":"Add `swc_ecma_ast` as a dependency","message":"Requires the `swc_ecma_ast` crate for AST types","severity":"gotcha","affected_versions":">=17.0.0"}],"env_vars":null,"search_vec":"'ast':17 'compil':19 'ecma':3 'ecmascript':8,16 'node':9 'rust':14 'stabl':13 'swc':2,7,15 'swc-ecma-visit':1 'visit':4 'visitor':5,18 'work':11","created_at":"2026-06-16T16:07:48.189854+00:00","updated_at":"2026-06-16T16:07:48.189854+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/swc-project/swc","github":"https://github.com/swc-project/swc","docs":"https://docs.rs/swc_ecma_visit/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["other"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}