@powerlang/egg-js
Version:
A Smalltalk VM that runs on top of JavaScript
29 lines (20 loc) • 636 B
JavaScript
import SLocalBinding from './SLocalBinding.js';
let STemporaryBinding = class extends SLocalBinding {
static decodeUsing_(aTreecodeDecoder) {
return aTreecodeDecoder.decodeTemporary();
}
assign_within_(value, anEvaluationContext) {
anEvaluationContext.temporaryAt_in_put_(this._position, this._environment, value);
return this;
}
isInCurrentEnvironment() {
return this._environment._equal(1);
}
isTemporary() {
return true;
}
valueWithin_(anEvaluationContext) {
return anEvaluationContext.temporaryAt_in_(this._position, this._environment);
}
}
export default STemporaryBinding