}
}
- 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 ()
}
}
- public static int DefineNamespace (string name, SourceFileEntry source,
+ public static int DefineNamespace (string name, CompileUnitEntry source,
string[] using_clauses, int parent)
{
if (symwriter != null)
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) {
}
#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);
}
}