mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
Wasm: fix debug info generation
This commit is contained in:
parent
57e0227a02
commit
548ded7c75
|
@ -943,15 +943,22 @@ class WasmBinaryRenderingVisitor implements WasmExpressionVisitor {
|
|||
}
|
||||
|
||||
private void emitLocation(TextLocation location) {
|
||||
if (deferTextLocationToEmit && location != null) {
|
||||
textLocationToEmit = location;
|
||||
if (deferTextLocationToEmit) {
|
||||
if (location != null) {
|
||||
textLocationToEmit = location;
|
||||
deferTextLocationToEmit = false;
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
}
|
||||
flushLocation();
|
||||
textLocationToEmit = location;
|
||||
}
|
||||
|
||||
private void emitDeferredLocation() {
|
||||
flushLocation();
|
||||
if (textLocationToEmit != null) {
|
||||
flushLocation();
|
||||
}
|
||||
textLocationToEmit = null;
|
||||
deferTextLocationToEmit = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user