Exemple #1
0
        /// <summary>
        /// Pops a previous <see cref="ScriptVariableScope"/>.
        /// </summary>
        internal void PopVariableScope(ref FastStack <ScriptObject> stores)
        {
            if (stores.Count == 0)
            {
                // Should not happen at runtime
                throw new InvalidOperationException(RS.PopVariableScopeOverflow);
            }

            ScriptObject store = stores.Pop();

            // The store is cleanup once it is pushed back
            store.Clear();

            _availableStores.Push(store);
        }
Exemple #2
0
 private void ClearDefinitions()
 {
     ScriptObject.Clear();
 }