All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.devtools.ksp.impl.symbol.java.KSValueArgumentLiteImpl.kt Maven / Gradle / Ivy

There is a newer version: 2.1.0-RC2-1.0.28
Show newest version
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