org.jetbrains.kotlin.serialization.deserialization.AnnotationLoader.kt Maven / Gradle / Ivy
/*
* Copyright 2010-2021 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.serialization.deserialization
import org.jetbrains.kotlin.metadata.ProtoBuf
import org.jetbrains.kotlin.metadata.deserialization.NameResolver
import org.jetbrains.kotlin.protobuf.MessageLite
// The MessageLite instance everywhere should be Constructor, Function or Property
// TODO: simplify this interface
interface AnnotationLoader {
fun loadClassAnnotations(
container: ProtoContainer.Class
): List
fun loadCallableAnnotations(
container: ProtoContainer,
proto: MessageLite,
kind: AnnotatedCallableKind
): List
fun loadPropertyBackingFieldAnnotations(
container: ProtoContainer,
proto: ProtoBuf.Property
): List
fun loadPropertyDelegateFieldAnnotations(
container: ProtoContainer,
proto: ProtoBuf.Property
): List
fun loadEnumEntryAnnotations(
container: ProtoContainer,
proto: ProtoBuf.EnumEntry
): List
fun loadValueParameterAnnotations(
container: ProtoContainer,
callableProto: MessageLite,
kind: AnnotatedCallableKind,
parameterIndex: Int,
proto: ProtoBuf.ValueParameter
): List
fun loadExtensionReceiverParameterAnnotations(
container: ProtoContainer,
proto: MessageLite,
kind: AnnotatedCallableKind
): List
fun loadTypeAnnotations(
proto: ProtoBuf.Type,
nameResolver: NameResolver
): List
fun loadTypeParameterAnnotations(
proto: ProtoBuf.TypeParameter,
nameResolver: NameResolver
): List
fun loadAnnotation(proto: ProtoBuf.Annotation, nameResolver: NameResolver): A
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy