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"]); }
private void Visit(Node node) { }
/// <summary> /// Pust the given `node` /// </summary> /// <param name="node"></param> internal void Push(Node node) { Nodes.Push(node); }
/// <summary> /// Unshift the given `node`. /// </summary> /// <param name="node"></param> internal void Unshift(Node node) { Nodes.Unshift(node); }
internal Block(Node node) : this() { Debug.Assert(node != null); Nodes.Push(node); }