Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
neetopia committed Jul 9, 2024
1 parent c28c357 commit dd557ac
Showing 1 changed file with 0 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,45 +55,6 @@ class KSValueArgumentImpl private constructor(
override fun toString(): String {
return "${name?.asString() ?: ""}:$value"
}
//
// private fun KtAnnotationValue.toValue(): Any? = when (this) {
// is KtArrayAnnotationValue -> this.values.map { it.toValue() }
// is KtAnnotationApplicationValue -> KSAnnotationImpl.getCached(this.annotationValue)
// // TODO: Enum entry should return a type, use declaration as a placeholder.
// is KtEnumEntryAnnotationValue -> this.callableId?.classId?.let {
// analyze {
// it.toKtClassSymbol()?.let {
// it.declarations().filterIsInstance<KSClassDeclarationEnumEntryImpl>().singleOrNull {
// it.simpleName.asString() == this@toValue.callableId?.callableName?.asString()
// }
// }
// }
// } ?: KSErrorType(callableId?.toString())
// is KtKClassAnnotationValue -> {
// val classDeclaration = when (this) {
// is KtKClassAnnotationValue.KtNonLocalKClassAnnotationValue -> analyze {
// (this@toValue.classId.toKtClassSymbol())?.let { KSClassDeclarationImpl.getCached(it) }
// }
// is KtKClassAnnotationValue.KtLocalKClassAnnotationValue -> analyze {
// this@toValue.ktClass.getNamedClassOrObjectSymbol()?.let {
// KSClassDeclarationImpl.getCached(it)
// }
// }
// is KtKClassAnnotationValue.KtErrorClassAnnotationValue -> null
// }
// classDeclaration?.asStarProjectedType() ?: KSErrorType(
// when (this) {
// is KtKClassAnnotationValue.KtErrorClassAnnotationValue -> unresolvedQualifierName
// is KtKClassAnnotationValue.KtLocalKClassAnnotationValue -> ktClass.run {
// fqName?.asString() ?: name
// }
// is KtKClassAnnotationValue.KtNonLocalKClassAnnotationValue -> classId.asFqNameString()
// } ?: sourcePsi?.text
// )
// }
// is KtConstantAnnotationValue -> this.constantValue.value
// is KtUnsupportedAnnotationValue -> null
// }

override fun defer(): Restorable = Restorable { getCached(namedAnnotationValue, origin) }
}

0 comments on commit dd557ac

Please sign in to comment.