Helper functions used to build the DefaultErrorBuilder
error messages.
Attributes
- Since
-
4.3.0
- Companion
- class
- Source
- DefaultErrorBuilder.scala
- Graph
-
- Supertypes
- Self type
-
DefaultErrorBuilder.type
Members list
Value members
Concrete methods
Forms an error with the given header
followed by a colon, a newline, then the remainder of the lines indented.
Forms an error with the given header
followed by a colon, a newline, then the remainder of the lines indented.
Attributes
- Since
-
4.3.0
- Source
- DefaultErrorBuilder.scala
Generates a line of ^
characters as wide as specified starting as seen in as the given position, accounting for the length of the
ErrorLineStart
too.
Generates a line of ^
characters as wide as specified starting as seen in as the given position, accounting for the length of the
ErrorLineStart
too.
Attributes
- Since
-
4.3.0
- Source
- DefaultErrorBuilder.scala
Joins together the given sequences: if the first is empty, then Unknown
is prepended onto lines
instead.
Joins together the given sequences: if the first is empty, then Unknown
is prepended onto lines
instead.
Attributes
- Since
-
4.3.0
- Source
- DefaultErrorBuilder.scala
Filters out any empty messages and returns the rest.
Filters out any empty messages and returns the rest.
Attributes
- Since
-
4.3.0
- Source
- DefaultErrorBuilder.scala
Combines the alternatives, separated by commas/semicolons, with the final two separated by "or".
Combines the alternatives, separated by commas/semicolons, with the final two separated by "or". An Oxford comma is added if there are more than two elements, as this helps prevent ambiguity in the list. If the elements contain a comma, then semicolon is used as the list separator.
Attributes
- Since
-
4.3.0
- Source
- DefaultErrorBuilder.scala
Combines the alternatives, separated by commas/semicolons, with the final two separated by "or".
Combines the alternatives, separated by commas/semicolons, with the final two separated by "or". If the elements contain a comma, then semicolon is used as the list separator.
Value parameters
- oxfordComma
-
decides whether or not to employ an Oxford comma when there more than two elements to join: this helps prevent ambiguity in the list.
Attributes
- Since
-
4.3.0
- Source
- DefaultErrorBuilder.scala
Adds "expected " before the given alternatives should they exist.
Adds "expected " before the given alternatives should they exist.
Attributes
- Since
-
4.3.0
- Source
- DefaultErrorBuilder.scala
Forms an error message with blockError
, with two spaces of indentation and incorporating the source file and position into the header.
Forms an error message with blockError
, with two spaces of indentation and incorporating the source file and position into the header.
Attributes
- Since
-
4.3.0
- Source
- DefaultErrorBuilder.scala
Indents and concatenates the given lines by the given depth.
Indents and concatenates the given lines by the given depth.
Attributes
- Since
-
4.3.0
- Source
- DefaultErrorBuilder.scala
Adds the ErrorLineStart
character to the front of the given line.
Adds the ErrorLineStart
character to the front of the given line.
Attributes
- Since
-
4.3.0
- Source
- DefaultErrorBuilder.scala
Constructs error context by concatenating them together with a "caret line" underneath the focus line, line
, where the error occurs.
Constructs error context by concatenating them together with a "caret line" underneath the focus line, line
, where the error occurs.
Attributes
- Since
-
4.3.0
- Source
- DefaultErrorBuilder.scala
Returns the given message unchanged.
Returns the given item unchanged.
Pairs the line and column up in the form (line m, column n)
.
Pairs the line and column up in the form (line m, column n)
.
Attributes
- Since
-
4.3.0
- Source
- DefaultErrorBuilder.scala
If the given item is either a whitespace character or is otherwise "unprintable", a special name is given to it, otherwise the item is enclosed in double-quotes.
If the given item is either a whitespace character or is otherwise "unprintable", a special name is given to it, otherwise the item is enclosed in double-quotes.
Attributes
- Since
-
4.3.0
- Source
- DefaultErrorBuilder.scala
Returns the given reason unchanged.
If the sourceName
exists, wraps it in quotes and adds file
onto the front.
If the sourceName
exists, wraps it in quotes and adds file
onto the front.
Attributes
- Since
-
4.3.0
- Source
- DefaultErrorBuilder.scala
Forms a specialized error by combining all components in sequence, if there are no msgs
, then Unknown
is used instead.
Forms a specialized error by combining all components in sequence, if there are no msgs
, then Unknown
is used instead.
Attributes
- Since
-
4.3.0
- Source
- DefaultErrorBuilder.scala
Adds "unexpected " before the given item should it exist.
Adds "unexpected " before the given item should it exist.
Attributes
- Since
-
4.3.0
- Source
- DefaultErrorBuilder.scala
Forms a vanilla error by combining all the components in sequence, if there is no information other than the lines
, Unknown
is used instead.
Forms a vanilla error by combining all the components in sequence, if there is no information other than the lines
, Unknown
is used instead.
Attributes
- Since
-
4.3.0
- Source
- DefaultErrorBuilder.scala
Concrete fields
Attributes
- Source
- DefaultErrorBuilder.scala
Attributes
- Source
- DefaultErrorBuilder.scala
Attributes
- Source
- DefaultErrorBuilder.scala
Attributes
- Source
- DefaultErrorBuilder.scala
Attributes
- Source
- DefaultErrorBuilder.scala