AGS.CScript.Compiler.CodeBlockCompiler.FreeLocalVariables C# (CSharp) Method

FreeLocalVariables() private method

Frees the memory associated with the specified scope, and generates code to decrement the stack pointer accordingly.
private FreeLocalVariables ( LocalScope scope, bool unDeclareVars ) : void
scope LocalScope the scope to free
unDeclareVars bool whether to also un-define the local /// variables to prevent further use
return void
        private void FreeLocalVariables(LocalScope scope, bool unDeclareVars)
        {
            foreach (ScriptVariable variable in scope.Members)
            {
                // TODO: Generate code to free local variables
                if (unDeclareVars)
                {
                    // TODO: Undefine local variables
                }
            }
        }