From c011a48a249ac3efc19dc994a401054d2f13d0be Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Thu, 4 Jan 2024 11:26:27 -0800 Subject: [PATCH] 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. --- native/libcst/src/nodes/expression.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/libcst/src/nodes/expression.rs b/native/libcst/src/nodes/expression.rs index 39ca64b1..971ef8bc 100644 --- a/native/libcst/src/nodes/expression.rs +++ b/native/libcst/src/nodes/expression.rs @@ -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,