Allow Element::codegen to be used by external users (#1071)

The `Codegen` trait is `pub`, but users wanting to explicitly perform
codegen for `Element` had to copy-paste this part of the code.
This commit is contained in:
Wilfred Hughes 2024-01-04 11:26:27 -08:00 committed by GitHub
parent a5f1f9a231
commit c011a48a24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -937,7 +937,7 @@ pub enum Element<'a> {
}
impl<'a> Element<'a> {
fn codegen(
pub fn codegen(
&self,
state: &mut CodegenState<'a>,
default_comma: bool,