Exemplo n.º 1
0
        public void CopyParsedResults(IParsedScript other)
        {
            if (null == other)
            {
                return;
            }

            this.codeBlockNode = other.GetParsedResults();
        }
Exemplo n.º 2
0
        internal CodeFragmentManager(IParsedScript iParsedScript)
        {
            // TODO: Complete member initialization
            this.parsedScript = iParsedScript;

            CodeBlockNode parsedResults = iParsedScript.GetParsedResults();

            if (null != parsedResults)
            {
                NodeProcessor nodeProcessor = new NodeProcessor(parsedResults.Body);
                nodeProcessor.GenerateFragments(out fragmentArray);
                Array.Sort(fragmentArray);
            }
            else
            {
                // Create a dummy fragment just for the heck of it.
                fragmentArray = new CodeFragment[] { new CodeFragment(-1, -1, -1) };
            }
        }