[FIR LT] Get correct startOffset value for declarations with comments

#KT-56913 Fixed
#KT-56926 Fixed
This commit is contained in:
Ivan Kylchik
2023-03-20 19:47:20 +01:00
committed by Space Team
parent e4591d7af9
commit 2b387e7a10
14 changed files with 414 additions and 6 deletions
@@ -85,6 +85,30 @@ public class IrJsSteppingTestGenerated extends AbstractIrJsSteppingTest {
runTest("compiler/testData/debug/stepping/classObject.kt");
}
@Test
@TestMetadata("commentBeforeClass.kt")
public void testCommentBeforeClass() throws Exception {
runTest("compiler/testData/debug/stepping/commentBeforeClass.kt");
}
@Test
@TestMetadata("commentBeforeCompanionProperty.kt")
public void testCommentBeforeCompanionProperty() throws Exception {
runTest("compiler/testData/debug/stepping/commentBeforeCompanionProperty.kt");
}
@Test
@TestMetadata("commentBeforeFunctionWithDefault.kt")
public void testCommentBeforeFunctionWithDefault() throws Exception {
runTest("compiler/testData/debug/stepping/commentBeforeFunctionWithDefault.kt");
}
@Test
@TestMetadata("comments.kt")
public void testComments() throws Exception {
runTest("compiler/testData/debug/stepping/comments.kt");
}
@Test
@TestMetadata("compileTimeConstant.kt")
public void testCompileTimeConstant() throws Exception {
@@ -367,6 +391,12 @@ public class IrJsSteppingTestGenerated extends AbstractIrJsSteppingTest {
runTest("compiler/testData/debug/stepping/nullcheck.kt");
}
@Test
@TestMetadata("overridenGetterSetter.kt")
public void testOverridenGetterSetter() throws Exception {
runTest("compiler/testData/debug/stepping/overridenGetterSetter.kt");
}
@Test
@TestMetadata("primitiveNullChecks.kt")
public void testPrimitiveNullChecks() throws Exception {