Docs.rs
swc_ecma_codegen-17.0.2
swc_ecma_codegen 17.0.2
Docs.rs crate page
Apache-2.0
Links
Documentation
Repository
crates.io
Source
Owners
kdy1
swc-bot
Dependencies
ascii ^1.1.0
normal
compact_str ^0.7.1
normal
memchr ^2.6.1
normal
num-bigint ^0.4.3
normal
once_cell ^1.19.0
normal
regex ^1.5.4
normal
rustc-hash ^2
normal
ryu-js ^1.0.0
normal
serde ^1.0.197
normal
swc_allocator ^4.0.1
normal
swc_atoms ^7.0.0
normal
swc_common ^14.0.3
normal
swc_ecma_ast ^15.0.0
normal
swc_ecma_codegen_macros ^2.0.2
normal
swc_sourcemap ^9.3.0
normal
tracing ^0.1.40
normal
base64 ^0.22.1
dev
codspeed-criterion-compat ^3.0.4
dev
serde_json ^1.0.115
dev
swc_allocator ^4.0.1
dev
swc_common ^14.0.3
dev
swc_ecma_parser ^24.0.0
dev
swc_ecma_testing ^15.0.0
dev
swc_malloc ^1.2.3
dev
testing ^15.0.0
dev
Versions
24.53%
of the crate is documented
Platform
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
to_code
swc_
ecma_
codegen
17.0.2
swc_ecma_codegen
Function
to_code
Copy item path
Source
pub fn to_code(node: &impl
Node
) ->
String
Expand description
Generate a code from a syntax node using default options.