Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Sandy Armstrong sandyarmstrong authored

Showing 3 changed files with 8 additions and 3 deletions. Show diff stats Hide diff stats

  1. +5 0 ChangeLog
  2. +2 2 CoverageModel.cs
  3. +1 1  symbols.cs
5 ChangeLog
... ... @@ -1,3 +1,8 @@
  1 +2008-07-15 Sandy Armstrong <sanfordarmstrong@gmail.com>
  2 +
  3 + * CoverageModel.cs, symbols.cs: Update to build against latest code
  4 + in Mono.CompilerServices.SymbolWriter.
  5 +
1 6 2007-04-24 Zoltan Varga <vargaz@gmail.com>
2 7
3 8 * gui/gtk/CoverageView.cs: Applied patch from
4 CoverageModel.cs
@@ -552,7 +552,7 @@ private void ProcessMethod (MethodDefinition monoMethod, MethodEntry entry, Clas
552 552 // Compiler generated, abstract method etc.
553 553 return;
554 554
555   - LineNumberEntry[] lines = entry.LineNumbers;
  555 + LineNumberEntry[] lines = entry.GetLineNumberTable ().LineNumbers;
556 556
557 557 if (lines.Length == 0)
558 558 return;
@@ -574,7 +574,7 @@ MethodCoverageItem method
574 574
575 575
576 576 if (klass.sourceFile == null) {
577   - string sourceFile = entry.SourceFile.FileName;
  577 + string sourceFile = entry.CompileUnit.SourceFile.FileName;
578 578
579 579 SourceFileCoverageData source = (SourceFileCoverageData)sources [sourceFile];
580 580 if (source == null) {
2  symbols.cs
@@ -42,7 +42,7 @@ public static void Main (String[] args)
42 42 if (methodBase.Name.IndexOf (methodNamePattern) != -1) {
43 43 Console.WriteLine (methodBase.DeclaringType.FullName + ":" + methodBase.Name + " " + entry);
44 44
45   - foreach (LineNumberEntry line in entry.LineNumbers)
  45 + foreach (LineNumberEntry line in entry.GetLineNumberTable ().LineNumbers)
46 46 Console.WriteLine ("\t" + line);
47 47 }
48 48 }

0 comments on commit 814b998

Please sign in to comment.
Something went wrong with that request. Please try again.