Structs

Enums

Functions

Generates IR from a string as is and ignores its indent.

Generates IR from a string trimming the end of each line and ignores its indent.

Generates IR from a string to a series of PrintItems.

Generates IR from a string to a series of PrintItems trimming the end of each line for whitespace.

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

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

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”).