protected override void VisitText(HxlTextElement element) { // These should have been converted to render islands, BUT there are a few // cases where we want to keep an object: // - parent is retained (easier to work with) // - only writing a space or tab (no need for the overhead) string parent = stack.Peek(); CurrentOutput.WriteLine("{0}.AppendText(\"{1}\");", parent, CodeUtility.Escape(element.Data)); }
protected virtual void VisitText(HxlTextElement element) { DefaultVisit(element); }
public IEnumerable <string> End(HxlTextElement e) { return(Empty <string> .List); }
void IHxlLanguageVisitor.Visit(HxlTextElement element) { VisitText(element); }
public IEnumerable <string> Start(HxlTextElement e) { yield return(string.Format( "__self.Write(\"{0}\");", CodeUtility.Escape(e.Data))); }