Add getLastValueType()

This commit is contained in:
Volker 2018-08-05 14:40:56 +02:00
parent 9bf768c97b
commit c8aecea7ab

View File

@ -80,6 +80,15 @@ class ValueStackManger {
return elements[size - deep - 1].codePosition;
}
/**
* Get the value type of the last value on the stack.
*
* @return the value type
*/
ValueType getLastValueType() {
return elements[size - 1].valueType;
}
/**
* Ensure that there is enough capacity.
*/