+ if (symwriter != null) {
+ int offset = symwriter.GetILOffset (ig);
+ symwriter.CloseCompilerGeneratedBlock (offset);
+ }
+ }
+
+ public static void StartIteratorBody (ILGenerator ig)
+ {
+ if (symwriter != null) {
+ int offset = symwriter.GetILOffset (ig);
+ symwriter.StartIteratorBody (offset);
+ }
+ }
+
+ public static void EndIteratorBody (ILGenerator ig)
+ {
+ if (symwriter != null) {
+ int offset = symwriter.GetILOffset (ig);
+ symwriter.EndIteratorBody (offset);
+ }
+ }
+
+ public static void StartIteratorDispatcher (ILGenerator ig)
+ {
+ if (symwriter != null) {
+ int offset = symwriter.GetILOffset (ig);
+ symwriter.StartIteratorDispatcher (offset);
+ }
+ }
+
+ public static void EndIteratorDispatcher (ILGenerator ig)
+ {
+ if (symwriter != null) {
+ int offset = symwriter.GetILOffset (ig);
+ symwriter.EndIteratorDispatcher (offset);
+ }
+ }
+#endregion
+
+ public static void MarkSequencePoint (ILGenerator ig, Location loc)
+ {
+ if (symwriter != null) {
+ SourceFileEntry file = loc.SourceFile.SourceFileEntry;
+ int offset = symwriter.GetILOffset (ig);
+ symwriter.MarkSequencePoint (
+ offset, file, loc.Row, loc.Column, loc.Hidden);
+ }
+ }