public SharedStates(Script script, ReferenceCounter referenceCounter)
 {
     this.Script          = script;
     this.EvaluationStack = new EvaluationStack(referenceCounter);
     this.States          = new Dictionary <Type, object>();
 }
示例#2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="script">Script</param>
 /// <param name="rvcount">Number of items to be returned</param>
 internal ExecutionContext(Script script, int rvcount, ReferenceCounter referenceCounter)
     : this(script, rvcount, new EvaluationStack(referenceCounter), new Dictionary <Type, object>())
 {
 }
示例#3
0
 internal EvaluationStack(ReferenceCounter referenceCounter)
 {
     this.referenceCounter = referenceCounter;
 }
示例#4
0
 public Slot(int count, ReferenceCounter referenceCounter)
     : this(Enumerable.Repeat(StackItem.Null, count).ToArray(), referenceCounter)
 {
 }