Skip to content

Commit

Permalink
Add ser_name to DefStructs
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Feb 22, 2024
1 parent 68e9856 commit c2b8fc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/oxc_ast/src/ast/literal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ impl<'a> Inspect for NumberLiteral<'a> {
fn def(collector: &mut TypesCollector) -> DefType {
DefType::Struct(DefStruct {
name: Self::name(),
ser_name: Self::name(),
size: Self::size(),
align: Self::align(),
fields: vec![
Expand Down
1 change: 1 addition & 0 deletions crates/oxc_ast/src/ast/ts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1012,6 +1012,7 @@ impl<'a> Inspect for Modifiers<'a> {
fn def(collector: &mut TypesCollector) -> DefType {
DefType::Struct(DefStruct {
name: Self::name(),
ser_name: Self::name(),
size: Self::size(),
align: Self::align(),
fields: vec![DefStructField {
Expand Down

0 comments on commit c2b8fc0

Please sign in to comment.