}
}
- 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);
- }
-
- public static void SetCompilerGenerated ()
- {
- if (symwriter != null)
- symwriter.SetCompilerGenerated ();
- }
-
public static void OpenCompilerGeneratedBlock (ILGenerator ig)
{
if (symwriter != null) {
return true;
}
+
+ public static void Reset ()
+ {
+ symwriter = null;
+ }
}
}