KT-61890 [AA] Add testdata to ensure KDoc completion support in IDE

Completion in the IDE relies on correct scopes for KDoc positions.
So we add testData for `KtScopeProvider` and `ContextCollector`
to ensure that there are no regressions
This commit is contained in:
Roman Golyshev
2023-11-14 13:49:06 +01:00
committed by teamcity
parent 1b1df9f0db
commit 4f136cde31
14 changed files with 1084 additions and 0 deletions
@@ -0,0 +1,45 @@
Tower Data Context:
Element 0
Scope: FirDefaultStarImportingScope
Element 1
Scope: FirDefaultSimpleImportingScope
Element 2
Scope: FirExplicitStarImportingScope
Element 3
Scope: FirDefaultSimpleImportingScope
Element 4
Scope: FirDefaultSimpleImportingScope
Element 5
Scope: FirPackageMemberScope
Element 6
Scope: FirExplicitSimpleImportingScope
Element 7
Scope: FirMemberTypeParameterScope
Classifiers:
FirTypeParameterSymbol T
Element 8
Implicit receiver:
FirRegularClassSymbol context(R|test/ContextReceiver|)
public final class MyClass<T> : R|kotlin/Any|
Type: test.MyClass<T>
Element 9
Context receivers:
FirRegularClassSymbol context(R|test/ContextReceiver|)
public final class MyClass<T> : R|kotlin/Any|
Type: test.ContextReceiver
Label: ContextReceiver
FILE: [ResolvedTo(IMPORTS)] wholeDeclaration_class.kt
public final [ResolvedTo(STATUS)] class ContextReceiver : R|kotlin/Any| {
public [ResolvedTo(STATUS)] constructor(): R|test/ContextReceiver| {
LAZY_super<R|kotlin/Any|>
}
}
context(R|test/ContextReceiver|)
public final [ResolvedTo(STATUS)] class MyClass<[ResolvedTo(STATUS)] T> : R|kotlin/Any| {
public [ResolvedTo(STATUS)] constructor<[ResolvedTo(STATUS)] T>([ResolvedTo(STATUS)] param: R|kotlin/String|): R|test/MyClass<T>| {
LAZY_super<R|kotlin/Any|>
}
}