Exemple #1
0
 public override int VisitTextPart(TextPart part, int state)
 {
     return(part.Text.Text.Split(' ').Length + state);
 }
Exemple #2
0
 public abstract T VisitTextPart(TextPart part, T state);
Exemple #3
0
 public override TranslationState VisitTextPart(TextPart part, TranslationState ctx)
 {
     ctx.Result = FuncList.Cons(new TextElement(part.Text, ctx.Rect), FuncList.Empty <ScreenElement>());
     return(ctx);
 }