IdeErrorReporter

Error reporting protocol for IDE-mode parsing. If the parser's error reporter implements this interface, these offset/length overloads are called instead of the line-based ErrorReporter versions.

Inheritors

Functions

Link copied to clipboard
abstract fun error(message: String, sourceName: String?, line: Int, lineSource: String?, lineOffset: Int)

Report an error. The implementing class is free to throw an exception.

abstract fun error(message: String, sourceName: String?, offset: Int, length: Int)

Report an error.

Link copied to clipboard
abstract fun runtimeError(message: String, sourceName: String?, line: Int, lineSource: String?, lineOffset: Int): EvaluatorException

Creates an EvaluatorException that may be thrown. runtimeErrors, unlike errors, will always terminate the current script.

Link copied to clipboard
abstract fun warning(message: String, sourceName: String?, line: Int, lineSource: String?, lineOffset: Int)

Report a warning. The implementing class may choose to ignore the warning.

abstract fun warning(message: String, sourceName: String?, offset: Int, length: Int)

Report a warning.