[mono/mono] 4407f88e: Process/compare/output method's generic parameters [#15311]

"Sebastien Pouliot ([email protected])" <[email protected]>
Newsgroups gmane.comp.gnome.mono.patches
Message-ID <000001419fc75ae4-cc2e6f79-634a-417a-b241-6e0fe1e048ef-000000@email.amazonses.com>
   Branch: refs/heads/master
     Home: https://github.com/mono/mono
  Compare: https://github.com/mono/mono/compare/6e5cd4b5cf87...4407f88ea62b

   Commit: 4407f88ea62b3beae0606bf679a6994439b0a0ca
   Author: Sebastien Pouliot <[email protected]> (spouliot)
     Date: 2013-10-10 00:31:13 GMT
      URL: https://github.com/mono/mono/commit/4407f88ea62b3beae0606bf679a6994439b0a0ca

Process/compare/output method's generic parameters [#15311]

Changed paths:
  M mcs/tools/corcompare/mono-api-html/ConstructorComparer.cs

Modified: mcs/tools/corcompare/mono-api-html/ConstructorComparer.cs
===================================================================
@@ -84,8 +84,18 @@ public override string GetDescription (XElement e)
 
 			// the XML file `name` does not contain parameter names, so we must process them ourselves
 			// which gives us the opportunity to simplify type names
-			sb.Append (name.Substring (0, name.IndexOf ('('))).Append (" (");
+			sb.Append (name.Substring (0, name.IndexOf ('(')));
 
+			var genericp = e.Element ("generic-parameters");
+			if (genericp != null) {
+				var list = new List<string> ();
+				foreach (var p in genericp.Elements ("generic-parameter")) {
+					list.Add (p.GetTypeName ("name"));
+				}
+				sb.Append ("&lt;").Append (String.Join (", ", list)).Append ("&gt;");
+			}
+
+			sb.Append (" (");
 			var parameters = e.Element ("parameters");
 			if (parameters != null) {
 				var list = new List<string> ();


_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.