Ejemplo n.º 1
0
 public override void Initialize(DbgEvaluationInfo evalInfo, DmdMethodBody realMethodBody, VariablesProvider argumentsProvider, VariablesProvider localsProvider, bool canFuncEval)
 {
     Debug.Assert(this.evalInfo == null);
     if (this.evalInfo != null)
     {
         throw new InvalidOperationException();
     }
     this.evalInfo          = evalInfo;
     this.canFuncEval       = canFuncEval;
     this.argumentsProvider = argumentsProvider ?? DefaultArgumentsProvider;
     interpreterLocalsProvider.Initialize(realMethodBody, localsProvider ?? DefaultLocalsProvider);
     Debug.Assert(valuesToDispose.Count == 0);
 }
Ejemplo n.º 2
0
 public override void Initialize(DbgEvaluationContext context, DbgStackFrame frame, DmdMethodBody realMethodBody, VariablesProvider argumentsProvider, VariablesProvider localsProvider, bool canFuncEval, CancellationToken cancellationToken)
 {
     Debug.Assert(this.context == null);
     if (this.context != null)
     {
         throw new InvalidOperationException();
     }
     this.context           = context;
     this.frame             = frame;
     this.cancellationToken = cancellationToken;
     this.canFuncEval       = canFuncEval;
     this.argumentsProvider = argumentsProvider ?? DefaultArgumentsProvider;
     interpreterLocalsProvider.Initialize(realMethodBody, localsProvider ?? DefaultLocalsProvider);
     Debug.Assert(valuesToDispose.Count == 0);
 }