InterpolationReporter

This trait defines a tool to report errors/warnings that do not depend on Position.

This trait defines a tool to report errors/warnings that do not depend on Position.

class Object
trait Matchable
class Any

Value members

Abstract methods

def argError(message: String, index: Int): Unit

Reports error linked with an argument to format.

Reports error linked with an argument to format.

Value Params
index

the index of the argument inside the list of arguments of the format function

message

the message to report as error/warning

Returns

an error depending on the function

def argsError(message: String): Unit

Claims whether an error or a warning has been reported

Claims whether an error or a warning has been reported

Returns

true if an error/warning has been reported, false

def partError(message: String, index: Int, offset: Int): Unit

Reports error/warning of size 1 linked with a part of the StringContext.

Reports error/warning of size 1 linked with a part of the StringContext.

Value Params
index

the index of the part inside the list of parts of the StringContext

message

the message to report as error/warning

offset

the index in the part String where the error is

Returns

an error/warning depending on the function

def partWarning(message: String, index: Int, offset: Int): Unit

Stores the old value of the reported and reset it to false

Stores the old value of the reported and reset it to false

Restores the value of the reported boolean that has been reset

Restores the value of the reported boolean that has been reset

def strCtxError(message: String): Unit

Reports error linked with the list of arguments or the StringContext.

Reports error linked with the list of arguments or the StringContext.

Value Params
message

the message to report in the error

Returns

an error