Author: jpobst
Date: 2007-07-19 09:56:46 -0400 (Thu, 19 Jul 2007)
New Revision: 82288
Modified:
trunk/moma/ChangeLog
trunk/moma/MoMA.Analyzer/MethodExtractor.cs
Log:
07-19-2007 Jonathan Pobst <[EMAIL PROTECTED]>
* MethodExtractor.cs: Fix an issue Andreia found with multiline
MonoTODO comments.
Modified: trunk/moma/ChangeLog
===================================================================
--- trunk/moma/ChangeLog 2007-07-19 13:46:40 UTC (rev 82287)
+++ trunk/moma/ChangeLog 2007-07-19 13:56:46 UTC (rev 82288)
@@ -1,3 +1,7 @@
+07-19-2007 Jonathan Pobst <[EMAIL PROTECTED]>
+
+ * MethodExtractor.cs: Fix an issue Andreia found with multiline
MonoTODO comments.
+
06-14-2007 Jonathan Pobst <[EMAIL PROTECTED]>
* MainForm.cs: Fix error while displaying exceptions.
Modified: trunk/moma/MoMA.Analyzer/MethodExtractor.cs
===================================================================
--- trunk/moma/MoMA.Analyzer/MethodExtractor.cs 2007-07-19 13:46:40 UTC (rev
82287)
+++ trunk/moma/MoMA.Analyzer/MethodExtractor.cs 2007-07-19 13:56:46 UTC (rev
82288)
@@ -29,9 +29,9 @@
foreach
(CustomAttribute ca in property.CustomAttributes) {
if
(IsReportableMonoTODO (ca.Constructor.DeclaringType.ToString ())) {
if
(property.GetMethod != null && IsMethodVisible (property.GetMethod))
-
monoTodoMethods[property.GetMethod.ToString ()] = new Method
(property.GetMethod.ToString (), ca.ConstructorParameters.Count > 0 ?
ca.ConstructorParameters[0].ToString () : string.Empty);
+
monoTodoMethods[property.GetMethod.ToString ()] = new Method
(property.GetMethod.ToString (), ca.ConstructorParameters.Count > 0 ?
ca.ConstructorParameters[0].ToString ().Replace ('\n', ' ') : string.Empty);
if
(property.SetMethod != null && IsMethodVisible (property.SetMethod))
-
monoTodoMethods[property.SetMethod.ToString ()] = new Method
(property.SetMethod.ToString (), ca.ConstructorParameters.Count > 0 ?
ca.ConstructorParameters[0].ToString () : string.Empty);
+
monoTodoMethods[property.SetMethod.ToString ()] = new Method
(property.SetMethod.ToString (), ca.ConstructorParameters.Count > 0 ?
ca.ConstructorParameters[0].ToString ().Replace ('\n', ' ') : string.Empty);
}
}
}
@@ -50,7 +50,7 @@
if (monoTodoMethods != null)
foreach
(CustomAttribute ca in method.CustomAttributes)
if
(IsReportableMonoTODO (ca.Constructor.DeclaringType.ToString ()))
-
monoTodoMethods[method.ToString ()] = new Method (method.ToString (),
ca.ConstructorParameters.Count > 0 ? ca.ConstructorParameters[0].ToString () :
string.Empty);
+
monoTodoMethods[method.ToString ()] = new Method (method.ToString (),
ca.ConstructorParameters.Count > 0 ? ca.ConstructorParameters[0].ToString
().Replace ('\n', ' ') : string.Empty);
// If adding methods that throw
NotImplementedException, look for those
if (throwsNotImplementedMethods
!= null && ThrowsNotImplementedException (method))
@@ -71,7 +71,7 @@
if (monoTodoMethods != null)
foreach
(CustomAttribute ca in method.CustomAttributes)
if
(IsReportableMonoTODO (ca.Constructor.DeclaringType.ToString ()))
-
monoTodoMethods[method.ToString ()] = new Method (method.ToString (),
ca.ConstructorParameters.Count > 0 ? ca.ConstructorParameters[0].ToString () :
string.Empty);
+
monoTodoMethods[method.ToString ()] = new Method (method.ToString (),
ca.ConstructorParameters.Count > 0 ? ca.ConstructorParameters[0].ToString
().Replace ('\n', ' ') : string.Empty);
// If adding methods that throw
NotImplementedException, look for those
if (throwsNotImplementedMethods
!= null && ThrowsNotImplementedException (method))
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches