A specialization of GWarning for the use of the Gobstones parser.

Hierarchy (view full)

Constructors

Constructors

  • The constructor for Gobstones Parser warnings.

    Parameters

    • key: string

      A string indicating where to locate the concrete error message. Its value is expected to be one of the error fields corresponding to the field Parser.warning of the the translator | Locale of the component.

    • Optional interpolations: Record<string, any>

      A record indicating values for interpolations used in the value associated with the key given. Its value is expected to match with the arguments of the corresponding key in the translator | Locale of the component. It may be undefined if there are none, in which case the empty record is used.

    • Optional span: Span

      The span in the source where the token where error was detected started. It may be undefined, in which case an Unknown span is used (with both start and end as UnknownPosition).

    Returns ParserGWarning