blob: ce80ec7b0457cbf400341d4f1cd5f94be154535e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
package org.jetbrains.dokka.javadoc
import com.sun.javadoc.DocErrorReporter
import com.sun.javadoc.SourcePosition
object StandardReporter : DocErrorReporter {
override fun printWarning(msg: String?) {
System.err?.println("[WARN] $msg")
}
override fun printWarning(pos: SourcePosition?, msg: String?) {
System.err?.println("[WARN] ${pos?.file()}:${pos?.line()}:${pos?.column()}: $msg")
}
override fun printError(msg: String?) {
System.err?.println("[ERROR] $msg")
}
override fun printError(pos: SourcePosition?, msg: String?) {
System.err?.println("[ERROR] ${pos?.file()}:${pos?.line()}:${pos?.column()}: $msg")
}
override fun printNotice(msg: String?) {
System.err?.println("[NOTICE] $msg")
}
override fun printNotice(pos: SourcePosition?, msg: String?) {
System.err?.println("[NOTICE] ${pos?.file()}:${pos?.line()}:${pos?.column()}: $msg")
}
}
|