UNPKG

@powerlang/egg-js

Version:

A Smalltalk VM that runs on top of JavaScript

54 lines (39 loc) 847 B
import SExpression from './SExpression.js'; let SAssignment = class extends SExpression { constructor() { super(); this._assignees = nil; this._expression = nil; } static decodeUsing_(aTreecodeDecoder) { return aTreecodeDecoder.decodeAssignment(); } static new() { return this.basicNew().initialize(); } acceptVisitor_(visitor) { return visitor.visitAssignment_(this); } assign_(anSIdentifier) { this._assignees.add_(anSIdentifier); return this; } assignees() { return this._assignees; } expression() { return this._expression; } expression_(anSExpression) { this._expression = anSExpression; return this; } initialize() { this._assignees = Array.new(); return this; } isAssignment() { return true; } } export default SAssignment