Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

2008-07-15 Sandy Armstrong <sanfordarmstrong@gmail.com>

        * CoverageModel.cs, symbols.cs: Update to build against latest
        code in Mono.CompilerServices.SymbolWriter.

svn path=/trunk/monocov/; revision=108023
  • Loading branch information...
commit 814b998a2328d4fdd179c51db3fdb599eced98ba 1 parent d4c6617
@sandyarmstrong sandyarmstrong authored
Showing with 8 additions and 3 deletions.
  1. +5 −0 ChangeLog
  2. +2 −2 CoverageModel.cs
  3. +1 −1  symbols.cs
View
5 ChangeLog
@@ -1,3 +1,8 @@
+2008-07-15 Sandy Armstrong <sanfordarmstrong@gmail.com>
+
+ * CoverageModel.cs, symbols.cs: Update to build against latest code
+ in Mono.CompilerServices.SymbolWriter.
+
2007-04-24 Zoltan Varga <vargaz@gmail.com>
* gui/gtk/CoverageView.cs: Applied patch from
View
4 CoverageModel.cs
@@ -552,7 +552,7 @@ private void ProcessMethod (MethodDefinition monoMethod, MethodEntry entry, Clas
// Compiler generated, abstract method etc.
return;
- LineNumberEntry[] lines = entry.LineNumbers;
+ LineNumberEntry[] lines = entry.GetLineNumberTable ().LineNumbers;
if (lines.Length == 0)
return;
@@ -574,7 +574,7 @@ MethodCoverageItem method
if (klass.sourceFile == null) {
- string sourceFile = entry.SourceFile.FileName;
+ string sourceFile = entry.CompileUnit.SourceFile.FileName;
SourceFileCoverageData source = (SourceFileCoverageData)sources [sourceFile];
if (source == null) {
View
2  symbols.cs
@@ -42,7 +42,7 @@ public static void Main (String[] args)
if (methodBase.Name.IndexOf (methodNamePattern) != -1) {
Console.WriteLine (methodBase.DeclaringType.FullName + ":" + methodBase.Name + " " + entry);
- foreach (LineNumberEntry line in entry.LineNumbers)
+ foreach (LineNumberEntry line in entry.GetLineNumberTable ().LineNumbers)
Console.WriteLine ("\t" + line);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.