swc/crates/swc_common/tests/issue_3159.rs
Donny/강동윤 7a83c0cb57
perf(es/ast/serde): Make deserialization faster (#3160)
ast_node:
 - Improve deserialization of enums.

swc_css_ast:
 - Fix a compilation issue.

swc_ecma_ast:
 - Update `serde`.

swc_ecma_parser:
 - Fix a compilation issue.

swc_estree_ast:
 - Fix serialization.
2022-01-02 12:49:09 +09:00

10 lines
142 B
Rust

use swc_common::ast_serde;
#[ast_serde]
enum Message {
#[tag("Request")]
Request(String),
#[tag("Response")]
Response(u8),
}