Accumulator

com.ossuminc.riddl.language.Messages.Accumulator
See theAccumulator companion object
case class Accumulator()

A utility to help accumulate error messages. Whether the messages are accumulated or not is governed by the settings in the options field of com.ossuminc.riddl.utils.PlatformContext

Attributes

Companion
object
Source
Messages.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def add(message: Message)(using pc: PlatformContext): this.type

Add an arbitrary Message to the accumulated Messages

Add an arbitrary Message to the accumulated Messages

Value parameters

message

The text of the message to add

Attributes

Returns

This type, so you can chain another call to this accumulator

Source
Messages.scala
def addError(loc: At, msg: String)(using pc: PlatformContext): this.type

Add an Error message to the accumulated Messages

Add an Error message to the accumulated Messages

Value parameters

loc

The location in the source related to the message.

msg

The text of the message to add

Attributes

Returns

This type, so you can chain another call to this accumulator

Source
Messages.scala
def addMissing(loc: At, msg: String)(using pc: PlatformContext): this.type

Add a MissingWarning message to the accumulated Messages

Add a MissingWarning message to the accumulated Messages

Value parameters

loc

The location in the source related to the message.

msg

The text of the message to add

Attributes

Returns

This type, so you can chain another call to this accumulator

Source
Messages.scala
def addSevere(loc: At, msg: String)(using pc: PlatformContext): this.type

Add a SevereError message to the accumulated Messages

Add a SevereError message to the accumulated Messages

Value parameters

loc

The location in the source related to the message.

msg

The text of the message to add

Attributes

Returns

This type, so you can chain another call to this accumulator

Source
Messages.scala
def addStyle(loc: At, msg: String)(using pc: PlatformContext): this.type

Add a StyleWarning message to the accumulated Messages

Add a StyleWarning message to the accumulated Messages

Value parameters

loc

The location in the source related to the message.

msg

The text of the message to add

Attributes

Returns

This type, so you can chain another call to this accumulator

Source
Messages.scala
def addUsage(loc: At, msg: String)(using pc: PlatformContext): this.type

Add a UsageWarning message to the accumulated Messages

Add a UsageWarning message to the accumulated Messages

Value parameters

loc

The location in the source related to the message.

msg

The text of the message to add

Attributes

Returns

This type, so you can chain another call to this accumulator

Source
Messages.scala
def addWarning(loc: At, msg: String)(using pc: PlatformContext): this.type

Add a Warning message to the accumulated Messages

Add a Warning message to the accumulated Messages

Value parameters

loc

The location in the source related to the message.

msg

The text of the message to add

Attributes

Returns

This type, so you can chain another call to this accumulator

Source
Messages.scala
def error(message: String, loc: At)(using pc: PlatformContext): this.type

Add an Error message to the accumulated Messages

Add an Error message to the accumulated Messages

Value parameters

loc

The location in the source related to the message.

message

The text of the message to add

Attributes

Returns

This type, so you can chain another call to this accumulator

Source
Messages.scala
def info(message: String, loc: At)(using pc: PlatformContext): this.type

Add an Info message to the accumulated Messages

Add an Info message to the accumulated Messages

Value parameters

loc

The location in the source related to the message.

message

The text of the message to add

Attributes

Returns

This type, so you can chain another call to this accumulator

Source
Messages.scala

Attributes

Source
Messages.scala

Attributes

Source
Messages.scala
def severe(message: String, loc: At)(using pc: PlatformContext): this.type

Add a SevereError message to the accumulated Messages

Add a SevereError message to the accumulated Messages

Value parameters

loc

The location in the source related to the message.

message

The text of the message to add

Attributes

Returns

This type, so you can chain another call to this accumulator

Source
Messages.scala
def size: Int

Attributes

Source
Messages.scala
def style(message: String, loc: At)(using pc: PlatformContext): this.type

Add a StyleWarning message to the accumulated Messages

Add a StyleWarning message to the accumulated Messages

Value parameters

loc

The location in the source related to the message.

message

The text of the message to add

Attributes

Returns

This type, so you can chain another call to this accumulator

Source
Messages.scala

Attributes

Source
Messages.scala
def warning(message: String, loc: At)(using pc: PlatformContext): this.type

Add a Warning message to the accumulated Messages

Add a Warning message to the accumulated Messages

Value parameters

loc

The location in the source related to the message.

message

The text of the message to add

Attributes

Returns

This type, so you can chain another call to this accumulator

Source
Messages.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product