type unescaped in *.kt files
This commit is contained in:
+3
-3
@@ -36,9 +36,9 @@ class HtmlKotlinVisitor: JetTreeVisitor<StringBuilder>() {
|
||||
return super.visitClassBody(classBody, data)
|
||||
}
|
||||
|
||||
override fun visitFunctionType(`type`: JetFunctionType, data: StringBuilder?): Void? {
|
||||
println("======================= function Type $`type`")
|
||||
return super.visitFunctionType(`type`, data)
|
||||
override fun visitFunctionType(type: JetFunctionType, data: StringBuilder?): Void? {
|
||||
println("======================= function Type $type")
|
||||
return super.visitFunctionType(type, data)
|
||||
}
|
||||
|
||||
protected fun accept(child: PsiElement?, data: StringBuilder?): Unit {
|
||||
|
||||
@@ -99,8 +99,8 @@ $imports
|
||||
val name = method.getName() ?: ""
|
||||
fun propertyName(): String {
|
||||
val answer = name.substring(3).decapitalize()
|
||||
return if (answer == "type") {
|
||||
"`type`"
|
||||
return if (answer == "typealias") {
|
||||
"typealias"
|
||||
} else answer
|
||||
}
|
||||
fun propertyType() = simpleTypeName(method.getReturnType())
|
||||
|
||||
Reference in New Issue
Block a user