type unescaped in *.kt files

This commit is contained in:
Andrey Breslav
2014-10-14 08:27:21 +04:00
parent 56d1979d9b
commit b1e452b568
38 changed files with 130 additions and 130 deletions
@@ -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())