Esempio n. 1
0
        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));
        }
Esempio n. 2
0
 protected virtual void VisitText(HxlTextElement element)
 {
     DefaultVisit(element);
 }
Esempio n. 3
0
 public IEnumerable <string> End(HxlTextElement e)
 {
     return(Empty <string> .List);
 }
Esempio n. 4
0
 void IHxlLanguageVisitor.Visit(HxlTextElement element)
 {
     VisitText(element);
 }
Esempio n. 5
0
 public IEnumerable <string> Start(HxlTextElement e)
 {
     yield return(string.Format(
                      "__self.Write(\"{0}\");", CodeUtility.Escape(e.Data)));
 }