Search in sources :

Example 1 with LazyAnnotations

use of org.jetbrains.kotlin.resolve.lazy.descriptors.LazyAnnotations in project kotlin by JetBrains.

the class ResolveSession method createAnnotations.

private LazyAnnotations createAnnotations(KtFile file, List<KtAnnotationEntry> annotationEntries) {
    LexicalScope scope = fileScopeProvider.getFileResolutionScope(file);
    LazyAnnotationsContextImpl lazyAnnotationContext = new LazyAnnotationsContextImpl(annotationResolver, storageManager, trace, scope);
    return new LazyAnnotations(lazyAnnotationContext, annotationEntries);
}
Also used : LexicalScope(org.jetbrains.kotlin.resolve.scopes.LexicalScope) LazyAnnotations(org.jetbrains.kotlin.resolve.lazy.descriptors.LazyAnnotations) LazyAnnotationsContextImpl(org.jetbrains.kotlin.resolve.lazy.descriptors.LazyAnnotationsContextImpl)

Aggregations

LazyAnnotations (org.jetbrains.kotlin.resolve.lazy.descriptors.LazyAnnotations)1 LazyAnnotationsContextImpl (org.jetbrains.kotlin.resolve.lazy.descriptors.LazyAnnotationsContextImpl)1 LexicalScope (org.jetbrains.kotlin.resolve.scopes.LexicalScope)1