mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-03 05:44:10 -08:00
wasm: display inherited fields in debugger
This commit is contained in:
parent
7bde7d9642
commit
f2ae748705
|
@ -336,7 +336,9 @@ class WasmValueImpl extends Value {
|
||||||
return Collections.emptyMap();
|
return Collections.emptyMap();
|
||||||
}
|
}
|
||||||
var properties = new LinkedHashMap<String, Variable>();
|
var properties = new LinkedHashMap<String, Variable>();
|
||||||
for (var field : cls.instanceFields()) {
|
var ancestorCls = cls;
|
||||||
|
while (ancestorCls != null) {
|
||||||
|
for (var field : ancestorCls.instanceFields()) {
|
||||||
long longValue;
|
long longValue;
|
||||||
switch (field.type()) {
|
switch (field.type()) {
|
||||||
case BOOLEAN:
|
case BOOLEAN:
|
||||||
|
@ -364,6 +366,8 @@ class WasmValueImpl extends Value {
|
||||||
var value = new WasmValueImpl(debugger, debugInfo, field.type(), callFrame, longValue);
|
var value = new WasmValueImpl(debugger, debugInfo, field.type(), callFrame, longValue);
|
||||||
properties.put(field.name(), new Variable(field.name(), value));
|
properties.put(field.name(), new Variable(field.name(), value));
|
||||||
}
|
}
|
||||||
|
ancestorCls = ancestorCls.superclass();
|
||||||
|
}
|
||||||
addCommonProperties(properties, cls);
|
addCommonProperties(properties, cls);
|
||||||
return properties;
|
return properties;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user