Esempio n. 1
0
 internal Compiler(Node node, IDictionary<string, object> options = null)
 {
     _options = options ?? new Dictionary<string, object>();
     _node = node;
     _hasCompiledDoctype = false;
     _hasCompiledTag = false;
     _pp = (bool) _options.GetValueOrDefault("pretty", false);
     _debug = _options.ContainsKey("compileDebug") && (bool) _options["compileDebug"];
     _indents = 0;
     _parentIndents = 0;
     if (_options.ContainsKey("doctype")) SetDoctype((string) _options["doctype"]);
         
 }
Esempio n. 2
0
 private void Visit(Node node)
 {
     
 }
Esempio n. 3
0
 /// <summary>
 /// Pust the given `node`
 /// </summary>
 /// <param name="node"></param>
 internal void Push(Node node)
 {
     Nodes.Push(node);
 }
Esempio n. 4
0
 /// <summary>
 /// Unshift the given `node`.
 /// </summary>
 /// <param name="node"></param>
 internal void Unshift(Node node)
 {
     Nodes.Unshift(node);
 }
Esempio n. 5
0
 internal Block(Node node)
     : this()
 {
     Debug.Assert(node != null);
     Nodes.Push(node);
 }