public ScriptNode(ScriptSection section) { rawContents = section.Contents; foreach (ScriptSection child in section.Children) { children.Add(child.CreateScriptModel()); } }
public BlockNode(ScriptSection section) : base(section) { }
public ProcessRequestNode(ScriptSection section) : base(section) { }
public ReferenceNode(ScriptSection section) : base(section) { }
public IfNode(ScriptSection section) : base(section) { }
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; }
private void addInlineChild(string line) { ScriptSection inline = new ScriptSection(); inline.Contents = line; Children.Add(inline); }
public AttachEndPointNode(ScriptSection section) : base(section) { }
public IncludeNode(ScriptSection section) : base(section) { }
public RegisterNode(ScriptSection section) : base(section) { }
public DefineNode(ScriptSection section) : base(section) { }