// produces a file suitable to build class status pages.
//
// Authors:
-// Gonzalo Paniagua Javier (gonzalo@ximian.com)
+// Gonzalo Paniagua Javier (gonzalo@ximian.com)\r
+// Marek Safar (marek.safar@gmail.com)
//
// (C) 2003 Novell, Inc (http://www.novell.com)
//
bool isUnsafe;
bool isOptional;
string defaultValue;
+ XMLAttributes attributes;
public override void LoadData (XmlNode node)
{
if (node.Attributes["optional"] != null)
isOptional = bool.Parse (node.Attributes["optional"].Value);
if (node.Attributes["defaultValue"] != null)
- defaultValue = node.Attributes["defaultValue"].Value;
+ defaultValue = node.Attributes["defaultValue"].Value;\r
+\r
+ XmlNode child = node.FirstChild;\r
+ if (child == null)\r
+ return;\r
+
+ if (child.Name == "attributes") {
+ attributes = new XMLAttributes ();
+ attributes.LoadData (child);
+ child = child.NextSibling;
+ }
}
public override void CompareTo (XmlDocument doc, XmlNode parent, object other)
if (defaultValue != oparm.defaultValue)
AddWarning (parent, "Parameter default value wrong: {0} != {1}", (defaultValue == null) ? "(no default value)" : defaultValue, (oparm.defaultValue == null) ? "(no default value)" : oparm.defaultValue);
+
+ if (attributes != null || oparm.attributes != null) {
+ if (attributes == null)
+ attributes = new XMLAttributes ();\r
+\r
+ attributes.CompareTo (doc, parent, oparm.attributes);
+ counters.AddPartialToPartial (attributes.Counters);
+ if (oparm.attributes != null && oparm.attributes.IsTodo) {
+ counters.Todo++;
+ counters.TodoTotal++;
+ counters.ErrorTotal++;
+ AddAttribute (parent, "error", "todo");\r
+ if (oparm.attributes.Comment != null)\r
+ AddAttribute (parent, "comment", oparm.attributes.Comment);
+ }
+ }
}
public string Name {