UNPKG

@powerlang/egg-js

Version:

A Smalltalk VM that runs on top of JavaScript

45 lines (32 loc) 660 B
import SExpression from './SExpression.js'; let SReturn = class extends SExpression { constructor() { super(); this._local = nil; this._expression = nil; } static decodeUsing_(aTreecodeDecoder) { return aTreecodeDecoder.decodeReturn(); } acceptVisitor_(visitor) { return visitor.visitReturn_(this); } expression() { return this._expression; } expression_(anSExpression) { this._expression = anSExpression; return this; } isReturn() { return true; } local() { return this._local; } local_(aBoolean) { this._local = aBoolean; return this; } } export default SReturn