ProblemsAtPosition

class ProblemsAtPosition : Comparable<ProblemsAtPosition>

An aggregate of problems at a specific token. It also includes the String used to mark the location of the problem in the source text.

Author

Mark van Gulik

Parameters

lexingState

The LexingState where the problems occurred.

lexingStateAfterToken

The LexingState right after the token where the problems occurred. Use the longest token if the lexing is ambiguous. This ensures the source code that gets output with an error doesn't cut off a multi-line token.

indicator

The String that marks the problems in the source.

describers

The List of Describers that describe the problems at the specified token.

Functions

Link copied to clipboard
open operator override fun compareTo(other: ProblemsAtPosition): Int

Properties

Link copied to clipboard
val lineNumber: Int

The one-based line number.

Link copied to clipboard
val position: Int

The one-based index into the source.