Skip to content

Commit 1025b6b

Browse files
neetopiaKSP Auto Pick
authored and
KSP Auto Pick
committed
remove unused code
(cherry picked from commit dd557ac)
1 parent 6485431 commit 1025b6b

File tree

1 file changed

+0
-39
lines changed

1 file changed

+0
-39
lines changed

kotlin-analysis-api/src/main/kotlin/com/google/devtools/ksp/impl/symbol/kotlin/KSValueArgumentImpl.kt

-39
Original file line numberDiff line numberDiff line change
@@ -55,45 +55,6 @@ class KSValueArgumentImpl private constructor(
5555
override fun toString(): String {
5656
return "${name?.asString() ?: ""}:$value"
5757
}
58-
//
59-
// private fun KtAnnotationValue.toValue(): Any? = when (this) {
60-
// is KtArrayAnnotationValue -> this.values.map { it.toValue() }
61-
// is KtAnnotationApplicationValue -> KSAnnotationImpl.getCached(this.annotationValue)
62-
// // TODO: Enum entry should return a type, use declaration as a placeholder.
63-
// is KtEnumEntryAnnotationValue -> this.callableId?.classId?.let {
64-
// analyze {
65-
// it.toKtClassSymbol()?.let {
66-
// it.declarations().filterIsInstance<KSClassDeclarationEnumEntryImpl>().singleOrNull {
67-
// it.simpleName.asString() == [email protected]?.callableName?.asString()
68-
// }
69-
// }
70-
// }
71-
// } ?: KSErrorType(callableId?.toString())
72-
// is KtKClassAnnotationValue -> {
73-
// val classDeclaration = when (this) {
74-
// is KtKClassAnnotationValue.KtNonLocalKClassAnnotationValue -> analyze {
75-
// ([email protected]())?.let { KSClassDeclarationImpl.getCached(it) }
76-
// }
77-
// is KtKClassAnnotationValue.KtLocalKClassAnnotationValue -> analyze {
78-
// [email protected]()?.let {
79-
// KSClassDeclarationImpl.getCached(it)
80-
// }
81-
// }
82-
// is KtKClassAnnotationValue.KtErrorClassAnnotationValue -> null
83-
// }
84-
// classDeclaration?.asStarProjectedType() ?: KSErrorType(
85-
// when (this) {
86-
// is KtKClassAnnotationValue.KtErrorClassAnnotationValue -> unresolvedQualifierName
87-
// is KtKClassAnnotationValue.KtLocalKClassAnnotationValue -> ktClass.run {
88-
// fqName?.asString() ?: name
89-
// }
90-
// is KtKClassAnnotationValue.KtNonLocalKClassAnnotationValue -> classId.asFqNameString()
91-
// } ?: sourcePsi?.text
92-
// )
93-
// }
94-
// is KtConstantAnnotationValue -> this.constantValue.value
95-
// is KtUnsupportedAnnotationValue -> null
96-
// }
9758

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

0 commit comments

Comments
 (0)