}
}
- public static void OpenMethod (ICompileUnit file, ISourceMethod method)
+ public static SourceMethodBuilder OpenMethod (ICompileUnit file, int ns_id,
+ IMethodDef method)
{
if (symwriter != null)
- symwriter.OpenMethod (file, method);
+ return symwriter.OpenMethod (file, ns_id, method);
+ else
+ return null;
}
public static void CloseMethod ()
symwriter.DefineCapturedScope (scope_id, id, captured_name);
}
- public static void SetRealMethodName (string name)
- {
- if (symwriter != null)
- symwriter.SetRealMethodName (name);
- }
-
- [Obsolete ("Duplicates corlib infrastructure")]
- public static void SetCompilerGenerated ()
- {
- if (symwriter != null)
- symwriter.SetCompilerGenerated ();
- }
-
public static void OpenCompilerGeneratedBlock (ILGenerator ig)
{
if (symwriter != null) {
public static void MarkSequencePoint (ILGenerator ig, Location loc)
{
if (symwriter != null) {
+ SourceFileEntry file = loc.SourceFile.SourceFileEntry;
int offset = symwriter.GetILOffset (ig);
symwriter.MarkSequencePoint (
- offset, loc.File, loc.Row, loc.Column, loc.Hidden);
+ offset, file, loc.Row, loc.Column, loc.Hidden);
}
}
return true;
}
+
+ public static void Reset ()
+ {
+ symwriter = null;
+ }
}
}