mirror of
https://github.com/Instagram/LibCST.git
synced 2025-12-23 10:35:53 +00:00
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:
parent
a5f1f9a231
commit
c011a48a24
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue