void TagParsed (ILocation location, TagType tagtype, string tagid, TagAttributes attributes)
{
switch (tagtype) {
case TagType.CodeRender:
builder.AppendSubBuilder (new CodeRenderBuilder (tagid, false, location));
break;
case TagType.CodeRenderExpression:
builder.AppendSubBuilder (new CodeRenderBuilder (tagid, true, location));
break;
#if NET_4_0
case TagType.CodeRenderEncode:
builder.AppendSubBuilder (new CodeRenderBuilder (tagid, true, location, true));
break;
#endif
case TagType.DataBinding:
builder.AppendSubBuilder (new DataBindingBuilder (tagid, location));
break;
case TagType.Tag:
case TagType.SelfClosing:
case TagType.Close:
if (generator != null)
generator.TagParsed (location, tagtype, tagid, attributes);
else
goto default;
break;
default:
string text = location.PlainText;
if (text != null && text.Trim ().Length > 0)
builder.AppendLiteralString (text);
break;
}
}