UNPKG

@powerlang/egg-js

Version:

A Smalltalk VM that runs on top of JavaScript

50 lines (36 loc) 823 B
import SBinding from './SBinding.js'; let SAssociationBinding = class extends SBinding { constructor() { super(); this._index = nil; this._association = nil; } assign_within_(value, anEvaluationContext) { anEvaluationContext.storeAssociation_value_(this._association, value); return this; } association() { return this._association; } association_(anAssociation) { this._association = anAssociation; return this; } index() { return this._index; } index_(anInteger) { this._index = anInteger; return this; } isAssociation() { return true; } isConstant() { return false; } valueWithin_(anEvaluationContext) { return anEvaluationContext.loadAssociationValue_(this._association); } } export default SAssociationBinding