コード例 #1
0
        /// <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(')');
        }
コード例 #2
0
 /// <summary>
 /// visits an arithmetic block
 /// </summary>
 /// <param name="arithmeticblock">token to visit</param>
 public virtual void VisitArithmeticBlock(ArithmeticBlock arithmeticblock)
 {
     VisitToken(arithmeticblock.InnerBlock);
 }