New evaluator that doesn't depend on the 'extract function' refactoring (KT-28192, KT-25220, KT-25222, KT-21650)
This commit is contained in:
@@ -199,3 +199,5 @@ abstract class KtCodeFragment(
|
||||
private val LOG = Logger.getInstance(KtCodeFragment::class.java)
|
||||
}
|
||||
}
|
||||
|
||||
var KtCodeFragment.externalDescriptors: List<DeclarationDescriptor>? by CopyablePsiUserDataProperty(Key.create("EXTERNAL_DESCRIPTORS"))
|
||||
@@ -153,6 +153,9 @@ fun KtExpression.getQualifiedExpressionForReceiverOrThis(): KtExpression {
|
||||
fun KtExpression.isDotReceiver(): Boolean =
|
||||
(parent as? KtDotQualifiedExpression)?.receiverExpression == this
|
||||
|
||||
fun KtExpression.isDotSelector(): Boolean =
|
||||
(parent as? KtDotQualifiedExpression)?.selectorExpression == this
|
||||
|
||||
fun KtExpression.getPossiblyQualifiedCallExpression(): KtCallExpression? =
|
||||
((this as? KtQualifiedExpression)?.selectorExpression ?: this) as? KtCallExpression
|
||||
|
||||
|
||||
Reference in New Issue
Block a user