KnowsCurrentFile

interface KnowsCurrentFile

Utility methods for working with a MessageCollector when the current file is available

Functions

Link copied to clipboard
open fun IrElement.messageLocation(): CompilerMessageSourceLocation?

Get the message location for an element

Link copied to clipboard
open fun MessageCollector.report(message: String, level: CompilerMessageSeverity, location: CompilerMessageSourceLocation?)

Report a message

Link copied to clipboard
open fun MessageCollector.reportAt(message: String, level: CompilerMessageSeverity, location: IrElement)

Report a message at the given element

Link copied to clipboard
open fun MessageCollector.reportError(message: String, location: CompilerMessageSourceLocation?)
open fun MessageCollector.reportError(message: String, location: IrElement)
Link copied to clipboard
open fun MessageCollector.reportInfo(message: String, location: CompilerMessageSourceLocation?)
open fun MessageCollector.reportInfo(message: String, location: IrElement)
Link copied to clipboard
open fun MessageCollector.reportWarning(message: String, location: CompilerMessageSourceLocation?)
open fun MessageCollector.reportWarning(message: String, location: IrElement)

Properties

Link copied to clipboard
abstract val file: IrFile

Gets the current file

Inheritors

Link copied to clipboard

Sources

Link copied to clipboard