Struct ezno_parser::ToStringSettings
source · pub struct ToStringSettings {
pub pretty: bool,
pub include_types: bool,
pub include_decorators: bool,
pub include_comments: bool,
pub indent_with: String,
pub expect_jsx: bool,
pub expect_cursors: bool,
}
Expand description
Settings for serializing ASTNodes
Fields§
§pretty: bool
Does not include whitespace minification
include_types: bool
Include type annotation syntax
include_decorators: bool
TODO not sure about this
include_comments: bool
§indent_with: String
§expect_jsx: bool
If false, panics if sees JSX
expect_cursors: bool
Implementations§
source§impl ToStringSettings
impl ToStringSettings
pub fn minified() -> Self
sourcepub fn typescript() -> Self
pub fn typescript() -> Self
With typescript type syntax