[SLC] introduce EmptyAnnotationsProvider

^KT-56046
This commit is contained in:
Dmitrii Gridin
2023-01-25 14:34:10 +01:00
committed by Space Team
parent df12851335
commit e7eaf08cd7
@@ -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
}