Пример #1
0
 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);
 }
Пример #2
0
 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);
 }