Skip to content

Commit

Permalink
refactor(ast): replace serde rename "lowercase" with "camelCase"
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Jul 20, 2024
1 parent 838ac4f commit ceb551d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
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

0 comments on commit ceb551d

Please sign in to comment.