Module ir_helpers

Source

Structs§

GenSeparatedValuesOptions
GenSeparatedValuesResult
GeneratedValue
LinesSpan
MultiLineOptions
SingleLineOptions

Enums§

BoolOrCondition

Functions§

gen_from_raw_string
Generates IR from a string as is and ignores its indent.
gen_from_raw_string_trim_line_ends
Generates IR from a string trimming the end of each line and ignores its indent.
gen_from_string
Generates IR from a string to a series of PrintItems.
gen_from_string_trim_line_ends
Generates IR from a string to a series of PrintItems trimming the end of each line for whitespace.
gen_js_like_comment_block
Generates IR from the provided text to a JS-like comment block (ex. /** some text */)
gen_js_like_comment_line
Generates IR from the provided text to a JS-like comment line (ex. // some text)
gen_separated_values
new_line_group
surround_with_new_lines
surround_with_newlines_indented_if_multi_line
Surrounds the items with newlines and indentation if its on multiple lines. Note: This currently inserts a possible newline at the start, but that might change or be made conditional in the future.
text_has_dprint_ignore
Gets if the provided text has the provided searching text in it (ex. “dprint-ignore”).
with_indent
with_indent_times
with_no_new_lines
with_queued_indent