/// <inheritdoc /> protected override void Format(IScriptToken token, StringBuilder resulttext, IFormatterCollection formatters, int depth = 0) { ArithmeticBlock block = (ArithmeticBlock)token; resulttext.Append('('); formatters[block.InnerBlock].FormatToken(block.InnerBlock, resulttext, formatters, depth); resulttext.Append(')'); }
/// <summary> /// visits an arithmetic block /// </summary> /// <param name="arithmeticblock">token to visit</param> public virtual void VisitArithmeticBlock(ArithmeticBlock arithmeticblock) { VisitToken(arithmeticblock.InnerBlock); }