public IAccessorFrameState GetCallState(IReadOnlyList <Expr> arguments, Func <IAccessorFrame, IReadOnlyList <RuntimeObj>, PExpr> call) { if (++_initCount < _realInitCount) { return(null); } if (_state == null) { _state = new FrameState(this, null, call, arguments); ++_realInitCount; } return(_state); }
public IAccessorFrameState GetImplementationState(Action <IAccessorFrameInitializer> configuration) { if (++_initCount < _realInitCount) { return(null); } if (_state == null) { var init = new FrameInitializer(this); configuration(init); _state = init.State; ++_realInitCount; } return(_state); }