-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tracking of receiver for incoming lambda's for outflow analysis + bet…
…ter handling of invoke and operator calls
- Loading branch information
1 parent
8f01427
commit 04d4f74
Showing
11 changed files
with
262 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
idea/src/org/jetbrains/kotlin/idea/slicer/LambdaReceiverInflowBehaviour.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. | ||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. | ||
*/ | ||
|
||
package org.jetbrains.kotlin.idea.slicer | ||
|
||
import org.jetbrains.kotlin.idea.findUsages.handlers.SliceUsageProcessor | ||
import org.jetbrains.kotlin.psi.KtElement | ||
|
||
object LambdaReceiverInflowBehaviour : KotlinSliceAnalysisMode.Behaviour { | ||
override fun processUsages(element: KtElement, parent: KotlinSliceUsage, uniqueProcessor: SliceUsageProcessor) { | ||
InflowSlicer(element, uniqueProcessor, parent).processChildren(parent.forcedExpressionMode) | ||
} | ||
|
||
override val slicePresentationPrefix: String | ||
get() = TODO() | ||
|
||
override val testPresentationPrefix: String | ||
get() = "[LAMBDA RECEIVER IN] " | ||
|
||
override fun equals(other: Any?) = other === this | ||
override fun hashCode() = 0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.