mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-23 00:24:11 -08:00
Fix bug with source maps generator
This commit is contained in:
parent
525fd89374
commit
8950121d01
|
@ -33,8 +33,10 @@ public class ExactMethodIterator {
|
||||||
|
|
||||||
ExactMethodIterator(DebugInformation debugInformation) {
|
ExactMethodIterator(DebugInformation debugInformation) {
|
||||||
this.debugInformation = debugInformation;
|
this.debugInformation = debugInformation;
|
||||||
|
if (!isEndReached()) {
|
||||||
read();
|
read();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isEndReached() {
|
public boolean isEndReached() {
|
||||||
return methodIndex >= debugInformation.methodMapping.size() &&
|
return methodIndex >= debugInformation.methodMapping.size() &&
|
||||||
|
|
|
@ -31,8 +31,10 @@ public class SourceLocationIterator {
|
||||||
|
|
||||||
SourceLocationIterator(DebugInformation debugInformation) {
|
SourceLocationIterator(DebugInformation debugInformation) {
|
||||||
this.debugInformation = debugInformation;
|
this.debugInformation = debugInformation;
|
||||||
|
if (!isEndReached()) {
|
||||||
read();
|
read();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isEndReached() {
|
public boolean isEndReached() {
|
||||||
return fileIndex >= debugInformation.fileMapping.size() &&
|
return fileIndex >= debugInformation.fileMapping.size() &&
|
||||||
|
|
Loading…
Reference in New Issue
Block a user