[PSI2IR, K/Wasm] Sync start and end offsets on PSI and FIR for primary constructors
This commit is contained in:
@@ -75,6 +75,7 @@ class WasmIrExpressionBuilder(
|
||||
// droppable instructions + drop/unreachable -> nothing
|
||||
if ((op == WasmOp.DROP || op == WasmOp.UNREACHABLE) && lastOperator.pureStacklessInstruction()) {
|
||||
trimInstructionsUntil(lastInstructionIndex)
|
||||
(lastInstruction.location as? SourceLocation.Location)?.let(::buildNop)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
@@ -112,7 +112,7 @@ open class AbstractFirWasmJsTranslatorTest : AbstractFirWasmJsTest(
|
||||
|
||||
open class AbstractFirWasmJsSteppingTest : AbstractFirWasmJsTest(
|
||||
"compiler/testData/debug/stepping/",
|
||||
"debug/stepping/"
|
||||
"debug/stepping/firBox"
|
||||
) {
|
||||
override val wasmBoxTestRunner: Constructor<AnalysisHandler<BinaryArtifacts.Wasm>>
|
||||
get() = ::WasmDebugRunner
|
||||
|
||||
@@ -69,7 +69,7 @@ open class AbstractK1WasmJsTranslatorTest : AbstractK1WasmTest(
|
||||
|
||||
open class AbstractK1WasmSteppingTest : AbstractK1WasmTest(
|
||||
"compiler/testData/debug/stepping/",
|
||||
"debug/stepping/"
|
||||
"debug/stepping/k1Box"
|
||||
) {
|
||||
|
||||
override val wasmBoxTestRunner: Constructor<AnalysisHandler<BinaryArtifacts.Wasm>>
|
||||
|
||||
Reference in New Issue
Block a user