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