aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Analysis/AnalysisEnvironment.kt4
-rw-r--r--test/data/format/annotations.kt2
-rw-r--r--test/data/functions/functionWithAnnotatedParam.kt2
3 files changed, 5 insertions, 3 deletions
diff --git a/src/Analysis/AnalysisEnvironment.kt b/src/Analysis/AnalysisEnvironment.kt
index 164f76f5..39a05604 100644
--- a/src/Analysis/AnalysisEnvironment.kt
+++ b/src/Analysis/AnalysisEnvironment.kt
@@ -19,6 +19,7 @@ import org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment
import org.jetbrains.kotlin.cli.jvm.config.*
import org.jetbrains.kotlin.config.*
import org.jetbrains.kotlin.idea.caches.resolve.KotlinCacheService
+import org.jetbrains.kotlin.idea.caches.resolve.KotlinOutOfBlockCompletionModificationTracker
import org.jetbrains.kotlin.idea.caches.resolve.LibraryModificationTracker
import org.jetbrains.kotlin.idea.caches.resolve.ResolutionFacade
import org.jetbrains.kotlin.resolve.lazy.ResolveSession
@@ -58,7 +59,8 @@ public class AnalysisEnvironment(val messageCollector: MessageCollector, body: A
LibraryModificationTracker(environment.project))
projectComponentManager.registerService(javaClass<KotlinCacheService>(),
KotlinCacheService(environment.project))
-
+ projectComponentManager.registerService(javaClass<KotlinOutOfBlockCompletionModificationTracker>(),
+ KotlinOutOfBlockCompletionModificationTracker())
val sourceFiles = environment.getSourceFiles()
val facade = KotlinCacheService.getInstance(environment.project).getResolutionFacade(sourceFiles)
diff --git a/test/data/format/annotations.kt b/test/data/format/annotations.kt
index 9356d4ca..57f76249 100644
--- a/test/data/format/annotations.kt
+++ b/test/data/format/annotations.kt
@@ -1,5 +1,5 @@
data class Foo {
- inline fun bar([noinline] notInlined: () -> Unit) {
+ inline fun bar(noinline notInlined: () -> Unit) {
}
inline val x: Int
diff --git a/test/data/functions/functionWithAnnotatedParam.kt b/test/data/functions/functionWithAnnotatedParam.kt
index 8922f765..640bec83 100644
--- a/test/data/functions/functionWithAnnotatedParam.kt
+++ b/test/data/functions/functionWithAnnotatedParam.kt
@@ -1,2 +1,2 @@
-fun function([noinline] notInlined: () -> Unit) {
+fun function(noinline notInlined: () -> Unit) {
}