internal virtual void AddAssemblyDirective (ILocation location, TagAttributes attrs)
{
IDictionary tbl = attrs.GetDictionary (null);
string name = GetAndRemove (tbl, "Name");
string src = GetAndRemove (tbl, "Src");
if (name == null && src == null)
throw new ParseException (location, "You gotta specify Src or Name");
if (name != null && src != null)
throw new ParseException (location, "Src and Name cannot be used together");
if (name != null) {
AddAssemblyByName (name, location);
} else {
GetAssemblyFromSource (src, location);
}
if (tbl.Count > 0)
throw new ParseException (location, "Unrecognized attribute in Assembly directive");
}