Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Closure"/> class.
 /// </summary>
 /// <param name="script">The script.</param>
 /// <param name="idx">The index.</param>
 /// <param name="resolvedLocals">The resolved locals.</param>
 internal Closure(Script script, int idx, ClosureRefValue[] resolvedLocals)
 {
     isAlive     = true;
     OwnerScript = script;
     EntryPointByteCodeLocation = idx;
     ClosureContext             = new ClosureContext(resolvedLocals);
     script.RegisterClosure(this);
 }