Skip to content
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
1 change: 1 addition & 0 deletions crates/oxc_estree/src/serialize/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ impl<'s, C: Config, F: Formatter> Serializer for &'s mut ESTreeSerializer<C, F>
type StructSerializer = ESTreeStructSerializer<'s, C, F>;
type SequenceSerializer = ESTreeSequenceSerializer<'s, C, F>;

#[inline(always)]
fn ranges(&self) -> bool {
self.config.ranges()
}
Expand Down
3 changes: 3 additions & 0 deletions crates/oxc_estree/src/serialize/structs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ impl<C: Config, F: Formatter> StructSerializer for ESTreeStructSerializer<'_, C,
buffer.print_ascii_byte(b'}');
}

#[inline(always)]
fn ranges(&self) -> bool {
self.serializer.ranges()
}
Expand Down Expand Up @@ -223,6 +224,7 @@ impl<'p, P: StructSerializer> Serializer for FlatStructSerializer<'p, P> {
}
}

#[inline(always)]
fn ranges(&self) -> bool {
self.0.ranges()
}
Expand Down Expand Up @@ -292,6 +294,7 @@ impl<P: StructSerializer> StructSerializer for FlatStructSerializer<'_, P> {
// No-op - there may be more fields to be added to the struct in the parent
}

#[inline(always)]
fn ranges(&self) -> bool {
self.0.ranges()
}
Expand Down
Loading