Fix AE: No receiver found on incomplete code with $-signs
^KT-24158 Fixed
This commit is contained in:
@@ -459,17 +459,13 @@ public class KotlinExpressionParsing extends AbstractKotlinParsing {
|
||||
if (!firstExpressionParsed) {
|
||||
expression.drop();
|
||||
expression = mark();
|
||||
firstExpressionParsed = parseAtomicExpression();
|
||||
continue;
|
||||
}
|
||||
|
||||
parseSelectorCallExpression();
|
||||
|
||||
if (firstExpressionParsed) {
|
||||
expression.done(expressionType);
|
||||
}
|
||||
else {
|
||||
firstExpressionParsed = true;
|
||||
continue;
|
||||
}
|
||||
expression.done(expressionType);
|
||||
}
|
||||
else if (atSet(Precedence.POSTFIX.getOperations())) {
|
||||
parseOperationReference();
|
||||
|
||||
@@ -39,7 +39,7 @@ interface KtQualifiedExpression : KtExpression {
|
||||
val operationSign: KtSingleValueToken
|
||||
get() = operationTokenNode.elementType as KtSingleValueToken
|
||||
|
||||
private fun KtQualifiedExpression.getExpression(afterOperation: Boolean): KtExpression? {
|
||||
private fun getExpression(afterOperation: Boolean): KtExpression? {
|
||||
return operationTokenNode.psi?.siblings(afterOperation, false)?.firstIsInstanceOrNull<KtExpression>()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user