All pastes #424972 Raw Edit

Someone

public text v1 · immutable
·published 2007-04-05 04:06 UTC
rendered paste body
using System;
using System.Collections.Generic;
using System.Text;
using DunnChurchill.Code.Compiler;
using DunnChurchill.Code.Compiler.Attributes;
using DunnChurchill.Templates.Compiler.TemplateParser;
using PerCederberg.Grammatica.Parser;
namespace DunnChurchill.Templates.Compiler.TemplateVisitors
{
    [VisitorClass((int)TemplateConstants.INTERPOLATION_BLOCK)]
    class InterpolationBlockVisitor : Visitor
    {
        protected override bool OnVisit(PerCederberg.Grammatica.Parser.Node node)
        {
            Token token = node as Token;
            node.AddValue(token.GetImage());
        }
    }
}