2008-07-04 Marek Safar <marek.safar@gmail.com>
[mono.git] / mcs / mcs / symbolwriter.cs
index 768d35538e934e01770b1dee052b7b774dcf908f..51ab4c9b2c505aabf7e4a76667db45fb11b0da0f 100644 (file)
@@ -84,13 +84,13 @@ namespace Mono.CSharp {
                        }
                }
 
-               public static void OpenMethod (ISourceFile file, ISourceMethod method,
-                                              int start_row, int start_column,
-                                              int end_row, int end_column)
+               public static SourceMethodBuilder OpenMethod (ICompileUnit file, int ns_id,
+                                                             IMethodDef method)
                {
                        if (symwriter != null)
-                               symwriter.OpenMethod (file, method, start_row, start_column,
-                                                     end_row, end_column);
+                               return symwriter.OpenMethod (file, ns_id, method);
+                       else
+                               return null;
                }
 
                public static void CloseMethod ()
@@ -117,7 +117,7 @@ namespace Mono.CSharp {
                        }
                }
 
-               public static int DefineNamespace (string name, SourceFileEntry source,
+               public static int DefineNamespace (string name, CompileUnitEntry source,
                                                   string[] using_clauses, int parent)
                {
                        if (symwriter != null)
@@ -173,12 +173,6 @@ namespace Mono.CSharp {
                                symwriter.DefineCapturedScope (scope_id, id, captured_name);
                }
 
-               public static void SetRealMethodName (string name)
-               {
-                       if (symwriter != null)
-                               symwriter.SetRealMethodName (name);
-               }
-
                public static void OpenCompilerGeneratedBlock (ILGenerator ig)
                {
                        if (symwriter != null) {
@@ -228,11 +222,13 @@ namespace Mono.CSharp {
                }
 #endregion
 
-               public static void MarkSequencePoint (ILGenerator ig, int row, int column)
+               public static void MarkSequencePoint (ILGenerator ig, Location loc)
                {
                        if (symwriter != null) {
+                               SourceFileEntry file = loc.SourceFile.SourceFileEntry;
                                int offset = symwriter.GetILOffset (ig);
-                               symwriter.MarkSequencePoint (offset, row, column);
+                               symwriter.MarkSequencePoint (
+                                       offset, file, loc.Row, loc.Column, loc.Hidden);
                        }
                }