Exemple #1
0
        public ScriptNode(ScriptSection section)
        {
            rawContents = section.Contents;

            foreach (ScriptSection child in section.Children)
            {
                children.Add(child.CreateScriptModel());
            }
        }
Exemple #2
0
 public BlockNode(ScriptSection section)
     : base(section)
 {
 }
Exemple #3
0
 public ProcessRequestNode(ScriptSection section)
     : base(section)
 {
 }
Exemple #4
0
 public ReferenceNode(ScriptSection section)
     : base(section)
 {
 }
Exemple #5
0
 public IfNode(ScriptSection section)
     : base(section)
 {
 }
Exemple #6
0
        private static ScriptSection readScriptSection(TextReader tr)
        {
            ScriptSection result = new ScriptSection();

            string scriptLine = Helper.ReadNextLine(tr);
            if (scriptLine == null) //EOF?
            {
                return null;
            }
            result.Contents = scriptLine;

            if (result.IsComplex)
            {
                string startSectionMarker = Helper.ReadNextLine(tr);
                Debug.Assert(startSectionMarker == "{");

                result.Children = new ScriptTree();
                ScriptSection section = null;
                do
                {
                    section = readScriptSection(tr);
                    if (section != null) result.Children.Add(section);
                } while (section != null);
            }
            else if (result.IsSectionEndMarker)
            {
                return null;
            }

            return result;
        }
Exemple #7
0
 private void addInlineChild(string line)
 {
     ScriptSection inline = new ScriptSection();
     inline.Contents = line;
     Children.Add(inline);
 }
Exemple #8
0
 public AttachEndPointNode(ScriptSection section)
     : base(section)
 {
 }
Exemple #9
0
 public IncludeNode(ScriptSection section)
     : base(section)
 {
 }
Exemple #10
0
 public RegisterNode(ScriptSection section)
     : base(section)
 {
 }
Exemple #11
0
 public DefineNode(ScriptSection section)
     : base(section)
 {
 }