Sourceror.to_string

You're seeing just the function to_string, go back to Sourceror module for more information.
Link to this function

to_string(quoted, opts \\ [])

View Source

Specs

to_string(Macro.t(), keyword()) :: String.t()

Converts a quoted expression to a string.

The comments line number will be ignored and the line number of the associated node will be used when formatting the code.

Options

  • :line_length - The max line length for the formatted code.

  • :indent - how many indentations to insert at the start of each line. Note that this only prepends the indents without checking the indentation of nested blocks. Defaults to 0.

  • :indent_type - the type of indentation to use. It can be one of :spaces, :single_space or :tabs. Defaults to :spaces;