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

com.google.devtools.ksp.impl.symbol.kotlin.KSDynamicReferenceImpl.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.kotlin

import com.google.devtools.ksp.common.KSObjectCache
import com.google.devtools.ksp.symbol.*

class KSDynamicReferenceImpl private constructor(override val parent: KSNode) : KSDynamicReference {
    companion object : KSObjectCache() {
        fun getCached(parent: KSTypeReference) = cache.getOrPut(parent) { KSDynamicReferenceImpl(parent) }
    }

    override val origin = Origin.KOTLIN

    override val location: Location by lazy {
        NonExistLocation
    }

    override val typeArguments: List = emptyList()

    override fun  accept(visitor: KSVisitor, data: D): R {
        return visitor.visitDynamicReference(this, data)
    }

    override fun toString(): String {
        return ""
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy