[LL FIR] ContextCollector: optimize collector for file elements
We shouldn't trigger declaration processing if we want to check just annotations/package/imports. But currently, we still will iterate over the entire file if there is an element somewhere inside package/import (see `fileImportInside.kt` test case) ^KT-65344 ^KT-65560 Fixed
This commit is contained in:
committed by
Space Team
parent
0c3a1dfd67
commit
47e8d987b9
@@ -13,10 +13,10 @@ Tower Data Context:
|
||||
Scope: FirExplicitSimpleImportingScope
|
||||
|
||||
FILE: [ResolvedTo(IMPORTS)] fileAnnotation.kt
|
||||
@FILE:R|Anno|[Types]()
|
||||
[ResolvedTo(STATUS)] annotations container
|
||||
@R|kotlin/annotation/Target|[Types](FILE#) public final [ResolvedTo(STATUS)] annotation class Anno : R|kotlin/Annotation| {
|
||||
public [ResolvedTo(STATUS)] constructor(): R|Anno| {
|
||||
@FILE:Anno[Unresolved]()
|
||||
[ResolvedTo(RAW_FIR)] annotations container
|
||||
@Target[Unresolved](LAZY_EXPRESSION) public final? [ResolvedTo(RAW_FIR)] annotation class Anno : R|kotlin/Annotation| {
|
||||
public? [ResolvedTo(RAW_FIR)] constructor(): R|Anno| {
|
||||
LAZY_super<R|kotlin/Any|>
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user