mirror of
https://github.com/danbulant/oxc
synced 2026-05-25 12:51:57 +00:00
fix(ast): rename serialized fields to camel case (#2566)
Fixes a few more AST fields names which are currently snake case in serialized JSON.
This commit is contained in:
parent
78f8c2ce7f
commit
e339461a9f
1 changed files with 3 additions and 3 deletions
|
|
@ -383,7 +383,7 @@ pub struct ThisExpression {
|
||||||
|
|
||||||
/// <https://tc39.es/ecma262/#prod-ArrayLiteral>
|
/// <https://tc39.es/ecma262/#prod-ArrayLiteral>
|
||||||
#[derive(Debug, Hash)]
|
#[derive(Debug, Hash)]
|
||||||
#[cfg_attr(feature = "serde", derive(Serialize), serde(tag = "type"))]
|
#[cfg_attr(feature = "serde", derive(Serialize), serde(tag = "type", rename_all = "camelCase"))]
|
||||||
#[cfg_attr(all(feature = "serde", feature = "wasm"), derive(tsify::Tsify))]
|
#[cfg_attr(all(feature = "serde", feature = "wasm"), derive(tsify::Tsify))]
|
||||||
pub struct ArrayExpression<'a> {
|
pub struct ArrayExpression<'a> {
|
||||||
#[cfg_attr(feature = "serde", serde(flatten))]
|
#[cfg_attr(feature = "serde", serde(flatten))]
|
||||||
|
|
@ -414,7 +414,7 @@ impl<'a> ArrayExpressionElement<'a> {
|
||||||
|
|
||||||
/// Object Expression
|
/// Object Expression
|
||||||
#[derive(Debug, Hash)]
|
#[derive(Debug, Hash)]
|
||||||
#[cfg_attr(feature = "serde", derive(Serialize), serde(tag = "type"))]
|
#[cfg_attr(feature = "serde", derive(Serialize), serde(tag = "type", rename_all = "camelCase"))]
|
||||||
#[cfg_attr(all(feature = "serde", feature = "wasm"), derive(tsify::Tsify))]
|
#[cfg_attr(all(feature = "serde", feature = "wasm"), derive(tsify::Tsify))]
|
||||||
pub struct ObjectExpression<'a> {
|
pub struct ObjectExpression<'a> {
|
||||||
#[cfg_attr(feature = "serde", serde(flatten))]
|
#[cfg_attr(feature = "serde", serde(flatten))]
|
||||||
|
|
@ -968,7 +968,7 @@ pub enum AssignmentTargetPattern<'a> {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Hash)]
|
#[derive(Debug, Hash)]
|
||||||
#[cfg_attr(feature = "serde", derive(Serialize), serde(tag = "type"))]
|
#[cfg_attr(feature = "serde", derive(Serialize), serde(tag = "type", rename_all = "camelCase"))]
|
||||||
#[cfg_attr(all(feature = "serde", feature = "wasm"), derive(tsify::Tsify))]
|
#[cfg_attr(all(feature = "serde", feature = "wasm"), derive(tsify::Tsify))]
|
||||||
pub struct ArrayAssignmentTarget<'a> {
|
pub struct ArrayAssignmentTarget<'a> {
|
||||||
#[cfg_attr(feature = "serde", serde(flatten))]
|
#[cfg_attr(feature = "serde", serde(flatten))]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue