warning

open override fun warning(message: String, sourceName: String?, line: Int, lineSource: String?, lineOffset: Int)

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

Parameters

message

a String describing the warning

sourceName

the JavaScript source where the warning occurred, typically a filename or URL

line

the line number associated with the warning

lineSource

the text of the line (may be null)

lineOffset

the offset into lineSource where the problem was detected


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

Report a warning.

Parameters

message

a String describing the warning

sourceName

the JavaScript source, typically a filename or URL

offset

the warning's 0-indexed char position in the input stream

length

the length of the region contributing to the warning