[SLC] introduce EmptyAnnotationsProvider
^KT-56046
This commit is contained in:
committed by
Space Team
parent
df12851335
commit
e7eaf08cd7
+17
@@ -0,0 +1,17 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||||
|
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.jetbrains.kotlin.light.classes.symbol.annotations
|
||||||
|
|
||||||
|
import org.jetbrains.kotlin.analysis.api.annotations.KtAnnotationApplication
|
||||||
|
import org.jetbrains.kotlin.name.ClassId
|
||||||
|
|
||||||
|
object EmptyAnnotationsProvider : AnnotationsProvider {
|
||||||
|
override fun classIds(): Collection<ClassId> = emptyList()
|
||||||
|
override fun get(classId: ClassId): Collection<KtAnnotationApplication> = emptyList()
|
||||||
|
override fun contains(classId: ClassId): Boolean = false
|
||||||
|
override fun isTheSameAs(other: Any?): Boolean = this === other
|
||||||
|
override fun ownerClassId(): ClassId? = null
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user