com.google.devtools.ksp.impl.symbol.java.KSValueArgumentLiteImpl.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of symbol-processing-cmdline Show documentation
Show all versions of symbol-processing-cmdline Show documentation
Symbol processing for K/N and command line
package com.google.devtools.ksp.impl.symbol.java
import com.google.devtools.ksp.common.IdKeyPair
import com.google.devtools.ksp.common.KSObjectCache
import com.google.devtools.ksp.impl.symbol.kotlin.AbstractKSValueArgumentImpl
import com.google.devtools.ksp.symbol.*
class KSValueArgumentLiteImpl private constructor(
override val name: KSName?,
override val value: Any?,
override val parent: KSNode,
override val origin: Origin,
override val location: Location
) : AbstractKSValueArgumentImpl() {
companion object : KSObjectCache, KSValueArgumentLiteImpl>() {
fun getCached(
name: KSName?,
value: Any?,
parent: KSNode,
origin: Origin,
location: Location = NonExistLocation
) = KSValueArgumentLiteImpl.cache.getOrPut(IdKeyPair(name, value)) {
KSValueArgumentLiteImpl(name, value, parent, origin, location)
}
}
override val isSpread: Boolean = false
override val annotations: Sequence = emptySequence()
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy