Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(ast): replace serde rename "lowercase" with "camelCase" #4376

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions crates/oxc_ast/src/ast/js.rs
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ pub enum PropertyKey<'a> {
#[ast]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[cfg_attr(feature = "serialize", derive(Serialize, Tsify))]
#[serde(rename_all = "lowercase")]
#[serde(rename_all = "camelCase")]
pub enum PropertyKind {
Init,
Get,
Expand Down Expand Up @@ -1011,7 +1011,7 @@ pub struct VariableDeclaration<'a> {
#[ast]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[cfg_attr(feature = "serialize", derive(Serialize, Tsify))]
#[serde(rename_all = "lowercase")]
#[serde(rename_all = "camelCase")]
pub enum VariableDeclarationKind {
Var,
Const,
Expand Down Expand Up @@ -1688,7 +1688,7 @@ pub enum PropertyDefinitionType {
#[ast]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[cfg_attr(feature = "serialize", derive(Serialize, Tsify))]
#[serde(rename_all = "lowercase")]
#[serde(rename_all = "camelCase")]
pub enum MethodDefinitionKind {
Constructor,
Method,
Expand Down
8 changes: 4 additions & 4 deletions crates/oxc_ast/src/ast/ts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ pub struct TSTypeOperator<'a> {
#[ast]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[cfg_attr(feature = "serialize", derive(Serialize, Tsify))]
#[serde(rename_all = "lowercase")]
#[serde(rename_all = "camelCase")]
pub enum TSTypeOperatorOperator {
Keyof,
Unique,
Expand Down Expand Up @@ -625,7 +625,7 @@ pub struct TSTypeAliasDeclaration<'a> {
#[ast]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[cfg_attr(feature = "serialize", derive(Serialize, Tsify))]
#[serde(rename_all = "lowercase")]
#[serde(rename_all = "camelCase")]
pub enum TSAccessibility {
Private,
Protected,
Expand Down Expand Up @@ -727,7 +727,7 @@ pub struct TSCallSignatureDeclaration<'a> {
#[ast]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[cfg_attr(feature = "serialize", derive(Serialize, Tsify))]
#[serde(rename_all = "lowercase")]
#[serde(rename_all = "camelCase")]
pub enum TSMethodSignatureKind {
Method,
Get,
Expand Down Expand Up @@ -841,7 +841,7 @@ pub struct TSModuleDeclaration<'a> {
#[ast]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[cfg_attr(feature = "serialize", derive(Serialize, Tsify))]
#[serde(rename_all = "lowercase")]
#[serde(rename_all = "camelCase")]
pub enum TSModuleDeclarationKind {
Global,
Module,
Expand Down
Loading