Skip to content

Commit d069bce

Browse files
marcopennekampSpace Team
authored and
Space Team
committed
[AA] Update content scope-related KDoc
^KT-73290
1 parent 7f2f3b4 commit d069bce

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

analysis/analysis-api-platform-interface/src/org/jetbrains/kotlin/analysis/api/platform/projectStructure/KaContentScopeProvider.kt

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ import com.intellij.psi.search.GlobalSearchScope
1111
import org.jetbrains.kotlin.analysis.api.platform.KaEngineService
1212
import org.jetbrains.kotlin.analysis.api.projectStructure.KaModule
1313

14+
/**
15+
* An engine services which *must* be used to calculate a [KaModule]'s [content scope][KaModule.contentScope] lazily.
16+
*/
1417
public interface KaContentScopeProvider : KaEngineService {
1518
/**
1619
* Calculates a [KaModule.contentScope] from [KaModule.baseContentScope] for the given [KaModule] using [KotlinContentScopeRefiner]s.
@@ -20,4 +23,4 @@ public interface KaContentScopeProvider : KaEngineService {
2023
public companion object {
2124
public fun getInstance(project: Project): KaContentScopeProvider = project.service()
2225
}
23-
}
26+
}

analysis/analysis-api/api/analysis-api-platform-interface.undocumented

-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ permissions/KaAnalysisPermissionChecker.kt:KaAnalysisPermissionChecker:isAnalysi
7575
permissions/KotlinAnalysisPermissionOptions.kt:Companion:getInstance()
7676
permissions/KotlinDefaultAnalysisPermissionOptions.kt:KotlinDefaultAnalysisPermissionOptions
7777
projectStructure/KaContentScopeProvider.kt:Companion:getInstance(Project)
78-
projectStructure/KaContentScopeProvider.kt:KaContentScopeProvider
7978
projectStructure/KaDanglingFileModuleImpl.kt:KaDanglingFileModuleImpl
8079
projectStructure/KaDanglingFileModuleImpl.kt:KaDanglingFileModuleImpl:null
8180
projectStructure/KaModuleBase.kt:abstract KaModuleBase

analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/projectStructure/KaModule.kt

+8-7
Original file line numberDiff line numberDiff line change
@@ -76,19 +76,20 @@ public interface KaModule {
7676
public val directFriendDependencies: List<KaModule>
7777

7878
/**
79-
* A base content scope of the module,
80-
* which is not yet refined by extension and restriction scopes provided by [KotlinContentScopeRefiner].
79+
* A base content scope of the module, which is not yet refined by extension and restriction scopes provided by
80+
* `KotlinContentScopeRefiner`.
8181
*
82-
* Note that [baseContentScope] doesn't represent the actual content scope of the current module.
83-
* To get a content scope of the module, [contentScope] should be used instead.
82+
* Note that [baseContentScope] doesn't represent the actual content scope of the current module. To get a content scope of the module,
83+
* [contentScope] should be used instead.
8484
*/
8585
@KaPlatformInterface
8686
public val baseContentScope: GlobalSearchScope
8787

8888
/**
89-
* Represents the content scope of a current module, i.e.,
90-
* a [GlobalSearchScope] which determines all the files that are contained in the module.
91-
* This scope is lazily built from [baseContentScope] using [KotlinContentScopeRefiner] extension points.
89+
* Represents the content scope of a current module, i.e., a [GlobalSearchScope] which determines all the files that are contained in
90+
* the module.
91+
*
92+
* This scope should be lazily built from [baseContentScope] using `KotlinContentScopeRefiner` extension points.
9293
*/
9394
public val contentScope: GlobalSearchScope
9495

0 commit comments

Comments
 (0)