In the process of compiling a program there may be two kind of problems: errors, that abort the execution of the compilation, and warnings, that do not. GProblem is an abstract class to represent these two kinds of problems.

Hierarchy (view full)

Constructors

Constructors

  • The constructor for generic Gobstones errors.

    Parameters

    • type: string

      A string describing the type of problem to be used in the problem message.

    • key: string

      A string indicating which of the entries of the Locale of the component to use. Its value is expected to correspond to one of its keys (using hierarchical notation).

    • interpolations: Record<string, any> = {}

      A record indicating values for interpolations used in the value associated with the key given. It may be undefined if there are none, in which case the empty record is used.

    • span: Span = ...

    Returns GProblem