Skip to main content

convert_private_fields

Function convert_private_fields 

Source
pub fn convert_private_fields(source: &str, prefix: &str) -> String
Expand description

Apply the private field conversion to source code

This is a simple string-based replacement for basic cases. For complex cases, the SWC AST transform should be used.