Exemplo n.º 1
0
 public void ReplaceChildNodes(params AstNode[] nodes)
 {
     ChildNodes.Clear();
     foreach (AstNode node in nodes)
     {
         AddChild(node);
     }
 }
Exemplo n.º 2
0
        public void ResetForPrecompilation()
        {
            GraphNodeUID      = 0;
            CodeBlockIndex    = 0;
            RuntimeTableIndex = 0;

            //Initialize the dynamic string table and dynamic function table
            DynamicVariableTable = new DynamicVariableTable();
            DynamicFunctionTable = new DynamicFunctionTable();

            if (Options.SuppressBuildOutput)
            {
                //  don't log any of the build related messages
                //  just accumulate them in relevant containers with
                //  BuildStatus object
                //
                BuildStatus = new BuildStatus(this, false, false, false);
            }
            else
            {
                BuildStatus = new BuildStatus(this, Options.BuildOptWarningAsError);
            }

            if (AstNodeList != null)
            {
                AstNodeList.Clear();
            }

            ExpressionUID     = 0;
            ForLoopBlockIndex = Constants.kInvalidIndex;
        }