UNPKG

@powerlang/egg-js

Version:

A Smalltalk VM that runs on top of JavaScript

45 lines (32 loc) 676 B
import SExpression from './SExpression.js'; let SCascade = class extends SExpression { constructor() { super(); this._receiver = nil; this._messages = nil; } static decodeUsing_(aTreecodeDecoder) { return aTreecodeDecoder.decodeCascade(); } acceptVisitor_(visitor) { return visitor.visitCascade_(this); } isCascade() { return true; } messages() { return this._messages; } messages_(aCollection) { this._messages = aCollection; return this; } receiver() { return this._receiver; } receiver_(anSExpression) { this._receiver = anSExpression; return this; } } export default SCascade