Don't show literals in "show expression type" popup
This commit is contained in:
@@ -48,6 +48,7 @@ class KotlinExpressionTypeProvider : ExpressionTypeProvider<KtExpression>() {
|
||||
is KtStatementExpression, is KtDestructuringDeclaration -> false
|
||||
is KtIfExpression, is KtWhenExpression, is KtTryExpression -> shouldShowStatementType()
|
||||
is KtLoopExpression -> false
|
||||
is KtConstantExpression -> false
|
||||
else -> getQualifiedExpressionForSelector() == null && parent !is KtCallableReferenceExpression
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
val x = if (2 > 1) <caret>3 else 4
|
||||
|
||||
// TYPE: 3 -> <html>Int</html>
|
||||
// TYPE: if (2 > 1) 3 else 4 -> <html>Int</html>
|
||||
// TYPE: val x = if (2 > 1) 3 else 4 -> <html>Int</html>
|
||||
|
||||
@@ -2,7 +2,6 @@ val x = if (flag) {
|
||||
if (flag2) 1<caret>3 else 7
|
||||
} else 42
|
||||
|
||||
// TYPE: 13 -> <html>Int</html>
|
||||
// TYPE: if (flag2) 13 else 7 -> <html>Int</html>
|
||||
// TYPE: if (flag) { if (flag2) 13 else 7 } else 42 -> <html>Int</html>
|
||||
// TYPE: val x = if (flag) { if (flag2) 13 else 7 } else 42 -> <html>Int</html>
|
||||
|
||||
Reference in New Issue
Block a user