Evaluate expression: Don't evaluate something when it is not an expression

#KT-5561 Fixed
This commit is contained in:
Natalia Ukhorskaya
2014-08-04 09:56:28 +04:00
parent 8f388c49c2
commit 6fa4d8fc83
8 changed files with 61 additions and 7 deletions
@@ -36,6 +36,11 @@ public class SelectExpressionForDebuggerTestGenerated extends AbstractSelectExpr
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.TestsPackage", new File("idea/testData/debugger/selectExpression"), Pattern.compile("^(.+)\\.kt$"), true);
}
@TestMetadata("annotation.kt")
public void testAnnotation() throws Exception {
doTest("idea/testData/debugger/selectExpression/annotation.kt");
}
@TestMetadata("binaryExpression.kt")
public void testBinaryExpression() throws Exception {
doTest("idea/testData/debugger/selectExpression/binaryExpression.kt");
@@ -71,6 +76,11 @@ public class SelectExpressionForDebuggerTestGenerated extends AbstractSelectExpr
doTest("idea/testData/debugger/selectExpression/getConvention.kt");
}
@TestMetadata("imports.kt")
public void testImports() throws Exception {
doTest("idea/testData/debugger/selectExpression/imports.kt");
}
@TestMetadata("infixCall.kt")
public void testInfixCall() throws Exception {
doTest("idea/testData/debugger/selectExpression/infixCall.kt");
@@ -96,6 +106,11 @@ public class SelectExpressionForDebuggerTestGenerated extends AbstractSelectExpr
doTest("idea/testData/debugger/selectExpression/modifier.kt");
}
@TestMetadata("package.kt")
public void testPackage() throws Exception {
doTest("idea/testData/debugger/selectExpression/package.kt");
}
@TestMetadata("param.kt")
public void testParam() throws Exception {
doTest("idea/testData/debugger/selectExpression/param.kt");
@@ -146,4 +161,19 @@ public class SelectExpressionForDebuggerTestGenerated extends AbstractSelectExpr
doTest("idea/testData/debugger/selectExpression/unaryExpression.kt");
}
@TestMetadata("userType.kt")
public void testUserType() throws Exception {
doTest("idea/testData/debugger/selectExpression/userType.kt");
}
@TestMetadata("userTypeGeneric.kt")
public void testUserTypeGeneric() throws Exception {
doTest("idea/testData/debugger/selectExpression/userTypeGeneric.kt");
}
@TestMetadata("userTypeQualified.kt")
public void testUserTypeQualified() throws Exception {
doTest("idea/testData/debugger/selectExpression/userTypeQualified.kt");
}
}