Module dprint_core::formatting::parser_helpers[][src]

Structs

Enums

Functions

Parses the provided text to a JS-like comment block (ex. /** some text */)

Parses the provided text to a JS-like comment line (ex. // some text)

Parses a string as is and ignores its indent.

Parses a string trimming the end of each line and ignores its indent.

Parses a string to a series of PrintItems.

Parses a string to a series of PrintItems trimming the end of each line for whitespace.

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.

Gets if the provided text has the provided searching text in it (ex. “dprint-ignore”).